{"openapi": "3.0.3", "info": {"title": "Telegram MTProto · тестовый каталог", "version": "0.1.0", "description": "Каталог методов клиентского API Telegram."}, "servers": [{"url": "."}], "tags": [{"name": "Служебные методы", "description": "Глобальные операции TL."}, {"name": "Авторизация", "description": "Пространство имён TL: auth."}, {"name": "Аккаунт", "description": "Пространство имён TL: account."}, {"name": "Пользователи", "description": "Пространство имён TL: users."}, {"name": "Контакты", "description": "Пространство имён TL: contacts."}, {"name": "Сообщения", "description": "Пространство имён TL: messages."}, {"name": "Обновления", "description": "Пространство имён TL: updates."}, {"name": "Фотографии", "description": "Пространство имён TL: photos."}, {"name": "Файлы", "description": "Пространство имён TL: upload."}, {"name": "Конфигурация и справка", "description": "Пространство имён TL: help."}, {"name": "Каналы и супергруппы", "description": "Пространство имён TL: channels."}, {"name": "Боты", "description": "Пространство имён TL: bots."}, {"name": "Платежи", "description": "Пространство имён TL: payments."}, {"name": "Стикеры", "description": "Пространство имён TL: stickers."}, {"name": "Звонки", "description": "Пространство имён TL: phone."}, {"name": "Переводы", "description": "Пространство имён TL: langpack."}, {"name": "Папки", "description": "Пространство имён TL: folders."}, {"name": "Статистика", "description": "Пространство имён TL: stats."}, {"name": "Папки чатов", "description": "Пространство имён TL: chatlists."}, {"name": "Истории", "description": "Пространство имён TL: stories."}, {"name": "Telegram Premium", "description": "Пространство имён TL: premium."}, {"name": "SMS", "description": "Пространство имён TL: smsjobs."}, {"name": "Fragment", "description": "Пространство имён TL: fragment."}, {"name": "ИИ-редактор", "description": "Пространство имён TL: aicompose."}, {"name": "Сообщества", "description": "Пространство имён TL: communities."}, {"name": "Временные сообщения", "description": "Пространство имён TL: ephemeral."}, {"name": "TON Center", "description": "Пространство имён TL: toncenter."}, {"name": "Кошелёк", "description": "Пространство имён TL: wallet."}, {"name": "Лента", "description": "Пространство имён TL: feed."}], "paths": {"/catalog/invokeAfterMsg": {"post": {"operationId": "invokeAfterMsg", "tags": ["Служебные методы"], "summary": "Выполнить запрос после успешного завершения другого", "description": "Telegram выполнит вложенный запрос после успеха предыдущего. Клиент может отправить оба запроса заранее. Доступно пользователям и ботам. [Последовательные запросы](https://core.telegram.org/api/invoking#sequential-requests).", "x-tl-method": "invokeAfterMsg", "x-tl-id": "3416209197", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nТип X совпадает с типом результата вложенного метода.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- `MSG_WAIT_TIMEOUT` — Истекло время ожидания предыдущего запроса.\n- `MSG_WAIT_FAILED` — Предыдущий запрос завершился RPC-ошибкой."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeAfterMsg"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"msg_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битный транспортный ID предыдущего запроса MTProto.", "x-tl-type": "long"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Вложенный запрос TL, который Telegram выполнит после предыдущего."}}, "additionalProperties": false, "required": ["msg_id", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `msg_id` | `long` | Да | 64-битный транспортный ID предыдущего запроса MTProto. |\n| `query` | `!X` | Да | Вложенный запрос TL, который Telegram выполнит после предыдущего. |"}, "x-telegram-rpc-errors": ["MSG_WAIT_TIMEOUT", "MSG_WAIT_FAILED"], "x-browser-schema-id": "3416209197"}}, "/catalog/invokeAfterMsgs": {"post": {"operationId": "invokeAfterMsgs", "tags": ["Служебные методы"], "summary": "Вызывает запрос после успешного завершения предыдущих запросов.", "description": "Вызывает запрос после успешного завершения предыдущих запросов.", "x-tl-method": "invokeAfterMsgs", "x-tl-id": "1036301552", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeAfterMsgs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"msg_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Список сообщений, от которых зависит текущий запрос"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Сам запрос"}}, "additionalProperties": false, "required": ["msg_ids", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `msg_ids` | `Vector<long>` | Да | Список сообщений, от которых зависит текущий запрос |\n| `query` | `!X` | Да | Сам запрос |"}, "x-browser-schema-id": "1036301552"}}, "/catalog/initConnection": {"post": {"operationId": "initConnection", "tags": ["Служебные методы"], "summary": "Инициализировать соединение", "description": "Инициализировать соединение\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "initConnection", "x-tl-id": "3251461801", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CONNECTION_LAYER_INVALID` — Слой недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/initConnection"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "device_model": {"type": "string", "x-tl-type": "string", "description": "Модель устройства"}, "system_version": {"type": "string", "x-tl-type": "string", "description": "Версия операционной системы"}, "app_version": {"type": "string", "x-tl-type": "string", "description": "Версия приложения"}, "system_lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка, используемого в ОС устройства, стандарт ISO 639-1."}, "lang_pack": {"type": "string", "x-tl-type": "string", "description": "Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links)."}, "proxy": {"type": "object", "x-tl-type": "InputClientProxy", "oneOf": [{"$ref": "#/components/schemas/inputClientProxy"}], "description": "Информация о прокси MTProto", "x-tl-flag": "flags.0?InputClientProxy"}, "params": {"type": "object", "x-tl-type": "JSONValue", "oneOf": [{"$ref": "#/components/schemas/jsonNull"}, {"$ref": "#/components/schemas/jsonBool"}, {"$ref": "#/components/schemas/jsonNumber"}, {"$ref": "#/components/schemas/jsonString"}, {"$ref": "#/components/schemas/jsonArray"}, {"$ref": "#/components/schemas/jsonObject"}], "description": "Дополнительные параметры initConnection.  На данный момент поддерживается только поле `tz_offset` для указания смещения часового пояса в секундах.", "x-tl-flag": "flags.1?JSONValue"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Сам запрос"}}, "additionalProperties": false, "required": ["api_id", "device_model", "system_version", "app_version", "system_lang_code", "lang_pack", "lang_code", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `api_id` | `int` | Да | Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `device_model` | `string` | Да | Модель устройства |\n| `system_version` | `string` | Да | Версия операционной системы |\n| `app_version` | `string` | Да | Версия приложения |\n| `system_lang_code` | `string` | Да | Код языка, используемого в ОС устройства, стандарт ISO 639-1. |\n| `lang_pack` | `string` | Да | Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.). |\n| `lang_code` | `string` | Да | Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links). |\n| `proxy` | `InputClientProxy` | Нет | Информация о прокси MTProto |\n| `params` | `JSONValue` | Нет | Дополнительные параметры initConnection.  На данный момент поддерживается только поле `tz_offset` для указания смещения часового пояса в секундах. |\n| `query` | `!X` | Да | Сам запрос |"}, "x-telegram-rpc-errors": ["CONNECTION_LAYER_INVALID"], "x-browser-schema-id": "3251461801"}}, "/catalog/invokeWithLayer": {"post": {"operationId": "invokeWithLayer", "tags": ["Служебные методы"], "summary": "Вызвать указанный запрос, используя указанный слой API.", "description": "Вызовите указанный запрос, используя указанный API [слой](https://core.telegram.org/api/invoking.md#layers)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Calling API Methods](https://core.telegram.org/api/invoking.md)", "x-tl-method": "invokeWithLayer", "x-tl-id": "3667594509", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Calling API Methods", "https://core.telegram.org/api/invoking.md"]], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AUTH_BYTES_INVALID` — Предоставленная авторизация недействительна.\n- 400 · `CDN_METHOD_INVALID` — Вы не можете вызвать этот метод в CDN DC.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `CONNECTION_API_ID_INVALID` — Указанный идентификатор API недействителен.\n- 400 · `CONNECTION_LAYER_INVALID` — Слой недействителен.\n- 406 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithLayer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"layer": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Слой, который нужно использовать"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Запрос"}}, "additionalProperties": false, "required": ["layer", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `layer` | `int` | Да | Слой, который нужно использовать |\n| `query` | `!X` | Да | Запрос |"}, "x-telegram-rpc-errors": ["AUTH_BYTES_INVALID", "CDN_METHOD_INVALID", "CHAT_WRITE_FORBIDDEN", "CONNECTION_API_ID_INVALID", "CONNECTION_LAYER_INVALID", "INVITE_HASH_EXPIRED"], "x-browser-schema-id": "3667594509"}}, "/catalog/invokeWithoutUpdates": {"post": {"operationId": "invokeWithoutUpdates", "tags": ["Служебные методы"], "summary": "Вызов запроса без подписки используемого соединения на обновления (это включено по умолчанию для запросов к файлам).", "description": "Вызов запроса без подписки используемого соединения на [обновления](https://core.telegram.org/api/updates.md) (это включено по умолчанию для [файловых запросов](https://core.telegram.org/api/files.md)).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "invokeWithoutUpdates", "x-tl-id": "3214170551", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithoutUpdates"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Запрос"}}, "additionalProperties": false, "required": ["query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query` | `!X` | Да | Запрос |"}, "x-browser-schema-id": "3214170551"}}, "/catalog/invokeWithMessagesRange": {"post": {"operationId": "invokeWithMessagesRange", "tags": ["Служебные методы"], "summary": "Вызов с заданным диапазоном сообщений", "description": "Вызов с заданным диапазоном сообщений", "x-tl-method": "invokeWithMessagesRange", "x-tl-id": "911373810", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithMessagesRange"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"range": {"type": "object", "x-tl-type": "MessageRange", "oneOf": [{"$ref": "#/components/schemas/messageRange"}], "description": "Диапазон сообщений"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Запрос"}}, "additionalProperties": false, "required": ["range", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `range` | `MessageRange` | Да | Диапазон сообщений |\n| `query` | `!X` | Да | Запрос |"}, "x-browser-schema-id": "911373810"}}, "/catalog/invokeWithTakeout": {"post": {"operationId": "invokeWithTakeout", "tags": ["Служебные методы"], "summary": "Вызов метода в сеансе на вынос. Дополнительные сведения см. здесь ».", "description": "Вызовите метод в [сеансе вывода, дополнительную информацию см. здесь » ](https://core.telegram.org/api/takeout.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "invokeWithTakeout", "x-tl-id": "2896821550", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithTakeout"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"takeout_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Идентификатор сеанса Архиватора »](https://core.telegram.org/api/takeout.md)", "x-tl-type": "long"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Запрос"}}, "additionalProperties": false, "required": ["takeout_id", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `takeout_id` | `long` | Да | [Идентификатор сеанса Архиватора »](https://core.telegram.org/api/takeout.md) |\n| `query` | `!X` | Да | Запрос |"}, "x-browser-schema-id": "2896821550"}}, "/catalog/invokeWithBusinessConnection": {"post": {"operationId": "invokeWithBusinessConnection", "tags": ["Служебные методы"], "summary": "Вызов метода с помощью подключения к Telegram Business Bot. Дополнительную информацию, включая список методов, которые можно обернуть в этот конструктор, см. здесь ».", "description": "Вызовите метод, используя [соединение Telegram Business Bot, см. здесь » для получения дополнительной информации, включая список методов, которые можно обернуть в этот конструктор](https://core.telegram.org/api/bots/connected-business-bots.md).\n\nОбязательно всегда отправляйте запросы, заключенные в `invokeWithBusinessConnection`, на идентификатор центра обработки данных, указанный в поле `dc_id` используемого [botBusinessConnection](https://core.telegram.org/constructor/botBusinessConnection.md)].\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "invokeWithBusinessConnection", "x-tl-id": "3710427022", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithBusinessConnection"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"connection_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор бизнес-связи."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Фактический запрос."}}, "additionalProperties": false, "required": ["connection_id", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `connection_id` | `string` | Да | Идентификатор бизнес-связи. |\n| `query` | `!X` | Да | Фактический запрос. |"}, "x-browser-schema-id": "3710427022"}}, "/catalog/invokeWithGooglePlayIntegrity": {"post": {"operationId": "invokeWithGooglePlayIntegrity", "tags": ["Служебные методы"], "summary": "Только официальные клиенты, используйте токен целостности Google Play.", "description": "Только официальные клиенты, используйте токен целостности Google Play.", "x-tl-method": "invokeWithGooglePlayIntegrity", "x-tl-id": "502868356", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithGooglePlayIntegrity"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"nonce": {"type": "string", "x-tl-type": "string", "description": "Нет."}, "token": {"type": "string", "x-tl-type": "string", "description": "Токен."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Запрос."}}, "additionalProperties": false, "required": ["nonce", "token", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `nonce` | `string` | Да | Нет. |\n| `token` | `string` | Да | Токен. |\n| `query` | `!X` | Да | Запрос. |"}, "x-browser-schema-id": "502868356"}}, "/catalog/invokeWithApnsSecret": {"post": {"operationId": "invokeWithApnsSecret", "tags": ["Служебные методы"], "summary": "Только для официальных клиентов, используйте push-проверку Apple.", "description": "Только для официальных клиентов, используйте push-проверку Apple.", "x-tl-method": "invokeWithApnsSecret", "x-tl-id": "229528824", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithApnsSecret"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"nonce": {"type": "string", "x-tl-type": "string", "description": "Нет."}, "secret": {"type": "string", "x-tl-type": "string", "description": "Секрет."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Запрос."}}, "additionalProperties": false, "required": ["nonce", "secret", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `nonce` | `string` | Да | Нет. |\n| `secret` | `string` | Да | Секрет. |\n| `query` | `!X` | Да | Запрос. |"}, "x-browser-schema-id": "229528824"}}, "/catalog/invokeWithReCaptcha": {"post": {"operationId": "invokeWithReCaptcha", "tags": ["Служебные методы"], "summary": "Только для официальных клиентов: повторно выполните вызов метода, требующего проверки reCAPTCHA, через `RECAPTCHA_CHECK_%s__%s`, где первый заполнитель — это `action`, а второй — идентификатор ключа reCAPTCHA.", "description": "Только для официальных клиентов: повторно выполните вызов метода, требующего проверки reCAPTCHA, через `RECAPTCHA_CHECK_%s__%s`, где первый заполнитель — это `action`, а второй — идентификатор ключа reCAPTCHA.", "x-tl-method": "invokeWithReCaptcha", "x-tl-id": "2914717588", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `X`.\n\nВозвращает тип, возвращаемый вызванным методом.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "Тип TL: X."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/invokeWithReCaptcha"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"token": {"type": "string", "x-tl-type": "string", "description": "Токен reCAPTCHA, полученный после проверки."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Исходный вызов метода."}}, "additionalProperties": false, "required": ["token", "query"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `token` | `string` | Да | Токен reCAPTCHA, полученный после проверки. |\n| `query` | `!X` | Да | Исходный вызов метода. |"}, "x-browser-schema-id": "2914717588"}}, "/catalog/auth.sendCode": {"post": {"operationId": "auth.sendCode", "tags": ["Авторизация"], "summary": "Отправьте код подтверждения для входа", "description": "Отправьте код подтверждения для входа\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "auth.sendCode", "x-tl-id": "2792825935", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.SentCode`.\n\n[auth.SentCode](https://core.telegram.org/type/auth.SentCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.SentCode", "oneOf": [{"$ref": "#/components/schemas/auth.sentCode"}, {"$ref": "#/components/schemas/auth.sentCodeSuccess"}, {"$ref": "#/components/schemas/auth.sentCodePaymentRequired"}], "description": "Тип TL: auth.SentCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `API_ID_INVALID` — API ID недействителен.\n- 400 · `API_ID_PUBLISHED_FLOOD` — Этот идентификатор API был где-то опубликован, сейчас вы не можете его использовать.\n- 500 · `AUTH_RESTART` — Перезапустить процесс авторизации.\n- 500 · `AUTH_RESTART_%d` — Внутренняя ошибка (отладочная информация %d), повторите вызов метода.\n- 400 · `PHONE_NUMBER_APP_SIGNUP_FORBIDDEN` — Вы не можете зарегистрироваться с помощью этого приложения.\n- 400 · `PHONE_NUMBER_BANNED` — Указанный номер телефона забанен в Telegram.\n- 400 · `PHONE_NUMBER_FLOOD` — Вы слишком много раз просили код.\n- 406 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен.\n- 406 · `PHONE_PASSWORD_FLOOD` — Вы пытались войти в систему слишком много раз.\n- 400 · `PHONE_PASSWORD_PROTECTED` — Этот телефон защищен паролем.\n- 400 · `SMS_CODE_CREATE_FAILED` — Произошла ошибка при создании кода SMS.\n- 406 · `UPDATE_APP_TO_LOGIN` — Обновите клиент для входа в систему."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.sendCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона в международном формате"}, "api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Секретный хэш приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Настройки типа кода для отправки"}}, "additionalProperties": false, "required": ["phone_number", "api_id", "api_hash", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона в международном формате |\n| `api_id` | `int` | Да | Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | Да | Секретный хэш приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `settings` | `CodeSettings` | Да | Настройки типа кода для отправки |"}, "x-telegram-rpc-errors": ["API_ID_INVALID", "API_ID_PUBLISHED_FLOOD", "AUTH_RESTART", "AUTH_RESTART_%d", "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN", "PHONE_NUMBER_BANNED", "PHONE_NUMBER_FLOOD", "PHONE_NUMBER_INVALID", "PHONE_PASSWORD_FLOOD", "PHONE_PASSWORD_PROTECTED", "SMS_CODE_CREATE_FAILED", "UPDATE_APP_TO_LOGIN"], "x-browser-schema-id": "2792825935"}}, "/catalog/auth.signUp": {"post": {"operationId": "auth.signUp", "tags": ["Авторизация"], "summary": "Регистрирует подтвержденный номер телефона в системе.", "description": "Регистрирует подтвержденный номер телефона в системе.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "auth.signUp", "x-tl-id": "2865215255", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FIRSTNAME_INVALID` — Имя неверно.\n- 400 · `LASTNAME_INVALID` — Фамилия недействительна.\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует.\n- 400 · `PHONE_CODE_EXPIRED` — Срок действия предоставленного вами телефонного кода истек.\n- 400 · `PHONE_CODE_INVALID` — Указанный телефонный код недействителен.\n- 400 · `PHONE_NUMBER_FLOOD` — Вы слишком много раз просили код.\n- 406 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен.\n- 400 · `PHONE_NUMBER_OCCUPIED` — Номер телефона уже используется."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.signUp"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"no_joined_notifications": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если этот параметр установлен, пользователи Telegram, которые уже добавили `phone_number` в свои контакты, *не* будут получать уведомления о регистрации этого пользователя."}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона в международном формате"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "SMS-идентификатор сообщения"}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Имя нового пользователя"}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Новая фамилия пользователя"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash", "first_name", "last_name"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `no_joined_notifications` | `true` | Нет | Если этот параметр установлен, пользователи Telegram, которые уже добавили `phone_number` в свои контакты, *не* будут получать уведомления о регистрации этого пользователя. |\n| `phone_number` | `string` | Да | Номер телефона в международном формате |\n| `phone_code_hash` | `string` | Да | SMS-идентификатор сообщения |\n| `first_name` | `string` | Да | Имя нового пользователя |\n| `last_name` | `string` | Да | Новая фамилия пользователя |"}, "x-telegram-rpc-errors": ["FIRSTNAME_INVALID", "LASTNAME_INVALID", "PHONE_CODE_EMPTY", "PHONE_CODE_EXPIRED", "PHONE_CODE_INVALID", "PHONE_NUMBER_FLOOD", "PHONE_NUMBER_INVALID", "PHONE_NUMBER_OCCUPIED"], "x-browser-schema-id": "2865215255"}}, "/catalog/auth.signIn": {"post": {"operationId": "auth.signIn", "tags": ["Авторизация"], "summary": "Выполняет вход пользователя с подтвержденным номером телефона.", "description": "Выполняет вход пользователя с подтвержденным номером телефона.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "auth.signIn", "x-tl-id": "2371004753", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 500 · `AUTH_RESTART` — Перезапустить процесс авторизации.\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует.\n- 400 · `PHONE_CODE_EXPIRED` — Срок действия предоставленного вами телефонного кода истек.\n- 400 · `PHONE_CODE_INVALID` — Указанный телефонный код недействителен.\n- 406 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен.\n- 400 · `PHONE_NUMBER_UNOCCUPIED` — Номер телефона пока не используется.\n- 500 · `SIGN_IN_FAILED` — Ошибка при входе.\n- 406 · `UPDATE_APP_TO_LOGIN` — Обновите клиент для входа в систему."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.signIn"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона в международном формате"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "SMS-идентификатор сообщения, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}, "phone_code": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Действительный цифровой код из сообщения SMS"}, "email_verification": {"type": "object", "x-tl-type": "EmailVerification", "oneOf": [{"$ref": "#/components/schemas/emailVerificationCode"}, {"$ref": "#/components/schemas/emailVerificationGoogle"}, {"$ref": "#/components/schemas/emailVerificationApple"}], "description": "Код или токен подтверждения электронной почты", "x-tl-flag": "flags.1?EmailVerification"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона в международном формате |\n| `phone_code_hash` | `string` | Да | SMS-идентификатор сообщения, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `phone_code` | `string` | Нет | Действительный цифровой код из сообщения SMS |\n| `email_verification` | `EmailVerification` | Нет | Код или токен подтверждения электронной почты |"}, "x-telegram-rpc-errors": ["AUTH_RESTART", "PHONE_CODE_EMPTY", "PHONE_CODE_EXPIRED", "PHONE_CODE_INVALID", "PHONE_NUMBER_INVALID", "PHONE_NUMBER_UNOCCUPIED", "SIGN_IN_FAILED", "UPDATE_APP_TO_LOGIN"], "x-browser-schema-id": "2371004753"}}, "/catalog/auth.logOut": {"post": {"operationId": "auth.logOut", "tags": ["Авторизация"], "summary": "Выполняет выход пользователя.", "description": "Выполняет выход пользователя.", "x-tl-method": "auth.logOut", "x-tl-id": "1047706137", "x-tl-result": "auth.LoggedOut", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.LoggedOut`.\n\n[auth.LoggedOut](https://core.telegram.org/type/auth.LoggedOut.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.LoggedOut", "oneOf": [{"$ref": "#/components/schemas/auth.loggedOut"}], "description": "Тип TL: auth.LoggedOut."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.logOut"}, "x-browser-schema-id": "1047706137"}}, "/catalog/auth.resetAuthorizations": {"post": {"operationId": "auth.resetAuthorizations", "tags": ["Авторизация"], "summary": "Завершает все авторизованные сеансы пользователя, кроме текущего.", "description": "Завершает все авторизованные сеансы пользователя, кроме текущего.\n\nПосле вызова этого метода необходимо перерегистрировать текущее устройство методом [account.registerDevice](https://core.telegram.org/method/account.registerDevice.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "auth.resetAuthorizations", "x-tl-id": "2678787354", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — Вы не можете выйти из других сеансов, если с момента входа в текущий сеанс прошло менее 24 часов."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.resetAuthorizations"}, "x-telegram-rpc-errors": ["FRESH_RESET_AUTHORISATION_FORBIDDEN"], "x-browser-schema-id": "2678787354"}}, "/catalog/auth.exportAuthorization": {"post": {"operationId": "auth.exportAuthorization", "tags": ["Авторизация"], "summary": "Возвращает данные для авторизации копирования в другой дата-центр.", "description": "Возвращает данные для авторизации копирования в другой дата-центр.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "auth.exportAuthorization", "x-tl-id": "3854565325", "x-tl-result": "auth.ExportedAuthorization", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.ExportedAuthorization`.\n\n[auth.ExportedAuthorization](https://core.telegram.org/type/auth.ExportedAuthorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.ExportedAuthorization", "oneOf": [{"$ref": "#/components/schemas/auth.exportedAuthorization"}], "description": "Тип TL: auth.ExportedAuthorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DC_ID_INVALID` — Указанный идентификатор DC недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.exportAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Номер целевого дата-центра"}}, "additionalProperties": false, "required": ["dc_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dc_id` | `int` | Да | Номер целевого дата-центра |"}, "x-telegram-rpc-errors": ["DC_ID_INVALID"], "x-browser-schema-id": "3854565325"}}, "/catalog/auth.importAuthorization": {"post": {"operationId": "auth.importAuthorization", "tags": ["Авторизация"], "summary": "Авторизуется пользователь по ключу, переданному из его родного дата-центра.", "description": "Авторизуется пользователь по ключу, переданному из его родного дата-центра.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "auth.importAuthorization", "x-tl-id": "2776268205", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AUTH_BYTES_INVALID` — Предоставленная авторизация недействительна.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.importAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя", "x-tl-type": "long"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Ключ авторизации"}}, "additionalProperties": false, "required": ["id", "bytes"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `long` | Да | Идентификатор пользователя |\n| `bytes` | `bytes` | Да | Ключ авторизации |"}, "x-telegram-rpc-errors": ["AUTH_BYTES_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "2776268205"}}, "/catalog/auth.bindTempAuthKey": {"post": {"operationId": "auth.bindTempAuthKey", "tags": ["Авторизация"], "summary": "Связывает временный ключ авторизации `temp_auth_key_id` с постоянным ключом авторизации `perm_auth_key_id`.", "description": "Связывает временный ключ авторизации `temp_auth_key_id` с постоянным ключом авторизации `perm_auth_key_id`.\n\nДля получения дополнительной информации см. [Совершенная прямая секретность](https://core.telegram.org/api/pfs.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Perfect Forward Secrecy](https://core.telegram.org/api/pfs.md)\n- [﻿Mobile Protocol: Detailed Description](https://core.telegram.org/mtproto/description.md)\n- [Calling API Methods](https://core.telegram.org/api/invoking.md)", "x-tl-method": "auth.bindTempAuthKey", "x-tl-id": "3453233669", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Perfect Forward Secrecy", "https://core.telegram.org/api/pfs.md"], ["﻿Mobile Protocol: Detailed Description", "https://core.telegram.org/mtproto/description.md"], ["Calling API Methods", "https://core.telegram.org/api/invoking.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ENCRYPTED_MESSAGE_INVALID` — Зашифрованное сообщение недействительно.\n- 400 · `EXPIRES_AT_INVALID` — Указанная временная метка `expires_at` недействительна.\n- 400 · `TEMP_AUTH_KEY_ALREADY_BOUND` — Переданный временный ключ уже привязан к другому **perm_auth_key_id**.\n- 400 · `TEMP_AUTH_KEY_EMPTY` — Временный ключ авторизации не предоставлен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.bindTempAuthKey"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"perm_auth_key_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Постоянный auth_key_id для привязки", "x-tl-type": "long"}, "nonce": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайная длина из [Содержание сообщения привязки](#binding-message-contents)", "x-tl-type": "long"}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Временная метка Unix для аннулирования временного ключа, см. [Содержимое сообщения привязки](#binding-message-contents)]."}, "encrypted_message": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "См. [Генерация encrypted_message](#generating-encrypted-message)"}}, "additionalProperties": false, "required": ["perm_auth_key_id", "nonce", "expires_at", "encrypted_message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `perm_auth_key_id` | `long` | Да | Постоянный auth_key_id для привязки |\n| `nonce` | `long` | Да | Случайная длина из [Содержание сообщения привязки](#binding-message-contents) |\n| `expires_at` | `int` | Да | Временная метка Unix для аннулирования временного ключа, см. [Содержимое сообщения привязки](#binding-message-contents)]. |\n| `encrypted_message` | `bytes` | Да | См. [Генерация encrypted_message](#generating-encrypted-message) |"}, "x-telegram-rpc-errors": ["ENCRYPTED_MESSAGE_INVALID", "EXPIRES_AT_INVALID", "TEMP_AUTH_KEY_ALREADY_BOUND", "TEMP_AUTH_KEY_EMPTY"], "x-browser-schema-id": "3453233669"}}, "/catalog/auth.importBotAuthorization": {"post": {"operationId": "auth.importBotAuthorization", "tags": ["Авторизация"], "summary": "Войти как бот", "description": "Войти как бот\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "auth.importBotAuthorization", "x-tl-id": "1738800940", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ACCESS_TOKEN_EXPIRED` — Срок действия токена доступа истек.\n- 400 · `ACCESS_TOKEN_INVALID` — Токен доступа недействителен.\n- 400 · `API_ID_INVALID` — API ID недействителен.\n- 400 · `API_ID_PUBLISHED_FLOOD` — Этот идентификатор API был где-то опубликован, сейчас вы не можете его использовать."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.importBotAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"flags": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Зарезервировано для будущего использования"}, "api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш идентификатора приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "bot_auth_token": {"type": "string", "x-tl-type": "string", "description": "Токен бота (см. [bots](https://core.telegram.org/bots.md))"}}, "additionalProperties": false, "required": ["flags", "api_id", "api_hash", "bot_auth_token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `flags` | `int` | Да | Зарезервировано для будущего использования |\n| `api_id` | `int` | Да | Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | Да | Хэш идентификатора приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `bot_auth_token` | `string` | Да | Токен бота (см. [bots](https://core.telegram.org/bots.md)) |"}, "x-telegram-rpc-errors": ["ACCESS_TOKEN_EXPIRED", "ACCESS_TOKEN_INVALID", "API_ID_INVALID", "API_ID_PUBLISHED_FLOOD"], "x-browser-schema-id": "1738800940"}}, "/catalog/auth.checkPassword": {"post": {"operationId": "auth.checkPassword", "tags": ["Авторизация"], "summary": "Попробуйте войти в учетную запись, защищенную паролем 2FA.", "description": "Попробуйте войти в учетную запись, защищенную паролем 2FA](https://core.telegram.org/api/srp.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.checkPassword", "x-tl-id": "3515567382", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 500 · `AUTH_KEY_UNSYNCHRONIZED` — Внутренняя ошибка, повторите вызов метода.\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен.\n- 400 · `SRP_ID_INVALID` — Указан неверный идентификатор SRP.\n- 400 · `SRP_PASSWORD_CHANGED` — Пароль изменился."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.checkPassword"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Пароль учетной записи (см. [SRP](https://core.telegram.org/api/srp.md))"}}, "additionalProperties": false, "required": ["password"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | Да | Пароль учетной записи (см. [SRP](https://core.telegram.org/api/srp.md)) |"}, "x-telegram-rpc-errors": ["AUTH_KEY_UNSYNCHRONIZED", "PASSWORD_HASH_INVALID", "SRP_ID_INVALID", "SRP_PASSWORD_CHANGED"], "x-browser-schema-id": "3515567382"}}, "/catalog/auth.requestPasswordRecovery": {"post": {"operationId": "auth.requestPasswordRecovery", "tags": ["Авторизация"], "summary": "Запросите код восстановления пароля 2FA только для учетных записей с настроенным адресом электронной почты для восстановления.", "description": "Запросите код восстановления [пароля 2FA](https://core.telegram.org/api/srp.md), только для учетных записей с настроенным [адресом электронной почты для восстановления](https://core.telegram.org/api/srp.md#email-verification)].\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.requestPasswordRecovery", "x-tl-id": "3633822822", "x-tl-result": "auth.PasswordRecovery", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.PasswordRecovery`.\n\n[auth.PasswordRecovery](https://core.telegram.org/type/auth.PasswordRecovery.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.PasswordRecovery", "oneOf": [{"$ref": "#/components/schemas/auth.passwordRecovery"}], "description": "Тип TL: auth.PasswordRecovery."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PASSWORD_EMPTY` — Указанный пароль пуст.\n- 400 · `PASSWORD_RECOVERY_NA` — Адрес электронной почты не указан, невозможно восстановить пароль по электронной почте."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.requestPasswordRecovery"}, "x-telegram-rpc-errors": ["PASSWORD_EMPTY", "PASSWORD_RECOVERY_NA"], "x-browser-schema-id": "3633822822"}}, "/catalog/auth.recoverPassword": {"post": {"operationId": "auth.recoverPassword", "tags": ["Авторизация"], "summary": "Сбросьте пароль 2FA, используя код восстановления, отправленный с помощью auth.requestPasswordRecovery.", "description": "Сбросьте [пароль 2FA](https://core.telegram.org/api/srp.md), используя код восстановления, отправленный с помощью [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.recoverPassword", "x-tl-id": "923364464", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CODE_EMPTY` — Указанный код пуст.\n- 400 · `NEW_SETTINGS_INVALID` — Новые настройки пароля недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.recoverPassword"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"code": {"type": "string", "x-tl-type": "string", "description": "Код получен по электронной почте"}, "new_settings": {"type": "object", "x-tl-type": "account.PasswordInputSettings", "oneOf": [{"$ref": "#/components/schemas/account.passwordInputSettings"}], "description": "Новый пароль", "x-tl-flag": "flags.0?account.PasswordInputSettings"}}, "additionalProperties": false, "required": ["code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `code` | `string` | Да | Код получен по электронной почте |\n| `new_settings` | `account.PasswordInputSettings` | Нет | Новый пароль |"}, "x-telegram-rpc-errors": ["CODE_EMPTY", "NEW_SETTINGS_INVALID"], "x-browser-schema-id": "923364464"}}, "/catalog/auth.resendCode": {"post": {"operationId": "auth.resendCode", "tags": ["Авторизация"], "summary": "Повторно отправьте код входа через другой носитель, тип телефонного кода определяется возвращаемым значением предыдущего auth.sendCode/auth.resendCode: дополнительную информацию см. в разделе «Вход».", "description": "Повторно отправьте код входа через другой носитель. Тип телефонного кода определяется возвращаемым значением предыдущего auth.sendCode/auth.resendCode: дополнительную информацию см. в [login](https://core.telegram.org/api/auth.md)].\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.resendCode", "x-tl-id": "3403969827", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.SentCode`.\n\n[auth.SentCode](https://core.telegram.org/type/auth.SentCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.SentCode", "oneOf": [{"$ref": "#/components/schemas/auth.sentCode"}, {"$ref": "#/components/schemas/auth.sentCodeSuccess"}, {"$ref": "#/components/schemas/auth.sentCodePaymentRequired"}], "description": "Тип TL: auth.SentCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMAIL_INSTALL_MISSING` — Попытка отправить код на резервный адрес электронной почты, но адрес электронной почты не настроен.\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует.\n- 400 · `PHONE_CODE_EXPIRED` — Срок действия предоставленного вами телефонного кода истек.\n- 400 · `PHONE_CODE_HASH_EMPTY` — phone_code_hash отсутствует.\n- 406 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен.\n- 406 · `SEND_CODE_UNAVAILABLE` — Возвращается, когда все доступные параметры для этого типа номера уже использованы (e.g. флэш-вызов, затем SMS, тогда эта ошибка может быть возвращена, чтобы вызвать повторную повторную отправку)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.resendCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}, "reason": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Только официальные клиенты, используются, если проверка целостности устройства не удалась и не удалось получить секрет для вызова [auth.requestFirebaseSms](https://core.telegram.org/method/auth.requestFirebaseSms.md): в этом случае здесь должна быть передана причина сбоя проверки целостности устройства."}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `reason` | `string` | Нет | Только официальные клиенты, используются, если проверка целостности устройства не удалась и не удалось получить секрет для вызова [auth.requestFirebaseSms](https://core.telegram.org/method/auth.requestFirebaseSms.md): в этом случае здесь должна быть передана причина сбоя проверки целостности устройства. |"}, "x-telegram-rpc-errors": ["EMAIL_INSTALL_MISSING", "PHONE_CODE_EMPTY", "PHONE_CODE_EXPIRED", "PHONE_CODE_HASH_EMPTY", "PHONE_NUMBER_INVALID", "SEND_CODE_UNAVAILABLE"], "x-browser-schema-id": "3403969827"}}, "/catalog/auth.cancelCode": {"post": {"operationId": "auth.cancelCode", "tags": ["Авторизация"], "summary": "Отменить код подтверждения входа", "description": "Отменить код подтверждения входа\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "auth.cancelCode", "x-tl-id": "520357240", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_CODE_EXPIRED` — Срок действия предоставленного вами телефонного кода истек.\n- 406 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.cancelCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |"}, "x-telegram-rpc-errors": ["PHONE_CODE_EXPIRED", "PHONE_NUMBER_INVALID"], "x-browser-schema-id": "520357240"}}, "/catalog/auth.dropTempAuthKeys": {"post": {"operationId": "auth.dropTempAuthKeys", "tags": ["Авторизация"], "summary": "Удалить все временные ключи авторизации **кроме** указанных", "description": "Удалить все временные ключи авторизации **кроме** указанных", "x-tl-method": "auth.dropTempAuthKeys", "x-tl-id": "2387124616", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.dropTempAuthKeys"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"except_auth_keys": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Ключи аутентификации, которые **не следует** удалять."}}, "additionalProperties": false, "required": ["except_auth_keys"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `except_auth_keys` | `Vector<long>` | Да | Ключи аутентификации, которые **не следует** удалять. |"}, "x-browser-schema-id": "2387124616"}}, "/catalog/auth.exportLoginToken": {"post": {"operationId": "auth.exportLoginToken", "tags": ["Авторизация"], "summary": "Создайте токен входа для входа через QR-код.", "description": "Создайте токен входа для [вход через QR-код](https://core.telegram.org/api/qr-login.md).\nСгенерированный токен входа должен быть закодирован с использованием base64url, а затем отображен как `tg://login?token=base64encodedtoken` [глубокая ссылка »](https://core.telegram.org/api/links.md#qr-code-login-links) в QR-коде.\n\nДля получения дополнительной информации см. [вход через QR-код](https://core.telegram.org/api/qr-login.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Login via QR code](https://core.telegram.org/api/qr-login.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "auth.exportLoginToken", "x-tl-id": "3084944894", "x-tl-result": "auth.LoginToken", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Login via QR code", "https://core.telegram.org/api/qr-login.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.LoginToken`.\n\n[auth.LoginToken](https://core.telegram.org/type/auth.LoginToken.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.LoginToken", "oneOf": [{"$ref": "#/components/schemas/auth.loginToken"}, {"$ref": "#/components/schemas/auth.loginTokenMigrateTo"}, {"$ref": "#/components/schemas/auth.loginTokenSuccess"}], "description": "Тип TL: auth.LoginToken."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `API_ID_INVALID` — API ID недействителен.\n- 400 · `API_ID_PUBLISHED_FLOOD` — Этот идентификатор API был где-то опубликован, сейчас вы не можете его использовать.\n- 500 · `AUTH_RESTART` — Перезапустить процесс авторизации."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.exportLoginToken"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш идентификатора приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "except_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Список идентификаторов уже вошедших в систему пользователей, чтобы предотвратить повторный вход в систему с одним и тем же пользователем."}}, "additionalProperties": false, "required": ["api_id", "api_hash", "except_ids"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `api_id` | `int` | Да | Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | Да | Хэш идентификатора приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `except_ids` | `Vector<long>` | Да | Список идентификаторов уже вошедших в систему пользователей, чтобы предотвратить повторный вход в систему с одним и тем же пользователем. |"}, "x-telegram-rpc-errors": ["API_ID_INVALID", "API_ID_PUBLISHED_FLOOD", "AUTH_RESTART"], "x-browser-schema-id": "3084944894"}}, "/catalog/auth.importLoginToken": {"post": {"operationId": "auth.importLoginToken", "tags": ["Авторизация"], "summary": "Войдите в систему, используя перенаправленный токен входа, сгенерированный в случае несоответствия DC во время входа в систему с помощью QR-кода.", "description": "Войдите в систему, используя перенаправленный токен входа, сгенерированный в случае несоответствия DC во время [входа по QR-коду](https://core.telegram.org/api/qr-login.md).\n\nДля получения дополнительной информации см. [вход через QR-код](https://core.telegram.org/api/qr-login.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Login via QR code](https://core.telegram.org/api/qr-login.md)", "x-tl-method": "auth.importLoginToken", "x-tl-id": "2511101156", "x-tl-result": "auth.LoginToken", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Login via QR code", "https://core.telegram.org/api/qr-login.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.LoginToken`.\n\n[auth.LoginToken](https://core.telegram.org/type/auth.LoginToken.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.LoginToken", "oneOf": [{"$ref": "#/components/schemas/auth.loginToken"}, {"$ref": "#/components/schemas/auth.loginTokenMigrateTo"}, {"$ref": "#/components/schemas/auth.loginTokenSuccess"}], "description": "Тип TL: auth.LoginToken."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AUTH_TOKEN_ALREADY_ACCEPTED` — Указанный токен аутентификации уже принят.\n- 400 · `AUTH_TOKEN_EXPIRED` — Срок действия токена авторизации истек.\n- 400 · `AUTH_TOKEN_INVALID` — Указанный токен аутентификации недействителен.\n- 400 · `AUTH_TOKEN_INVALIDX` — Указанный токен аутентификации недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.importLoginToken"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен входа"}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `token` | `bytes` | Да | Токен входа |"}, "x-telegram-rpc-errors": ["AUTH_TOKEN_ALREADY_ACCEPTED", "AUTH_TOKEN_EXPIRED", "AUTH_TOKEN_INVALID", "AUTH_TOKEN_INVALIDX"], "x-browser-schema-id": "2511101156"}}, "/catalog/auth.acceptLoginToken": {"post": {"operationId": "auth.acceptLoginToken", "tags": ["Авторизация"], "summary": "Примите токен входа в систему с QR-кодом и войдите в приложение, которое его сгенерировало.", "description": "Примите токен входа в систему с QR-кодом и войдите в приложение, которое его сгенерировало.\n\nВозвращает информацию о новом сеансе.\n\nДля получения дополнительной информации см. [вход через QR-код](https://core.telegram.org/api/qr-login.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Login via QR code](https://core.telegram.org/api/qr-login.md)", "x-tl-method": "auth.acceptLoginToken", "x-tl-id": "3902057805", "x-tl-result": "Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Login via QR code", "https://core.telegram.org/api/qr-login.md"]], "responses": {"200": {"description": "Результат MTProto · `Authorization`.\n\n[Авторизация](https://core.telegram.org/type/Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Authorization", "oneOf": [{"$ref": "#/components/schemas/authorization"}], "description": "Тип TL: Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AUTH_TOKEN_ALREADY_ACCEPTED` — Указанный токен аутентификации уже принят.\n- 400 · `AUTH_TOKEN_EXCEPTION` — Произошла ошибка при импорте токена аутентификации.\n- 400 · `AUTH_TOKEN_EXPIRED` — Срок действия токена авторизации истек.\n- 400 · `AUTH_TOKEN_INVALIDX` — Указанный токен аутентификации недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.acceptLoginToken"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен входа, встроенный в QR-код. Дополнительную информацию см. в разделе [вход через QR-код](https://core.telegram.org/api/qr-login.md)."}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `token` | `bytes` | Да | Токен входа, встроенный в QR-код. Дополнительную информацию см. в разделе [вход через QR-код](https://core.telegram.org/api/qr-login.md). |"}, "x-telegram-rpc-errors": ["AUTH_TOKEN_ALREADY_ACCEPTED", "AUTH_TOKEN_EXCEPTION", "AUTH_TOKEN_EXPIRED", "AUTH_TOKEN_INVALIDX"], "x-browser-schema-id": "3902057805"}}, "/catalog/auth.checkRecoveryPassword": {"post": {"operationId": "auth.checkRecoveryPassword", "tags": ["Авторизация"], "summary": "Проверьте, действителен ли код восстановления 2FA, отправленный с помощью auth.requestPasswordRecovery, прежде чем передавать его на auth.recoverPassword.", "description": "Проверьте, действителен ли [код восстановления 2FA](https://core.telegram.org/api/srp.md), отправленный с помощью [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery.md)], прежде чем передавать его на [auth.recoverPassword](https://core.telegram.org/method/auth.recoverPassword.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.checkRecoveryPassword", "x-tl-id": "221691769", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CODE_EMPTY` — Указанный код пуст.\n- 400 · `PASSWORD_RECOVERY_EXPIRED` — Срок действия кода восстановления истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.checkRecoveryPassword"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"code": {"type": "string", "x-tl-type": "string", "description": "Код получен по электронной почте"}}, "additionalProperties": false, "required": ["code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `code` | `string` | Да | Код получен по электронной почте |"}, "x-telegram-rpc-errors": ["CODE_EMPTY", "PASSWORD_RECOVERY_EXPIRED"], "x-browser-schema-id": "221691769"}}, "/catalog/auth.importWebTokenAuthorization": {"post": {"operationId": "auth.importWebTokenAuthorization", "tags": ["Авторизация"], "summary": "Войти, импортировав токен авторизации", "description": "Войти, импортировав токен авторизации\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Creating your Telegram Application](https://core.telegram.org/api/obtaining_api_id.md)", "x-tl-method": "auth.importWebTokenAuthorization", "x-tl-id": "767062953", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Creating your Telegram Application", "https://core.telegram.org/api/obtaining_api_id.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `API_ID_INVALID` — API ID недействителен.\n- 400 · `WEBAUTH_TOKEN_EXPIRED` — Срок действия указанного токена авторизации истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.importWebTokenAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[API ID](https://core.telegram.org/api/obtaining_api_id.md)"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "[API хеш](https://core.telegram.org/api/obtaining_api_id.md)"}, "web_auth_token": {"type": "string", "x-tl-type": "string", "description": "Токен авторизации"}}, "additionalProperties": false, "required": ["api_id", "api_hash", "web_auth_token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `api_id` | `int` | Да | [API ID](https://core.telegram.org/api/obtaining_api_id.md) |\n| `api_hash` | `string` | Да | [API хеш](https://core.telegram.org/api/obtaining_api_id.md) |\n| `web_auth_token` | `string` | Да | Токен авторизации |"}, "x-telegram-rpc-errors": ["API_ID_INVALID", "WEBAUTH_TOKEN_EXPIRED"], "x-browser-schema-id": "767062953"}}, "/catalog/auth.requestFirebaseSms": {"post": {"operationId": "auth.requestFirebaseSms", "tags": ["Авторизация"], "summary": "Запросите код SMS через Firebase.", "description": "Запросите код SMS через Firebase.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.requestFirebaseSms", "x-tl-id": "2386109982", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует.\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.requestFirebaseSms"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, возвращенный [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}, "safety_net_token": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "На Android объект JWS, полученный, как описано в [документации по аутентификации »](https://core.telegram.org/api/auth.md)."}, "play_integrity_token": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "На Android объект, полученный, как описано в [документации аутентификации»](https://core.telegram.org/api/auth.md)"}, "ios_push_secret": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Секретный токен, полученный через push-уведомление Apple"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, возвращенный [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `safety_net_token` | `string` | Нет | На Android объект JWS, полученный, как описано в [документации по аутентификации »](https://core.telegram.org/api/auth.md). |\n| `play_integrity_token` | `string` | Нет | На Android объект, полученный, как описано в [документации аутентификации»](https://core.telegram.org/api/auth.md) |\n| `ios_push_secret` | `string` | Нет | Секретный токен, полученный через push-уведомление Apple |"}, "x-telegram-rpc-errors": ["PHONE_CODE_EMPTY", "PHONE_NUMBER_INVALID"], "x-browser-schema-id": "2386109982"}}, "/catalog/auth.resetLoginEmail": {"post": {"operationId": "auth.resetLoginEmail", "tags": ["Авторизация"], "summary": "Сбросить адрес электронной почты для входа».", "description": "Сбросьте [адрес электронной почты для входа »](https://core.telegram.org/api/auth.md#email-verification).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.resetLoginEmail", "x-tl-id": "2123760019", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.SentCode`.\n\n[auth.SentCode](https://core.telegram.org/type/auth.SentCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.SentCode", "oneOf": [{"$ref": "#/components/schemas/auth.sentCode"}, {"$ref": "#/components/schemas/auth.sentCodeSuccess"}, {"$ref": "#/components/schemas/auth.sentCodePaymentRequired"}], "description": "Тип TL: auth.SentCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMAIL_INSTALL_MISSING` — Попытка отправить код на резервный адрес электронной почты, но адрес электронной почты не настроен.\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен.\n- 400 · `TASK_ALREADY_EXISTS` — Сброс адреса электронной почты уже был запрошен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.resetLoginEmail"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона аккаунта"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, полученный как описано в [документация »](https://core.telegram.org/api/auth.md)"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона аккаунта |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, полученный как описано в [документация »](https://core.telegram.org/api/auth.md) |"}, "x-telegram-rpc-errors": ["EMAIL_INSTALL_MISSING", "PHONE_NUMBER_INVALID", "TASK_ALREADY_EXISTS"], "x-browser-schema-id": "2123760019"}}, "/catalog/auth.reportMissingCode": {"post": {"operationId": "auth.reportMissingCode", "tags": ["Авторизация"], "summary": "Только официальные приложения, сообщает, что код аутентификации SMS не был доставлен.", "description": "Только официальные приложения, сообщает, что код аутентификации SMS не был доставлен.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "auth.reportMissingCode", "x-tl-id": "3416125430", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.reportMissingCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона, на который мы должны были получить код"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}, "mnc": {"type": "string", "x-tl-type": "string", "description": "[MNC](https://en.wikipedia.org/wiki/Mobile_country_code) текущего оператора сети."}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash", "mnc"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона, на который мы должны были получить код |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `mnc` | `string` | Да | [MNC](https://en.wikipedia.org/wiki/Mobile_country_code) текущего оператора сети. |"}, "x-telegram-rpc-errors": ["PHONE_NUMBER_INVALID"], "x-browser-schema-id": "3416125430"}}, "/catalog/auth.checkPaidAuth": {"post": {"operationId": "auth.checkPaidAuth", "tags": ["Авторизация"], "summary": "Проверяет статус платежа за вход.", "description": "Проверяет статус [платежа за вход](https://core.telegram.org/api/auth.md#paid-auth).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.checkPaidAuth", "x-tl-id": "1457889180", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.SentCode`.\n\n[auth.SentCode](https://core.telegram.org/type/auth.SentCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.SentCode", "oneOf": [{"$ref": "#/components/schemas/auth.sentCode"}, {"$ref": "#/components/schemas/auth.sentCodeSuccess"}, {"$ref": "#/components/schemas/auth.sentCodePaymentRequired"}], "description": "Тип TL: auth.SentCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.checkPaidAuth"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор платежной формы передан в [payments.sendPaymentForm](https://core.telegram.org/method/payments.sendPaymentForm.md).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash", "form_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, полученный из [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `form_id` | `long` | Да | Идентификатор платежной формы передан в [payments.sendPaymentForm](https://core.telegram.org/method/payments.sendPaymentForm.md). |"}, "x-telegram-rpc-errors": ["PHONE_NUMBER_INVALID"], "x-browser-schema-id": "1457889180"}}, "/catalog/auth.initPasskeyLogin": {"post": {"operationId": "auth.initPasskeyLogin", "tags": ["Авторизация"], "summary": "Инициализируйте вход в систему с помощью ключа доступа через соединение без аутентификации. Дополнительную информацию см. здесь ».", "description": "Инициализируйте вход в систему с помощью ключа доступа через соединение без аутентификации. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "auth.initPasskeyLogin", "x-tl-id": "1368051895", "x-tl-result": "auth.PasskeyLoginOptions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.PasskeyLoginOptions`.\n\n[auth.PasskeyLoginOptions](https://core.telegram.org/type/auth.PasskeyLoginOptions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.PasskeyLoginOptions", "oneOf": [{"$ref": "#/components/schemas/auth.passkeyLoginOptions"}], "description": "Тип TL: auth.PasskeyLoginOptions."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `API_ID_INVALID` — API ID недействителен.\n- 500 · `AUTH_RESTART` — Перезапустить процесс авторизации."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.initPasskeyLogin"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш идентификатора приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp))"}}, "additionalProperties": false, "required": ["api_id", "api_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `api_id` | `int` | Да | Идентификатор приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | Да | Хэш идентификатора приложения (см. [Конфигурация приложения](https://core.telegram.org/myapp)) |"}, "x-telegram-rpc-errors": ["API_ID_INVALID", "AUTH_RESTART"], "x-browser-schema-id": "1368051895"}}, "/catalog/auth.finishPasskeyLogin": {"post": {"operationId": "auth.finishPasskeyLogin", "tags": ["Авторизация"], "summary": "Завершите вход в систему с использованием пароля через соединение без аутентификации. Дополнительную информацию см. здесь ».", "description": "Завершите вход в систему с использованием пароля через соединение без аутентификации. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey).\n\nДолжен быть отправлен на собственный контроллер домена пользователя, как указано в `user_handle` (`dcId:userId`), возвращаемом в утверждении ключа доступа, полный поток см. в [здесь »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "auth.finishPasskeyLogin", "x-tl-id": "2555882759", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.\n\n[auth.Authorization](https://core.telegram.org/type/auth.Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 500 · `AUTH_RESTART` — Перезапустить процесс авторизации.\n- 400 · `CREDENTIAL_INVALID` — Указанные учетные данные недействительны.\n- 400 · `PASSKEY_ORIGIN_MISMATCH` — Сторонние клиенты в настоящее время не поддерживают ключи доступа даже при смене источника."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/auth.finishPasskeyLogin"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"credential": {"type": "object", "x-tl-type": "InputPasskeyCredential", "oneOf": [{"$ref": "#/components/schemas/inputPasskeyCredentialPublicKey"}], "description": "Результат утверждения ключа доступа."}, "from_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Идентификатор DC, используемый для первоначального запроса [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md); устанавливается только в том случае, если DC пользователя отличается от DC, использованного для исходного [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md)."}, "from_auth_key_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор ключа аутентификации для подключения к `from_dc_id` (используйте постоянный идентификатор ключа аутентификации, если PFS включено); устанавливается только в том случае, если DC пользователя отличается от DC, использованного для исходного [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md).", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["credential"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `credential` | `InputPasskeyCredential` | Да | Результат утверждения ключа доступа. |\n| `from_dc_id` | `int` | Нет | Идентификатор DC, используемый для первоначального запроса [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md); устанавливается только в том случае, если DC пользователя отличается от DC, использованного для исходного [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md). |\n| `from_auth_key_id` | `long` | Нет | Идентификатор ключа аутентификации для подключения к `from_dc_id` (используйте постоянный идентификатор ключа аутентификации, если PFS включено); устанавливается только в том случае, если DC пользователя отличается от DC, использованного для исходного [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md). |"}, "x-telegram-rpc-errors": ["AUTH_RESTART", "CREDENTIAL_INVALID", "PASSKEY_ORIGIN_MISMATCH"], "x-browser-schema-id": "2555882759"}}, "/catalog/auth.cancelWebTokenAuthorization": {"post": {"operationId": "auth.cancelWebTokenAuthorization", "tags": ["Авторизация"], "summary": "auth.cancelWebTokenAuthorization", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "auth.cancelWebTokenAuthorization", "x-tl-id": "1225633185", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"web_auth_token": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["web_auth_token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `web_auth_token` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1225633185"}}, "/catalog/auth.initFirebasePnvLogin": {"post": {"operationId": "auth.initFirebasePnvLogin", "tags": ["Авторизация"], "summary": "auth.initFirebasePnvLogin", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "auth.initFirebasePnvLogin", "x-tl-id": "1682904512", "x-tl-result": "auth.FirebasePnvIntent", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.FirebasePnvIntent`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.FirebasePnvIntent", "oneOf": [{"$ref": "#/components/schemas/auth.firebasePnvIntent"}], "description": "Тип TL: auth.FirebasePnvIntent."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"except_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.0?Vector<long>", "description": "Значение типа TL `Vector<long>`."}, "api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["api_id", "api_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `except_ids` | `Vector<long>` | Нет | Значение типа TL `Vector<long>`. |\n| `api_id` | `int` | Да | Значение типа TL `int`. |\n| `api_hash` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1682904512"}}, "/catalog/auth.finishFirebasePnvLogin": {"post": {"operationId": "auth.finishFirebasePnvLogin", "tags": ["Авторизация"], "summary": "auth.finishFirebasePnvLogin", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "auth.finishFirebasePnvLogin", "x-tl-id": "746916172", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"google_token": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["google_token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `google_token` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "746916172"}}, "/catalog/auth.firebasePnvSignUp": {"post": {"operationId": "auth.firebasePnvSignUp", "tags": ["Авторизация"], "summary": "auth.firebasePnvSignUp", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "auth.firebasePnvSignUp", "x-tl-id": "2017422166", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.Authorization`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.Authorization", "oneOf": [{"$ref": "#/components/schemas/auth.authorization"}, {"$ref": "#/components/schemas/auth.authorizationSignUpRequired"}], "description": "Тип TL: auth.Authorization."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"no_joined_notifications": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["first_name", "last_name"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `no_joined_notifications` | `true` | Нет | Значение типа TL `true`. |\n| `first_name` | `string` | Да | Значение типа TL `string`. |\n| `last_name` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2017422166"}}, "/catalog/account.registerDevice": {"post": {"operationId": "account.registerDevice", "tags": ["Аккаунт"], "summary": "Зарегистрируйте устройство, чтобы получать уведомления PUSH", "description": "Зарегистрируйте устройство, чтобы получать [PUSH уведомления](https://core.telegram.org/api/push-updates.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "account.registerDevice", "x-tl-id": "3968205178", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TOKEN_EMPTY` — Указанный токен пуст.\n- 400 · `TOKEN_INVALID` — Предоставленный токен недействителен.\n- 400 · `TOKEN_TYPE_INVALID` — Указанный тип токена недействителен.\n- 400 · `WEBPUSH_AUTH_INVALID` — Указанный секрет аутентификации web push недействителен.\n- 400 · `WEBPUSH_KEY_INVALID` — Указанный открытый ключ эллиптической кривой Диффи-Хеллмана через Интернет недействителен.\n- 400 · `WEBPUSH_TOKEN_INVALID` — Указанный токен веб-push недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.registerDevice"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"no_muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Избегайте получения уведомлений (тихих и невидимых в фоновом режиме). Полезно для экономии заряда батареи."}, "token_type": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Тип токена устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications)."}, "token": {"type": "string", "x-tl-type": "string", "description": "Токен устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications)."}, "app_sandbox": {"type": "boolean", "x-tl-type": "Bool", "description": "Если передается [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), во время передачи будет использоваться сертификат песочницы."}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Для FCM и APNS VoIP дополнительный ключ шифрования, используемый для шифрования push-уведомлений."}, "other_uids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Список идентификаторов других пользователей, которые в данный момент используют клиент"}}, "additionalProperties": false, "required": ["token_type", "token", "app_sandbox", "secret", "other_uids"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `no_muted` | `true` | Нет | Избегайте получения уведомлений (тихих и невидимых в фоновом режиме). Полезно для экономии заряда батареи. |\n| `token_type` | `int` | Да | Тип токена устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications). |\n| `token` | `string` | Да | Токен устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications). |\n| `app_sandbox` | `Bool` | Да | Если передается [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), во время передачи будет использоваться сертификат песочницы. |\n| `secret` | `bytes` | Да | Для FCM и APNS VoIP дополнительный ключ шифрования, используемый для шифрования push-уведомлений. |\n| `other_uids` | `Vector<long>` | Да | Список идентификаторов других пользователей, которые в данный момент используют клиент |"}, "x-telegram-rpc-errors": ["TOKEN_EMPTY", "TOKEN_INVALID", "TOKEN_TYPE_INVALID", "WEBPUSH_AUTH_INVALID", "WEBPUSH_KEY_INVALID", "WEBPUSH_TOKEN_INVALID"], "x-browser-schema-id": "3968205178"}}, "/catalog/account.unregisterDevice": {"post": {"operationId": "account.unregisterDevice", "tags": ["Аккаунт"], "summary": "Удаляет устройство по его токену, прекращает отправлять на него PUSH-уведомления.", "description": "Удаляет устройство по его токену, прекращает отправлять на него PUSH-уведомления.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "account.unregisterDevice", "x-tl-id": "1779249670", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TOKEN_INVALID` — Предоставленный токен недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.unregisterDevice"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"token_type": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Тип токена устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications)."}, "token": {"type": "string", "x-tl-type": "string", "description": "Токен устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications)."}, "other_uids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Список идентификаторов других пользователей, которые в данный момент используют клиент"}}, "additionalProperties": false, "required": ["token_type", "token", "other_uids"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `token_type` | `int` | Да | Тип токена устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications). |\n| `token` | `string` | Да | Токен устройства, возможные значения см. в [PUSH обновления](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications). |\n| `other_uids` | `Vector<long>` | Да | Список идентификаторов других пользователей, которые в данный момент используют клиент |"}, "x-telegram-rpc-errors": ["TOKEN_INVALID"], "x-browser-schema-id": "1779249670"}}, "/catalog/account.updateNotifySettings": {"post": {"operationId": "account.updateNotifySettings", "tags": ["Аккаунт"], "summary": "Редактирует настройки уведомлений от данного пользователя/группы, от всех пользователей/всех групп.", "description": "Редактирует настройки уведомлений от данного пользователя/группы, от всех пользователей/всех групп.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.updateNotifySettings", "x-tl-id": "2227067795", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SETTINGS_INVALID` — Указаны неверные настройки."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateNotifySettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputNotifyPeer", "oneOf": [{"$ref": "#/components/schemas/inputNotifyPeer"}, {"$ref": "#/components/schemas/inputNotifyUsers"}, {"$ref": "#/components/schemas/inputNotifyChats"}, {"$ref": "#/components/schemas/inputNotifyBroadcasts"}, {"$ref": "#/components/schemas/inputNotifyForumTopic"}, {"$ref": "#/components/schemas/inputNotifyCommunity"}], "description": "Источник уведомления"}, "settings": {"type": "object", "x-tl-type": "InputPeerNotifySettings", "oneOf": [{"$ref": "#/components/schemas/inputPeerNotifySettings"}], "description": "Настройки уведомлений"}}, "additionalProperties": false, "required": ["peer", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputNotifyPeer` | Да | Источник уведомления |\n| `settings` | `InputPeerNotifySettings` | Да | Настройки уведомлений |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID", "SETTINGS_INVALID"], "x-browser-schema-id": "2227067795"}}, "/catalog/account.getNotifySettings": {"post": {"operationId": "account.getNotifySettings", "tags": ["Аккаунт"], "summary": "Получает текущие настройки уведомлений для данного пользователя/группы от всех пользователей/всех групп.", "description": "Получает текущие настройки уведомлений для данного пользователя/группы от всех пользователей/всех групп.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getNotifySettings", "x-tl-id": "313765169", "x-tl-result": "PeerNotifySettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `PeerNotifySettings`.\n\n[PeerNotifySettings](https://core.telegram.org/type/PeerNotifySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "PeerNotifySettings", "oneOf": [{"$ref": "#/components/schemas/peerNotifySettings"}], "description": "Тип TL: PeerNotifySettings."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getNotifySettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputNotifyPeer", "oneOf": [{"$ref": "#/components/schemas/inputNotifyPeer"}, {"$ref": "#/components/schemas/inputNotifyUsers"}, {"$ref": "#/components/schemas/inputNotifyChats"}, {"$ref": "#/components/schemas/inputNotifyBroadcasts"}, {"$ref": "#/components/schemas/inputNotifyForumTopic"}, {"$ref": "#/components/schemas/inputNotifyCommunity"}], "description": "Источник уведомления"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputNotifyPeer` | Да | Источник уведомления |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "PEER_ID_INVALID"], "x-browser-schema-id": "313765169"}}, "/catalog/account.resetNotifySettings": {"post": {"operationId": "account.resetNotifySettings", "tags": ["Аккаунт"], "summary": "Сбрасывает все настройки уведомлений от пользователей и групп.", "description": "Сбрасывает все настройки уведомлений от пользователей и групп.", "x-tl-method": "account.resetNotifySettings", "x-tl-id": "3682473799", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resetNotifySettings"}, "x-browser-schema-id": "3682473799"}}, "/catalog/account.updateProfile": {"post": {"operationId": "account.updateProfile", "tags": ["Аккаунт"], "summary": "Обновляет профиль пользователя.", "description": "Обновляет профиль пользователя.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateProfile", "x-tl-id": "2018596725", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `User`.\n\n[Пользователь](https://core.telegram.org/type/User.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ABOUT_TOO_LONG` — Слишком длинная строка.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `FIRSTNAME_INVALID` — Имя неверно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateProfile"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"first_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Имя нового пользователя"}, "last_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Новая фамилия пользователя"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Новая биография"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `first_name` | `string` | Нет | Имя нового пользователя |\n| `last_name` | `string` | Нет | Новая фамилия пользователя |\n| `about` | `string` | Нет | Новая биография |"}, "x-telegram-rpc-errors": ["ABOUT_TOO_LONG", "BUSINESS_CONNECTION_INVALID", "FIRSTNAME_INVALID"], "x-browser-schema-id": "2018596725"}}, "/catalog/account.updateStatus": {"post": {"operationId": "account.updateStatus", "tags": ["Аккаунт"], "summary": "Обновляет онлайн-статус пользователя.", "description": "Обновляет онлайн-статус пользователя.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.updateStatus", "x-tl-id": "1713919532", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateStatus"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offline": {"type": "boolean", "x-tl-type": "Bool", "description": "Если передается [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), статус пользователя изменится на [(userStatusOffline)](https://core.telegram.org/constructor/userStatusOffline.md)."}}, "additionalProperties": false, "required": ["offline"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offline` | `Bool` | Да | Если передается [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), статус пользователя изменится на [(userStatusOffline)](https://core.telegram.org/constructor/userStatusOffline.md). |"}, "x-browser-schema-id": "1713919532"}}, "/catalog/account.getWallPapers": {"post": {"operationId": "account.getWallPapers", "tags": ["Аккаунт"], "summary": "Возвращает список доступных обоев.", "description": "Возвращает список доступных [обоев](https://core.telegram.org/api/wallpapers.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.getWallPapers", "x-tl-id": "127302966", "x-tl-result": "account.WallPapers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `account.WallPapers`.\n\n[account.WallPapers](https://core.telegram.org/type/account.WallPapers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.WallPapers", "oneOf": [{"$ref": "#/components/schemas/account.wallPapersNotModified"}, {"$ref": "#/components/schemas/account.wallPapers"}], "description": "Тип TL: account.WallPapers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getWallPapers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "127302966"}}, "/catalog/account.reportPeer": {"post": {"operationId": "account.reportPeer", "tags": ["Аккаунт"], "summary": "Сообщить о нарушении Условий обслуживания Telegram", "description": "Сообщить о нарушении Условий обслуживания Telegram\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.reportPeer", "x-tl-id": "3317316998", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.reportPeer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер для отчета"}, "reason": {"type": "object", "x-tl-type": "ReportReason", "oneOf": [{"$ref": "#/components/schemas/inputReportReasonSpam"}, {"$ref": "#/components/schemas/inputReportReasonViolence"}, {"$ref": "#/components/schemas/inputReportReasonPornography"}, {"$ref": "#/components/schemas/inputReportReasonChildAbuse"}, {"$ref": "#/components/schemas/inputReportReasonOther"}, {"$ref": "#/components/schemas/inputReportReasonCopyright"}, {"$ref": "#/components/schemas/inputReportReasonGeoIrrelevant"}, {"$ref": "#/components/schemas/inputReportReasonFake"}, {"$ref": "#/components/schemas/inputReportReasonIllegalDrugs"}, {"$ref": "#/components/schemas/inputReportReasonPersonalDetails"}], "description": "Причина, по которой об этом узле сообщается"}, "message": {"type": "string", "x-tl-type": "string", "description": "Комментарий для модерации отчета"}}, "additionalProperties": false, "required": ["peer", "reason", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Партнер для отчета |\n| `reason` | `ReportReason` | Да | Причина, по которой об этом узле сообщается |\n| `message` | `string` | Да | Комментарий для модерации отчета |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "PEER_ID_INVALID"], "x-browser-schema-id": "3317316998"}}, "/catalog/account.checkUsername": {"post": {"operationId": "account.checkUsername", "tags": ["Аккаунт"], "summary": "Проверяет имя пользователя и доступность.", "description": "Проверяет имя пользователя и доступность.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.checkUsername", "x-tl-id": "655677548", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_OCCUPIED` — Указанное имя пользователя уже занято.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — Указанное имя пользователя можно приобрести на https://fragment.com."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.checkUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"username": {"type": "string", "x-tl-type": "string", "description": "имя пользователя Допустимые символы: A-Z (без учета регистра), 0-9 и подчеркивание. Длина: 5-32 символов."}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `username` | `string` | Да | имя пользователя Допустимые символы: A-Z (без учета регистра), 0-9 и подчеркивание. Длина: 5-32 символов. |"}, "x-telegram-rpc-errors": ["USERNAME_INVALID", "USERNAME_OCCUPIED", "USERNAME_PURCHASE_AVAILABLE"], "x-browser-schema-id": "655677548"}}, "/catalog/account.updateUsername": {"post": {"operationId": "account.updateUsername", "tags": ["Аккаунт"], "summary": "Изменяет имя пользователя для текущего пользователя.", "description": "Изменяет имя пользователя для текущего пользователя.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.updateUsername", "x-tl-id": "1040964988", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `User`.\n\n[Пользователь](https://core.telegram.org/type/User.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_NOT_MODIFIED` — Имя пользователя не изменено.\n- 400 · `USERNAME_OCCUPIED` — Указанное имя пользователя уже занято.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — Указанное имя пользователя можно приобрести на https://fragment.com."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"username": {"type": "string", "x-tl-type": "string", "description": "имя пользователя или пустая строка, если имя пользователя необходимо удалить. Допустимые символы: a-z (регистронезависимо), 0-9 и символы подчеркивания. Длина: 5-32 символов."}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `username` | `string` | Да | имя пользователя или пустая строка, если имя пользователя необходимо удалить. Допустимые символы: a-z (регистронезависимо), 0-9 и символы подчеркивания. Длина: 5-32 символов. |"}, "x-telegram-rpc-errors": ["USERNAME_INVALID", "USERNAME_NOT_MODIFIED", "USERNAME_OCCUPIED", "USERNAME_PURCHASE_AVAILABLE"], "x-browser-schema-id": "1040964988"}}, "/catalog/account.getPrivacy": {"post": {"operationId": "account.getPrivacy", "tags": ["Аккаунт"], "summary": "Получить настройки приватности", "description": "Читает действующие правила приватности аккаунта по выбранной категории.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getPrivacy", "x-tl-id": "3671837008", "x-tl-result": "account.PrivacyRules", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.PrivacyRules`.\n\n[account.PrivacyRules](https://core.telegram.org/type/account.PrivacyRules.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.PrivacyRules", "oneOf": [{"$ref": "#/components/schemas/account.privacyRules"}], "description": "Тип TL: account.PrivacyRules."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PRIVACY_KEY_INVALID` — Ключ конфиденциальности недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getPrivacy"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"key": {"type": "object", "x-tl-type": "InputPrivacyKey", "oneOf": [{"$ref": "#/components/schemas/inputPrivacyKeyStatusTimestamp"}, {"$ref": "#/components/schemas/inputPrivacyKeyChatInvite"}, {"$ref": "#/components/schemas/inputPrivacyKeyPhoneCall"}, {"$ref": "#/components/schemas/inputPrivacyKeyPhoneP2P"}, {"$ref": "#/components/schemas/inputPrivacyKeyForwards"}, {"$ref": "#/components/schemas/inputPrivacyKeyProfilePhoto"}, {"$ref": "#/components/schemas/inputPrivacyKeyPhoneNumber"}, {"$ref": "#/components/schemas/inputPrivacyKeyAddedByPhone"}, {"$ref": "#/components/schemas/inputPrivacyKeyVoiceMessages"}, {"$ref": "#/components/schemas/inputPrivacyKeyAbout"}, {"$ref": "#/components/schemas/inputPrivacyKeyBirthday"}, {"$ref": "#/components/schemas/inputPrivacyKeyStarGiftsAutoSave"}, {"$ref": "#/components/schemas/inputPrivacyKeyNoPaidMessages"}, {"$ref": "#/components/schemas/inputPrivacyKeySavedMusic"}], "description": "Категория приватности, например видимость номера телефона."}}, "additionalProperties": false, "required": ["key"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `key` | `InputPrivacyKey` | Да | Категория приватности, например видимость номера телефона. |"}, "x-telegram-rpc-errors": ["PRIVACY_KEY_INVALID"], "x-browser-schema-id": "3671837008"}}, "/catalog/account.setPrivacy": {"post": {"operationId": "account.setPrivacy", "tags": ["Аккаунт"], "summary": "Изменить настройки конфиденциальности текущей учетной записи", "description": "Изменить настройки конфиденциальности текущей учетной записи\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.setPrivacy", "x-tl-id": "3388480744", "x-tl-result": "account.PrivacyRules", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.PrivacyRules`.\n\n[account.PrivacyRules](https://core.telegram.org/type/account.PrivacyRules.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.PrivacyRules", "oneOf": [{"$ref": "#/components/schemas/account.privacyRules"}], "description": "Тип TL: account.PrivacyRules."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PRIVACY_KEY_INVALID` — Ключ конфиденциальности недействителен.\n- 400 · `PRIVACY_TOO_LONG` — Указано слишком много правил конфиденциальности, текущий лимит — 1000.\n- 400 · `PRIVACY_VALUE_INVALID` — Указанная комбинация правил конфиденциальности недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setPrivacy"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"key": {"type": "object", "x-tl-type": "InputPrivacyKey", "oneOf": [{"$ref": "#/components/schemas/inputPrivacyKeyStatusTimestamp"}, {"$ref": "#/components/schemas/inputPrivacyKeyChatInvite"}, {"$ref": "#/components/schemas/inputPrivacyKeyPhoneCall"}, {"$ref": "#/components/schemas/inputPrivacyKeyPhoneP2P"}, {"$ref": "#/components/schemas/inputPrivacyKeyForwards"}, {"$ref": "#/components/schemas/inputPrivacyKeyProfilePhoto"}, {"$ref": "#/components/schemas/inputPrivacyKeyPhoneNumber"}, {"$ref": "#/components/schemas/inputPrivacyKeyAddedByPhone"}, {"$ref": "#/components/schemas/inputPrivacyKeyVoiceMessages"}, {"$ref": "#/components/schemas/inputPrivacyKeyAbout"}, {"$ref": "#/components/schemas/inputPrivacyKeyBirthday"}, {"$ref": "#/components/schemas/inputPrivacyKeyStarGiftsAutoSave"}, {"$ref": "#/components/schemas/inputPrivacyKeyNoPaidMessages"}, {"$ref": "#/components/schemas/inputPrivacyKeySavedMusic"}], "description": "Новое правило конфиденциальности"}, "rules": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPrivacyRule", "oneOf": [{"$ref": "#/components/schemas/inputPrivacyValueAllowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowCloseFriends"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowPremium"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowBots"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowBots"}], "description": "Тип TL: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "Одноранговые узлы, к которым будет применяться правило конфиденциальности."}}, "additionalProperties": false, "required": ["key", "rules"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `key` | `InputPrivacyKey` | Да | Новое правило конфиденциальности |\n| `rules` | `Vector<InputPrivacyRule>` | Да | Одноранговые узлы, к которым будет применяться правило конфиденциальности. |"}, "x-telegram-rpc-errors": ["PRIVACY_KEY_INVALID", "PRIVACY_TOO_LONG", "PRIVACY_VALUE_INVALID"], "x-browser-schema-id": "3388480744"}}, "/catalog/account.deleteAccount": {"post": {"operationId": "account.deleteAccount", "tags": ["Аккаунт"], "summary": "Удалите учетную запись пользователя с серверов Telegram.", "description": "Удалите учетную запись пользователя с серверов Telegram.\n\nТакже может использоваться для удаления учетной записи пользователя, который предоставил код входа, но забыл пароль 2FA и не настроен метод восстановления, см. [здесь »](https://core.telegram.org/api/srp.md#password-recovery) дополнительную информацию о восстановлении пароля и [здесь »](https://core.telegram.org/api/account-deletion.md) дополнительную информацию об удалении учетной записи.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Account deletion](https://core.telegram.org/api/account-deletion.md)", "x-tl-method": "account.deleteAccount", "x-tl-id": "2730545012", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Account deletion", "https://core.telegram.org/api/account-deletion.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 420 · `2FA_CONFIRM_WAIT_%d` — Поскольку эта учетная запись активна и защищена паролем 2FA, мы удалим ее через 1 неделю в целях безопасности. Вы можете отменить этот процесс в любое время. Вы сможете сбросить свою учетную запись через %d секунд.\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.deleteAccount"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"reason": {"type": "string", "x-tl-type": "string", "description": "Почему удаляется аккаунт, может быть пусто"}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "[Пароль 2FA](https://core.telegram.org/api/srp.md): это поле можно опустить даже для учетных записей с включенным 2FA: в этом случае удаление учетной записи учетной записи будет отложено на 7 дней [как указано в документации »](https://core.telegram.org/api/account-deletion.md)", "x-tl-flag": "flags.0?InputCheckPasswordSRP"}}, "additionalProperties": false, "required": ["reason"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `reason` | `string` | Да | Почему удаляется аккаунт, может быть пусто |\n| `password` | `InputCheckPasswordSRP` | Нет | [Пароль 2FA](https://core.telegram.org/api/srp.md): это поле можно опустить даже для учетных записей с включенным 2FA: в этом случае удаление учетной записи учетной записи будет отложено на 7 дней [как указано в документации »](https://core.telegram.org/api/account-deletion.md) |"}, "x-telegram-rpc-errors": ["2FA_CONFIRM_WAIT_%d", "PASSWORD_HASH_INVALID"], "x-browser-schema-id": "2730545012"}}, "/catalog/account.getAccountTTL": {"post": {"operationId": "account.getAccountTTL", "tags": ["Аккаунт"], "summary": "Получите дни жизни на счете", "description": "Получите дни жизни на счете", "x-tl-method": "account.getAccountTTL", "x-tl-id": "150761757", "x-tl-result": "AccountDaysTTL", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `AccountDaysTTL`.\n\n[AccountDaysTTL](https://core.telegram.org/type/AccountDaysTTL.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AccountDaysTTL", "oneOf": [{"$ref": "#/components/schemas/accountDaysTTL"}], "description": "Тип TL: AccountDaysTTL."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getAccountTTL"}, "x-browser-schema-id": "150761757"}}, "/catalog/account.setAccountTTL": {"post": {"operationId": "account.setAccountTTL", "tags": ["Аккаунт"], "summary": "Установить период самоуничтожения аккаунта", "description": "Установить период самоуничтожения аккаунта\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.setAccountTTL", "x-tl-id": "608323678", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TTL_DAYS_INVALID` — Указанное TTL неверно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setAccountTTL"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"ttl": {"type": "object", "x-tl-type": "AccountDaysTTL", "oneOf": [{"$ref": "#/components/schemas/accountDaysTTL"}], "description": "Время жить днями"}}, "additionalProperties": false, "required": ["ttl"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `ttl` | `AccountDaysTTL` | Да | Время жить днями |"}, "x-telegram-rpc-errors": ["TTL_DAYS_INVALID"], "x-browser-schema-id": "608323678"}}, "/catalog/account.sendChangePhoneCode": {"post": {"operationId": "account.sendChangePhoneCode", "tags": ["Аккаунт"], "summary": "Подтвердите новый номер телефона, который будет связан с текущей учетной записью.", "description": "Подтвердите новый номер телефона, который будет связан с текущей учетной записью.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.sendChangePhoneCode", "x-tl-id": "2186758885", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.SentCode`.\n\n[auth.SentCode](https://core.telegram.org/type/auth.SentCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.SentCode", "oneOf": [{"$ref": "#/components/schemas/auth.sentCode"}, {"$ref": "#/components/schemas/auth.sentCodeSuccess"}, {"$ref": "#/components/schemas/auth.sentCodePaymentRequired"}], "description": "Тип TL: auth.SentCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `FRESH_CHANGE_PHONE_FORBIDDEN` — Вы не можете изменить номер телефона сразу после входа в систему, подождите минимум 24 часа.\n- 400 · `PHONE_NUMBER_BANNED` — Указанный номер телефона забанен в Telegram.\n- 406 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен.\n- 400 · `PHONE_NUMBER_OCCUPIED` — Номер телефона уже используется."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.sendChangePhoneCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Новый номер телефона"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Настройки телефонного кода"}}, "additionalProperties": false, "required": ["phone_number", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Новый номер телефона |\n| `settings` | `CodeSettings` | Да | Настройки телефонного кода |"}, "x-telegram-rpc-errors": ["FRESH_CHANGE_PHONE_FORBIDDEN", "PHONE_NUMBER_BANNED", "PHONE_NUMBER_INVALID", "PHONE_NUMBER_OCCUPIED"], "x-browser-schema-id": "2186758885"}}, "/catalog/account.changePhone": {"post": {"operationId": "account.changePhone", "tags": ["Аккаунт"], "summary": "Изменить номер телефона текущего аккаунта", "description": "Изменить номер телефона текущего аккаунта\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.changePhone", "x-tl-id": "1891839707", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `User`.\n\n[Пользователь](https://core.telegram.org/type/User.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует.\n- 400 · `PHONE_CODE_EXPIRED` — Срок действия предоставленного вами телефонного кода истек.\n- 400 · `PHONE_CODE_INVALID` — Указанный телефонный код недействителен.\n- 406 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен.\n- 400 · `PHONE_NUMBER_OCCUPIED` — Номер телефона уже используется."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.changePhone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Новый номер телефона"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, полученный при звонке [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md)"}, "phone_code": {"type": "string", "x-tl-type": "string", "description": "Телефонный код, полученный при звонке [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md)"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash", "phone_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Новый номер телефона |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, полученный при звонке [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md) |\n| `phone_code` | `string` | Да | Телефонный код, полученный при звонке [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md) |"}, "x-telegram-rpc-errors": ["PHONE_CODE_EMPTY", "PHONE_CODE_EXPIRED", "PHONE_CODE_INVALID", "PHONE_NUMBER_INVALID", "PHONE_NUMBER_OCCUPIED"], "x-browser-schema-id": "1891839707"}}, "/catalog/account.updateDeviceLocked": {"post": {"operationId": "account.updateDeviceLocked", "tags": ["Аккаунт"], "summary": "Если функция блокировки пароля на стороне клиента включена, тексты сообщений не будут отображаться во входящих уведомлениях PUSH.", "description": "Если функция блокировки пароля на стороне клиента включена, тексты сообщений не будут отображаться во входящих [PUSH уведомлениях](https://core.telegram.org/api/push-updates.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "account.updateDeviceLocked", "x-tl-id": "954152242", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateDeviceLocked"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Период неактивности, после которого тексты сообщений начнут скрываться в [PUSH уведомления](https://core.telegram.org/api/push-updates.md)."}}, "additionalProperties": false, "required": ["period"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `period` | `int` | Да | Период неактивности, после которого тексты сообщений начнут скрываться в [PUSH уведомления](https://core.telegram.org/api/push-updates.md). |"}, "x-browser-schema-id": "954152242"}}, "/catalog/account.getAuthorizations": {"post": {"operationId": "account.getAuthorizations", "tags": ["Аккаунт"], "summary": "Получить сеансы входа в систему", "description": "Получить сеансы входа в систему", "x-tl-method": "account.getAuthorizations", "x-tl-id": "3810574680", "x-tl-result": "account.Authorizations", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.Authorizations`.\n\n[account.Authorizations](https://core.telegram.org/type/account.Authorizations.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.Authorizations", "oneOf": [{"$ref": "#/components/schemas/account.authorizations"}], "description": "Тип TL: account.Authorizations."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getAuthorizations"}, "x-browser-schema-id": "3810574680"}}, "/catalog/account.resetAuthorization": {"post": {"operationId": "account.resetAuthorization", "tags": ["Аккаунт"], "summary": "Выйти из активной авторизованной сессии по ее хешу", "description": "Завершить активный [авторизованный сеанс](https://core.telegram.org/api/auth.md) по его хешу\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "account.resetAuthorization", "x-tl-id": "3749180348", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — Вы не можете выйти из других сеансов, если с момента входа в текущий сеанс прошло менее 24 часов.\n- 400 · `HASH_INVALID` — Указанный хэш недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resetAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш сеанса", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | Хэш сеанса |"}, "x-telegram-rpc-errors": ["FRESH_RESET_AUTHORISATION_FORBIDDEN", "HASH_INVALID"], "x-browser-schema-id": "3749180348"}}, "/catalog/account.getPassword": {"post": {"operationId": "account.getPassword", "tags": ["Аккаунт"], "summary": "Получить конфигурацию для двухфакторной авторизации с паролем", "description": "Получить конфигурацию для двухфакторной авторизации с паролем\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getPassword", "x-tl-id": "1418342645", "x-tl-result": "account.Password", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.Password`.\n\n[account.Password](https://core.telegram.org/type/account.Password.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.Password", "oneOf": [{"$ref": "#/components/schemas/account.password"}], "description": "Тип TL: account.Password."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getPassword"}, "x-browser-schema-id": "1418342645"}}, "/catalog/account.getPasswordSettings": {"post": {"operationId": "account.getPasswordSettings", "tags": ["Аккаунт"], "summary": "Получите личную информацию, связанную с паролем (адрес электронной почты для восстановления, данные паспорта Telegram и т. д.)", "description": "Получите личную информацию, связанную с информацией о пароле (адрес электронной почты для восстановления, телеграмма [информация о паспорте](https://core.telegram.org/passport.md) и т. д.)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.getPasswordSettings", "x-tl-id": "2631199481", "x-tl-result": "account.PasswordSettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `account.PasswordSettings`.\n\n[account.PasswordSettings](https://core.telegram.org/type/account.PasswordSettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.PasswordSettings", "oneOf": [{"$ref": "#/components/schemas/account.passwordSettings"}], "description": "Тип TL: account.PasswordSettings."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getPasswordSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Пароль (см. [SRP](https://core.telegram.org/api/srp.md))"}}, "additionalProperties": false, "required": ["password"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | Да | Пароль (см. [SRP](https://core.telegram.org/api/srp.md)) |"}, "x-telegram-rpc-errors": ["PASSWORD_HASH_INVALID"], "x-browser-schema-id": "2631199481"}}, "/catalog/account.updatePasswordSettings": {"post": {"operationId": "account.updatePasswordSettings", "tags": ["Аккаунт"], "summary": "Установите новый пароль 2FA", "description": "Установите новый пароль 2FA\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.updatePasswordSettings", "x-tl-id": "2778402863", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMAIL_INVALID` — Указанный адрес электронной почты недействителен.\n- 400 · `EMAIL_UNCONFIRMED` — Электронная почта не подтверждена.\n- 400 · `EMAIL_UNCONFIRMED_%d` — Указанный адрес электронной почты не подтвержден, %d — это длина кода подтверждения, который только что был отправлен на адрес электронной почты: используйте [account.verifyEmail](https://core.telegram.org/method/account.verifyEmail.md), чтобы ввести полученный код подтверждения и включить резервный адрес электронной почты.\n- 400 · `NEW_SALT_INVALID` — Новая соль недействительна.\n- 400 · `NEW_SETTINGS_EMPTY` — На текущей учетной записи не установлен пароль и в `new_settings` не указан новый пароль.\n- 400 · `NEW_SETTINGS_INVALID` — Новые настройки пароля недействительны.\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен.\n- 400 · `SRP_ID_INVALID` — Указан неверный идентификатор SRP.\n- 400 · `SRP_PASSWORD_CHANGED` — Пароль изменился."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updatePasswordSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Старый пароль (см. [SRP](https://core.telegram.org/api/srp.md))"}, "new_settings": {"type": "object", "x-tl-type": "account.PasswordInputSettings", "oneOf": [{"$ref": "#/components/schemas/account.passwordInputSettings"}], "description": "Новый пароль (см. [SRP](https://core.telegram.org/api/srp.md))"}}, "additionalProperties": false, "required": ["password", "new_settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | Да | Старый пароль (см. [SRP](https://core.telegram.org/api/srp.md)) |\n| `new_settings` | `account.PasswordInputSettings` | Да | Новый пароль (см. [SRP](https://core.telegram.org/api/srp.md)) |"}, "x-telegram-rpc-errors": ["EMAIL_INVALID", "EMAIL_UNCONFIRMED", "EMAIL_UNCONFIRMED_%d", "NEW_SALT_INVALID", "NEW_SETTINGS_EMPTY", "NEW_SETTINGS_INVALID", "PASSWORD_HASH_INVALID", "SRP_ID_INVALID", "SRP_PASSWORD_CHANGED"], "x-browser-schema-id": "2778402863"}}, "/catalog/account.sendConfirmPhoneCode": {"post": {"operationId": "account.sendConfirmPhoneCode", "tags": ["Аккаунт"], "summary": "Отправьте код подтверждения, чтобы отменить удаление учетной записи. Для получения дополнительной информации нажмите здесь »", "description": "Отправьте код подтверждения, чтобы отменить удаление учетной записи, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Account deletion](https://core.telegram.org/api/account-deletion.md)", "x-tl-method": "account.sendConfirmPhoneCode", "x-tl-id": "457157256", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Account deletion", "https://core.telegram.org/api/account-deletion.md"]], "responses": {"200": {"description": "Результат MTProto · `auth.SentCode`.\n\n[auth.SentCode](https://core.telegram.org/type/auth.SentCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.SentCode", "oneOf": [{"$ref": "#/components/schemas/auth.sentCode"}, {"$ref": "#/components/schemas/auth.sentCodeSuccess"}, {"$ref": "#/components/schemas/auth.sentCodePaymentRequired"}], "description": "Тип TL: auth.SentCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `HASH_INVALID` — Указанный хэш недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.sendConfirmPhoneCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "x-tl-type": "string", "description": "Хэш из служебного уведомления, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md)"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Настройки телефонного кода"}}, "additionalProperties": false, "required": ["hash", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `string` | Да | Хэш из служебного уведомления, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md) |\n| `settings` | `CodeSettings` | Да | Настройки телефонного кода |"}, "x-telegram-rpc-errors": ["HASH_INVALID"], "x-browser-schema-id": "457157256"}}, "/catalog/account.confirmPhone": {"post": {"operationId": "account.confirmPhone", "tags": ["Аккаунт"], "summary": "Подтвердите номер телефона, чтобы отменить удаление учетной записи. Для получения дополнительной информации нажмите здесь »", "description": "Подтвердите номер телефона, чтобы отменить удаление учетной записи. Для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Account deletion](https://core.telegram.org/api/account-deletion.md)", "x-tl-method": "account.confirmPhone", "x-tl-id": "1596029123", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Account deletion", "https://core.telegram.org/api/account-deletion.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CODE_HASH_INVALID` — Неверный хеш кода.\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.confirmPhone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md)"}, "phone_code": {"type": "string", "x-tl-type": "string", "description": "Код SMS, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md)"}}, "additionalProperties": false, "required": ["phone_code_hash", "phone_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md) |\n| `phone_code` | `string` | Да | Код SMS, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/account-deletion.md) |"}, "x-telegram-rpc-errors": ["CODE_HASH_INVALID", "PHONE_CODE_EMPTY"], "x-browser-schema-id": "1596029123"}}, "/catalog/account.getTmpPassword": {"post": {"operationId": "account.getTmpPassword", "tags": ["Аккаунт"], "summary": "Получить временный платежный пароль", "description": "Получить временный платежный пароль\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getTmpPassword", "x-tl-id": "1151208273", "x-tl-result": "account.TmpPassword", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.TmpPassword`.\n\n[account.TmpPassword](https://core.telegram.org/type/account.TmpPassword.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.TmpPassword", "oneOf": [{"$ref": "#/components/schemas/account.tmpPassword"}], "description": "Тип TL: account.TmpPassword."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен.\n- 400 · `SRP_A_INVALID` — Указанное значение inputCheckPasswordSRP.A неверно.\n- 400 · `TMP_PASSWORD_DISABLED` — Временный пароль отключен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getTmpPassword"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "SRP параметры пароля"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время, в течение которого временный пароль будет действителен, в секундах; должно быть между 60 и 86400"}}, "additionalProperties": false, "required": ["password", "period"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | Да | SRP параметры пароля |\n| `period` | `int` | Да | Время, в течение которого временный пароль будет действителен, в секундах; должно быть между 60 и 86400 |"}, "x-telegram-rpc-errors": ["PASSWORD_HASH_INVALID", "SRP_A_INVALID", "TMP_PASSWORD_DISABLED"], "x-browser-schema-id": "1151208273"}}, "/catalog/account.getWebAuthorizations": {"post": {"operationId": "account.getWebAuthorizations", "tags": ["Аккаунт"], "summary": "Получите авторизацию виджета веб-входа", "description": "Получить веб-[виджет входа](https://core.telegram.org/widgets/login.md) авторизации\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getWebAuthorizations", "x-tl-id": "405695855", "x-tl-result": "account.WebAuthorizations", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.WebAuthorizations`.\n\n[account.WebAuthorizations](https://core.telegram.org/type/account.WebAuthorizations.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.WebAuthorizations", "oneOf": [{"$ref": "#/components/schemas/account.webAuthorizations"}], "description": "Тип TL: account.WebAuthorizations."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getWebAuthorizations"}, "x-browser-schema-id": "405695855"}}, "/catalog/account.resetWebAuthorization": {"post": {"operationId": "account.resetWebAuthorization", "tags": ["Аккаунт"], "summary": "Выйти из активного сеанса входа в веб-телеграмму", "description": "Выйдите из активного веб-сеанса [вход в Telegram](https://core.telegram.org/widgets/login.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.resetWebAuthorization", "x-tl-id": "755087855", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `HASH_INVALID` — Указанный хэш недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resetWebAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш сеанса](https://core.telegram.org/constructor/webAuthorization.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш сеанса](https://core.telegram.org/constructor/webAuthorization.md) |"}, "x-telegram-rpc-errors": ["HASH_INVALID"], "x-browser-schema-id": "755087855"}}, "/catalog/account.resetWebAuthorizations": {"post": {"operationId": "account.resetWebAuthorizations", "tags": ["Аккаунт"], "summary": "Сбросить все активные сеансы входа в веб-телеграмму", "description": "Сбросить все активные веб-сессии [вход в Telegram](https://core.telegram.org/widgets/login.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.resetWebAuthorizations", "x-tl-id": "1747789204", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resetWebAuthorizations"}, "x-browser-schema-id": "1747789204"}}, "/catalog/account.getAllSecureValues": {"post": {"operationId": "account.getAllSecureValues", "tags": ["Аккаунт"], "summary": "Получите все сохраненные документы Telegram Passport. Дополнительную информацию см. в паспортных документах »", "description": "Получите все сохраненные документы [Telegram Passport](https://core.telegram.org/passport.md), [более подробную информацию см. в документации по паспорту »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getAllSecureValues", "x-tl-id": "2995305597", "x-tl-result": "Vector<SecureValue>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<SecureValue>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[SecureValue](https://core.telegram.org/type/SecureValue.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "oneOf": [{"$ref": "#/components/schemas/secureValue"}], "description": "Тип TL: SecureValue."}, "x-tl-type": "Vector<SecureValue>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getAllSecureValues"}, "x-browser-schema-id": "2995305597"}}, "/catalog/account.getSecureValue": {"post": {"operationId": "account.getSecureValue", "tags": ["Аккаунт"], "summary": "Получите сохраненный документ Telegram Passport, дополнительную информацию см. в документации по паспорту »", "description": "Сохраните [документ Telegram Passport](https://core.telegram.org/passport.md), [более подробную информацию см. в документации по паспорту »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getSecureValue", "x-tl-id": "1936088002", "x-tl-result": "Vector<SecureValue>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<SecureValue>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[SecureValue](https://core.telegram.org/type/SecureValue.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "oneOf": [{"$ref": "#/components/schemas/secureValue"}], "description": "Тип TL: SecureValue."}, "x-tl-type": "Vector<SecureValue>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getSecureValue"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"types": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueType", "oneOf": [{"$ref": "#/components/schemas/secureValueTypePersonalDetails"}, {"$ref": "#/components/schemas/secureValueTypePassport"}, {"$ref": "#/components/schemas/secureValueTypeDriverLicense"}, {"$ref": "#/components/schemas/secureValueTypeIdentityCard"}, {"$ref": "#/components/schemas/secureValueTypeInternalPassport"}, {"$ref": "#/components/schemas/secureValueTypeAddress"}, {"$ref": "#/components/schemas/secureValueTypeUtilityBill"}, {"$ref": "#/components/schemas/secureValueTypeBankStatement"}, {"$ref": "#/components/schemas/secureValueTypeRentalAgreement"}, {"$ref": "#/components/schemas/secureValueTypePassportRegistration"}, {"$ref": "#/components/schemas/secureValueTypeTemporaryRegistration"}, {"$ref": "#/components/schemas/secureValueTypePhone"}, {"$ref": "#/components/schemas/secureValueTypeEmail"}], "description": "Тип TL: SecureValueType."}, "x-tl-type": "Vector<SecureValueType>", "description": "Запрошенные типы значений"}}, "additionalProperties": false, "required": ["types"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `types` | `Vector<SecureValueType>` | Да | Запрошенные типы значений |"}, "x-browser-schema-id": "1936088002"}}, "/catalog/account.saveSecureValue": {"post": {"operationId": "account.saveSecureValue", "tags": ["Аккаунт"], "summary": "Надежно сохраните документ Telegram Passport. Для получения дополнительной информации см. документы паспорта »", "description": "Надежно сохраните [документ Telegram Passport](https://core.telegram.org/passport.md), [более подробную информацию см. в документации по паспорту »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.saveSecureValue", "x-tl-id": "2308956957", "x-tl-result": "SecureValue", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `SecureValue`.\n\n[SecureValue](https://core.telegram.org/type/SecureValue.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "SecureValue", "oneOf": [{"$ref": "#/components/schemas/secureValue"}], "description": "Тип TL: SecureValue."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PASSWORD_REQUIRED` — [Пароль 2FA](https://core.telegram.org/api/srp.md) должен быть настроен для использования Telegram Passport.\n- 400 · `SECURE_SECRET_REQUIRED` — Требуется надежный секрет."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.saveSecureValue"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"value": {"type": "object", "x-tl-type": "InputSecureValue", "oneOf": [{"$ref": "#/components/schemas/inputSecureValue"}], "description": "Безопасное значение, [более подробную информацию см. в паспортных документах »](https://core.telegram.org/passport/encryption.md#encryption)"}, "secure_secret_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Секретный хеш паспорта, [более подробную информацию см. в документации по паспорту »](https://core.telegram.org/passport/encryption.md#encryption)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["value", "secure_secret_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `value` | `InputSecureValue` | Да | Безопасное значение, [более подробную информацию см. в паспортных документах »](https://core.telegram.org/passport/encryption.md#encryption) |\n| `secure_secret_id` | `long` | Да | Секретный хеш паспорта, [более подробную информацию см. в документации по паспорту »](https://core.telegram.org/passport/encryption.md#encryption) |"}, "x-telegram-rpc-errors": ["PASSWORD_REQUIRED", "SECURE_SECRET_REQUIRED"], "x-browser-schema-id": "2308956957"}}, "/catalog/account.deleteSecureValue": {"post": {"operationId": "account.deleteSecureValue", "tags": ["Аккаунт"], "summary": "Удалите сохраненные документы Telegram Passport, дополнительную информацию см. в документации по паспорту »", "description": "Удалить сохраненные документы [Telegram Passport](https://core.telegram.org/passport.md), [более подробную информацию см. в документации по паспорту »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.deleteSecureValue", "x-tl-id": "3095444555", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.deleteSecureValue"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"types": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueType", "oneOf": [{"$ref": "#/components/schemas/secureValueTypePersonalDetails"}, {"$ref": "#/components/schemas/secureValueTypePassport"}, {"$ref": "#/components/schemas/secureValueTypeDriverLicense"}, {"$ref": "#/components/schemas/secureValueTypeIdentityCard"}, {"$ref": "#/components/schemas/secureValueTypeInternalPassport"}, {"$ref": "#/components/schemas/secureValueTypeAddress"}, {"$ref": "#/components/schemas/secureValueTypeUtilityBill"}, {"$ref": "#/components/schemas/secureValueTypeBankStatement"}, {"$ref": "#/components/schemas/secureValueTypeRentalAgreement"}, {"$ref": "#/components/schemas/secureValueTypePassportRegistration"}, {"$ref": "#/components/schemas/secureValueTypeTemporaryRegistration"}, {"$ref": "#/components/schemas/secureValueTypePhone"}, {"$ref": "#/components/schemas/secureValueTypeEmail"}], "description": "Тип TL: SecureValueType."}, "x-tl-type": "Vector<SecureValueType>", "description": "Типы документов для удаления"}}, "additionalProperties": false, "required": ["types"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `types` | `Vector<SecureValueType>` | Да | Типы документов для удаления |"}, "x-browser-schema-id": "3095444555"}}, "/catalog/account.getAuthorizationForm": {"post": {"operationId": "account.getAuthorizationForm", "tags": ["Аккаунт"], "summary": "Возвращает форму авторизации Telegram Passport для обмена данными со службой.", "description": "Возвращает форму авторизации Telegram Passport для обмена данными со службой.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getAuthorizationForm", "x-tl-id": "2838059386", "x-tl-result": "account.AuthorizationForm", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.AuthorizationForm`.\n\n[account.AuthorizationForm](https://core.telegram.org/type/account.AuthorizationForm.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.AuthorizationForm", "oneOf": [{"$ref": "#/components/schemas/account.authorizationForm"}], "description": "Тип TL: account.AuthorizationForm."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `PUBLIC_KEY_REQUIRED` — Требуется открытый ключ."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getAuthorizationForm"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя бота сервиса", "x-tl-type": "long"}, "scope": {"type": "string", "x-tl-type": "string", "description": "Типы элементов Telegram Passport, запрашиваемые сервисом"}, "public_key": {"type": "string", "x-tl-type": "string", "description": "Открытый ключ сервиса"}}, "additionalProperties": false, "required": ["bot_id", "scope", "public_key"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot_id` | `long` | Да | Идентификатор пользователя бота сервиса |\n| `scope` | `string` | Да | Типы элементов Telegram Passport, запрашиваемые сервисом |\n| `public_key` | `string` | Да | Открытый ключ сервиса |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "PUBLIC_KEY_REQUIRED"], "x-browser-schema-id": "2838059386"}}, "/catalog/account.acceptAuthorization": {"post": {"operationId": "account.acceptAuthorization", "tags": ["Аккаунт"], "summary": "Отправляет форму авторизации Telegram Passport, эффективно обмениваясь данными со службой.", "description": "Отправляет форму авторизации Telegram Passport, эффективно обмениваясь данными со службой.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.acceptAuthorization", "x-tl-id": "4092415091", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `PUBLIC_KEY_REQUIRED` — Требуется открытый ключ."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.acceptAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор бота", "x-tl-type": "long"}, "scope": {"type": "string", "x-tl-type": "string", "description": "Типы элементов Telegram Passport, запрашиваемые сервисом"}, "public_key": {"type": "string", "x-tl-type": "string", "description": "Открытый ключ сервиса"}, "value_hashes": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueHash", "oneOf": [{"$ref": "#/components/schemas/secureValueHash"}], "description": "Тип TL: SecureValueHash."}, "x-tl-type": "Vector<SecureValueHash>", "description": "Типы отправляемых значений и их хеши"}, "credentials": {"type": "object", "x-tl-type": "SecureCredentialsEncrypted", "oneOf": [{"$ref": "#/components/schemas/secureCredentialsEncrypted"}], "description": "Зашифрованные значения"}}, "additionalProperties": false, "required": ["bot_id", "scope", "public_key", "value_hashes", "credentials"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot_id` | `long` | Да | Идентификатор бота |\n| `scope` | `string` | Да | Типы элементов Telegram Passport, запрашиваемые сервисом |\n| `public_key` | `string` | Да | Открытый ключ сервиса |\n| `value_hashes` | `Vector<SecureValueHash>` | Да | Типы отправляемых значений и их хеши |\n| `credentials` | `SecureCredentialsEncrypted` | Да | Зашифрованные значения |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "PUBLIC_KEY_REQUIRED"], "x-browser-schema-id": "4092415091"}}, "/catalog/account.sendVerifyPhoneCode": {"post": {"operationId": "account.sendVerifyPhoneCode", "tags": ["Аккаунт"], "summary": "Отправьте проверочный код телефона для паспорта Telegram.", "description": "Отправьте код подтверждения для телеграммы [паспорт](https://core.telegram.org/passport.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.sendVerifyPhoneCode", "x-tl-id": "2778945273", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `auth.SentCode`.\n\n[auth.SentCode](https://core.telegram.org/type/auth.SentCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "auth.SentCode", "oneOf": [{"$ref": "#/components/schemas/auth.sentCode"}, {"$ref": "#/components/schemas/auth.sentCodeSuccess"}, {"$ref": "#/components/schemas/auth.sentCodePaymentRequired"}], "description": "Тип TL: auth.SentCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.sendVerifyPhoneCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона для подтверждения"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Настройки телефонного кода"}}, "additionalProperties": false, "required": ["phone_number", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона для подтверждения |\n| `settings` | `CodeSettings` | Да | Настройки телефонного кода |"}, "x-telegram-rpc-errors": ["PHONE_NUMBER_INVALID"], "x-browser-schema-id": "2778945273"}}, "/catalog/account.verifyPhone": {"post": {"operationId": "account.verifyPhone", "tags": ["Аккаунт"], "summary": "Подтвердите номер телефона для телеграм-паспорта.", "description": "Подтвердите номер телефона для Telegram [паспорт](https://core.telegram.org/passport.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.verifyPhone", "x-tl-id": "1305716726", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует.\n- 400 · `PHONE_CODE_EXPIRED` — Срок действия предоставленного вами телефонного кода истек.\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.verifyPhone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, полученный в результате звонка на [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md)"}, "phone_code": {"type": "string", "x-tl-type": "string", "description": "Код получен после звонка на [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md)"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash", "phone_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | Да | Номер телефона |\n| `phone_code_hash` | `string` | Да | Хэш телефонного кода, полученный в результате звонка на [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md) |\n| `phone_code` | `string` | Да | Код получен после звонка на [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md) |"}, "x-telegram-rpc-errors": ["PHONE_CODE_EMPTY", "PHONE_CODE_EXPIRED", "PHONE_NUMBER_INVALID"], "x-browser-schema-id": "1305716726"}}, "/catalog/account.sendVerifyEmailCode": {"post": {"operationId": "account.sendVerifyEmailCode", "tags": ["Аккаунт"], "summary": "Отправьте код подтверждения по электронной почте.", "description": "Отправьте код подтверждения по электронной почте.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.sendVerifyEmailCode", "x-tl-id": "2564831163", "x-tl-result": "account.SentEmailCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.SentEmailCode`.\n\n[account.SentEmailCode](https://core.telegram.org/type/account.SentEmailCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.SentEmailCode", "oneOf": [{"$ref": "#/components/schemas/account.sentEmailCode"}], "description": "Тип TL: account.SentEmailCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMAIL_INVALID` — Указанный адрес электронной почты недействителен.\n- 400 · `EMAIL_NOT_ALLOWED` — Указанный адрес электронной почты нельзя использовать для завершения операции.\n- 400 · `EMAIL_NOT_SETUP` — Чтобы изменить адрес электронной почты для входа с помощью emailVerifyPurposeLoginChange, существующий адрес электронной почты для входа уже должен быть установлен с помощью emailVerifyPurposeLoginSetup.\n- 400 · `PHONE_CODE_EMPTY` — phone_code отсутствует.\n- 400 · `PHONE_HASH_EXPIRED` — предоставлен недействительный или просроченный `phone_code_hash`.\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.sendVerifyEmailCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"purpose": {"type": "object", "x-tl-type": "EmailVerifyPurpose", "oneOf": [{"$ref": "#/components/schemas/emailVerifyPurposeLoginSetup"}, {"$ref": "#/components/schemas/emailVerifyPurposeLoginChange"}, {"$ref": "#/components/schemas/emailVerifyPurposePassport"}], "description": "Цель проверки."}, "email": {"type": "string", "x-tl-type": "string", "description": "Электронная почта, куда отправить код."}}, "additionalProperties": false, "required": ["purpose", "email"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `purpose` | `EmailVerifyPurpose` | Да | Цель проверки. |\n| `email` | `string` | Да | Электронная почта, куда отправить код. |"}, "x-telegram-rpc-errors": ["EMAIL_INVALID", "EMAIL_NOT_ALLOWED", "EMAIL_NOT_SETUP", "PHONE_CODE_EMPTY", "PHONE_HASH_EXPIRED", "PHONE_NUMBER_INVALID"], "x-browser-schema-id": "2564831163"}}, "/catalog/account.verifyEmail": {"post": {"operationId": "account.verifyEmail", "tags": ["Аккаунт"], "summary": "Подтвердите адрес электронной почты.", "description": "Подтвердите адрес электронной почты.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.verifyEmail", "x-tl-id": "53322959", "x-tl-result": "account.EmailVerified", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.EmailVerified`.\n\n[account.EmailVerified](https://core.telegram.org/type/account.EmailVerified.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.EmailVerified", "oneOf": [{"$ref": "#/components/schemas/account.emailVerified"}, {"$ref": "#/components/schemas/account.emailVerifiedLogin"}], "description": "Тип TL: account.EmailVerified."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CODE_INVALID` — Код недействителен.\n- 400 · `EMAIL_INVALID` — Указанный адрес электронной почты недействителен.\n- 400 · `EMAIL_NOT_ALLOWED` — Указанный адрес электронной почты нельзя использовать для завершения операции.\n- 400 · `EMAIL_VERIFY_EXPIRED` — Срок действия письма с подтверждением истек.\n- 400 · `PHONE_CODE_EXPIRED` — Срок действия предоставленного вами телефонного кода истек.\n- 400 · `PHONE_NUMBER_INVALID` — Номер телефона недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.verifyEmail"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"purpose": {"type": "object", "x-tl-type": "EmailVerifyPurpose", "oneOf": [{"$ref": "#/components/schemas/emailVerifyPurposeLoginSetup"}, {"$ref": "#/components/schemas/emailVerifyPurposeLoginChange"}, {"$ref": "#/components/schemas/emailVerifyPurposePassport"}], "description": "Цель проверки"}, "verification": {"type": "object", "x-tl-type": "EmailVerification", "oneOf": [{"$ref": "#/components/schemas/emailVerificationCode"}, {"$ref": "#/components/schemas/emailVerificationGoogle"}, {"$ref": "#/components/schemas/emailVerificationApple"}], "description": "Код или токен подтверждения электронной почты"}}, "additionalProperties": false, "required": ["purpose", "verification"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `purpose` | `EmailVerifyPurpose` | Да | Цель проверки |\n| `verification` | `EmailVerification` | Да | Код или токен подтверждения электронной почты |"}, "x-telegram-rpc-errors": ["CODE_INVALID", "EMAIL_INVALID", "EMAIL_NOT_ALLOWED", "EMAIL_VERIFY_EXPIRED", "PHONE_CODE_EXPIRED", "PHONE_NUMBER_INVALID"], "x-browser-schema-id": "53322959"}}, "/catalog/account.initTakeoutSession": {"post": {"operationId": "account.initTakeoutSession", "tags": ["Аккаунт"], "summary": "Инициализируйте сеанс на вынос. Дополнительную информацию см. здесь ».", "description": "Инициализируйте сеанс извлечения, дополнительную информацию см. здесь » ](https://core.telegram.org/api/takeout.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "account.initTakeoutSession", "x-tl-id": "2398350000", "x-tl-result": "account.Takeout", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "Результат MTProto · `account.Takeout`.\n\n[account.Takeout](https://core.telegram.org/type/account.Takeout.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.Takeout", "oneOf": [{"$ref": "#/components/schemas/account.takeout"}], "description": "Тип TL: account.Takeout."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 420 · `TAKEOUT_INIT_DELAY_%d` — Извините, в целях безопасности вы сможете начать загрузку данных через %d секунд. Мы уведомили все ваши устройства о запросе на экспорт, чтобы убедиться, что он авторизован, и дать вам время отреагировать, если это не так."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.initTakeoutSession"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Экспортировать ли контакты"}, "message_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Экспортировать ли сообщения в приватные чаты"}, "message_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Экспортировать ли сообщения в [основные группы](https://core.telegram.org/api/channel.md#basic-groups)"}, "message_megagroups": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Экспортировать ли сообщения в [супергруппы](https://core.telegram.org/api/channel.md#supergroups)"}, "message_channels": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Экспортировать ли сообщения в [каналы](https://core.telegram.org/api/channel.md#channels)"}, "files": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Экспортировать ли файлы"}, "file_max_size": {"type": "string", "pattern": "^-?\\d+$", "description": "Максимальный размер файлов для экспорта", "x-tl-type": "long", "x-tl-flag": "flags.5?long"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `contacts` | `true` | Нет | Экспортировать ли контакты |\n| `message_users` | `true` | Нет | Экспортировать ли сообщения в приватные чаты |\n| `message_chats` | `true` | Нет | Экспортировать ли сообщения в [основные группы](https://core.telegram.org/api/channel.md#basic-groups) |\n| `message_megagroups` | `true` | Нет | Экспортировать ли сообщения в [супергруппы](https://core.telegram.org/api/channel.md#supergroups) |\n| `message_channels` | `true` | Нет | Экспортировать ли сообщения в [каналы](https://core.telegram.org/api/channel.md#channels) |\n| `files` | `true` | Нет | Экспортировать ли файлы |\n| `file_max_size` | `long` | Нет | Максимальный размер файлов для экспорта |"}, "x-telegram-rpc-errors": ["TAKEOUT_INIT_DELAY_%d"], "x-browser-schema-id": "2398350000"}}, "/catalog/account.finishTakeoutSession": {"post": {"operationId": "account.finishTakeoutSession", "tags": ["Аккаунт"], "summary": "Завершить сеанс на вынос, см. здесь » для получения дополнительной информации.", "description": "Завершить [сеанс с выносом, подробнее см. здесь » ](https://core.telegram.org/api/takeout.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "account.finishTakeoutSession", "x-tl-id": "489050862", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `TAKEOUT_REQUIRED` — Сначала необходимо инициализировать сеанс [takeout](https://core.telegram.org/api/takeout.md), [подробнее см. здесь » ](https://core.telegram.org/api/takeout.md)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.finishTakeoutSession"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"success": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Данные успешно экспортированы"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `success` | `true` | Нет | Данные успешно экспортированы |"}, "x-telegram-rpc-errors": ["TAKEOUT_REQUIRED"], "x-browser-schema-id": "489050862"}}, "/catalog/account.confirmPasswordEmail": {"post": {"operationId": "account.confirmPasswordEmail", "tags": ["Аккаунт"], "summary": "Подтвердите адрес электронной почты, который будет использоваться в качестве метода восстановления 2FA.", "description": "Подтвердите адрес электронной почты, который будет использоваться в качестве [метода восстановления 2FA](https://core.telegram.org/api/srp.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.confirmPasswordEmail", "x-tl-id": "2413762848", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CODE_INVALID` — Код недействителен.\n- 400 · `EMAIL_HASH_EXPIRED` — Срок действия хэша электронной почты истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.confirmPasswordEmail"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"code": {"type": "string", "x-tl-type": "string", "description": "Код телефона, который был получен после [установки резервного адреса электронной почты](https://core.telegram.org/api/srp.md#email-verification)"}}, "additionalProperties": false, "required": ["code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `code` | `string` | Да | Код телефона, который был получен после [установки резервного адреса электронной почты](https://core.telegram.org/api/srp.md#email-verification) |"}, "x-telegram-rpc-errors": ["CODE_INVALID", "EMAIL_HASH_EXPIRED"], "x-browser-schema-id": "2413762848"}}, "/catalog/account.resendPasswordEmail": {"post": {"operationId": "account.resendPasswordEmail", "tags": ["Аккаунт"], "summary": "Повторно отправьте код, чтобы подтвердить адрес электронной почты, который будет использоваться в качестве метода восстановления 2FA.", "description": "Отправьте повторно код для подтверждения электронной почты, который будет использоваться в качестве [метода восстановления 2FA](https://core.telegram.org/api/srp.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.resendPasswordEmail", "x-tl-id": "2055154197", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMAIL_HASH_EXPIRED` — Срок действия хэша электронной почты истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resendPasswordEmail"}, "x-telegram-rpc-errors": ["EMAIL_HASH_EXPIRED"], "x-browser-schema-id": "2055154197"}}, "/catalog/account.cancelPasswordEmail": {"post": {"operationId": "account.cancelPasswordEmail", "tags": ["Аккаунт"], "summary": "Отмените код, который был отправлен для подтверждения адреса электронной почты, который будет использоваться в качестве метода восстановления 2FA.", "description": "Отмените код, который был отправлен для подтверждения адреса электронной почты, который будет использоваться в качестве [метода восстановления 2FA](https://core.telegram.org/api/srp.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.cancelPasswordEmail", "x-tl-id": "3251361206", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMAIL_HASH_EXPIRED` — Срок действия хэша электронной почты истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.cancelPasswordEmail"}, "x-telegram-rpc-errors": ["EMAIL_HASH_EXPIRED"], "x-browser-schema-id": "3251361206"}}, "/catalog/account.getContactSignUpNotification": {"post": {"operationId": "account.getContactSignUpNotification", "tags": ["Аккаунт"], "summary": "Будет ли пользователь получать уведомления при регистрации контактов", "description": "Будет ли пользователь получать уведомления при регистрации контактов", "x-tl-method": "account.getContactSignUpNotification", "x-tl-id": "2668087080", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getContactSignUpNotification"}, "x-browser-schema-id": "2668087080"}}, "/catalog/account.setContactSignUpNotification": {"post": {"operationId": "account.setContactSignUpNotification", "tags": ["Аккаунт"], "summary": "Переключить уведомления о регистрации контактов", "description": "Переключить уведомления о регистрации контактов", "x-tl-method": "account.setContactSignUpNotification", "x-tl-id": "3488890721", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setContactSignUpNotification"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "x-tl-type": "Bool", "description": "Отключить ли уведомления о регистрации контактов"}}, "additionalProperties": false, "required": ["silent"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `Bool` | Да | Отключить ли уведомления о регистрации контактов |"}, "x-browser-schema-id": "3488890721"}}, "/catalog/account.getNotifyExceptions": {"post": {"operationId": "account.getNotifyExceptions", "tags": ["Аккаунт"], "summary": "Возвращает список чатов с настройками уведомлений не по умолчанию.", "description": "Возвращает список чатов с настройками уведомлений не по умолчанию.", "x-tl-method": "account.getNotifyExceptions", "x-tl-id": "1398240377", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getNotifyExceptions"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"compare_sound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлено, будут возвращены чаты со звуком, отличным от стандартного."}, "compare_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Если установлено, будут возвращены чаты с нестандартными настройками уведомлений для историй."}, "peer": {"type": "object", "x-tl-type": "InputNotifyPeer", "oneOf": [{"$ref": "#/components/schemas/inputNotifyPeer"}, {"$ref": "#/components/schemas/inputNotifyUsers"}, {"$ref": "#/components/schemas/inputNotifyChats"}, {"$ref": "#/components/schemas/inputNotifyBroadcasts"}, {"$ref": "#/components/schemas/inputNotifyForumTopic"}, {"$ref": "#/components/schemas/inputNotifyCommunity"}], "description": "Если указано, будут возвращены только чаты указанной категории.", "x-tl-flag": "flags.0?InputNotifyPeer"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `compare_sound` | `true` | Нет | Если установлено, будут возвращены чаты со звуком, отличным от стандартного. |\n| `compare_stories` | `true` | Нет | Если установлено, будут возвращены чаты с нестандартными настройками уведомлений для историй. |\n| `peer` | `InputNotifyPeer` | Нет | Если указано, будут возвращены только чаты указанной категории. |"}, "x-browser-schema-id": "1398240377"}}, "/catalog/account.getWallPaper": {"post": {"operationId": "account.getWallPaper", "tags": ["Аккаунт"], "summary": "Получить информацию об определенных обоях", "description": "Получите информацию об определенных [обоях](https://core.telegram.org/api/wallpapers.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.getWallPaper", "x-tl-id": "4237155306", "x-tl-result": "WallPaper", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `WallPaper`.\n\n[Обои](https://core.telegram.org/type/WallPaper.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WallPaper", "oneOf": [{"$ref": "#/components/schemas/wallPaper"}, {"$ref": "#/components/schemas/wallPaperNoFile"}], "description": "Тип TL: WallPaper."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `WALLPAPER_INVALID` — Указанные обои недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getWallPaper"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"wallpaper": {"type": "object", "x-tl-type": "InputWallPaper", "oneOf": [{"$ref": "#/components/schemas/inputWallPaper"}, {"$ref": "#/components/schemas/inputWallPaperSlug"}, {"$ref": "#/components/schemas/inputWallPaperNoFile"}], "description": "[обои](https://core.telegram.org/api/wallpapers.md), чтобы получить информацию о"}}, "additionalProperties": false, "required": ["wallpaper"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `wallpaper` | `InputWallPaper` | Да | [обои](https://core.telegram.org/api/wallpapers.md), чтобы получить информацию о |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "4237155306"}}, "/catalog/account.uploadWallPaper": {"post": {"operationId": "account.uploadWallPaper", "tags": ["Аккаунт"], "summary": "Создайте и загрузите новые обои", "description": "Создайте и загрузите новые [обои](https://core.telegram.org/api/wallpapers.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.uploadWallPaper", "x-tl-id": "3818557187", "x-tl-result": "WallPaper", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `WallPaper`.\n\n[Обои](https://core.telegram.org/type/WallPaper.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WallPaper", "oneOf": [{"$ref": "#/components/schemas/wallPaper"}, {"$ref": "#/components/schemas/wallPaperNoFile"}], "description": "Тип TL: WallPaper."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `WALLPAPER_FILE_INVALID` — Указанный файл обоев недействителен.\n- 400 · `WALLPAPER_MIME_INVALID` — Указанный тип обоев MIME недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.uploadWallPaper"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_chat": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг при загрузке обоев, которые будут переданы в [messages.setChatWallPaper](https://core.telegram.org/method/messages.setChatWallPaper.md)."}, "file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Обои JPG/PNG"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME тип загруженных обоев"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "Настройки обоев"}}, "additionalProperties": false, "required": ["file", "mime_type", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_chat` | `true` | Нет | Установите этот флаг при загрузке обоев, которые будут переданы в [messages.setChatWallPaper](https://core.telegram.org/method/messages.setChatWallPaper.md). |\n| `file` | `InputFile` | Да | Обои JPG/PNG |\n| `mime_type` | `string` | Да | MIME тип загруженных обоев |\n| `settings` | `WallPaperSettings` | Да | Настройки обоев |"}, "x-telegram-rpc-errors": ["WALLPAPER_FILE_INVALID", "WALLPAPER_MIME_INVALID"], "x-browser-schema-id": "3818557187"}}, "/catalog/account.saveWallPaper": {"post": {"operationId": "account.saveWallPaper", "tags": ["Аккаунт"], "summary": "Установить/удалить обои", "description": "Установить/удалить [обои](https://core.telegram.org/api/wallpapers.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.saveWallPaper", "x-tl-id": "1817860919", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `WALLPAPER_INVALID` — Указанные обои недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.saveWallPaper"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"wallpaper": {"type": "object", "x-tl-type": "InputWallPaper", "oneOf": [{"$ref": "#/components/schemas/inputWallPaper"}, {"$ref": "#/components/schemas/inputWallPaperSlug"}, {"$ref": "#/components/schemas/inputWallPaperNoFile"}], "description": "[Обои](https://core.telegram.org/api/wallpapers.md) для установки или удаления"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Удалить обои?"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "Настройки обоев"}}, "additionalProperties": false, "required": ["wallpaper", "unsave", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `wallpaper` | `InputWallPaper` | Да | [Обои](https://core.telegram.org/api/wallpapers.md) для установки или удаления |\n| `unsave` | `Bool` | Да | Удалить обои? |\n| `settings` | `WallPaperSettings` | Да | Настройки обоев |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "1817860919"}}, "/catalog/account.installWallPaper": {"post": {"operationId": "account.installWallPaper", "tags": ["Аккаунт"], "summary": "Установить обои", "description": "Установить [обои](https://core.telegram.org/api/wallpapers.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.installWallPaper", "x-tl-id": "4276967273", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `WALLPAPER_INVALID` — Указанные обои недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.installWallPaper"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"wallpaper": {"type": "object", "x-tl-type": "InputWallPaper", "oneOf": [{"$ref": "#/components/schemas/inputWallPaper"}, {"$ref": "#/components/schemas/inputWallPaperSlug"}, {"$ref": "#/components/schemas/inputWallPaperNoFile"}], "description": "[Обои](https://core.telegram.org/api/wallpapers.md) для установки"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "[Обои](https://core.telegram.org/api/wallpapers.md) настройки"}}, "additionalProperties": false, "required": ["wallpaper", "settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `wallpaper` | `InputWallPaper` | Да | [Обои](https://core.telegram.org/api/wallpapers.md) для установки |\n| `settings` | `WallPaperSettings` | Да | [Обои](https://core.telegram.org/api/wallpapers.md) настройки |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "4276967273"}}, "/catalog/account.resetWallPapers": {"post": {"operationId": "account.resetWallPapers", "tags": ["Аккаунт"], "summary": "Удалите все установленные обои, вернувшись к набору обоев по умолчанию.", "description": "Удалите все установленные [обои](https://core.telegram.org/api/wallpapers.md)], вернувшись к набору обоев по умолчанию.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.resetWallPapers", "x-tl-id": "3141244932", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resetWallPapers"}, "x-browser-schema-id": "3141244932"}}, "/catalog/account.getAutoDownloadSettings": {"post": {"operationId": "account.getAutoDownloadSettings", "tags": ["Аккаунт"], "summary": "Получить настройки автозагрузки мультимедиа", "description": "Получить настройки автозагрузки мультимедиа", "x-tl-method": "account.getAutoDownloadSettings", "x-tl-id": "1457130303", "x-tl-result": "account.AutoDownloadSettings", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.AutoDownloadSettings`.\n\n[account.AutoDownloadSettings](https://core.telegram.org/type/account.AutoDownloadSettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.AutoDownloadSettings", "oneOf": [{"$ref": "#/components/schemas/account.autoDownloadSettings"}], "description": "Тип TL: account.AutoDownloadSettings."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getAutoDownloadSettings"}, "x-browser-schema-id": "1457130303"}}, "/catalog/account.saveAutoDownloadSettings": {"post": {"operationId": "account.saveAutoDownloadSettings", "tags": ["Аккаунт"], "summary": "Изменение настроек автозагрузки мультимедиа", "description": "Изменение настроек автозагрузки мультимедиа", "x-tl-method": "account.saveAutoDownloadSettings", "x-tl-id": "1995661875", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.saveAutoDownloadSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"low": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Сохранять ли медиафайлы в режиме низкого использования данных"}, "high": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Сохранять ли мультимедиа в предустановке высокого использования данных"}, "settings": {"type": "object", "x-tl-type": "AutoDownloadSettings", "oneOf": [{"$ref": "#/components/schemas/autoDownloadSettings"}], "description": "Настройки автозагрузки мультимедиа"}}, "additionalProperties": false, "required": ["settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `low` | `true` | Нет | Сохранять ли медиафайлы в режиме низкого использования данных |\n| `high` | `true` | Нет | Сохранять ли мультимедиа в предустановке высокого использования данных |\n| `settings` | `AutoDownloadSettings` | Да | Настройки автозагрузки мультимедиа |"}, "x-browser-schema-id": "1995661875"}}, "/catalog/account.uploadTheme": {"post": {"operationId": "account.uploadTheme", "tags": ["Аккаунт"], "summary": "Загрузить тему", "description": "Загрузить тему\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram themes](https://core.telegram.org/api/themes.md)", "x-tl-method": "account.uploadTheme", "x-tl-id": "473805619", "x-tl-result": "Document", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram themes", "https://core.telegram.org/api/themes.md"]], "responses": {"200": {"description": "Результат MTProto · `Document`.\n\n[Документ](https://core.telegram.org/type/Document.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Document", "oneOf": [{"$ref": "#/components/schemas/documentEmpty"}, {"$ref": "#/components/schemas/document"}], "description": "Тип TL: Document."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `THEME_FILE_INVALID` — Предоставлен неверный файл темы.\n- 400 · `THEME_MIME_INVALID` — Недопустимый тип MIME темы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.uploadTheme"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "[Ранее загруженный файл темы](https://core.telegram.org/api/themes.md#uploading-theme-files) с цветами, специфичными для платформы, для компонентов пользовательского интерфейса, можно оставить неустановленным при создании тем, которые изменяют только фоновые рисунки или акцентные цвета."}, "thumb": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Миниатюра", "x-tl-flag": "flags.0?InputFile"}, "file_name": {"type": "string", "x-tl-type": "string", "description": "Имя файла"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "Тип MIME, должен быть `application/x-tgtheme-{format}`, где `format` зависит от клиента"}}, "additionalProperties": false, "required": ["file", "file_name", "mime_type"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file` | `InputFile` | Да | [Ранее загруженный файл темы](https://core.telegram.org/api/themes.md#uploading-theme-files) с цветами, специфичными для платформы, для компонентов пользовательского интерфейса, можно оставить неустановленным при создании тем, которые изменяют только фоновые рисунки или акцентные цвета. |\n| `thumb` | `InputFile` | Нет | Миниатюра |\n| `file_name` | `string` | Да | Имя файла |\n| `mime_type` | `string` | Да | Тип MIME, должен быть `application/x-tgtheme-{format}`, где `format` зависит от клиента |"}, "x-telegram-rpc-errors": ["THEME_FILE_INVALID", "THEME_MIME_INVALID"], "x-browser-schema-id": "473805619"}}, "/catalog/account.createTheme": {"post": {"operationId": "account.createTheme", "tags": ["Аккаунт"], "summary": "Создать тему", "description": "Создать тему\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "account.createTheme", "x-tl-id": "1697530880", "x-tl-result": "Theme", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Theme`.\n\n[Тема](https://core.telegram.org/type/Theme.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Theme", "oneOf": [{"$ref": "#/components/schemas/theme"}], "description": "Тип TL: Theme."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `THEME_MIME_INVALID` — Недопустимый тип MIME темы.\n- 400 · `THEME_TITLE_INVALID` — Указанное название темы недействительно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.createTheme"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Уникальный идентификатор темы, используемый для создания [глубинных ссылок темы](https://core.telegram.org/api/links.md#theme-links), может быть пустым для автоматической генерации случайного идентификатора."}, "title": {"type": "string", "x-tl-type": "string", "description": "Название темы"}, "document": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Файл темы", "x-tl-flag": "flags.2?InputDocument"}, "settings": {"type": "array", "items": {"type": "object", "x-tl-type": "InputThemeSettings", "oneOf": [{"$ref": "#/components/schemas/inputThemeSettings"}], "description": "Тип TL: InputThemeSettings."}, "x-tl-type": "Vector<InputThemeSettings>", "x-tl-flag": "flags.3?Vector<InputThemeSettings>", "description": "В настройках темы можно указать несколько значений для различных базовых тем (дневной/ночной режим и т. д.)."}}, "additionalProperties": false, "required": ["slug", "title"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Уникальный идентификатор темы, используемый для создания [глубинных ссылок темы](https://core.telegram.org/api/links.md#theme-links), может быть пустым для автоматической генерации случайного идентификатора. |\n| `title` | `string` | Да | Название темы |\n| `document` | `InputDocument` | Нет | Файл темы |\n| `settings` | `Vector<InputThemeSettings>` | Нет | В настройках темы можно указать несколько значений для различных базовых тем (дневной/ночной режим и т. д.). |"}, "x-telegram-rpc-errors": ["THEME_MIME_INVALID", "THEME_TITLE_INVALID"], "x-browser-schema-id": "1697530880"}}, "/catalog/account.updateTheme": {"post": {"operationId": "account.updateTheme", "tags": ["Аккаунт"], "summary": "Обновить тему", "description": "Обновить тему\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.updateTheme", "x-tl-id": "737414348", "x-tl-result": "Theme", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Theme`.\n\n[Тема](https://core.telegram.org/type/Theme.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Theme", "oneOf": [{"$ref": "#/components/schemas/theme"}], "description": "Тип TL: Theme."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `THEME_INVALID` — Указана неверная тема."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateTheme"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"format": {"type": "string", "x-tl-type": "string", "description": "Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом."}, "theme": {"type": "object", "x-tl-type": "InputTheme", "oneOf": [{"$ref": "#/components/schemas/inputTheme"}, {"$ref": "#/components/schemas/inputThemeSlug"}], "description": "Тема для обновления"}, "slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Уникальный идентификатор темы"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Название темы"}, "document": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Файл темы", "x-tl-flag": "flags.2?InputDocument"}, "settings": {"type": "array", "items": {"type": "object", "x-tl-type": "InputThemeSettings", "oneOf": [{"$ref": "#/components/schemas/inputThemeSettings"}], "description": "Тип TL: InputThemeSettings."}, "x-tl-type": "Vector<InputThemeSettings>", "x-tl-flag": "flags.3?Vector<InputThemeSettings>", "description": "Настройки темы"}}, "additionalProperties": false, "required": ["format", "theme"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `format` | `string` | Да | Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом. |\n| `theme` | `InputTheme` | Да | Тема для обновления |\n| `slug` | `string` | Нет | Уникальный идентификатор темы |\n| `title` | `string` | Нет | Название темы |\n| `document` | `InputDocument` | Нет | Файл темы |\n| `settings` | `Vector<InputThemeSettings>` | Нет | Настройки темы |"}, "x-telegram-rpc-errors": ["THEME_INVALID"], "x-browser-schema-id": "737414348"}}, "/catalog/account.saveTheme": {"post": {"operationId": "account.saveTheme", "tags": ["Аккаунт"], "summary": "Сохранить тему", "description": "Сохранить тему\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.saveTheme", "x-tl-id": "4065792108", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `THEME_INVALID` — Указана неверная тема."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.saveTheme"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"theme": {"type": "object", "x-tl-type": "InputTheme", "oneOf": [{"$ref": "#/components/schemas/inputTheme"}, {"$ref": "#/components/schemas/inputThemeSlug"}], "description": "Тема для сохранения"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Удалить сохранение"}}, "additionalProperties": false, "required": ["theme", "unsave"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `theme` | `InputTheme` | Да | Тема для сохранения |\n| `unsave` | `Bool` | Да | Удалить сохранение |"}, "x-telegram-rpc-errors": ["THEME_INVALID"], "x-browser-schema-id": "4065792108"}}, "/catalog/account.installTheme": {"post": {"operationId": "account.installTheme", "tags": ["Аккаунт"], "summary": "Установить тему", "description": "Установить тему", "x-tl-method": "account.installTheme", "x-tl-id": "3341269819", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.installTheme"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Устанавливать ли темную версию"}, "theme": {"type": "object", "x-tl-type": "InputTheme", "oneOf": [{"$ref": "#/components/schemas/inputTheme"}, {"$ref": "#/components/schemas/inputThemeSlug"}], "description": "Тема для установки", "x-tl-flag": "flags.1?InputTheme"}, "format": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом."}, "base_theme": {"type": "object", "x-tl-type": "BaseTheme", "oneOf": [{"$ref": "#/components/schemas/baseThemeClassic"}, {"$ref": "#/components/schemas/baseThemeDay"}, {"$ref": "#/components/schemas/baseThemeNight"}, {"$ref": "#/components/schemas/baseThemeTinted"}, {"$ref": "#/components/schemas/baseThemeArctic"}], "description": "Указывает базовую тему, предоставляемую всеми клиентами.", "x-tl-flag": "flags.3?BaseTheme"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dark` | `true` | Нет | Устанавливать ли темную версию |\n| `theme` | `InputTheme` | Нет | Тема для установки |\n| `format` | `string` | Нет | Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом. |\n| `base_theme` | `BaseTheme` | Нет | Указывает базовую тему, предоставляемую всеми клиентами. |"}, "x-browser-schema-id": "3341269819"}}, "/catalog/account.getTheme": {"post": {"operationId": "account.getTheme", "tags": ["Аккаунт"], "summary": "Получить информацию о теме", "description": "Получить информацию о теме\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.getTheme", "x-tl-id": "978872812", "x-tl-result": "Theme", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Theme`.\n\n[Тема](https://core.telegram.org/type/Theme.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Theme", "oneOf": [{"$ref": "#/components/schemas/theme"}], "description": "Тип TL: Theme."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `THEME_FORMAT_INVALID` — Указан неверный формат темы.\n- 400 · `THEME_INVALID` — Указана неверная тема.\n- 400 · `THEME_SLUG_INVALID` — Указанный ярлык темы недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getTheme"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"format": {"type": "string", "x-tl-type": "string", "description": "Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом."}, "theme": {"type": "object", "x-tl-type": "InputTheme", "oneOf": [{"$ref": "#/components/schemas/inputTheme"}, {"$ref": "#/components/schemas/inputThemeSlug"}], "description": "Тема"}}, "additionalProperties": false, "required": ["format", "theme"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `format` | `string` | Да | Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом. |\n| `theme` | `InputTheme` | Да | Тема |"}, "x-telegram-rpc-errors": ["THEME_FORMAT_INVALID", "THEME_INVALID", "THEME_SLUG_INVALID"], "x-browser-schema-id": "978872812"}}, "/catalog/account.getThemes": {"post": {"operationId": "account.getThemes", "tags": ["Аккаунт"], "summary": "Получить установленные темы", "description": "Получить установленные темы\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "account.getThemes", "x-tl-id": "1913054296", "x-tl-result": "account.Themes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `account.Themes`.\n\n[account.Themes](https://core.telegram.org/type/account.Themes.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.Themes", "oneOf": [{"$ref": "#/components/schemas/account.themesNotModified"}, {"$ref": "#/components/schemas/account.themes"}], "description": "Тип TL: account.Themes."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getThemes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"format": {"type": "string", "x-tl-type": "string", "description": "Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["format", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `format` | `string` | Да | Формат темы — строка, которая идентифицирует механизмы тем, поддерживаемые клиентом. |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1913054296"}}, "/catalog/account.setContentSettings": {"post": {"operationId": "account.setContentSettings", "tags": ["Аккаунт"], "summary": "Установите настройки конфиденциального контента (для просмотра или скрытия контента NSFW)", "description": "Установите настройки конфиденциального контента (для просмотра или скрытия контента NSFW)\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.setContentSettings", "x-tl-id": "3044323691", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `SENSITIVE_CHANGE_FORBIDDEN` — Вы не можете изменить настройки конфиденциального контента."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setContentSettings"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"sensitive_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить контент NSFW"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sensitive_enabled` | `true` | Нет | Включить контент NSFW |"}, "x-telegram-rpc-errors": ["SENSITIVE_CHANGE_FORBIDDEN"], "x-browser-schema-id": "3044323691"}}, "/catalog/account.getContentSettings": {"post": {"operationId": "account.getContentSettings", "tags": ["Аккаунт"], "summary": "Получите настройки конфиденциального контента", "description": "Получите настройки конфиденциального контента", "x-tl-method": "account.getContentSettings", "x-tl-id": "2342210990", "x-tl-result": "account.ContentSettings", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.ContentSettings`.\n\n[account.ContentSettings](https://core.telegram.org/type/account.ContentSettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.ContentSettings", "oneOf": [{"$ref": "#/components/schemas/account.contentSettings"}], "description": "Тип TL: account.ContentSettings."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getContentSettings"}, "x-browser-schema-id": "2342210990"}}, "/catalog/account.getMultiWallPapers": {"post": {"operationId": "account.getMultiWallPapers", "tags": ["Аккаунт"], "summary": "Получить информацию о нескольких обоях", "description": "Получить информацию о нескольких [обоях](https://core.telegram.org/api/wallpapers.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.getMultiWallPapers", "x-tl-id": "1705865692", "x-tl-result": "Vector<WallPaper>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<WallPaper>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Обои](https://core.telegram.org/type/WallPaper.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "WallPaper", "oneOf": [{"$ref": "#/components/schemas/wallPaper"}, {"$ref": "#/components/schemas/wallPaperNoFile"}], "description": "Тип TL: WallPaper."}, "x-tl-type": "Vector<WallPaper>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `WALLPAPER_INVALID` — Указанные обои недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getMultiWallPapers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"wallpapers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputWallPaper", "oneOf": [{"$ref": "#/components/schemas/inputWallPaper"}, {"$ref": "#/components/schemas/inputWallPaperSlug"}, {"$ref": "#/components/schemas/inputWallPaperNoFile"}], "description": "Тип TL: InputWallPaper."}, "x-tl-type": "Vector<InputWallPaper>", "description": "[Обои](https://core.telegram.org/api/wallpapers.md) для получения информации о"}}, "additionalProperties": false, "required": ["wallpapers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `wallpapers` | `Vector<InputWallPaper>` | Да | [Обои](https://core.telegram.org/api/wallpapers.md) для получения информации о |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "1705865692"}}, "/catalog/account.getGlobalPrivacySettings": {"post": {"operationId": "account.getGlobalPrivacySettings", "tags": ["Аккаунт"], "summary": "Получить глобальные настройки конфиденциальности", "description": "Получить глобальные настройки конфиденциальности", "x-tl-method": "account.getGlobalPrivacySettings", "x-tl-id": "3945483510", "x-tl-result": "GlobalPrivacySettings", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `GlobalPrivacySettings`.\n\n[Глобальные настройки конфиденциальности](https://core.telegram.org/type/GlobalPrivacySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "GlobalPrivacySettings", "oneOf": [{"$ref": "#/components/schemas/globalPrivacySettings"}], "description": "Тип TL: GlobalPrivacySettings."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getGlobalPrivacySettings"}, "x-browser-schema-id": "3945483510"}}, "/catalog/account.setGlobalPrivacySettings": {"post": {"operationId": "account.setGlobalPrivacySettings", "tags": ["Аккаунт"], "summary": "Установите глобальные настройки конфиденциальности", "description": "Установите глобальные настройки конфиденциальности\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.setGlobalPrivacySettings", "x-tl-id": "517647042", "x-tl-result": "GlobalPrivacySettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `GlobalPrivacySettings`.\n\n[Глобальные настройки конфиденциальности](https://core.telegram.org/type/GlobalPrivacySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "GlobalPrivacySettings", "oneOf": [{"$ref": "#/components/schemas/globalPrivacySettings"}], "description": "Тип TL: GlobalPrivacySettings."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AUTOARCHIVE_NOT_AVAILABLE` — Настройка автоархивации в настоящее время недоступна: проверьте значение поля [autoarchive_setting_available в конфигурации клиента »](https://core.telegram.org/api/config.md#client-configuration) перед вызовом этого метода.\n- 403 · `BOT_ACCESS_FORBIDDEN` — Указанный метод *может* использоваться через [бизнес-соединение](https://core.telegram.org/api/bots/connected-business-bots.md) для некоторых операций, но указанный запрос предпринял попытку выполнения операции, которая не разрешена через бизнес-соединение.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setGlobalPrivacySettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"settings": {"type": "object", "x-tl-type": "GlobalPrivacySettings", "oneOf": [{"$ref": "#/components/schemas/globalPrivacySettings"}], "description": "Глобальные настройки конфиденциальности"}}, "additionalProperties": false, "required": ["settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `settings` | `GlobalPrivacySettings` | Да | Глобальные настройки конфиденциальности |"}, "x-telegram-rpc-errors": ["AUTOARCHIVE_NOT_AVAILABLE", "BOT_ACCESS_FORBIDDEN", "BUSINESS_CONNECTION_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "517647042"}}, "/catalog/account.reportProfilePhoto": {"post": {"operationId": "account.reportProfilePhoto", "tags": ["Аккаунт"], "summary": "Пожаловаться на фотографию профиля диалога", "description": "Пожаловаться на фотографию профиля диалога\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.reportProfilePhoto", "x-tl-id": "4203529973", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.reportProfilePhoto"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Диалог"}, "photo_id": {"type": "object", "x-tl-type": "InputPhoto", "oneOf": [{"$ref": "#/components/schemas/inputPhotoEmpty"}, {"$ref": "#/components/schemas/inputPhoto"}], "description": "Идентификатор фотографии в диалоговом окне"}, "reason": {"type": "object", "x-tl-type": "ReportReason", "oneOf": [{"$ref": "#/components/schemas/inputReportReasonSpam"}, {"$ref": "#/components/schemas/inputReportReasonViolence"}, {"$ref": "#/components/schemas/inputReportReasonPornography"}, {"$ref": "#/components/schemas/inputReportReasonChildAbuse"}, {"$ref": "#/components/schemas/inputReportReasonOther"}, {"$ref": "#/components/schemas/inputReportReasonCopyright"}, {"$ref": "#/components/schemas/inputReportReasonGeoIrrelevant"}, {"$ref": "#/components/schemas/inputReportReasonFake"}, {"$ref": "#/components/schemas/inputReportReasonIllegalDrugs"}, {"$ref": "#/components/schemas/inputReportReasonPersonalDetails"}], "description": "Сообщить о причине"}, "message": {"type": "string", "x-tl-type": "string", "description": "Комментарий для модерации отчета"}}, "additionalProperties": false, "required": ["peer", "photo_id", "reason", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Диалог |\n| `photo_id` | `InputPhoto` | Да | Идентификатор фотографии в диалоговом окне |\n| `reason` | `ReportReason` | Да | Сообщить о причине |\n| `message` | `string` | Да | Комментарий для модерации отчета |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "4203529973"}}, "/catalog/account.resetPassword": {"post": {"operationId": "account.resetPassword", "tags": ["Аккаунт"], "summary": "Инициировать сброс пароля 2FA: можно использовать только в том случае, если пользователь уже вошел в систему, дополнительную информацию см. здесь »", "description": "Инициировать сброс пароля 2FA: можно использовать только в том случае, если пользователь уже вошел в систему, [подробнее см. здесь »](https://core.telegram.org/api/srp.md#password-reset)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.resetPassword", "x-tl-id": "2466827803", "x-tl-result": "account.ResetPasswordResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `account.ResetPasswordResult`.\n\n[account.ResetPasswordResult](https://core.telegram.org/type/account.ResetPasswordResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.ResetPasswordResult", "oneOf": [{"$ref": "#/components/schemas/account.resetPasswordFailedWait"}, {"$ref": "#/components/schemas/account.resetPasswordRequestedWait"}, {"$ref": "#/components/schemas/account.resetPasswordOk"}], "description": "Тип TL: account.ResetPasswordResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PASSWORD_EMPTY` — Указанный пароль пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resetPassword"}, "x-telegram-rpc-errors": ["PASSWORD_EMPTY"], "x-browser-schema-id": "2466827803"}}, "/catalog/account.declinePasswordReset": {"post": {"operationId": "account.declinePasswordReset", "tags": ["Аккаунт"], "summary": "Отменить ожидающий сброс пароля 2FA. Дополнительную информацию см. здесь »", "description": "Отменить ожидающий сброс пароля 2FA, [подробнее см. здесь »](https://core.telegram.org/api/srp.md#password-reset)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.declinePasswordReset", "x-tl-id": "1284770294", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `RESET_REQUEST_MISSING` — Сброс пароля не производится."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.declinePasswordReset"}, "x-telegram-rpc-errors": ["RESET_REQUEST_MISSING"], "x-browser-schema-id": "1284770294"}}, "/catalog/account.getChatThemes": {"post": {"operationId": "account.getChatThemes", "tags": ["Аккаунт"], "summary": "Получите все доступные темы чата».", "description": "Получить все доступные [темы чата »](https://core.telegram.org/api/themes.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram themes](https://core.telegram.org/api/themes.md)", "x-tl-method": "account.getChatThemes", "x-tl-id": "3594051209", "x-tl-result": "account.Themes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram themes", "https://core.telegram.org/api/themes.md"]], "responses": {"200": {"description": "Результат MTProto · `account.Themes`.\n\n[account.Themes](https://core.telegram.org/type/account.Themes.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.Themes", "oneOf": [{"$ref": "#/components/schemas/account.themesNotModified"}, {"$ref": "#/components/schemas/account.themes"}], "description": "Тип TL: account.Themes."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getChatThemes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3594051209"}}, "/catalog/account.setAuthorizationTTL": {"post": {"operationId": "account.setAuthorizationTTL", "tags": ["Аккаунт"], "summary": "Установить время жизни текущего сеанса", "description": "Установить время жизни текущего сеанса\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.setAuthorizationTTL", "x-tl-id": "3213466272", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — Вы не можете выйти из других сеансов, если с момента входа в текущий сеанс прошло менее 24 часов.\n- 400 · `TTL_DAYS_INVALID` — Указанное TTL неверно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setAuthorizationTTL"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"authorization_ttl_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни текущей сессии в днях"}}, "additionalProperties": false, "required": ["authorization_ttl_days"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `authorization_ttl_days` | `int` | Да | Время жизни текущей сессии в днях |"}, "x-telegram-rpc-errors": ["FRESH_RESET_AUTHORISATION_FORBIDDEN", "TTL_DAYS_INVALID"], "x-browser-schema-id": "3213466272"}}, "/catalog/account.changeAuthorizationSettings": {"post": {"operationId": "account.changeAuthorizationSettings", "tags": ["Аккаунт"], "summary": "Изменение настроек, связанных с сеансом.", "description": "Изменение настроек, связанных с сеансом.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "account.changeAuthorizationSettings", "x-tl-id": "1089766498", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `HASH_INVALID` — Указанный хэш недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.changeAuthorizationSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"confirmed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Если установлено, [подтверждает новый вход в систему »](https://core.telegram.org/api/auth.md#confirming-login)."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор сеанса из конструктора [authorization](https://core.telegram.org/constructor/authorization.md), который можно получить с помощью [account.getAuthorizations](https://core.telegram.org/method/account.getAuthorizations.md)]", "x-tl-type": "long"}, "encrypted_requests_disabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Включить или отключить получение зашифрованных чатов: если флаг не установлен, предыдущая настройка не изменяется."}, "call_requests_disabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool", "description": "Включить или отключить прием звонков: если флаг не установлен, предыдущая настройка не изменяется."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `confirmed` | `true` | Нет | Если установлено, [подтверждает новый вход в систему »](https://core.telegram.org/api/auth.md#confirming-login). |\n| `hash` | `long` | Да | Идентификатор сеанса из конструктора [authorization](https://core.telegram.org/constructor/authorization.md), который можно получить с помощью [account.getAuthorizations](https://core.telegram.org/method/account.getAuthorizations.md)] |\n| `encrypted_requests_disabled` | `Bool` | Нет | Включить или отключить получение зашифрованных чатов: если флаг не установлен, предыдущая настройка не изменяется. |\n| `call_requests_disabled` | `Bool` | Нет | Включить или отключить прием звонков: если флаг не установлен, предыдущая настройка не изменяется. |"}, "x-telegram-rpc-errors": ["HASH_INVALID"], "x-browser-schema-id": "1089766498"}}, "/catalog/account.getSavedRingtones": {"post": {"operationId": "account.getSavedRingtones", "tags": ["Аккаунт"], "summary": "Получить сохраненные звуки уведомлений", "description": "Получить сохраненные звуки уведомлений\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "account.getSavedRingtones", "x-tl-id": "3784319624", "x-tl-result": "account.SavedRingtones", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `account.SavedRingtones`.\n\n[account.SavedRingtones](https://core.telegram.org/type/account.SavedRingtones.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.SavedRingtones", "oneOf": [{"$ref": "#/components/schemas/account.savedRingtonesNotModified"}, {"$ref": "#/components/schemas/account.savedRingtones"}], "description": "Тип TL: account.SavedRingtones."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getSavedRingtones"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3784319624"}}, "/catalog/account.saveRingtone": {"post": {"operationId": "account.saveRingtone", "tags": ["Аккаунт"], "summary": "Сохраните или удалите сохраненный звук уведомления.", "description": "Сохраните или удалите сохраненный звук уведомления.\n\nЕсли звук уведомления уже имеет формат MP3, будет возвращено [account.savedRingtone](https://core.telegram.org/constructor/account.savedRingtone.md).\nВ противном случае он будет автоматически преобразован и будет возвращен [account.savedRingtoneConverted](https://core.telegram.org/constructor/account.savedRingtoneConverted.md), содержащий новый объект [document](https://core.telegram.org/constructor/document.md), который с этого момента следует использовать для ссылки на рингтон (т. е. при его удалении с помощью параметра `unsave` или при его загрузке).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.saveRingtone", "x-tl-id": "1038768899", "x-tl-result": "account.SavedRingtone", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.SavedRingtone`.\n\n[account.SavedRingtone](https://core.telegram.org/type/account.SavedRingtone.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.SavedRingtone", "oneOf": [{"$ref": "#/components/schemas/account.savedRingtone"}, {"$ref": "#/components/schemas/account.savedRingtoneConverted"}], "description": "Тип TL: account.SavedRingtone."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `RINGTONE_INVALID` — Указана неверная мелодия звонка."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.saveRingtone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Звук уведомления загружен с помощью [account.uploadRingtone](https://core.telegram.org/method/account.uploadRingtone.md)"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Добавить или удалить звук уведомления"}}, "additionalProperties": false, "required": ["id", "unsave"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | Да | Звук уведомления загружен с помощью [account.uploadRingtone](https://core.telegram.org/method/account.uploadRingtone.md) |\n| `unsave` | `Bool` | Да | Добавить или удалить звук уведомления |"}, "x-telegram-rpc-errors": ["RINGTONE_INVALID"], "x-browser-schema-id": "1038768899"}}, "/catalog/account.uploadRingtone": {"post": {"operationId": "account.uploadRingtone", "tags": ["Аккаунт"], "summary": "Загрузите звук уведомления, используйте account.saveRingtone, чтобы преобразовать его и добавить в список сохраненных звуков уведомлений.", "description": "Загрузите звук уведомления, используйте [account.saveRingtone](https://core.telegram.org/method/account.saveRingtone.md), чтобы преобразовать его и добавить в список сохраненных звуков уведомлений.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.uploadRingtone", "x-tl-id": "2199552930", "x-tl-result": "Document", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Document`.\n\n[Документ](https://core.telegram.org/type/Document.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Document", "oneOf": [{"$ref": "#/components/schemas/documentEmpty"}, {"$ref": "#/components/schemas/document"}], "description": "Тип TL: Document."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `RINGTONE_MIME_INVALID` — Недопустимый тип MIME для мелодии звонка."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.uploadRingtone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Звук уведомления"}, "file_name": {"type": "string", "x-tl-type": "string", "description": "Имя файла"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME тип файла"}}, "additionalProperties": false, "required": ["file", "file_name", "mime_type"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file` | `InputFile` | Да | Звук уведомления |\n| `file_name` | `string` | Да | Имя файла |\n| `mime_type` | `string` | Да | MIME тип файла |"}, "x-telegram-rpc-errors": ["RINGTONE_MIME_INVALID"], "x-browser-schema-id": "2199552930"}}, "/catalog/account.updateEmojiStatus": {"post": {"operationId": "account.updateEmojiStatus", "tags": ["Аккаунт"], "summary": "Установить статус смайлика", "description": "Установите [статус смайлика](https://core.telegram.org/api/emoji-status.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.updateEmojiStatus", "x-tl-id": "4224966251", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `COLLECTIBLE_INVALID` — Указанный предмет коллекционирования недействителен.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateEmojiStatus"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "oneOf": [{"$ref": "#/components/schemas/emojiStatusEmpty"}, {"$ref": "#/components/schemas/emojiStatus"}, {"$ref": "#/components/schemas/emojiStatusCollectible"}, {"$ref": "#/components/schemas/inputEmojiStatusCollectible"}], "description": "[Статус эмодзи](https://core.telegram.org/api/emoji-status.md) для установки"}}, "additionalProperties": false, "required": ["emoji_status"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `emoji_status` | `EmojiStatus` | Да | [Статус эмодзи](https://core.telegram.org/api/emoji-status.md) для установки |"}, "x-telegram-rpc-errors": ["COLLECTIBLE_INVALID", "DOCUMENT_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "4224966251"}}, "/catalog/account.getDefaultEmojiStatuses": {"post": {"operationId": "account.getDefaultEmojiStatuses", "tags": ["Аккаунт"], "summary": "Получите список предлагаемых по умолчанию статусов смайликов.", "description": "Получите список предлагаемых по умолчанию [статусов смайликов](https://core.telegram.org/api/emoji-status.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getDefaultEmojiStatuses", "x-tl-id": "3598005126", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `account.EmojiStatuses`.\n\n[account.EmojiStatuses](https://core.telegram.org/type/account.EmojiStatuses.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.EmojiStatuses", "oneOf": [{"$ref": "#/components/schemas/account.emojiStatusesNotModified"}, {"$ref": "#/components/schemas/account.emojiStatuses"}], "description": "Тип TL: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getDefaultEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3598005126"}}, "/catalog/account.getRecentEmojiStatuses": {"post": {"operationId": "account.getRecentEmojiStatuses", "tags": ["Аккаунт"], "summary": "Получайте недавно использованные статусы эмодзи", "description": "Получить недавно использованные [статусы смайликов](https://core.telegram.org/api/emoji-status.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getRecentEmojiStatuses", "x-tl-id": "257392901", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `account.EmojiStatuses`.\n\n[account.EmojiStatuses](https://core.telegram.org/type/account.EmojiStatuses.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.EmojiStatuses", "oneOf": [{"$ref": "#/components/schemas/account.emojiStatusesNotModified"}, {"$ref": "#/components/schemas/account.emojiStatuses"}], "description": "Тип TL: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getRecentEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "257392901"}}, "/catalog/account.clearRecentEmojiStatuses": {"post": {"operationId": "account.clearRecentEmojiStatuses", "tags": ["Аккаунт"], "summary": "Очищает список недавно использованных статусов эмодзи.", "description": "Очищает список недавно использованных [статусов смайликов](https://core.telegram.org/api/emoji-status.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.clearRecentEmojiStatuses", "x-tl-id": "404757166", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.clearRecentEmojiStatuses"}, "x-browser-schema-id": "404757166"}}, "/catalog/account.reorderUsernames": {"post": {"operationId": "account.reorderUsernames", "tags": ["Аккаунт"], "summary": "Измените порядок имен пользователей, связанных с пользователем, вошедшим в систему в данный момент.", "description": "Измените порядок имен пользователей, связанных с пользователем, вошедшим в систему в данный момент.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.reorderUsernames", "x-tl-id": "4015001259", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ORDER_INVALID` — Указанный порядок имен пользователей неверен.\n- 400 · `USERNAME_NOT_MODIFIED` — Имя пользователя не изменено."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.reorderUsernames"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"order": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Новый порядок активных имен пользователей. Все активные имена пользователей должны быть указаны."}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `order` | `Vector<string>` | Да | Новый порядок активных имен пользователей. Все активные имена пользователей должны быть указаны. |"}, "x-telegram-rpc-errors": ["ORDER_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "4015001259"}}, "/catalog/account.toggleUsername": {"post": {"operationId": "account.toggleUsername", "tags": ["Аккаунт"], "summary": "Активируйте или деактивируйте приобретенное имя пользователя fragment.com, связанное с пользователем, вошедшим в систему в данный момент.", "description": "Активируйте или деактивируйте купленное [fragment.com](https://fragment.com) имя пользователя, связанное с пользователем, вошедшим в систему в данный момент.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "account.toggleUsername", "x-tl-id": "1490465654", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USERNAMES_ACTIVE_TOO_MUCH` — Достигнуто максимальное количество активных имен пользователей.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_NOT_MODIFIED` — Имя пользователя не изменено."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.toggleUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя"}, "active": {"type": "boolean", "x-tl-type": "Bool", "description": "Активировать или деактивировать его"}}, "additionalProperties": false, "required": ["username", "active"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `username` | `string` | Да | Имя пользователя |\n| `active` | `Bool` | Да | Активировать или деактивировать его |"}, "x-telegram-rpc-errors": ["USERNAMES_ACTIVE_TOO_MUCH", "USERNAME_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "1490465654"}}, "/catalog/account.getDefaultProfilePhotoEmojis": {"post": {"operationId": "account.getDefaultProfilePhotoEmojis", "tags": ["Аккаунт"], "summary": "Получите набор предлагаемых специальных стикеров-эмодзи, которые можно использовать в качестве изображения профиля.", "description": "Получите набор предлагаемых [пользовательских стикеров-эмодзи](https://core.telegram.org/api/custom-emoji.md), которые можно [использовать в качестве изображения профиля](https://core.telegram.org/api/files.md#sticker-profile-pictures)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "account.getDefaultProfilePhotoEmojis", "x-tl-id": "3799319336", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiList`.\n\n[Список Эмодзи](https://core.telegram.org/type/EmojiList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiList", "oneOf": [{"$ref": "#/components/schemas/emojiListNotModified"}, {"$ref": "#/components/schemas/emojiList"}], "description": "Тип TL: EmojiList."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getDefaultProfilePhotoEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3799319336"}}, "/catalog/account.getDefaultGroupPhotoEmojis": {"post": {"operationId": "account.getDefaultGroupPhotoEmojis", "tags": ["Аккаунт"], "summary": "Получите набор предлагаемых специальных стикеров-эмодзи, которые можно использовать в качестве группового изображения.", "description": "Получите набор предлагаемых [пользовательских стикеров-эмодзи](https://core.telegram.org/api/custom-emoji.md), которые можно [использовать в качестве группового изображения](https://core.telegram.org/api/files.md#sticker-profile-pictures)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "account.getDefaultGroupPhotoEmojis", "x-tl-id": "2438488238", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiList`.\n\n[Список Эмодзи](https://core.telegram.org/type/EmojiList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiList", "oneOf": [{"$ref": "#/components/schemas/emojiListNotModified"}, {"$ref": "#/components/schemas/emojiList"}], "description": "Тип TL: EmojiList."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getDefaultGroupPhotoEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2438488238"}}, "/catalog/account.getAutoSaveSettings": {"post": {"operationId": "account.getAutoSaveSettings", "tags": ["Аккаунт"], "summary": "Получить настройки автосохранения", "description": "Получить настройки автосохранения", "x-tl-method": "account.getAutoSaveSettings", "x-tl-id": "2915810522", "x-tl-result": "account.AutoSaveSettings", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.AutoSaveSettings`.\n\n[account.AutoSaveSettings](https://core.telegram.org/type/account.AutoSaveSettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.AutoSaveSettings", "oneOf": [{"$ref": "#/components/schemas/account.autoSaveSettings"}], "description": "Тип TL: account.AutoSaveSettings."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getAutoSaveSettings"}, "x-browser-schema-id": "2915810522"}}, "/catalog/account.saveAutoSaveSettings": {"post": {"operationId": "account.saveAutoSaveSettings", "tags": ["Аккаунт"], "summary": "Изменить настройки автосохранения", "description": "Изменить настройки автосохранения\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "account.saveAutoSaveSettings", "x-tl-id": "3600515937", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.saveAutoSaveSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Должны ли новые настройки повлиять на все приватные чаты?"}, "chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Должны ли новые настройки повлиять на все группы"}, "broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Должны ли новые настройки повлиять на все [каналы](https://core.telegram.org/api/channel.md)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Должны ли новые настройки повлиять на конкретный узел", "x-tl-flag": "flags.3?InputPeer"}, "settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "oneOf": [{"$ref": "#/components/schemas/autoSaveSettings"}], "description": "Новые настройки автосохранения"}}, "additionalProperties": false, "required": ["settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `users` | `true` | Нет | Должны ли новые настройки повлиять на все приватные чаты? |\n| `chats` | `true` | Нет | Должны ли новые настройки повлиять на все группы |\n| `broadcasts` | `true` | Нет | Должны ли новые настройки повлиять на все [каналы](https://core.telegram.org/api/channel.md) |\n| `peer` | `InputPeer` | Нет | Должны ли новые настройки повлиять на конкретный узел |\n| `settings` | `AutoSaveSettings` | Да | Новые настройки автосохранения |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3600515937"}}, "/catalog/account.deleteAutoSaveExceptions": {"post": {"operationId": "account.deleteAutoSaveExceptions", "tags": ["Аккаунт"], "summary": "Очистите все настройки автосохранения для отдельных узлов.", "description": "Очистите все настройки автосохранения для отдельных узлов.", "x-tl-method": "account.deleteAutoSaveExceptions", "x-tl-id": "1404829728", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.deleteAutoSaveExceptions"}, "x-browser-schema-id": "1404829728"}}, "/catalog/account.invalidateSignInCodes": {"post": {"operationId": "account.invalidateSignInCodes", "tags": ["Аккаунт"], "summary": "Сделайте недействительными указанные коды входа. Дополнительную информацию см. здесь ».", "description": "Сделайте недействительными указанные коды входа. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/auth.md#invalidating-login-codes).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "account.invalidateSignInCodes", "x-tl-id": "3398101178", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.invalidateSignInCodes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"codes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Коды входа в систему, которые необходимо аннулировать."}}, "additionalProperties": false, "required": ["codes"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `codes` | `Vector<string>` | Да | Коды входа в систему, которые необходимо аннулировать. |"}, "x-browser-schema-id": "3398101178"}}, "/catalog/account.updateColor": {"post": {"operationId": "account.updateColor", "tags": ["Аккаунт"], "summary": "Обновите цвет акцента и фоновые пользовательские смайлы текущей учетной записи.", "description": "Обновите [цвет акцента и собственный смайлик фона »](https://core.telegram.org/api/colors.md) текущей учетной записи.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "account.updateColor", "x-tl-id": "1749885262", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `COLOR_INVALID` — Указанный идентификатор цветовой палитры недействителен.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateColor"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_profile": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Следует ли изменить шаблон эмодзи акцентного цвета на странице профиля; в противном случае цвет акцента и рисунок смайлов в сообщениях будут изменены."}, "color": {"type": "object", "x-tl-type": "PeerColor", "oneOf": [{"$ref": "#/components/schemas/peerColor"}, {"$ref": "#/components/schemas/peerColorCollectible"}, {"$ref": "#/components/schemas/inputPeerColorCollectible"}], "description": "[Идентификатор цветовой палитры акцента »](https://core.telegram.org/api/colors.md) для использования (не RGB24, см. [здесь »](https://core.telegram.org/api/colors.md) для получения дополнительной информации).", "x-tl-flag": "flags.2?PeerColor"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_profile` | `true` | Нет | Следует ли изменить шаблон эмодзи акцентного цвета на странице профиля; в противном случае цвет акцента и рисунок смайлов в сообщениях будут изменены. |\n| `color` | `PeerColor` | Нет | [Идентификатор цветовой палитры акцента »](https://core.telegram.org/api/colors.md) для использования (не RGB24, см. [здесь »](https://core.telegram.org/api/colors.md) для получения дополнительной информации). |"}, "x-telegram-rpc-errors": ["COLOR_INVALID", "DOCUMENT_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "1749885262"}}, "/catalog/account.getDefaultBackgroundEmojis": {"post": {"operationId": "account.getDefaultBackgroundEmojis", "tags": ["Аккаунт"], "summary": "Получите набор предлагаемых специальных стикеров-эмодзи, которые можно использовать в акцентном цветовом узоре.", "description": "Получите набор предлагаемых [пользовательских стикеров-эмодзи](https://core.telegram.org/api/custom-emoji.md), которые можно использовать в [акцентном цветовом узоре](https://core.telegram.org/api/colors.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "account.getDefaultBackgroundEmojis", "x-tl-id": "2785720782", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiList`.\n\n[Список Эмодзи](https://core.telegram.org/type/EmojiList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiList", "oneOf": [{"$ref": "#/components/schemas/emojiListNotModified"}, {"$ref": "#/components/schemas/emojiList"}], "description": "Тип TL: EmojiList."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getDefaultBackgroundEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2785720782"}}, "/catalog/account.getChannelDefaultEmojiStatuses": {"post": {"operationId": "account.getChannelDefaultEmojiStatuses", "tags": ["Аккаунт"], "summary": "Получите список предлагаемых по умолчанию статусов смайлов канала.", "description": "Получите список предлагаемых по умолчанию [статусов смайликов канала](https://core.telegram.org/api/emoji-status.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getChannelDefaultEmojiStatuses", "x-tl-id": "1999087573", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `account.EmojiStatuses`.\n\n[account.EmojiStatuses](https://core.telegram.org/type/account.EmojiStatuses.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.EmojiStatuses", "oneOf": [{"$ref": "#/components/schemas/account.emojiStatusesNotModified"}, {"$ref": "#/components/schemas/account.emojiStatuses"}], "description": "Тип TL: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getChannelDefaultEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1999087573"}}, "/catalog/account.getChannelRestrictedStatusEmojis": {"post": {"operationId": "account.getChannelRestrictedStatusEmojis", "tags": ["Аккаунт"], "summary": "Возвращает полный список пользовательских идентификаторов смайлов, «которые нельзя использовать в статусах смайлов канала».", "description": "Возвращает полный список [пользовательских идентификаторов смайликов »](https://core.telegram.org/api/custom-emoji.md), которые нельзя использовать в [статусах смайликов канала»](https://core.telegram.org/api/emoji-status.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getChannelRestrictedStatusEmojis", "x-tl-id": "900325589", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiList`.\n\n[Список Эмодзи](https://core.telegram.org/type/EmojiList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiList", "oneOf": [{"$ref": "#/components/schemas/emojiListNotModified"}, {"$ref": "#/components/schemas/emojiList"}], "description": "Тип TL: EmojiList."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getChannelRestrictedStatusEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "900325589"}}, "/catalog/account.updateBusinessWorkHours": {"post": {"operationId": "account.updateBusinessWorkHours", "tags": ["Аккаунт"], "summary": "Укажите часы работы Telegram Business.", "description": "Укажите набор часов работы Telegram Business](https://core.telegram.org/api/business.md#opening-hours).\nЭта информация будет содержаться в [userFull](https://core.telegram.org/constructor/userFull.md).`business_work_hours`.\n\nЧтобы удалить все часы работы, вызовите метод, не устанавливая поле `business_work_hours`.\n\nОбратите внимание, что часы работы, указанные пользователем, должны быть соответствующим образом проверены и преобразованы перед вызовом метода, как указано [здесь »](https://core.telegram.org/api/business.md#opening-hours).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessWorkHours", "x-tl-id": "1258348646", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_WORK_HOURS_EMPTY` — Время работы не указано.\n- 400 · `BUSINESS_WORK_HOURS_PERIOD_INVALID` — Указанные часы работы недействительны, точные требования см. [здесь »](https://core.telegram.org/api/business.md#opening-hours).\n- 400 · `TIMEZONE_INVALID` — Указанный часовой пояс не существует."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateBusinessWorkHours"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"business_work_hours": {"type": "object", "x-tl-type": "BusinessWorkHours", "oneOf": [{"$ref": "#/components/schemas/businessWorkHours"}], "description": "Часы работы (необязательно, если не установлено, удаляются все часы работы).", "x-tl-flag": "flags.0?BusinessWorkHours"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `business_work_hours` | `BusinessWorkHours` | Нет | Часы работы (необязательно, если не установлено, удаляются все часы работы). |"}, "x-telegram-rpc-errors": ["BUSINESS_WORK_HOURS_EMPTY", "BUSINESS_WORK_HOURS_PERIOD_INVALID", "TIMEZONE_INVALID"], "x-browser-schema-id": "1258348646"}}, "/catalog/account.updateBusinessLocation": {"post": {"operationId": "account.updateBusinessLocation", "tags": ["Аккаунт"], "summary": "Предприятия » могут рекламировать свое местоположение, используя этот метод, см. здесь » для получения дополнительной информации.", "description": "[Компании »](https://core.telegram.org/api/business.md#location) могут рекламировать свое местоположение, используя этот метод, см. [здесь »](https://core.telegram.org/api/business.md#location) для получения дополнительной информации.\n\nЧтобы удалить информацию о местонахождении предприятия, вызовите метод без установки каких-либо параметров.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessLocation", "x-tl-id": "2657817370", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateBusinessLocation"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "oneOf": [{"$ref": "#/components/schemas/inputGeoPointEmpty"}, {"$ref": "#/components/schemas/inputGeoPoint"}], "description": "Необязательно, содержит набор географических координат.", "x-tl-flag": "flags.1?InputGeoPoint"}, "address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Обязательно при настройке/обновлении локации, содержит текстовое описание адреса (максимум 96 UTF-8 символов)."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `geo_point` | `InputGeoPoint` | Нет | Необязательно, содержит набор географических координат. |\n| `address` | `string` | Нет | Обязательно при настройке/обновлении локации, содержит текстовое описание адреса (максимум 96 UTF-8 символов). |"}, "x-browser-schema-id": "2657817370"}}, "/catalog/account.updateBusinessGreetingMessage": {"post": {"operationId": "account.updateBusinessGreetingMessage", "tags": ["Аккаунт"], "summary": "Установите список поздравительных сообщений Telegram Business.", "description": "Установите список [приветственных сообщений Telegram Business](https://core.telegram.org/api/business.md#greeting-messages).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessGreetingMessage", "x-tl-id": "1724755908", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateBusinessGreetingMessage"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"message": {"type": "object", "x-tl-type": "InputBusinessGreetingMessage", "oneOf": [{"$ref": "#/components/schemas/inputBusinessGreetingMessage"}], "description": "Конфигурация и содержание приветственного сообщения.", "x-tl-flag": "flags.0?InputBusinessGreetingMessage"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `message` | `InputBusinessGreetingMessage` | Нет | Конфигурация и содержание приветственного сообщения. |"}, "x-browser-schema-id": "1724755908"}}, "/catalog/account.updateBusinessAwayMessage": {"post": {"operationId": "account.updateBusinessAwayMessage", "tags": ["Аккаунт"], "summary": "Установите список выездных сообщений Telegram Business.", "description": "Установите список [Выездные сообщения Telegram Business](https://core.telegram.org/api/business.md#away-messages).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessAwayMessage", "x-tl-id": "2724888485", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateBusinessAwayMessage"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"message": {"type": "object", "x-tl-type": "InputBusinessAwayMessage", "oneOf": [{"$ref": "#/components/schemas/inputBusinessAwayMessage"}], "description": "Конфигурация и содержание сообщения об отсутствии.", "x-tl-flag": "flags.0?InputBusinessAwayMessage"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `message` | `InputBusinessAwayMessage` | Нет | Конфигурация и содержание сообщения об отсутствии. |"}, "x-browser-schema-id": "2724888485"}}, "/catalog/account.updateConnectedBot": {"post": {"operationId": "account.updateConnectedBot", "tags": ["Аккаунт"], "summary": "Подключите бизнес-бота » к текущему аккаунту или для изменения текущих настроек подключения.", "description": "Подключите [бизнес-бота»](https://core.telegram.org/api/bots/connected-business-bots.md) к текущему аккаунту, либо измените текущие настройки подключения.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "account.updateConnectedBot", "x-tl-id": "1721797758", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_BUSINESS_MISSING` — Указанный бот не является бизнес-ботом (флаг [user](https://core.telegram.org/constructor/user.md).`bot_business` не установлен).\n- 400 · `BUSINESS_RECIPIENTS_EMPTY` — Вы не установили флаг в inputBusinessBotRecipients, поэтому бот не может работать с *любым* узлом."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateConnectedBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"deleted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Стоит ли полностью отключать бота от текущего аккаунта."}, "rights": {"type": "object", "x-tl-type": "BusinessBotRights", "oneOf": [{"$ref": "#/components/schemas/businessBotRights"}], "description": "Права бизнес-ботов.", "x-tl-flag": "flags.0?BusinessBotRights"}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот для подключения или отключения"}, "recipients": {"type": "object", "x-tl-type": "InputBusinessBotRecipients", "oneOf": [{"$ref": "#/components/schemas/inputBusinessBotRecipients"}], "description": "Конфигурация для бизнес-подключения"}}, "additionalProperties": false, "required": ["bot", "recipients"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `deleted` | `true` | Нет | Стоит ли полностью отключать бота от текущего аккаунта. |\n| `rights` | `BusinessBotRights` | Нет | Права бизнес-ботов. |\n| `bot` | `InputUser` | Да | Бот для подключения или отключения |\n| `recipients` | `InputBusinessBotRecipients` | Да | Конфигурация для бизнес-подключения |"}, "x-telegram-rpc-errors": ["BOT_BUSINESS_MISSING", "BUSINESS_RECIPIENTS_EMPTY"], "x-browser-schema-id": "1721797758"}}, "/catalog/account.getConnectedBots": {"post": {"operationId": "account.getConnectedBots", "tags": ["Аккаунт"], "summary": "Список всех подключенных в настоящее время бизнес-ботов »", "description": "Список всех подключенных в данный момент [бизнес-ботов»](https://core.telegram.org/api/bots/connected-business-bots.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "account.getConnectedBots", "x-tl-id": "1319421967", "x-tl-result": "account.ConnectedBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `account.ConnectedBots`.\n\n[account.ConnectedBots](https://core.telegram.org/type/account.ConnectedBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.ConnectedBots", "oneOf": [{"$ref": "#/components/schemas/account.connectedBots"}], "description": "Тип TL: account.ConnectedBots."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getConnectedBots"}, "x-browser-schema-id": "1319421967"}}, "/catalog/account.getBotBusinessConnection": {"post": {"operationId": "account.getBotBusinessConnection", "tags": ["Аккаунт"], "summary": "Боты могут вызывать этот метод для повторной выборки конструктора updateBotBusinessConnect, связанного с конкретным бизнесом `connection_id`, дополнительную информацию о подключенных бизнес-ботах см. здесь ».", "description": "Боты могут вызывать этот метод для повторной выборки конструктора [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md), связанного с конкретным [бизнесом `connection_id`, дополнительную информацию о подключенных бизнес-ботах см. здесь »](https://core.telegram.org/api/bots/connected-business-bots.md).\nЭто необходимо, например, для только что вошедших в систему ботов, которые получают некоторые обновления [updateBotNewBusinessMessage](https://core.telegram.org/constructor/updateBotNewBusinessMessage.md) и т. д., поскольку некоторые пользователи уже подключились к боту до того, как он смог войти в систему.\nВ этом случае бот получает сообщения от бизнес-соединения, но он еще не кэшировал связанный [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md) с информацией о соединении (может ли он отвечать на сообщения? и т. д.) и не может получать старые сообщения, поскольку они были отправлены, когда бот еще не вошел в сеанс.\nЭтот метод можно использовать для получения информации о еще не кэшированном деловом контакте, и его не следует вызывать, если информация уже кэширована, или для получения изменений, поскольку возможные изменения будут автоматически отправляться как новые [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md) обновления боту с использованием обычных [методов доставки обновлений »](https://core.telegram.org/api/updates.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "account.getBotBusinessConnection", "x-tl-id": "1990746736", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CONNECTION_ID_INVALID` — Указанный идентификатор соединения недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getBotBusinessConnection"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"connection_id": {"type": "string", "x-tl-type": "string", "description": "[Идентификатор делового подключения»](https://core.telegram.org/api/bots/connected-business-bots.md)."}}, "additionalProperties": false, "required": ["connection_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `connection_id` | `string` | Да | [Идентификатор делового подключения»](https://core.telegram.org/api/bots/connected-business-bots.md). |"}, "x-telegram-rpc-errors": ["CONNECTION_ID_INVALID"], "x-browser-schema-id": "1990746736"}}, "/catalog/account.updateBusinessIntro": {"post": {"operationId": "account.updateBusinessIntro", "tags": ["Аккаунт"], "summary": "Установите или удалите введение в Telegram Business».", "description": "Установите или удалите [Введение в Telegram Business»](https://core.telegram.org/api/business.md#business-introduction).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessIntro", "x-tl-id": "2786381876", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateBusinessIntro"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"intro": {"type": "object", "x-tl-type": "InputBusinessIntro", "oneOf": [{"$ref": "#/components/schemas/inputBusinessIntro"}], "description": "Введение в Telegram Business: чтобы удалить его, вызовите метод без установки этого флага.", "x-tl-flag": "flags.0?InputBusinessIntro"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `intro` | `InputBusinessIntro` | Нет | Введение в Telegram Business: чтобы удалить его, вызовите метод без установки этого флага. |"}, "x-browser-schema-id": "2786381876"}}, "/catalog/account.toggleConnectedBotPaused": {"post": {"operationId": "account.toggleConnectedBotPaused", "tags": ["Аккаунт"], "summary": "Приостановите или возобновите паузу определенного чата, временно отключив его от всех бизнес-ботов».", "description": "Приостановите или возобновите паузу определенного чата, временно отключив его от всех [бизнес-ботов»](https://core.telegram.org/api/bots/connected-business-bots.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "account.toggleConnectedBotPaused", "x-tl-id": "1684934807", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.toggleConnectedBotPaused"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат на паузе"}, "paused": {"type": "boolean", "x-tl-type": "Bool", "description": "Приостановить или возобновить чат"}}, "additionalProperties": false, "required": ["peer", "paused"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат на паузе |\n| `paused` | `Bool` | Да | Приостановить или возобновить чат |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1684934807"}}, "/catalog/account.disablePeerConnectedBot": {"post": {"operationId": "account.disablePeerConnectedBot", "tags": ["Аккаунт"], "summary": "Навсегда отключить определенный чат от всех бизнес-ботов » (эквивалентно указанию его в `recipients.exclude_users` при первоначальной настройке с помощью account.updateConnectedBot »); для повторного подключения отключенного этим методом чата пользователь должен повторно подключить всего бота, вызвав account.updateConnectedBot ».", "description": "Навсегда отключить определенный чат от всех [бизнес-ботов »](https://core.telegram.org/api/bots/connected-business-bots.md) (эквивалентно указанию его в `recipients.exclude_users` при первоначальной настройке с помощью [account.updateConnectedBot »](https://core.telegram.org/method/account.updateConnectedBot.md)); для повторного подключения чата, отключенного этим методом, пользователь должен повторно подключить всего бота, вызвав [account.updateConnectedBot »](https://core.telegram.org/method/account.updateConnectedBot.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.disablePeerConnectedBot", "x-tl-id": "1581481689", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_ALREADY_DISABLED` — Подключенный бизнес-бот уже отключен для указанного узла.\n- 400 · `BOT_NOT_CONNECTED_YET` — Нет [бизнес-бот](https://core.telegram.org/api/business.md#connected-bots) подключен к текущему авторизованному пользователю.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.disablePeerConnectedBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, который нужно отключить"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, который нужно отключить |"}, "x-telegram-rpc-errors": ["BOT_ALREADY_DISABLED", "BOT_NOT_CONNECTED_YET", "PEER_ID_INVALID"], "x-browser-schema-id": "1581481689"}}, "/catalog/account.updateBirthday": {"post": {"operationId": "account.updateBirthday", "tags": ["Аккаунт"], "summary": "Сообщите о нашем дне рождения, см. здесь » для получения дополнительной информации.", "description": "Обновите наш [день рождения, см. здесь »](https://core.telegram.org/api/profile.md#birthday) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.updateBirthday", "x-tl-id": "3429764113", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BIRTHDAY_INVALID` — Указан недействительный возраст, должен быть от 0 до 150 лет."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updateBirthday"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"birthday": {"type": "object", "x-tl-type": "Birthday", "oneOf": [{"$ref": "#/components/schemas/birthday"}], "description": "День рождения.", "x-tl-flag": "flags.0?Birthday"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `birthday` | `Birthday` | Нет | День рождения. |"}, "x-telegram-rpc-errors": ["BIRTHDAY_INVALID"], "x-browser-schema-id": "3429764113"}}, "/catalog/account.createBusinessChatLink": {"post": {"operationId": "account.createBusinessChatLink", "tags": ["Аккаунт"], "summary": "Создать глубокую ссылку бизнес-чата».", "description": "Создайте [глубокую ссылку на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.createBusinessChatLink", "x-tl-id": "2287068814", "x-tl-result": "BusinessChatLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `BusinessChatLink`.\n\n[БизнесЧатЛинк](https://core.telegram.org/type/BusinessChatLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BusinessChatLink", "oneOf": [{"$ref": "#/components/schemas/businessChatLink"}], "description": "Тип TL: BusinessChatLink."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHATLINKS_TOO_MUCH` — Было создано слишком много [ссылок на бизнес-чат](https://core.telegram.org/api/business.md#business-chat-links), пожалуйста, удалите некоторые старые ссылки.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.createBusinessChatLink"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"link": {"type": "object", "x-tl-type": "InputBusinessChatLink", "oneOf": [{"$ref": "#/components/schemas/inputBusinessChatLink"}], "description": "Информация о ссылке для создания."}}, "additionalProperties": false, "required": ["link"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `link` | `InputBusinessChatLink` | Да | Информация о ссылке для создания. |"}, "x-telegram-rpc-errors": ["CHATLINKS_TOO_MUCH", "DOCUMENT_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "2287068814"}}, "/catalog/account.editBusinessChatLink": {"post": {"operationId": "account.editBusinessChatLink", "tags": ["Аккаунт"], "summary": "Редактировать созданную глубокую ссылку бизнес-чата».", "description": "Отредактируйте созданную [глубокую ссылку на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.editBusinessChatLink", "x-tl-id": "2352222383", "x-tl-result": "BusinessChatLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `BusinessChatLink`.\n\n[БизнесЧатЛинк](https://core.telegram.org/type/BusinessChatLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BusinessChatLink", "oneOf": [{"$ref": "#/components/schemas/businessChatLink"}], "description": "Тип TL: BusinessChatLink."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHATLINK_SLUG_EMPTY` — Указанный слаг пуст.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.editBusinessChatLink"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Слайд ссылки, полученный как указано [здесь »](https://core.telegram.org/api/links.md#business-chat-links)."}, "link": {"type": "object", "x-tl-type": "InputBusinessChatLink", "oneOf": [{"$ref": "#/components/schemas/inputBusinessChatLink"}], "description": "Новая информация по ссылке."}}, "additionalProperties": false, "required": ["slug", "link"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Слайд ссылки, полученный как указано [здесь »](https://core.telegram.org/api/links.md#business-chat-links). |\n| `link` | `InputBusinessChatLink` | Да | Новая информация по ссылке. |"}, "x-telegram-rpc-errors": ["CHATLINK_SLUG_EMPTY", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "2352222383"}}, "/catalog/account.deleteBusinessChatLink": {"post": {"operationId": "account.deleteBusinessChatLink", "tags": ["Аккаунт"], "summary": "Удалить глубокую ссылку бизнес-чата».", "description": "Удалить [глубокую ссылку на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.deleteBusinessChatLink", "x-tl-id": "1611085428", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHATLINK_SLUG_EMPTY` — Указанный слаг пуст.\n- 400 · `CHATLINK_SLUG_EXPIRED` — Срок действия указанной [ссылки на бизнес-чат](https://core.telegram.org/api/business.md#business-chat-links) истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.deleteBusinessChatLink"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Слайд ссылки, полученный как указано [здесь »](https://core.telegram.org/api/links.md#business-chat-links)."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Слайд ссылки, полученный как указано [здесь »](https://core.telegram.org/api/links.md#business-chat-links). |"}, "x-telegram-rpc-errors": ["CHATLINK_SLUG_EMPTY", "CHATLINK_SLUG_EXPIRED"], "x-browser-schema-id": "1611085428"}}, "/catalog/account.getBusinessChatLinks": {"post": {"operationId": "account.getBusinessChatLinks", "tags": ["Аккаунт"], "summary": "Перечислите все созданные глубокие ссылки бизнес-чата ».", "description": "Перечислите все созданные [глубинные ссылки на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.getBusinessChatLinks", "x-tl-id": "1869667809", "x-tl-result": "account.BusinessChatLinks", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `account.BusinessChatLinks`.\n\n[account.BusinessChatLinks](https://core.telegram.org/type/account.BusinessChatLinks.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.BusinessChatLinks", "oneOf": [{"$ref": "#/components/schemas/account.businessChatLinks"}], "description": "Тип TL: account.BusinessChatLinks."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getBusinessChatLinks"}, "x-browser-schema-id": "1869667809"}}, "/catalog/account.resolveBusinessChatLink": {"post": {"operationId": "account.resolveBusinessChatLink", "tags": ["Аккаунт"], "summary": "Разрешить глубокую ссылку бизнес-чата».", "description": "Разрешите [глубокую ссылку на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.resolveBusinessChatLink", "x-tl-id": "1418913262", "x-tl-result": "account.ResolvedBusinessChatLinks", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `account.ResolvedBusinessChatLinks`.\n\n[account.ResolvedBusinessChatLinks](https://core.telegram.org/type/account.ResolvedBusinessChatLinks.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.ResolvedBusinessChatLinks", "oneOf": [{"$ref": "#/components/schemas/account.resolvedBusinessChatLinks"}], "description": "Тип TL: account.ResolvedBusinessChatLinks."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHATLINK_SLUG_EMPTY` — Указанный слаг пуст.\n- 400 · `CHATLINK_SLUG_EXPIRED` — Срок действия указанной [ссылки на бизнес-чат](https://core.telegram.org/api/business.md#business-chat-links) истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.resolveBusinessChatLink"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Слайд ссылки, полученный как указано [здесь »](https://core.telegram.org/api/links.md#business-chat-links)."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Слайд ссылки, полученный как указано [здесь »](https://core.telegram.org/api/links.md#business-chat-links). |"}, "x-telegram-rpc-errors": ["CHATLINK_SLUG_EMPTY", "CHATLINK_SLUG_EXPIRED"], "x-browser-schema-id": "1418913262"}}, "/catalog/account.updatePersonalChannel": {"post": {"operationId": "account.updatePersonalChannel", "tags": ["Аккаунт"], "summary": "Свяжите (или удалите) личный канал», который будет указан на странице нашего личного профиля».", "description": "Свяжите (или удалите) личный [канал »](https://core.telegram.org/api/channel.md), который будет указан на нашей личной [странице профиля »](https://core.telegram.org/api/profile.md#personal-channel).\n\nПри его изменении будет выдано обновление [updateUser](https://core.telegram.org/constructor/updateUser.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.updatePersonalChannel", "x-tl-id": "3645048288", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PUBLIC_BROADCAST_EXPECTED` — `channel` принимает только канал, но была пропущена супергруппа."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.updatePersonalChannel"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал, передайте [inputChannelEmpty](https://core.telegram.org/constructor/inputChannelEmpty.md), чтобы удалить его."}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал, передайте [inputChannelEmpty](https://core.telegram.org/constructor/inputChannelEmpty.md), чтобы удалить его. |"}, "x-telegram-rpc-errors": ["PUBLIC_BROADCAST_EXPECTED"], "x-browser-schema-id": "3645048288"}}, "/catalog/account.toggleSponsoredMessages": {"post": {"operationId": "account.toggleSponsoredMessages", "tags": ["Аккаунт"], "summary": "Отключите или повторно включите рекламу Telegram для текущей учетной записи Premium.", "description": "Отключите или повторно включите рекламу Telegram для текущей учетной записи [Premium](https://core.telegram.org/api/premium.md).\n\nПолезно для владельцев бизнеса, которые могут захотеть запустить и просмотреть свою собственную рекламу в Telegram через [рекламную платформу Telegram »](https://ads.telegram.org).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "account.toggleSponsoredMessages", "x-tl-id": "3118048141", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.toggleSponsoredMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Включите или отключите рекламу."}}, "additionalProperties": false, "required": ["enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `enabled` | `Bool` | Да | Включите или отключите рекламу. |"}, "x-browser-schema-id": "3118048141"}}, "/catalog/account.getReactionsNotifySettings": {"post": {"operationId": "account.getReactionsNotifySettings", "tags": ["Аккаунт"], "summary": "Получить текущие настройки уведомлений о реакциях».", "description": "Получите текущие [настройки уведомлений о реакции»](https://core.telegram.org/api/reactions.md#notifications-about-reactions).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "account.getReactionsNotifySettings", "x-tl-id": "115172684", "x-tl-result": "ReactionsNotifySettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `ReactionsNotifySettings`.\n\n[РеакцииNotifySettings](https://core.telegram.org/type/ReactionsNotifySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ReactionsNotifySettings", "oneOf": [{"$ref": "#/components/schemas/reactionsNotifySettings"}], "description": "Тип TL: ReactionsNotifySettings."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getReactionsNotifySettings"}, "x-browser-schema-id": "115172684"}}, "/catalog/account.setReactionsNotifySettings": {"post": {"operationId": "account.setReactionsNotifySettings", "tags": ["Аккаунт"], "summary": "Измените настройки уведомлений о реакциях».", "description": "Измените [настройки уведомлений о реакции»](https://core.telegram.org/api/reactions.md#notifications-about-reactions).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "account.setReactionsNotifySettings", "x-tl-id": "829220168", "x-tl-result": "ReactionsNotifySettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `ReactionsNotifySettings`.\n\n[РеакцииNotifySettings](https://core.telegram.org/type/ReactionsNotifySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ReactionsNotifySettings", "oneOf": [{"$ref": "#/components/schemas/reactionsNotifySettings"}], "description": "Тип TL: ReactionsNotifySettings."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setReactionsNotifySettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"settings": {"type": "object", "x-tl-type": "ReactionsNotifySettings", "oneOf": [{"$ref": "#/components/schemas/reactionsNotifySettings"}], "description": "Новые настройки уведомлений о реакциях."}}, "additionalProperties": false, "required": ["settings"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `settings` | `ReactionsNotifySettings` | Да | Новые настройки уведомлений о реакциях. |"}, "x-browser-schema-id": "829220168"}}, "/catalog/account.getCollectibleEmojiStatuses": {"post": {"operationId": "account.getCollectibleEmojiStatuses", "tags": ["Аккаунт"], "summary": "Получите список статусов смайлов » для принадлежащих или размещенных коллекционных подарков ».", "description": "Получите список [статусов смайлов»](https://core.telegram.org/api/emoji-status.md) для собственных или [размещенных коллекционных подарков»](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "account.getCollectibleEmojiStatuses", "x-tl-id": "779830595", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `account.EmojiStatuses`.\n\n[account.EmojiStatuses](https://core.telegram.org/type/account.EmojiStatuses.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.EmojiStatuses", "oneOf": [{"$ref": "#/components/schemas/account.emojiStatusesNotModified"}, {"$ref": "#/components/schemas/account.emojiStatuses"}], "description": "Тип TL: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getCollectibleEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш для нумерации страниц](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш для нумерации страниц](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "779830595"}}, "/catalog/account.getPaidMessagesRevenue": {"post": {"operationId": "account.getPaidMessagesRevenue", "tags": ["Аккаунт"], "summary": "Получить количество звезд, которые мы получили от указанного пользователя благодаря платным сообщениям»; полученная сумма будет равна отправленной сумме, умноженной на звезды\\_paid\\_message\\_commission\\_permille, разделенные на 1000.", "description": "Получить количество звезд, которое мы получили от указанного пользователя благодаря [платным сообщениям»](https://core.telegram.org/api/paid-messages.md); полученная сумма будет равна отправленной сумме, умноженной на [stars\\_paid\\_message\\_commission\\_permille](https://core.telegram.org/api/config.md#stars-paid-message-commission-permille), разделенное на 1000.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "account.getPaidMessagesRevenue", "x-tl-id": "431639143", "x-tl-result": "account.PaidMessagesRevenue", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `account.PaidMessagesRevenue`.\n\n[account.PaidMessagesRevenue](https://core.telegram.org/type/account.PaidMessagesRevenue.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.PaidMessagesRevenue", "oneOf": [{"$ref": "#/components/schemas/account.paidMessagesRevenue"}], "description": "Тип TL: account.PaidMessagesRevenue."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PARENT_PEER_INVALID` — Указанное `parent_peer` неверно.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getPaidMessagesRevenue"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, может содержать идентификатор [монофорума (прямые сообщения канала)](https://core.telegram.org/api/monoforum.md), чтобы получить количество звезд, которые пользователь потратил на отправку нам прямых сообщений через канал.", "x-tl-flag": "flags.0?InputPeer"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, который заплатил за отправку нам сообщений."}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | Нет | Если установлено, может содержать идентификатор [монофорума (прямые сообщения канала)](https://core.telegram.org/api/monoforum.md), чтобы получить количество звезд, которые пользователь потратил на отправку нам прямых сообщений через канал. |\n| `user_id` | `InputUser` | Да | Пользователь, который заплатил за отправку нам сообщений. |"}, "x-telegram-rpc-errors": ["PARENT_PEER_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "431639143"}}, "/catalog/account.toggleNoPaidMessagesException": {"post": {"operationId": "account.toggleNoPaidMessagesException", "tags": ["Аккаунт"], "summary": "Разрешить пользователю отправлять нам сообщения без оплаты, если включены платные сообщения».", "description": "Разрешить пользователю отправлять нам сообщения без оплаты, если включены [платные сообщения »](https://core.telegram.org/api/paid-messages.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)", "x-tl-method": "account.toggleNoPaidMessagesException", "x-tl-id": "4264483446", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PARENT_PEER_INVALID` — Указанное `parent_peer` неверно.\n- 400 · `UNSUPPORTED` — `require_payment` не может *устанавливаться* пользователями, только монофорумами: вместо этого пользователи должны использовать настройку конфиденциальности [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md), чтобы удалить ранее добавленное исключение.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.toggleNoPaidMessagesException"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"refund_charged": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, а `require_payment` не установлено, возвращает суммы, которые пользователь уже заплатил нам за отправку нам сообщений (напрямую или через монофорум)."}, "require_payment": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Если установлено, пользователь должен заплатить за отправку нам сообщений.  Может быть **установлен** только монофорумами, но не пользователями, i.e. `parent_peer` должен быть установлен, если этот флаг установлен; вместо этого пользователи должны использовать параметр конфиденциальности [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md), чтобы удалить ранее добавленное исключение.  Если не установлено, позволяет пользователю отправлять нам сообщения без оплаты (может быть **отключено** как монофорумами, так и пользователями)."}, "parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, применяется настройка в [монофоруме, также известном как прямые сообщения»](https://core.telegram.org/api/monoforum.md) (передавайте идентификатор монофорума, **а не** идентификатор связанного канала).", "x-tl-flag": "flags.1?InputPeer"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь освобождается или не освобождается."}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `refund_charged` | `true` | Нет | Если установлено, а `require_payment` не установлено, возвращает суммы, которые пользователь уже заплатил нам за отправку нам сообщений (напрямую или через монофорум). |\n| `require_payment` | `true` | Нет | Если установлено, пользователь должен заплатить за отправку нам сообщений.  Может быть **установлен** только монофорумами, но не пользователями, i.e. `parent_peer` должен быть установлен, если этот флаг установлен; вместо этого пользователи должны использовать параметр конфиденциальности [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md), чтобы удалить ранее добавленное исключение.  Если не установлено, позволяет пользователю отправлять нам сообщения без оплаты (может быть **отключено** как монофорумами, так и пользователями). |\n| `parent_peer` | `InputPeer` | Нет | Если установлено, применяется настройка в [монофоруме, также известном как прямые сообщения»](https://core.telegram.org/api/monoforum.md) (передавайте идентификатор монофорума, **а не** идентификатор связанного канала). |\n| `user_id` | `InputUser` | Да | Пользователь освобождается или не освобождается. |"}, "x-telegram-rpc-errors": ["PARENT_PEER_INVALID", "UNSUPPORTED", "USER_ID_INVALID"], "x-browser-schema-id": "4264483446"}}, "/catalog/account.setMainProfileTab": {"post": {"operationId": "account.setMainProfileTab", "tags": ["Аккаунт"], "summary": "Изменяет вкладку основного профиля текущего пользователя, дополнительную информацию см. здесь ».", "description": "Изменяет вкладку основного профиля текущего пользователя, дополнительную информацию см. [здесь »](https://core.telegram.org/api/profile.md#tabs).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.setMainProfileTab", "x-tl-id": "1575909552", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.setMainProfileTab"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"tab": {"type": "object", "x-tl-type": "ProfileTab", "oneOf": [{"$ref": "#/components/schemas/profileTabPosts"}, {"$ref": "#/components/schemas/profileTabGifts"}, {"$ref": "#/components/schemas/profileTabMedia"}, {"$ref": "#/components/schemas/profileTabFiles"}, {"$ref": "#/components/schemas/profileTabMusic"}, {"$ref": "#/components/schemas/profileTabVoice"}, {"$ref": "#/components/schemas/profileTabLinks"}, {"$ref": "#/components/schemas/profileTabGifs"}], "description": "Вкладка, которую нужно сделать основной."}}, "additionalProperties": false, "required": ["tab"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `tab` | `ProfileTab` | Да | Вкладка, которую нужно сделать основной. |"}, "x-browser-schema-id": "1575909552"}}, "/catalog/account.saveMusic": {"post": {"operationId": "account.saveMusic", "tags": ["Аккаунт"], "summary": "Добавляет или удаляет песню из профиля текущего пользователя. Дополнительную информацию можно найти здесь » на вкладке «Музыка» на странице профиля.", "description": "Добавляет или удаляет песню из профиля текущего пользователя [подробнее см. здесь »](https://core.telegram.org/api/profile.md#music) на вкладке «Музыка» на странице профиля.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.saveMusic", "x-tl-id": "2993107625", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.saveMusic"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"unsave": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, удаляет песню."}, "id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Песня, которую нужно добавить или удалить; может быть уже добавленной песней при изменении порядка песен с помощью `after_id`. Добавление уже добавленной песни никогда не приведет к ее повторному добавлению, а только переместит ее в начало списка песен (или после того, как песня перейдет в `after_id`)."}, "after_id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Если установлено, песня будет добавлена после переданной песни (должна быть уже закреплена в профиле).", "x-tl-flag": "flags.1?InputDocument"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `unsave` | `true` | Нет | Если установлено, удаляет песню. |\n| `id` | `InputDocument` | Да | Песня, которую нужно добавить или удалить; может быть уже добавленной песней при изменении порядка песен с помощью `after_id`. Добавление уже добавленной песни никогда не приведет к ее повторному добавлению, а только переместит ее в начало списка песен (или после того, как песня перейдет в `after_id`). |\n| `after_id` | `InputDocument` | Нет | Если установлено, песня будет добавлена после переданной песни (должна быть уже закреплена в профиле). |"}, "x-telegram-rpc-errors": ["DOCUMENT_INVALID"], "x-browser-schema-id": "2993107625"}}, "/catalog/account.getSavedMusicIds": {"post": {"operationId": "account.getSavedMusicIds", "tags": ["Аккаунт"], "summary": "Получите полный список только идентификаторов песен, добавленных в данный момент в профиль, см. здесь » для получения дополнительной информации.", "description": "Получите полный список только идентификаторов [песен, добавленных в данный момент в профиль, см. здесь »](https://core.telegram.org/api/profile.md#music) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.getSavedMusicIds", "x-tl-id": "3768410031", "x-tl-result": "account.SavedMusicIds", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `account.SavedMusicIds`.\n\n[account.SavedMusicIds](https://core.telegram.org/type/account.SavedMusicIds.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.SavedMusicIds", "oneOf": [{"$ref": "#/components/schemas/account.savedMusicIdsNotModified"}, {"$ref": "#/components/schemas/account.savedMusicIds"}], "description": "Тип TL: account.SavedMusicIds."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getSavedMusicIds"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш [сгенерирован »](https://core.telegram.org/api/offsets.md#hash-generation) из ранее возвращенного списка идентификаторов.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | Хэш [сгенерирован »](https://core.telegram.org/api/offsets.md#hash-generation) из ранее возвращенного списка идентификаторов. |"}, "x-browser-schema-id": "3768410031"}}, "/catalog/account.getUniqueGiftChatThemes": {"post": {"operationId": "account.getUniqueGiftChatThemes", "tags": ["Аккаунт"], "summary": "Получите все темы чата, » связанные с принадлежащими или размещенными коллекционными подарками ».", "description": "Получите все [темы чата »](https://core.telegram.org/api/themes.md#chat-themes), связанные с принадлежащими или [размещенными коллекционными подарками »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram themes](https://core.telegram.org/api/themes.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "account.getUniqueGiftChatThemes", "x-tl-id": "3828148681", "x-tl-result": "account.ChatThemes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram themes", "https://core.telegram.org/api/themes.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `account.ChatThemes`.\n\n[account.ChatThemes](https://core.telegram.org/type/account.ChatThemes.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.ChatThemes", "oneOf": [{"$ref": "#/components/schemas/account.chatThemesNotModified"}, {"$ref": "#/components/schemas/account.chatThemes"}], "description": "Тип TL: account.ChatThemes."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getUniqueGiftChatThemes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md), изначально пустая строка, затем равна значению последней возвращенной [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md).`next_offset` (если установлено)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md). Обратите внимание, что сервер может возвращать менее `limit` результатов, даже если фактическое количество оставшихся результатов составляет `>= limit`, разбивайте на страницы, чтобы получить их все."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш из ранее возвращенного конструктора [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md), чтобы избежать возврата какого-либо результата, если список тем не изменился.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offset` | `string` | Да | Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md), изначально пустая строка, затем равна значению последней возвращенной [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md).`next_offset` (если установлено). |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md). Обратите внимание, что сервер может возвращать менее `limit` результатов, даже если фактическое количество оставшихся результатов составляет `>= limit`, разбивайте на страницы, чтобы получить их все. |\n| `hash` | `long` | Да | Хэш из ранее возвращенного конструктора [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md), чтобы избежать возврата какого-либо результата, если список тем не изменился. |"}, "x-browser-schema-id": "3828148681"}}, "/catalog/account.initPasskeyRegistration": {"post": {"operationId": "account.initPasskeyRegistration", "tags": ["Аккаунт"], "summary": "Инициализируйте регистрацию пароля для текущей учетной записи. Дополнительную информацию о полном процессе см. здесь ».", "description": "Инициализируйте регистрацию пароля для текущей учетной записи, см. [здесь »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) дополнительную информацию о полном процессе.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.initPasskeyRegistration", "x-tl-id": "1117079528", "x-tl-result": "account.PasskeyRegistrationOptions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "Результат MTProto · `account.PasskeyRegistrationOptions`.\n\n[account.PasskeyRegistrationOptions](https://core.telegram.org/type/account.PasskeyRegistrationOptions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.PasskeyRegistrationOptions", "oneOf": [{"$ref": "#/components/schemas/account.passkeyRegistrationOptions"}], "description": "Тип TL: account.PasskeyRegistrationOptions."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `ACCESS_DENIED` — Аккаунт деактивирован или является аккаунтом бота/сервиса.\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — Вы не можете выйти из других сеансов, если с момента входа в текущий сеанс прошло менее 24 часов."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.initPasskeyRegistration"}, "x-telegram-rpc-errors": ["ACCESS_DENIED", "FRESH_RESET_AUTHORISATION_FORBIDDEN"], "x-browser-schema-id": "1117079528"}}, "/catalog/account.registerPasskey": {"post": {"operationId": "account.registerPasskey", "tags": ["Аккаунт"], "summary": "Полную регистрацию пароля для текущей учетной записи см. здесь » для получения дополнительной информации о полном процессе.", "description": "Завершите регистрацию пароля для текущей учетной записи, см. [здесь »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) для получения дополнительной информации о полном процессе.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.registerPasskey", "x-tl-id": "1437867990", "x-tl-result": "Passkey", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "Результат MTProto · `Passkey`.\n\n[Пароль](https://core.telegram.org/type/Passkey.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Passkey", "oneOf": [{"$ref": "#/components/schemas/passkey"}], "description": "Тип TL: Passkey."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CREDENTIAL_INVALID` — Указанные учетные данные недействительны.\n- 400 · `PASSKEY_ORIGIN_MISMATCH` — Сторонние клиенты в настоящее время не поддерживают ключи доступа даже при смене источника."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.registerPasskey"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"credential": {"type": "object", "x-tl-type": "InputPasskeyCredential", "oneOf": [{"$ref": "#/components/schemas/inputPasskeyCredentialPublicKey"}], "description": "Результат регистрации."}}, "additionalProperties": false, "required": ["credential"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `credential` | `InputPasskeyCredential` | Да | Результат регистрации. |"}, "x-telegram-rpc-errors": ["CREDENTIAL_INVALID", "PASSKEY_ORIGIN_MISMATCH"], "x-browser-schema-id": "1437867990"}}, "/catalog/account.getPasskeys": {"post": {"operationId": "account.getPasskeys", "tags": ["Аккаунт"], "summary": "Перечислите ключи доступа, связанные с текущей учетной записью, которые можно использовать для входа в систему. Дополнительную информацию о ключах доступа см. здесь ».", "description": "Перечислите ключи доступа, связанные с текущей учетной записью, которые можно использовать для входа в систему, см. [здесь »](https://core.telegram.org/api/passkeys.md#list-passkeys) дополнительную информацию о ключах доступа.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.getPasskeys", "x-tl-id": "3927903314", "x-tl-result": "account.Passkeys", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "Результат MTProto · `account.Passkeys`.\n\n[account.Passkeys](https://core.telegram.org/type/account.Passkeys.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.Passkeys", "oneOf": [{"$ref": "#/components/schemas/account.passkeys"}], "description": "Тип TL: account.Passkeys."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.getPasskeys"}, "x-browser-schema-id": "3927903314"}}, "/catalog/account.deletePasskey": {"post": {"operationId": "account.deletePasskey", "tags": ["Аккаунт"], "summary": "Удалите ключ доступа, связанный с текущей учетной записью, см. здесь » для получения дополнительной информации.", "description": "Удалите ключ доступа, связанный с текущей учетной записью, см. [здесь »](https://core.telegram.org/api/passkeys.md#delete-passkeys) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.deletePasskey", "x-tl-id": "4122302015", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/account.deletePasskey"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор удаляемого ключа доступа, взятый из [passkey](https://core.telegram.org/constructor/passkey.md).`id`, обычно получаемый с помощью [account.getPasskeys](https://core.telegram.org/method/account.getPasskeys.md)."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `string` | Да | Идентификатор удаляемого ключа доступа, взятый из [passkey](https://core.telegram.org/constructor/passkey.md).`id`, обычно получаемый с помощью [account.getPasskeys](https://core.telegram.org/method/account.getPasskeys.md). |"}, "x-browser-schema-id": "4122302015"}}, "/catalog/account.confirmBotConnection": {"post": {"operationId": "account.confirmBotConnection", "tags": ["Аккаунт"], "summary": "account.confirmBotConnection", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "account.confirmBotConnection", "x-tl-id": "1743593320", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}}, "additionalProperties": false, "required": ["bot_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot_id` | `InputUser` | Да | Тип TL: InputUser. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1743593320"}}, "/catalog/account.getWebBrowserSettings": {"post": {"operationId": "account.getWebBrowserSettings", "tags": ["Аккаунт"], "summary": "account.getWebBrowserSettings", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "account.getWebBrowserSettings", "x-tl-id": "1449482088", "x-tl-result": "account.WebBrowserSettings", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.WebBrowserSettings`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.WebBrowserSettings", "oneOf": [{"$ref": "#/components/schemas/account.webBrowserSettingsNotModified"}, {"$ref": "#/components/schemas/account.webBrowserSettings"}], "description": "Тип TL: account.WebBrowserSettings."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1449482088"}}, "/catalog/account.updateWebBrowserSettings": {"post": {"operationId": "account.updateWebBrowserSettings", "tags": ["Аккаунт"], "summary": "account.updateWebBrowserSettings", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "account.updateWebBrowserSettings", "x-tl-id": "2598339326", "x-tl-result": "account.WebBrowserSettings", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.WebBrowserSettings`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.WebBrowserSettings", "oneOf": [{"$ref": "#/components/schemas/account.webBrowserSettingsNotModified"}, {"$ref": "#/components/schemas/account.webBrowserSettings"}], "description": "Тип TL: account.WebBrowserSettings."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"open_external_browser": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "display_close_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `open_external_browser` | `true` | Нет | Значение типа TL `true`. |\n| `display_close_button` | `true` | Нет | Значение типа TL `true`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2598339326"}}, "/catalog/account.toggleWebBrowserSettingsException": {"post": {"operationId": "account.toggleWebBrowserSettingsException", "tags": ["Аккаунт"], "summary": "account.toggleWebBrowserSettingsException", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "account.toggleWebBrowserSettingsException", "x-tl-id": "1626161705", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"delete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "open_external_browser": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Значение типа TL `Bool`."}, "url": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["url"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `delete` | `true` | Нет | Значение типа TL `true`. |\n| `open_external_browser` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `url` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1626161705"}}, "/catalog/account.deleteWebBrowserSettingsExceptions": {"post": {"operationId": "account.deleteWebBrowserSettingsExceptions", "tags": ["Аккаунт"], "summary": "account.deleteWebBrowserSettingsExceptions", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "account.deleteWebBrowserSettingsExceptions", "x-tl-id": "2258663005", "x-tl-result": "account.WebBrowserSettings", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `account.WebBrowserSettings`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "account.WebBrowserSettings", "oneOf": [{"$ref": "#/components/schemas/account.webBrowserSettingsNotModified"}, {"$ref": "#/components/schemas/account.webBrowserSettings"}], "description": "Тип TL: account.WebBrowserSettings."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2258663005"}}, "/catalog/users.getUsers": {"post": {"operationId": "users.getUsers", "tags": ["Пользователи"], "summary": "Возвращает основную информацию о пользователе в соответствии с его идентификаторами.", "description": "Возвращает основную информацию о пользователе в соответствии с его идентификаторами.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "users.getUsers", "x-tl-id": "227648840", "x-tl-result": "Vector<User>", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<User>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Пользователь](https://core.telegram.org/type/User.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `FROM_MESSAGE_BOT_DISABLED` — Боты не могут использовать конструкторы fromMessage min.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/users.getUsers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Список идентификаторов пользователей"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputUser>` | Да | Список идентификаторов пользователей |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "FROM_MESSAGE_BOT_DISABLED", "MSG_ID_INVALID", "PEER_ID_INVALID", "USER_BANNED_IN_CHANNEL"], "x-browser-schema-id": "227648840"}}, "/catalog/users.getFullUser": {"post": {"operationId": "users.getFullUser", "tags": ["Пользователи"], "summary": "Получить подробный профиль пользователя", "description": "Возвращает расширенные сведения о пользователе. В ответе могут быть описание профиля и связанные пользователи или чаты.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "users.getFullUser", "x-tl-id": "3054459160", "x-tl-result": "users.UserFull", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `users.UserFull`.\n\n[users.UserFull](https://core.telegram.org/type/users.UserFull.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "users.UserFull", "oneOf": [{"$ref": "#/components/schemas/users.userFull"}], "description": "Тип TL: users.UserFull."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USERNAME_OCCUPIED` — Указанное имя пользователя уже занято.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/users.getFullUser"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, сведения о котором нужно получить.", "example": {"_": "inputUserSelf"}}}, "additionalProperties": false, "required": ["id"]}, "example": {"id": {"_": "inputUserSelf"}}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | Да | Пользователь, сведения о котором нужно получить. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "USERNAME_OCCUPIED", "USER_ID_INVALID"], "x-browser-schema-id": "3054459160"}}, "/catalog/users.setSecureValueErrors": {"post": {"operationId": "users.setSecureValueErrors", "tags": ["Пользователи"], "summary": "Уведомить пользователя о том, что отправленные паспортные данные содержат ошибки. Пользователь не сможет повторно отправить вам свои паспортные данные до тех пор, пока ошибки не будут исправлены (содержимое поля, для которого вы вернули ошибку, должно измениться).", "description": "Сообщите пользователю, что отправленные данные [passport](https://core.telegram.org/passport.md) содержат некоторые ошибки. Пользователь не сможет повторно отправить вам свои паспортные данные до тех пор, пока ошибки не будут исправлены (содержимое поля, для которого вы вернули ошибку, должно измениться).\n\nИспользуйте это, если данные, отправленные пользователем, по какой-либо причине не соответствуют стандартам, требуемым вашей службой. Например, если дата дня рождения кажется неверной, отправленный документ размыт, сканирование показывает признаки фальсификации и т. д. Укажите некоторые подробности в сообщении об ошибке, чтобы убедиться, что пользователь знает, как исправить проблемы.\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "users.setSecureValueErrors", "x-tl-id": "2429064373", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DATA_HASH_SIZE_INVALID` — Размер указанного secureValueErrorData.data_hash недействителен.\n- 400 · `HASH_SIZE_INVALID` — Размер указанного secureValueError.hash недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/users.setSecureValueErrors"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь"}, "errors": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueError", "oneOf": [{"$ref": "#/components/schemas/secureValueErrorData"}, {"$ref": "#/components/schemas/secureValueErrorFrontSide"}, {"$ref": "#/components/schemas/secureValueErrorReverseSide"}, {"$ref": "#/components/schemas/secureValueErrorSelfie"}, {"$ref": "#/components/schemas/secureValueErrorFile"}, {"$ref": "#/components/schemas/secureValueErrorFiles"}, {"$ref": "#/components/schemas/secureValueError"}, {"$ref": "#/components/schemas/secureValueErrorTranslationFile"}, {"$ref": "#/components/schemas/secureValueErrorTranslationFiles"}], "description": "Тип TL: SecureValueError."}, "x-tl-type": "Vector<SecureValueError>", "description": "Ошибки"}}, "additionalProperties": false, "required": ["id", "errors"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | Да | Пользователь |\n| `errors` | `Vector<SecureValueError>` | Да | Ошибки |"}, "x-telegram-rpc-errors": ["DATA_HASH_SIZE_INVALID", "HASH_SIZE_INVALID", "USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "2429064373"}}, "/catalog/users.getRequirementsToContact": {"post": {"operationId": "users.getRequirementsToContact", "tags": ["Пользователи"], "summary": "Проверьте, можем ли мы писать указанным пользователям, что используется для реализации массовой проверки сообщений «только премиум» и платных сообщений».", "description": "Проверьте, можем ли мы писать указанным пользователям, которые используются для реализации массовых проверок для [сообщений только для премиум-класса »](https://core.telegram.org/api/privacy.md#require-premium-for-new-non-contact-users) и [платных сообщений »](https://core.telegram.org/api/paid-messages.md).\n\nДля каждого пользователя ввода возвращает конструктор [RequirementToContact](https://core.telegram.org/type/RequirementToContact.md) (с тем же смещением в векторе), содержащий требования для связи с ним.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Privacy settings](https://core.telegram.org/api/privacy.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)", "x-tl-method": "users.getRequirementsToContact", "x-tl-id": "3634004899", "x-tl-result": "Vector<RequirementToContact>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Privacy settings", "https://core.telegram.org/api/privacy.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<RequirementToContact>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Требование к контакту](https://core.telegram.org/type/RequirementToContact.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "RequirementToContact", "oneOf": [{"$ref": "#/components/schemas/requirementToContactEmpty"}, {"$ref": "#/components/schemas/requirementToContactPremium"}, {"$ref": "#/components/schemas/requirementToContactPaidMessages"}], "description": "Тип TL: RequirementToContact."}, "x-tl-type": "Vector<RequirementToContact>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/users.getRequirementsToContact"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Пользователи для проверки."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputUser>` | Да | Пользователи для проверки. |"}, "x-browser-schema-id": "3634004899"}}, "/catalog/users.getSavedMusic": {"post": {"operationId": "users.getSavedMusic", "tags": ["Пользователи"], "summary": "Закрепите песни в профиле пользователя. Дополнительную информацию см. здесь ».", "description": "Получите песни [прикрепленные к профилю пользователя, дополнительную информацию см. здесь »](https://core.telegram.org/api/profile.md#music).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "users.getSavedMusic", "x-tl-id": "2022539235", "x-tl-result": "users.SavedMusic", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `users.SavedMusic`.\n\n[users.SavedMusic](https://core.telegram.org/type/users.SavedMusic.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "users.SavedMusic", "oneOf": [{"$ref": "#/components/schemas/users.savedMusicNotModified"}, {"$ref": "#/components/schemas/users.savedMusic"}], "description": "Тип TL: users.SavedMusic."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/users.getSavedMusic"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя."}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение для нумерации страниц."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш »](https://core.telegram.org/api/offsets.md#hash-generation) идентификаторов ранее добавленных песен, чтобы избежать возврата результата, если не было изменений.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["id", "offset", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | Да | Идентификатор пользователя. |\n| `offset` | `int` | Да | Смещение для нумерации страниц. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш »](https://core.telegram.org/api/offsets.md#hash-generation) идентификаторов ранее добавленных песен, чтобы избежать возврата результата, если не было изменений. |"}, "x-telegram-rpc-errors": ["USER_ID_INVALID"], "x-browser-schema-id": "2022539235"}}, "/catalog/users.getSavedMusicByID": {"post": {"operationId": "users.getSavedMusicByID", "tags": ["Пользователи"], "summary": "Проверьте, закреплены ли переданные песни в профиле пользователя, или обновите ссылки на файлы песен, закрепленных в профиле пользователя, см. здесь » для получения дополнительной информации.", "description": "Проверьте, закреплены ли переданные песни в профиле пользователя, или обновите ссылки на файлы песен, закрепленных в профиле пользователя [см. здесь »](https://core.telegram.org/api/profile.md#music) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "users.getSavedMusicByID", "x-tl-id": "1970513129", "x-tl-result": "users.SavedMusic", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `users.SavedMusic`.\n\n[users.SavedMusic](https://core.telegram.org/type/users.SavedMusic.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "users.SavedMusic", "oneOf": [{"$ref": "#/components/schemas/users.savedMusicNotModified"}, {"$ref": "#/components/schemas/users.savedMusic"}], "description": "Тип TL: users.SavedMusic."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/users.getSavedMusicByID"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя."}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Тип TL: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "description": "Песни (здесь `file_reference` могут быть пустыми, чтобы обновить ссылки на файлы)."}}, "additionalProperties": false, "required": ["id", "documents"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | Да | Идентификатор пользователя. |\n| `documents` | `Vector<InputDocument>` | Да | Песни (здесь `file_reference` могут быть пустыми, чтобы обновить ссылки на файлы). |"}, "x-telegram-rpc-errors": ["USER_ID_INVALID"], "x-browser-schema-id": "1970513129"}}, "/catalog/users.suggestBirthday": {"post": {"operationId": "users.suggestBirthday", "tags": ["Пользователи"], "summary": "Предложите день рождения другому пользователю. Дополнительную информацию о днях рождения в API см. здесь ».", "description": "Предложите день рождения другому пользователю, см. [здесь »](https://core.telegram.org/api/profile.md#birthday) дополнительную информацию о днях рождения в API.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "users.suggestBirthday", "x-tl-id": "4233311090", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BIRTHDAY_ALREADY` — У целевого пользователя уже есть набор дней рождения.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/users.suggestBirthday"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, который получит предложенную дату рождения."}, "birthday": {"type": "object", "x-tl-type": "Birthday", "oneOf": [{"$ref": "#/components/schemas/birthday"}], "description": "День рождения, который можно предложить."}}, "additionalProperties": false, "required": ["id", "birthday"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | Да | Пользователь, который получит предложенную дату рождения. |\n| `birthday` | `Birthday` | Да | День рождения, который можно предложить. |"}, "x-telegram-rpc-errors": ["BIRTHDAY_ALREADY", "USER_ID_INVALID"], "x-browser-schema-id": "4233311090"}}, "/catalog/contacts.getContactIDs": {"post": {"operationId": "contacts.getContactIDs", "tags": ["Контакты"], "summary": "Получите идентификаторы телеграмм всех контактов.", "description": "Получите идентификаторы телеграмм всех контактов.\nВозвращает массив идентификаторов пользователей Telegram для всех контактов (0, если у контакта нет связанной учетной записи Telegram или он скрыл свою учетную запись с помощью настроек конфиденциальности).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.getContactIDs", "x-tl-id": "2061264541", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<int>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[int](https://core.telegram.org/type/int.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getContactIDs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation) |"}, "x-browser-schema-id": "2061264541"}}, "/catalog/contacts.getStatuses": {"post": {"operationId": "contacts.getStatuses", "tags": ["Контакты"], "summary": "Используйте этот метод, чтобы получить онлайн-статусы всех контактов с доступной учетной записью Telegram.", "description": "Используйте этот метод, чтобы получить онлайн-статусы всех контактов с доступной учетной записью Telegram.", "x-tl-method": "contacts.getStatuses", "x-tl-id": "3299038190", "x-tl-result": "Vector<ContactStatus>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<ContactStatus>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Статус контакта](https://core.telegram.org/type/ContactStatus.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "ContactStatus", "oneOf": [{"$ref": "#/components/schemas/contactStatus"}], "description": "Тип TL: ContactStatus."}, "x-tl-type": "Vector<ContactStatus>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getStatuses"}, "x-browser-schema-id": "3299038190"}}, "/catalog/contacts.getContacts": {"post": {"operationId": "contacts.getContacts", "tags": ["Контакты"], "summary": "Возвращает список контактов текущего пользователя.", "description": "Возвращает список контактов текущего пользователя.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.getContacts", "x-tl-id": "1574346258", "x-tl-result": "contacts.Contacts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `contacts.Contacts`.\n\n[contacts.Contacts](https://core.telegram.org/type/contacts.Contacts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.Contacts", "oneOf": [{"$ref": "#/components/schemas/contacts.contactsNotModified"}, {"$ref": "#/components/schemas/contacts.contacts"}], "description": "Тип TL: contacts.Contacts."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getContacts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). Обратите внимание, что хеш вычисляется [с использованием обычного алгоритма](https://core.telegram.org/api/offsets.md#hash-generation), сначала передавая алгоритму ранее возвращенное [contacts.contacts](https://core.telegram.org/constructor/contacts.contacts.md).`saved_count` поле, затем максимум `100000` отсортированных идентификаторов пользователей из списка контактов, включая идентификатор текущего вошедшего в систему пользователя, если он сохранен как контакт.  Пример: [реализация tdlib](https://github.com/tdlib/td/blob/73035e4a69ed26df563652de14aa9c4c86d23420/td/telegram/UserManager.cpp#L7865).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). Обратите внимание, что хеш вычисляется [с использованием обычного алгоритма](https://core.telegram.org/api/offsets.md#hash-generation), сначала передавая алгоритму ранее возвращенное [contacts.contacts](https://core.telegram.org/constructor/contacts.contacts.md).`saved_count` поле, затем максимум `100000` отсортированных идентификаторов пользователей из списка контактов, включая идентификатор текущего вошедшего в систему пользователя, если он сохранен как контакт.  Пример: [реализация tdlib](https://github.com/tdlib/td/blob/73035e4a69ed26df563652de14aa9c4c86d23420/td/telegram/UserManager.cpp#L7865). |"}, "x-browser-schema-id": "1574346258"}}, "/catalog/contacts.importContacts": {"post": {"operationId": "contacts.importContacts", "tags": ["Контакты"], "summary": "Импортирует контакты: сохраняет полный список на сервере, добавляет в список контактов уже зарегистрированные контакты, возвращает добавленные контакты и их информацию.", "description": "Импортирует контакты: сохраняет полный список на сервере, добавляет в список контактов уже зарегистрированные контакты, возвращает добавленные контакты и их информацию.\n\nИспользуйте [contacts.addContact](https://core.telegram.org/method/contacts.addContact.md), чтобы добавить контакты Telegram, фактически не используя их номер телефона.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "contacts.importContacts", "x-tl-id": "746589157", "x-tl-result": "contacts.ImportedContacts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `contacts.ImportedContacts`.\n\n[contacts.ImportedContacts](https://core.telegram.org/type/contacts.ImportedContacts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.ImportedContacts", "oneOf": [{"$ref": "#/components/schemas/contacts.importedContacts"}], "description": "Тип TL: contacts.ImportedContacts."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.importContacts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"contacts": {"type": "array", "items": {"type": "object", "x-tl-type": "InputContact", "oneOf": [{"$ref": "#/components/schemas/inputPhoneContact"}], "description": "Тип TL: InputContact."}, "x-tl-type": "Vector<InputContact>", "description": "Список контактов для импорта"}}, "additionalProperties": false, "required": ["contacts"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `contacts` | `Vector<InputContact>` | Да | Список контактов для импорта |"}, "x-browser-schema-id": "746589157"}}, "/catalog/contacts.deleteContacts": {"post": {"operationId": "contacts.deleteContacts", "tags": ["Контакты"], "summary": "Удаляет несколько контактов из списка.", "description": "Удаляет несколько контактов из списка.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "contacts.deleteContacts", "x-tl-id": "157945344", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.deleteContacts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Список идентификаторов пользователей"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputUser>` | Да | Список идентификаторов пользователей |"}, "x-telegram-rpc-errors": ["MSG_ID_INVALID"], "x-browser-schema-id": "157945344"}}, "/catalog/contacts.deleteByPhones": {"post": {"operationId": "contacts.deleteByPhones", "tags": ["Контакты"], "summary": "Удаление контактов по номеру телефона", "description": "Удаление контактов по номеру телефона", "x-tl-method": "contacts.deleteByPhones", "x-tl-id": "269745566", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.deleteByPhones"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phones": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Номера телефонов"}}, "additionalProperties": false, "required": ["phones"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phones` | `Vector<string>` | Да | Номера телефонов |"}, "x-browser-schema-id": "269745566"}}, "/catalog/contacts.block": {"post": {"operationId": "contacts.block", "tags": ["Контакты"], "summary": "Добавляет узел в черный список. Дополнительную информацию см. здесь ».", "description": "Добавляет узел в черный список, дополнительную информацию см. [здесь »](https://core.telegram.org/api/block.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Blocked users](https://core.telegram.org/api/block.md)", "x-tl-method": "contacts.block", "x-tl-id": "774801204", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CONTACT_ID_INVALID` — Указанный идентификатор контакта недействителен.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.block"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Следует ли добавлять узел в черный список историй; если не установлено, узел будет добавлен в основной черный список, дополнительную информацию см. [здесь »](https://core.telegram.org/api/block.md)."}, "id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `my_stories_from` | `true` | Нет | Следует ли добавлять узел в черный список историй; если не установлено, узел будет добавлен в основной черный список, дополнительную информацию см. [здесь »](https://core.telegram.org/api/block.md). |\n| `id` | `InputPeer` | Да | Пэр |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "CONTACT_ID_INVALID", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "774801204"}}, "/catalog/contacts.unblock": {"post": {"operationId": "contacts.unblock", "tags": ["Контакты"], "summary": "Удаляет узел из черного списка. Дополнительную информацию см. здесь ».", "description": "Удаляет одноранговый узел из черного списка. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/block.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Blocked users](https://core.telegram.org/api/block.md)", "x-tl-method": "contacts.unblock", "x-tl-id": "3041973032", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CONTACT_ID_INVALID` — Указанный идентификатор контакта недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.unblock"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Следует ли удалить узел из черного списка историй; если не установлено, узел будет удален из основного черного списка, дополнительную информацию см. [здесь »](https://core.telegram.org/api/block.md)."}, "id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `my_stories_from` | `true` | Нет | Следует ли удалить узел из черного списка историй; если не установлено, узел будет удален из основного черного списка, дополнительную информацию см. [здесь »](https://core.telegram.org/api/block.md). |\n| `id` | `InputPeer` | Да | Пэр |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "CONTACT_ID_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3041973032"}}, "/catalog/contacts.getBlocked": {"post": {"operationId": "contacts.getBlocked", "tags": ["Контакты"], "summary": "Возвращает список заблокированных пользователей.", "description": "Возвращает список заблокированных пользователей.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Blocked users](https://core.telegram.org/api/block.md)", "x-tl-method": "contacts.getBlocked", "x-tl-id": "2592509824", "x-tl-result": "contacts.Blocked", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"]], "responses": {"200": {"description": "Результат MTProto · `contacts.Blocked`.\n\n[contacts.Blocked](https://core.telegram.org/type/contacts.Blocked.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.Blocked", "oneOf": [{"$ref": "#/components/schemas/contacts.blocked"}, {"$ref": "#/components/schemas/contacts.blockedSlice"}], "description": "Тип TL: contacts.Blocked."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getBlocked"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Получать ли черный список историй; если не установлено, будет получен основной черный список. См. [здесь »](https://core.telegram.org/api/block.md) различия между ними."}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество элементов списка, которые нужно пропустить"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество элементов списка, которые будут возвращены"}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `my_stories_from` | `true` | Нет | Получать ли черный список историй; если не установлено, будет получен основной черный список. См. [здесь »](https://core.telegram.org/api/block.md) различия между ними. |\n| `offset` | `int` | Да | Количество элементов списка, которые нужно пропустить |\n| `limit` | `int` | Да | Количество элементов списка, которые будут возвращены |"}, "x-browser-schema-id": "2592509824"}}, "/catalog/contacts.search": {"post": {"operationId": "contacts.search", "tags": ["Контакты"], "summary": "Возвращает пользователей, найденных по подстроке имени пользователя.", "description": "Возвращает пользователей, найденных по подстроке имени пользователя.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "contacts.search", "x-tl-id": "99978511", "x-tl-result": "contacts.Found", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `contacts.Found`.\n\n[contacts.Found](https://core.telegram.org/type/contacts.Found.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.Found", "oneOf": [{"$ref": "#/components/schemas/contacts.found"}], "description": "Тип TL: contacts.Found."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `QUERY_TOO_SHORT` — Строка запроса слишком коротка.\n- 400 · `SEARCH_QUERY_EMPTY` — Поисковый запрос пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.search"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "bots": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "q": {"type": "string", "x-tl-type": "string", "description": "Целевая подстрока"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых пользователей"}}, "additionalProperties": false, "required": ["q", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `broadcasts` | `true` | Нет | Значение типа TL `true`. |\n| `bots` | `true` | Нет | Значение типа TL `true`. |\n| `q` | `string` | Да | Целевая подстрока |\n| `limit` | `int` | Да | Максимальное количество возвращаемых пользователей |"}, "x-telegram-rpc-errors": ["QUERY_TOO_SHORT", "SEARCH_QUERY_EMPTY"], "x-browser-schema-id": "99978511"}}, "/catalog/contacts.resolveUsername": {"post": {"operationId": "contacts.resolveUsername", "tags": ["Контакты"], "summary": "Найти пользователя, чат или канал по имени", "description": "Определяет, кто использует публичное имя, и возвращает идентификатор вместе со связанными данными.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.resolveUsername", "x-tl-id": "1918565308", "x-tl-result": "contacts.ResolvedPeer", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `contacts.ResolvedPeer`.\n\n[contacts.ResolvedPeer](https://core.telegram.org/type/contacts.ResolvedPeer.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.ResolvedPeer", "oneOf": [{"$ref": "#/components/schemas/contacts.resolvedPeer"}], "description": "Тип TL: contacts.ResolvedPeer."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CONNECTION_LAYER_INVALID` — Слой недействителен.\n- 400 · `STARREF_EXPIRED` — Указанная реферальная ссылка недействительна.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_NOT_OCCUPIED` — Указанное имя пользователя не занято."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.resolveUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"username": {"type": "string", "x-tl-type": "string", "description": "Публичное имя пользователя, чата или канала."}, "referer": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Идентификатор источника из реферальной ссылки, если он имеется."}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `username` | `string` | Да | Публичное имя пользователя, чата или канала. |\n| `referer` | `string` | Нет | Идентификатор источника из реферальной ссылки, если он имеется. |"}, "x-telegram-rpc-errors": ["CONNECTION_LAYER_INVALID", "STARREF_EXPIRED", "USERNAME_INVALID", "USERNAME_NOT_OCCUPIED"], "x-browser-schema-id": "1918565308"}}, "/catalog/contacts.getTopPeers": {"post": {"operationId": "contacts.getTopPeers", "tags": ["Контакты"], "summary": "Получите наиболее часто используемые пиры", "description": "Получите наиболее часто используемые пиры\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Guest mode for bots](https://core.telegram.org/api/bots/guest-mode.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.getTopPeers", "x-tl-id": "2536798390", "x-tl-result": "contacts.TopPeers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Guest mode for bots", "https://core.telegram.org/api/bots/guest-mode.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `contacts.TopPeers`.\n\n[contacts.TopPeers](https://core.telegram.org/type/contacts.TopPeers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.TopPeers", "oneOf": [{"$ref": "#/components/schemas/contacts.topPeersNotModified"}, {"$ref": "#/components/schemas/contacts.topPeers"}, {"$ref": "#/components/schemas/contacts.topPeersDisabled"}], "description": "Тип TL: contacts.TopPeers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TYPES_EMPTY` — Не указан верхний тип узла."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getTopPeers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"correspondents": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Пользователи, с которыми мы чаще всего общаемся"}, "bots_pm": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Самые используемые боты"}, "bots_inline": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Наиболее часто используемые встроенные боты"}, "phone_calls": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Наиболее часто звонящие пользователи"}, "forward_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Пользователи, которым пользователи часто пересылают сообщения"}, "forward_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Чаты, в которые пользователи часто пересылают сообщения"}, "groups": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true", "description": "Часто открываемые группы и супергруппы"}, "channels": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true", "description": "Наиболее часто посещаемые каналы"}, "bots_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "Наиболее часто используемые [Основные приложения мини-ботов](https://core.telegram.org/api/bots/webapps.md#main-mini-apps)."}, "bots_guestchat": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true", "description": "Наиболее часто используемые [гостевые боты »](https://core.telegram.org/api/bots/guest-mode.md)"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `correspondents` | `true` | Нет | Пользователи, с которыми мы чаще всего общаемся |\n| `bots_pm` | `true` | Нет | Самые используемые боты |\n| `bots_inline` | `true` | Нет | Наиболее часто используемые встроенные боты |\n| `phone_calls` | `true` | Нет | Наиболее часто звонящие пользователи |\n| `forward_users` | `true` | Нет | Пользователи, которым пользователи часто пересылают сообщения |\n| `forward_chats` | `true` | Нет | Чаты, в которые пользователи часто пересылают сообщения |\n| `groups` | `true` | Нет | Часто открываемые группы и супергруппы |\n| `channels` | `true` | Нет | Наиболее часто посещаемые каналы |\n| `bots_app` | `true` | Нет | Наиболее часто используемые [Основные приложения мини-ботов](https://core.telegram.org/api/bots/webapps.md#main-mini-apps). |\n| `bots_guestchat` | `true` | Нет | Наиболее часто используемые [гостевые боты »](https://core.telegram.org/api/bots/guest-mode.md) |\n| `offset` | `int` | Да | Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation) |"}, "x-telegram-rpc-errors": ["TYPES_EMPTY"], "x-browser-schema-id": "2536798390"}}, "/catalog/contacts.resetTopPeerRating": {"post": {"operationId": "contacts.resetTopPeerRating", "tags": ["Контакты"], "summary": "Сбросить рейтинг топ-аналога", "description": "Сбросить [рейтинг](https://core.telegram.org/api/top-rating.md) лучшего аналога\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Top peer rating](https://core.telegram.org/api/top-rating.md)", "x-tl-method": "contacts.resetTopPeerRating", "x-tl-id": "451113900", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Top peer rating", "https://core.telegram.org/api/top-rating.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.resetTopPeerRating"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"category": {"type": "object", "x-tl-type": "TopPeerCategory", "oneOf": [{"$ref": "#/components/schemas/topPeerCategoryBotsPM"}, {"$ref": "#/components/schemas/topPeerCategoryBotsInline"}, {"$ref": "#/components/schemas/topPeerCategoryCorrespondents"}, {"$ref": "#/components/schemas/topPeerCategoryGroups"}, {"$ref": "#/components/schemas/topPeerCategoryChannels"}, {"$ref": "#/components/schemas/topPeerCategoryPhoneCalls"}, {"$ref": "#/components/schemas/topPeerCategoryForwardUsers"}, {"$ref": "#/components/schemas/topPeerCategoryForwardChats"}, {"$ref": "#/components/schemas/topPeerCategoryBotsApp"}, {"$ref": "#/components/schemas/topPeerCategoryBotsGuestChat"}], "description": "Высшая категория аналогов"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, чей рейтинг должен быть сброшен"}}, "additionalProperties": false, "required": ["category", "peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `category` | `TopPeerCategory` | Да | Высшая категория аналогов |\n| `peer` | `InputPeer` | Да | Пир, чей рейтинг должен быть сброшен |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "451113900"}}, "/catalog/contacts.resetSaved": {"post": {"operationId": "contacts.resetSaved", "tags": ["Контакты"], "summary": "Удаляет все контакты без связанной учетной записи Telegram.", "description": "Удаляет все контакты без связанной учетной записи Telegram.", "x-tl-method": "contacts.resetSaved", "x-tl-id": "2274703345", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.resetSaved"}, "x-browser-schema-id": "2274703345"}}, "/catalog/contacts.getSaved": {"post": {"operationId": "contacts.getSaved", "tags": ["Контакты"], "summary": "Получите все контакты, требуется сеанс на вынос, см. здесь » для получения дополнительной информации.", "description": "Чтобы получить все контакты, требуется [сеанс на вынос, см. здесь » для получения дополнительной информации](https://core.telegram.org/api/takeout.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "contacts.getSaved", "x-tl-id": "2196890527", "x-tl-result": "Vector<SavedContact>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<SavedContact>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[СохраненныйКонтакт](https://core.telegram.org/type/SavedContact.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedContact", "oneOf": [{"$ref": "#/components/schemas/savedPhoneContact"}], "description": "Тип TL: SavedContact."}, "x-tl-type": "Vector<SavedContact>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TAKEOUT_INVALID` — Указанный идентификатор выноса недействителен.\n- 403 · `TAKEOUT_REQUIRED` — Сначала необходимо инициализировать сеанс [takeout](https://core.telegram.org/api/takeout.md), [подробнее см. здесь » ](https://core.telegram.org/api/takeout.md)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getSaved"}, "x-telegram-rpc-errors": ["TAKEOUT_INVALID", "TAKEOUT_REQUIRED"], "x-browser-schema-id": "2196890527"}}, "/catalog/contacts.toggleTopPeers": {"post": {"operationId": "contacts.toggleTopPeers", "tags": ["Контакты"], "summary": "Включить/отключить лучшие пиры", "description": "Включить/отключить [лучшие узлы](https://core.telegram.org/api/top-rating.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Top peer rating](https://core.telegram.org/api/top-rating.md)", "x-tl-method": "contacts.toggleTopPeers", "x-tl-id": "2232729050", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Top peer rating", "https://core.telegram.org/api/top-rating.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.toggleTopPeers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Включить/отключить"}}, "additionalProperties": false, "required": ["enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `enabled` | `Bool` | Да | Включить/отключить |"}, "x-browser-schema-id": "2232729050"}}, "/catalog/contacts.addContact": {"post": {"operationId": "contacts.addContact", "tags": ["Контакты"], "summary": "Добавьте существующего пользователя Telegram в качестве контакта.", "description": "Добавьте существующего пользователя Telegram в качестве контакта.\n\nИспользуйте [contacts.importContacts](https://core.telegram.org/method/contacts.importContacts.md), чтобы добавить контакты по номеру телефона, не зная их Telegram ID.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Contact list](https://core.telegram.org/api/contacts.md)", "x-tl-method": "contacts.addContact", "x-tl-id": "3652857428", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Contact list", "https://core.telegram.org/api/contacts.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CONTACT_ID_INVALID` — Указанный идентификатор контакта недействителен.\n- 400 · `CONTACT_NAME_EMPTY` — Имя контакта пусто.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.addContact"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"add_phone_privacy_exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Разрешить другому пользователю видеть наш номер телефона?"}, "id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Telegram ID другого пользователя"}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Имя"}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Фамилия"}, "phone": {"type": "string", "x-tl-type": "string", "description": "Номер телефона пользователя можно не указывать, чтобы просто добавить пользователя в список контактов без номера телефона."}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Личная заметка для этого контакта, видимая только нам; см. [здесь »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) дополнительную информацию о контактных заметках.", "x-tl-flag": "flags.1?TextWithEntities"}}, "additionalProperties": false, "required": ["id", "first_name", "last_name", "phone"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `add_phone_privacy_exception` | `true` | Нет | Разрешить другому пользователю видеть наш номер телефона? |\n| `id` | `InputUser` | Да | Telegram ID другого пользователя |\n| `first_name` | `string` | Да | Имя |\n| `last_name` | `string` | Да | Фамилия |\n| `phone` | `string` | Да | Номер телефона пользователя можно не указывать, чтобы просто добавить пользователя в список контактов без номера телефона. |\n| `note` | `TextWithEntities` | Нет | Личная заметка для этого контакта, видимая только нам; см. [здесь »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) дополнительную информацию о контактных заметках. |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "CONTACT_ID_INVALID", "CONTACT_NAME_EMPTY", "MSG_ID_INVALID"], "x-browser-schema-id": "3652857428"}}, "/catalog/contacts.acceptContact": {"post": {"operationId": "contacts.acceptContact", "tags": ["Контакты"], "summary": "Если панель действий «Добавить контакт» активна, добавьте этого пользователя в качестве контакта.", "description": "Если [панель действий «Добавить контакт» активна](https://core.telegram.org/api/action-bar.md#add-contact), добавьте этого пользователя в качестве контакта.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Action bar](https://core.telegram.org/api/action-bar.md)", "x-tl-method": "contacts.acceptContact", "x-tl-id": "4164002319", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Action bar", "https://core.telegram.org/api/action-bar.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CONTACT_ADD_MISSING` — Отсутствует контакт для добавления.\n- 400 · `CONTACT_ID_INVALID` — Указанный идентификатор контакта недействителен.\n- 400 · `CONTACT_REQ_MISSING` — Отсутствует запрос на контакт.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.acceptContact"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, которого нужно добавить в качестве контакта"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | Да | Пользователь, которого нужно добавить в качестве контакта |"}, "x-telegram-rpc-errors": ["CONTACT_ADD_MISSING", "CONTACT_ID_INVALID", "CONTACT_REQ_MISSING", "MSG_ID_INVALID"], "x-browser-schema-id": "4164002319"}}, "/catalog/contacts.getLocated": {"post": {"operationId": "contacts.getLocated", "tags": ["Контакты"], "summary": "Привлекайте пользователей и геочаты рядом с вами. Дополнительную информацию см. здесь ».", "description": "Привлекайте пользователей и геочаты рядом с вами, см. [здесь »](https://core.telegram.org/api/nearby.md) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Nearby users&chats](https://core.telegram.org/api/nearby.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "contacts.getLocated", "x-tl-id": "3544759364", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Nearby users&chats", "https://core.telegram.org/api/nearby.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `BUSINESS_ADDRESS_ACTIVE` — В настоящее время пользователь рекламирует [Местоположение компании](https://core.telegram.org/api/business.md#location), местоположение можно изменить (или удалить) только с помощью [account.updateBusinessLocation »](https://core.telegram.org/method/account.updateBusinessLocation.md).  .\n- 400 · `GEO_POINT_INVALID` — Указана неверная геопозиция.\n- 406 · `USERPIC_PRIVACY_REQUIRED` — Вам необходимо отключить настройки конфиденциальности для изображения вашего профиля, чтобы сделать вашу геолокацию общедоступной.\n- 406 · `USERPIC_UPLOAD_REQUIRED` — Для публикации геолокации у вас должно быть изображение профиля."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getLocated"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Хотя геолокация текущего пользователя общедоступна, клиенты должны обновлять ее в фоновом режиме каждые полчаса или около того, устанавливая этот флаг.  Делайте это только в том случае, если новое местоположение находится на расстоянии более 1 км от предыдущего или если предыдущее местоположение неизвестно."}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "oneOf": [{"$ref": "#/components/schemas/inputGeoPointEmpty"}, {"$ref": "#/components/schemas/inputGeoPoint"}], "description": "Геолокация"}, "self_expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Если установлено, геолокация текущего пользователя будет общедоступной в течение указанного количества секунд; передайте 0x7fffffff, чтобы отключить срок действия, 0, чтобы сделать текущую геолокацию конфиденциальной; если флаг не установлен, никакие изменения не будут применены."}}, "additionalProperties": false, "required": ["geo_point"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `background` | `true` | Нет | Хотя геолокация текущего пользователя общедоступна, клиенты должны обновлять ее в фоновом режиме каждые полчаса или около того, устанавливая этот флаг.  Делайте это только в том случае, если новое местоположение находится на расстоянии более 1 км от предыдущего или если предыдущее местоположение неизвестно. |\n| `geo_point` | `InputGeoPoint` | Да | Геолокация |\n| `self_expires` | `int` | Нет | Если установлено, геолокация текущего пользователя будет общедоступной в течение указанного количества секунд; передайте 0x7fffffff, чтобы отключить срок действия, 0, чтобы сделать текущую геолокацию конфиденциальной; если флаг не установлен, никакие изменения не будут применены. |"}, "x-telegram-rpc-errors": ["BUSINESS_ADDRESS_ACTIVE", "GEO_POINT_INVALID", "USERPIC_PRIVACY_REQUIRED", "USERPIC_UPLOAD_REQUIRED"], "x-browser-schema-id": "3544759364"}}, "/catalog/contacts.blockFromReplies": {"post": {"operationId": "contacts.blockFromReplies", "tags": ["Контакты"], "summary": "Перестать получать уведомления об ответах на обсуждения определенного пользователя в `@replies`", "description": "Перестаньте получать уведомления об [ответах на обсуждения](https://core.telegram.org/api/discussion.md) определенного пользователя в `@replies`\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "contacts.blockFromReplies", "x-tl-id": "698914348", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.blockFromReplies"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"delete_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалить ли также указанное сообщение"}, "delete_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Удалить ли также все сообщения `@replies` от этого пользователя?"}, "report_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Сообщать ли об этом пользователе также как о спаме?"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID сообщения в чате [@replies](https://core.telegram.org/api/discussion.md#replies)"}}, "additionalProperties": false, "required": ["msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `delete_message` | `true` | Нет | Удалить ли также указанное сообщение |\n| `delete_history` | `true` | Нет | Удалить ли также все сообщения `@replies` от этого пользователя? |\n| `report_spam` | `true` | Нет | Сообщать ли об этом пользователе также как о спаме? |\n| `msg_id` | `int` | Да | ID сообщения в чате [@replies](https://core.telegram.org/api/discussion.md#replies) |"}, "x-telegram-rpc-errors": ["MSG_ID_INVALID"], "x-browser-schema-id": "698914348"}}, "/catalog/contacts.resolvePhone": {"post": {"operationId": "contacts.resolvePhone", "tags": ["Контакты"], "summary": "Разрешите номер телефона, чтобы получить информацию о пользователе, если его настройки конфиденциальности позволяют это.", "description": "Разрешите номер телефона, чтобы получить информацию о пользователе, если его настройки конфиденциальности позволяют это.\n\nОбязательно реализуйте ограничение/устранение дребезга на стороне клиента для этого метода, разрешая не более 1 вызова каждые 3 секунды.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.resolvePhone", "x-tl-id": "2331591492", "x-tl-result": "contacts.ResolvedPeer", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `contacts.ResolvedPeer`.\n\n[contacts.ResolvedPeer](https://core.telegram.org/type/contacts.ResolvedPeer.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.ResolvedPeer", "oneOf": [{"$ref": "#/components/schemas/contacts.resolvedPeer"}], "description": "Тип TL: contacts.ResolvedPeer."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PHONE_NOT_OCCUPIED` — С указанным номером телефона не связан ни один пользователь."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.resolvePhone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"phone": {"type": "string", "x-tl-type": "string", "description": "Номер телефона в международном формате, возможно, полученный по [глубинной ссылке на номер телефона](https://core.telegram.org/api/links.md#phone-number-links)."}}, "additionalProperties": false, "required": ["phone"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `phone` | `string` | Да | Номер телефона в международном формате, возможно, полученный по [глубинной ссылке на номер телефона](https://core.telegram.org/api/links.md#phone-number-links). |"}, "x-telegram-rpc-errors": ["PHONE_NOT_OCCUPIED"], "x-browser-schema-id": "2331591492"}}, "/catalog/contacts.exportContactToken": {"post": {"operationId": "contacts.exportContactToken", "tags": ["Контакты"], "summary": "Создает временную ссылку на профиль для текущего пользователя, вошедшего в систему.", "description": "Создает [ссылку на временный профиль](https://core.telegram.org/api/links.md#temporary-profile-links) для текущего вошедшего в систему пользователя.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.exportContactToken", "x-tl-id": "4167385127", "x-tl-result": "ExportedContactToken", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `ExportedContactToken`.\n\n[ExportedContactToken](https://core.telegram.org/type/ExportedContactToken.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedContactToken", "oneOf": [{"$ref": "#/components/schemas/exportedContactToken"}], "description": "Тип TL: ExportedContactToken."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.exportContactToken"}, "x-browser-schema-id": "4167385127"}}, "/catalog/contacts.importContactToken": {"post": {"operationId": "contacts.importContactToken", "tags": ["Контакты"], "summary": "Получите информацию о пользователе по временной ссылке на профиль.", "description": "Получите информацию о пользователе по [временной ссылке на профиль](https://core.telegram.org/api/links.md#temporary-profile-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.importContactToken", "x-tl-id": "318789512", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `User`.\n\n[Пользователь](https://core.telegram.org/type/User.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `IMPORT_TOKEN_INVALID` — Указанный токен недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.importContactToken"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"token": {"type": "string", "x-tl-type": "string", "description": "Токен, извлеченный из [ссылки на временный профиль](https://core.telegram.org/api/links.md#temporary-profile-links)."}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `token` | `string` | Да | Токен, извлеченный из [ссылки на временный профиль](https://core.telegram.org/api/links.md#temporary-profile-links). |"}, "x-telegram-rpc-errors": ["IMPORT_TOKEN_INVALID"], "x-browser-schema-id": "318789512"}}, "/catalog/contacts.editCloseFriends": {"post": {"operationId": "contacts.editCloseFriends", "tags": ["Контакты"], "summary": "Отредактируйте список близких друзей. Дополнительную информацию см. здесь ».", "description": "Отредактируйте [список близких друзей, см. здесь »](https://core.telegram.org/api/privacy.md) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Privacy settings](https://core.telegram.org/api/privacy.md)", "x-tl-method": "contacts.editCloseFriends", "x-tl-id": "3127313904", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Privacy settings", "https://core.telegram.org/api/privacy.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.editCloseFriends"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Полный список идентификаторов пользователей близких друзей см. [здесь](https://core.telegram.org/api/privacy.md) для получения дополнительной информации."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | Да | Полный список идентификаторов пользователей близких друзей см. [здесь](https://core.telegram.org/api/privacy.md) для получения дополнительной информации. |"}, "x-browser-schema-id": "3127313904"}}, "/catalog/contacts.setBlocked": {"post": {"operationId": "contacts.setBlocked", "tags": ["Контакты"], "summary": "Замените содержимое всего черного списка, дополнительную информацию см. здесь ».", "description": "Заменить содержимое всего [черного списка, дополнительную информацию см. здесь »](https://core.telegram.org/api/block.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Blocked users](https://core.telegram.org/api/block.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.setBlocked", "x-tl-id": "2496027766", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.setBlocked"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Редактировать ли черный список историй; если не установлено, будет редактировать основной черный список. См. [здесь »](https://core.telegram.org/api/block.md) различия между ними."}, "id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Полное содержание черного списка."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `my_stories_from` | `true` | Нет | Редактировать ли черный список историй; если не установлено, будет редактировать основной черный список. См. [здесь »](https://core.telegram.org/api/block.md) различия между ними. |\n| `id` | `Vector<InputPeer>` | Да | Полное содержание черного списка. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "2496027766"}}, "/catalog/contacts.getBirthdays": {"post": {"operationId": "contacts.getBirthdays", "tags": ["Контакты"], "summary": "Извлечь всех пользователей, дни рождения которых попадают в пределах +1/-1 дня относительно текущего дня: этот метод должен вызываться клиентами каждые 6-8 часов, и если результат непустой, его следует использовать для соответствующего обновления локально кэшированной информации о дне рождения пользователя.`birthday`.", "description": "Получить всех пользователей, чьи дни рождения попадают в пределах +1/-1 дня относительно текущего дня: этот метод должен вызываться клиентами каждые 6-8 часов, и если результат не пуст, его следует использовать для соответствующего обновления локально кэшированной информации о днях рождения в [user](https://core.telegram.org/constructor/user.md).`birthday`.\n\n[См. здесь »](https://core.telegram.org/api/profile.md#birthday) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "contacts.getBirthdays", "x-tl-id": "3673008228", "x-tl-result": "contacts.ContactBirthdays", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `contacts.ContactBirthdays`.\n\n[contacts.ContactBirthdays](https://core.telegram.org/type/contacts.ContactBirthdays.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.ContactBirthdays", "oneOf": [{"$ref": "#/components/schemas/contacts.contactBirthdays"}], "description": "Тип TL: contacts.ContactBirthdays."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getBirthdays"}, "x-browser-schema-id": "3673008228"}}, "/catalog/contacts.getSponsoredPeers": {"post": {"operationId": "contacts.getSponsoredPeers", "tags": ["Контакты"], "summary": "Получить список результатов поиска спонсируемых коллег по заданному запросу.", "description": "Получить список результатов поиска спонсируемых коллег по заданному запросу.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "contacts.getSponsoredPeers", "x-tl-id": "3066610579", "x-tl-result": "contacts.SponsoredPeers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `contacts.SponsoredPeers`.\n\n[contacts.SponsoredPeers](https://core.telegram.org/type/contacts.SponsoredPeers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "contacts.SponsoredPeers", "oneOf": [{"$ref": "#/components/schemas/contacts.sponsoredPeersEmpty"}, {"$ref": "#/components/schemas/contacts.sponsoredPeers"}], "description": "Тип TL: contacts.SponsoredPeers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SEARCH_QUERY_EMPTY` — Поисковый запрос пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.getSponsoredPeers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"q": {"type": "string", "x-tl-type": "string", "description": "Запрос"}}, "additionalProperties": false, "required": ["q"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `q` | `string` | Да | Запрос |"}, "x-telegram-rpc-errors": ["SEARCH_QUERY_EMPTY"], "x-browser-schema-id": "3066610579"}}, "/catalog/contacts.updateContactNote": {"post": {"operationId": "contacts.updateContactNote", "tags": ["Контакты"], "summary": "Обновить личную заметку, связанную с контактом; см. здесь » для получения дополнительной информации.", "description": "Обновить личную заметку, связанную с контактом; см. [здесь »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Contact list](https://core.telegram.org/api/contacts.md)", "x-tl-method": "contacts.updateContactNote", "x-tl-id": "329212923", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Contact list", "https://core.telegram.org/api/contacts.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CONTACT_ID_INVALID` — Указанный идентификатор контакта недействителен.\n- 400 · `CONTACT_MISSING` — Указанный пользователь не является контактом."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/contacts.updateContactNote"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Контакт."}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Примечание."}}, "additionalProperties": false, "required": ["id", "note"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | Да | Контакт. |\n| `note` | `TextWithEntities` | Да | Примечание. |"}, "x-telegram-rpc-errors": ["CONTACT_ID_INVALID", "CONTACT_MISSING"], "x-browser-schema-id": "329212923"}}, "/catalog/contacts.exportNoPaidMessagesToken": {"post": {"operationId": "contacts.exportNoPaidMessagesToken", "tags": ["Контакты"], "summary": "contacts.exportNoPaidMessagesToken", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "contacts.exportNoPaidMessagesToken", "x-tl-id": "2210760366", "x-tl-result": "ExportedNoPaidMessagesToken", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `ExportedNoPaidMessagesToken`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedNoPaidMessagesToken", "oneOf": [{"$ref": "#/components/schemas/exportedNoPaidMessagesToken"}], "description": "Тип TL: ExportedNoPaidMessagesToken."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"revoke": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "temporary": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `revoke` | `true` | Нет | Значение типа TL `true`. |\n| `temporary` | `true` | Нет | Значение типа TL `true`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2210760366"}}, "/catalog/contacts.importNoPaidMessagesToken": {"post": {"operationId": "contacts.importNoPaidMessagesToken", "tags": ["Контакты"], "summary": "contacts.importNoPaidMessagesToken", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "contacts.importNoPaidMessagesToken", "x-tl-id": "900187850", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `User`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "token": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["user_id", "token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Тип TL: InputUser. |\n| `token` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "900187850"}}, "/catalog/messages.getMessages": {"post": {"operationId": "messages.getMessages", "tags": ["Сообщения"], "summary": "Возвращает список сообщений по их идентификаторам.", "description": "Возвращает список сообщений по их идентификаторам.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.getMessages", "x-tl-id": "1673946374", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMessage", "oneOf": [{"$ref": "#/components/schemas/inputMessageID"}, {"$ref": "#/components/schemas/inputMessageReplyTo"}, {"$ref": "#/components/schemas/inputMessagePinned"}, {"$ref": "#/components/schemas/inputMessageCallbackQuery"}], "description": "Тип TL: InputMessage."}, "x-tl-type": "Vector<InputMessage>", "description": "Список идентификаторов сообщений"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputMessage>` | Да | Список идентификаторов сообщений |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "MSG_ID_INVALID"], "x-browser-schema-id": "1673946374"}}, "/catalog/messages.getDialogs": {"post": {"operationId": "messages.getDialogs", "tags": ["Сообщения"], "summary": "Получить список диалогов", "description": "Возвращает страницу диалогов текущего аккаунта. Выборку можно ограничить папкой.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getDialogs", "x-tl-id": "2700397391", "x-tl-result": "messages.Dialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Dialogs`.\n\n[messages.Dialogs](https://core.telegram.org/type/messages.Dialogs.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Dialogs", "oneOf": [{"$ref": "#/components/schemas/messages.dialogs"}, {"$ref": "#/components/schemas/messages.dialogsSlice"}, {"$ref": "#/components/schemas/messages.dialogsNotModified"}], "description": "Тип TL: messages.Dialogs."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `FOLDER_ID_INVALID` — Неверный идентификатор папки.\n- 400 · `OFFSET_PEER_ID_INVALID` — Указанный узел смещения недействителен.\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Слишком много закрепленных диалогов.\n- 400 · `TAKEOUT_INVALID` — Указанный идентификатор выноса недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDialogs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"exclude_pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Пропустить закреплённые диалоги."}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Идентификатор папки диалогов."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата сообщения для перехода к следующей странице, в секундах Unix."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения для смещения по списку."}, "offset_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, относительно которого продолжается выдача."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное число возвращаемых диалогов."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хеш ранее полученных результатов для проверки изменений.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset_date", "offset_id", "offset_peer", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `exclude_pinned` | `true` | Нет | Пропустить закреплённые диалоги. |\n| `folder_id` | `int` | Нет | Идентификатор папки диалогов. |\n| `offset_date` | `int` | Да | Дата сообщения для перехода к следующей странице, в секундах Unix. |\n| `offset_id` | `int` | Да | Идентификатор сообщения для смещения по списку. |\n| `offset_peer` | `InputPeer` | Да | Чат, относительно которого продолжается выдача. |\n| `limit` | `int` | Да | Максимальное число возвращаемых диалогов. |\n| `hash` | `long` | Да | Хеш ранее полученных результатов для проверки изменений. |"}, "x-telegram-rpc-errors": ["CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "FOLDER_ID_INVALID", "OFFSET_PEER_ID_INVALID", "PINNED_DIALOGS_TOO_MUCH", "TAKEOUT_INVALID"], "x-browser-schema-id": "2700397391"}}, "/catalog/messages.getHistory": {"post": {"operationId": "messages.getHistory", "tags": ["Сообщения"], "summary": "Прочитать историю чата", "description": "Возвращает страницу сообщений выбранного чата в порядке от новых к старым.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "messages.getHistory", "x-tl-id": "1143203525", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — Текущая учетная запись [заморожена](https://core.telegram.org/api/auth.md#frozen-accounts) и не может получить доступ к указанному узлу.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TAKEOUT_INVALID` — Указанный идентификатор выноса недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, историю которого нужно прочитать."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, от которого начинается выборка."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата для смещения по истории в секундах Unix."}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дополнительное смещение в сообщениях."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное число возвращаемых сообщений."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращать сообщения с идентификатором меньше указанного."}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращать сообщения с идентификатором больше указанного."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хеш ранее полученных результатов для проверки изменений.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "offset_id", "offset_date", "add_offset", "limit", "max_id", "min_id", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, историю которого нужно прочитать. |\n| `offset_id` | `int` | Да | Идентификатор сообщения, от которого начинается выборка. |\n| `offset_date` | `int` | Да | Дата для смещения по истории в секундах Unix. |\n| `add_offset` | `int` | Да | Дополнительное смещение в сообщениях. |\n| `limit` | `int` | Да | Максимальное число возвращаемых сообщений. |\n| `max_id` | `int` | Да | Возвращать сообщения с идентификатором меньше указанного. |\n| `min_id` | `int` | Да | Возвращать сообщения с идентификатором больше указанного. |\n| `hash` | `long` | Да | Хеш ранее полученных результатов для проверки изменений. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "FROZEN_PARTICIPANT_MISSING", "MSG_ID_INVALID", "PEER_ID_INVALID", "TAKEOUT_INVALID"], "x-browser-schema-id": "1143203525"}}, "/catalog/messages.search": {"post": {"operationId": "messages.search", "tags": ["Сообщения"], "summary": "Найти сообщения в чате", "description": "Ищет сообщения по запросу и дополнительным условиям, например по автору, дате или виду вложения.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Message threads](https://core.telegram.org/api/threads.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.search", "x-tl-id": "703497338", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Message threads", "https://core.telegram.org/api/threads.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `FROM_PEER_INVALID` — Указанное from_id неверно.\n- 400 · `INPUT_FILTER_INVALID` — Указанный фильтр недействителен.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PEER_ID_NOT_SUPPORTED` — Указанный идентификатор узла не поддерживается.\n- 400 · `SEARCH_QUERY_EMPTY` — Поисковый запрос пуст.\n- 400 · `TAKEOUT_INVALID` — Указанный идентификатор выноса недействителен.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.search"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, в котором нужно искать."}, "q": {"type": "string", "x-tl-type": "string", "description": "Текст поискового запроса."}, "from_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Автор, по которому ограничивается выборка.", "x-tl-flag": "flags.0?InputPeer"}, "saved_peer_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором.", "x-tl-flag": "flags.2?InputPeer"}, "saved_reaction": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "oneOf": [{"$ref": "#/components/schemas/reactionEmpty"}, {"$ref": "#/components/schemas/reactionEmoji"}, {"$ref": "#/components/schemas/reactionCustomEmoji"}, {"$ref": "#/components/schemas/reactionPaid"}], "description": "Тип TL: Reaction."}, "x-tl-type": "Vector<Reaction>", "x-tl-flag": "flags.3?Vector<Reaction>", "description": "Используя этот флаг, вы можете искать [сохраненные сообщения с тегами »](https://core.telegram.org/api/saved-messages.md#tags) с одной или несколькими реакциями."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Идентификатор темы или верхнего сообщения ветки."}, "filter": {"type": "object", "x-tl-type": "MessagesFilter", "oneOf": [{"$ref": "#/components/schemas/inputMessagesFilterEmpty"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotoVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterDocument"}, {"$ref": "#/components/schemas/inputMessagesFilterUrl"}, {"$ref": "#/components/schemas/inputMessagesFilterGif"}, {"$ref": "#/components/schemas/inputMessagesFilterVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterMusic"}, {"$ref": "#/components/schemas/inputMessagesFilterChatPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterPhoneCalls"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterMyMentions"}, {"$ref": "#/components/schemas/inputMessagesFilterGeo"}, {"$ref": "#/components/schemas/inputMessagesFilterContacts"}, {"$ref": "#/components/schemas/inputMessagesFilterPinned"}, {"$ref": "#/components/schemas/inputMessagesFilterPoll"}], "description": "Фильтр по виду сообщений или вложений."}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Нижняя граница даты сообщения в секундах Unix."}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Верхняя граница даты сообщения в секундах Unix."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращать только сообщения, начиная с указанного идентификатора сообщения."}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Дополнительное смещение](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное число результатов за одну выдачу."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Максимальный идентификатор возвращаемого сообщения](https://core.telegram.org/api/offsets.md)"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Минимальный идентификатор сообщения для возврата](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "q", "filter", "min_date", "max_date", "offset_id", "add_offset", "limit", "max_id", "min_id", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, в котором нужно искать. |\n| `q` | `string` | Да | Текст поискового запроса. |\n| `from_id` | `InputPeer` | Нет | Автор, по которому ограничивается выборка. |\n| `saved_peer_id` | `InputPeer` | Нет | Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором. |\n| `saved_reaction` | `Vector<Reaction>` | Нет | Используя этот флаг, вы можете искать [сохраненные сообщения с тегами »](https://core.telegram.org/api/saved-messages.md#tags) с одной или несколькими реакциями. |\n| `top_msg_id` | `int` | Нет | Идентификатор темы или верхнего сообщения ветки. |\n| `filter` | `MessagesFilter` | Да | Фильтр по виду сообщений или вложений. |\n| `min_date` | `int` | Да | Нижняя граница даты сообщения в секундах Unix. |\n| `max_date` | `int` | Да | Верхняя граница даты сообщения в секундах Unix. |\n| `offset_id` | `int` | Да | Возвращать только сообщения, начиная с указанного идентификатора сообщения. |\n| `add_offset` | `int` | Да | [Дополнительное смещение](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное число результатов за одну выдачу. |\n| `max_id` | `int` | Да | [Максимальный идентификатор возвращаемого сообщения](https://core.telegram.org/api/offsets.md) |\n| `min_id` | `int` | Да | [Минимальный идентификатор сообщения для возврата](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "FROM_PEER_INVALID", "INPUT_FILTER_INVALID", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID", "PEER_ID_NOT_SUPPORTED", "SEARCH_QUERY_EMPTY", "TAKEOUT_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "703497338"}}, "/catalog/messages.readHistory": {"post": {"operationId": "messages.readHistory", "tags": ["Сообщения"], "summary": "Отмечает историю сообщений как прочитанную.", "description": "Отмечает историю сообщений как прочитанную.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.readHistory", "x-tl-id": "238054714", "x-tl-result": "messages.AffectedMessages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedMessages`.\n\n[messages.AffectedMessages](https://core.telegram.org/type/messages.AffectedMessages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedMessages", "oneOf": [{"$ref": "#/components/schemas/messages.affectedMessages"}], "description": "Тип TL: messages.AffectedMessages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Целевой пользователь или группа"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если передано положительное значение, будут прочитаны только сообщения с идентификаторами, меньшими или равными данному."}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Целевой пользователь или группа |\n| `max_id` | `int` | Да | Если передано положительное значение, будут прочитаны только сообщения с идентификаторами, меньшими или равными данному. |"}, "x-telegram-rpc-errors": ["BUSINESS_CONNECTION_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "238054714"}}, "/catalog/messages.deleteHistory": {"post": {"operationId": "messages.deleteHistory", "tags": ["Сообщения"], "summary": "Удаляет историю общения.", "description": "Удаляет историю общения.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.deleteHistory", "x-tl-id": "2962199082", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_REVOKE_DATE_UNSUPPORTED` — `min_date` и `max_date` недоступны для использования с одноранговыми узлами, не являющимися пользователями.\n- 400 · `MAX_DATE_INVALID` — Указанная максимальная дата недействительна.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MIN_DATE_INVALID` — Указанная минимальная дата недействительна.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"just_clear": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Просто очистите историю текущего пользователя, не удаляя сообщения для каждого пользователя чата."}, "revoke": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Удалить ли историю сообщений для всех участников чата"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пользователь или чат, история общения которого будет удалена"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальный идентификатор сообщения для удаления"}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "Удалить все сообщения новее этой временной метки UNIX."}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int", "description": "Удалить все сообщения старше этой отметки времени UNIX."}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `just_clear` | `true` | Нет | Просто очистите историю текущего пользователя, не удаляя сообщения для каждого пользователя чата. |\n| `revoke` | `true` | Нет | Удалить ли историю сообщений для всех участников чата |\n| `peer` | `InputPeer` | Да | Пользователь или чат, история общения которого будет удалена |\n| `max_id` | `int` | Да | Максимальный идентификатор сообщения для удаления |\n| `min_date` | `int` | Нет | Удалить все сообщения новее этой временной метки UNIX. |\n| `max_date` | `int` | Нет | Удалить все сообщения старше этой отметки времени UNIX. |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_REVOKE_DATE_UNSUPPORTED", "MAX_DATE_INVALID", "MESSAGE_ID_INVALID", "MIN_DATE_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "2962199082"}}, "/catalog/messages.deleteMessages": {"post": {"operationId": "messages.deleteMessages", "tags": ["Сообщения"], "summary": "Удаляет сообщения по их идентификаторам.", "description": "Удаляет сообщения по их идентификаторам.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.deleteMessages", "x-tl-id": "3851326930", "x-tl-result": "messages.AffectedMessages", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedMessages`.\n\n[messages.AffectedMessages](https://core.telegram.org/type/messages.AffectedMessages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedMessages", "oneOf": [{"$ref": "#/components/schemas/messages.affectedMessages"}], "description": "Тип TL: messages.AffectedMessages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `BOT_ACCESS_FORBIDDEN` — Указанный метод *может* использоваться через [бизнес-соединение](https://core.telegram.org/api/bots/connected-business-bots.md) для некоторых операций, но указанный запрос предпринял попытку выполнения операции, которая не разрешена через бизнес-соединение.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — Вы не можете удалить одно из сообщений, которые пытались удалить, скорее всего потому, что это служебное сообщение.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `SELF_DELETE_RESTRICTED` — Бизнес-боты не могут удалять сообщения только для пользователя, `revoke` **должен** быть установлен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"revoke": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалять ли сообщения для всех участников чата"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Список идентификаторов сообщений"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `revoke` | `true` | Нет | Удалять ли сообщения для всех участников чата |\n| `id` | `Vector<int>` | Да | Список идентификаторов сообщений |"}, "x-telegram-rpc-errors": ["BOT_ACCESS_FORBIDDEN", "BUSINESS_CONNECTION_INVALID", "MESSAGE_DELETE_FORBIDDEN", "MESSAGE_ID_INVALID", "SELF_DELETE_RESTRICTED"], "x-browser-schema-id": "3851326930"}}, "/catalog/messages.receivedMessages": {"post": {"operationId": "messages.receivedMessages", "tags": ["Сообщения"], "summary": "Подтверждает получение сообщений клиентом, отменяет отправку PUSH-уведомлений.", "description": "Подтверждает получение сообщений клиентом, отменяет отправку PUSH-уведомлений.", "x-tl-method": "messages.receivedMessages", "x-tl-id": "94983360", "x-tl-result": "Vector<ReceivedNotifyMessage>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<ReceivedNotifyMessage>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[ReceivedNotifyMessage](https://core.telegram.org/type/ReceivedNotifyMessage.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "ReceivedNotifyMessage", "oneOf": [{"$ref": "#/components/schemas/receivedNotifyMessage"}], "description": "Тип TL: ReceivedNotifyMessage."}, "x-tl-type": "Vector<ReceivedNotifyMessage>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.receivedMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальный идентификатор сообщения, доступный в клиенте."}}, "additionalProperties": false, "required": ["max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `max_id` | `int` | Да | Максимальный идентификатор сообщения, доступный в клиенте. |"}, "x-browser-schema-id": "94983360"}}, "/catalog/messages.setTyping": {"post": {"operationId": "messages.setTyping", "tags": ["Сообщения"], "summary": "Отправляет текущее событие ввода пользователем (все типы событий см. в разделе SendMessageAction) собеседнику или группе.", "description": "Отправляет текущее событие ввода пользователем (см. [SendMessageAction](https://core.telegram.org/type/SendMessageAction.md) для всех типов событий) собеседнику или группе.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Message threads](https://core.telegram.org/api/threads.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.setTyping", "x-tl-id": "1486110434", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message threads", "https://core.telegram.org/api/threads.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `BUSINESS_PEER_INVALID` — Сообщения не могут быть отправлены указанному узлу через текущее [деловое соединение](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUSINESS_PEER_USAGE_MISSING` — Вы не можете отправить сообщение пользователю через [деловое соединение](https://core.telegram.org/api/business.md#connected-bots), если пользователь недавно не связывался с нами.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 406 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TEXTDRAFT_PEER_INVALID` — sendMessageTextDraftAction можно использовать только в приватных чатах один на один.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем.\n- 400 · `USER_IS_BOT` — Боты не могут отправлять сообщения другим ботам."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setTyping"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Целевой пользователь или группа"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "[Идентификатор темы](https://core.telegram.org/api/threads.md)"}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "oneOf": [{"$ref": "#/components/schemas/sendMessageTypingAction"}, {"$ref": "#/components/schemas/sendMessageCancelAction"}, {"$ref": "#/components/schemas/sendMessageRecordVideoAction"}, {"$ref": "#/components/schemas/sendMessageUploadVideoAction"}, {"$ref": "#/components/schemas/sendMessageRecordAudioAction"}, {"$ref": "#/components/schemas/sendMessageUploadAudioAction"}, {"$ref": "#/components/schemas/sendMessageUploadPhotoAction"}, {"$ref": "#/components/schemas/sendMessageUploadDocumentAction"}, {"$ref": "#/components/schemas/sendMessageGeoLocationAction"}, {"$ref": "#/components/schemas/sendMessageChooseContactAction"}, {"$ref": "#/components/schemas/sendMessageGamePlayAction"}, {"$ref": "#/components/schemas/sendMessageRecordRoundAction"}, {"$ref": "#/components/schemas/sendMessageUploadRoundAction"}, {"$ref": "#/components/schemas/speakingInGroupCallAction"}, {"$ref": "#/components/schemas/sendMessageHistoryImportAction"}, {"$ref": "#/components/schemas/sendMessageChooseStickerAction"}, {"$ref": "#/components/schemas/sendMessageEmojiInteraction"}, {"$ref": "#/components/schemas/sendMessageEmojiInteractionSeen"}, {"$ref": "#/components/schemas/sendMessageTextDraftAction"}, {"$ref": "#/components/schemas/inputSendMessageRichMessageDraftAction"}, {"$ref": "#/components/schemas/sendMessageRichMessageDraftAction"}, {"$ref": "#/components/schemas/sendMessageStopDraftAction"}], "description": "Тип действия"}}, "additionalProperties": false, "required": ["peer", "action"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Целевой пользователь или группа |\n| `top_msg_id` | `int` | Нет | [Идентификатор темы](https://core.telegram.org/api/threads.md) |\n| `action` | `SendMessageAction` | Да | Тип действия |"}, "x-telegram-rpc-errors": ["BUSINESS_CONNECTION_INVALID", "BUSINESS_PEER_INVALID", "BUSINESS_PEER_USAGE_MISSING", "CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_WRITE_FORBIDDEN", "GROUPCALL_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MESSAGE_TOO_LONG", "MSG_ID_INVALID", "PEER_ID_INVALID", "TEXTDRAFT_PEER_INVALID", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED", "USER_IS_BOT"], "x-browser-schema-id": "1486110434"}}, "/catalog/messages.sendMessage": {"post": {"operationId": "messages.sendMessage", "tags": ["Сообщения"], "summary": "Отправить текстовое сообщение", "description": "Отправляет текст в выбранный чат. При успехе Telegram возвращает обновления.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.sendMessage", "x-tl-id": "4277440354", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ADMIN_RIGHTS_EMPTY` — КонструкторchatAdminRights, переданный в keyboardButtonRequestPeer.peer_type.user_admin_rights, не имеет установленных прав (i.e. flags равен 0).\n- 406 · `ALLOW_PAYMENT_REQUIRED` — Этот узел принимает только [платные сообщения »](https://core.telegram.org/api/paid-messages.md): эта ошибка выдается только для более старых уровней без поддержки платных сообщений, поэтому для использования платных сообщений необходимо обновить клиент.  .\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — Этот узел взимает %d [Telegram Stars](https://core.telegram.org/api/stars.md) за сообщение, но `allow_paid_stars` не было установлено или его значение меньше %d.\n- 400 · `BALANCE_TOO_LOW` — Транзакция не может быть завершена, поскольку текущий баланс [Telegram Stars](https://core.telegram.org/api/stars.md) слишком низкий.\n- 400 · `BOT_DOMAIN_INVALID` — Домен бота недействителен.\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `BUSINESS_PEER_INVALID` — Сообщения не могут быть отправлены указанному узлу через текущее [деловое соединение](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUSINESS_PEER_USAGE_MISSING` — Вы не можете отправить сообщение пользователю через [деловое соединение](https://core.telegram.org/api/business.md#connected-bots), если пользователь недавно не связывался с нами.\n- 400 · `BUTTON_COPY_TEXT_INVALID` — Указанный [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy.md).`copy_text` недействителен.\n- 400 · `BUTTON_DATA_INVALID` — Данные одной или нескольких предоставленных вами кнопок недействительны.\n- 400 · `BUTTON_ID_INVALID` — Указанный идентификатор кнопки недействителен.\n- 400 · `BUTTON_TYPE_INVALID` — Тип одной или нескольких предоставленных вами кнопок недействителен.\n- 400 · `BUTTON_URL_INVALID` — Кнопка URL недействительна.\n- 400 · `BUTTON_USER_INVALID` — `user_id`, переданный в inputKeyboardButtonUserProfile, недействителен!\n- 400 · `BUTTON_USER_PRIVACY_RESTRICTED` — Настройки конфиденциальности пользователя, указанные в кнопке [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile.md), не позволяют создать такую кнопку.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — Нельзя пересылать сообщения из защищенного чата.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — Вы присоединяетесь к группе обсуждения, прежде чем оставлять комментарии, см. [здесь »](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) для получения дополнительной информации.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_RESTRICTED` — В этом чате нельзя отправлять сообщения, вас поставили под ограничения.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — В этом чате нельзя отправлять немедийные (текстовые) сообщения.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 400 · `EFFECT_CHAT_INVALID` — Сообщение [эффекты](https://core.telegram.org/api/effects.md) можно использовать только в приватных чатах один на один, но звонивший пытался отправить сообщение с эффектом в группу или канал.\n- 400 · `ENCRYPTION_DECLINED` — Секретный чат отклонен.\n- 400 · `ENTITIES_TOO_LONG` — Вы предоставили слишком много стилизованных объектов сообщения.\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `ENTITY_DATE_FORMAT_INVALID` — Один из переданных объектов messageEntityFormattedDate имеет недопустимый формат (i.e. недопустимая комбинация флагов формата).\n- 400 · `ENTITY_DATE_INVALID` — Один из переданных объектов messageEntityFormattedDate имеет недопустимую дату: допустимое значение варьируется от `0` до текущей даты плюс 1098 дней (`time()+1098*86400`).\n- 400 · `ENTITY_DATE_TOO_LONG` — Максимальный диапазон текста, который может быть охвачен объектом даты, составляет 31 UTF-16 кодовых единиц, если установлен какой-либо из флагов форматирования даты, или 127 UTF-16 кодовых единиц без него.  .\n- 400 · `ENTITY_MENTION_USER_INVALID` — Вы упомянули невалидного пользователя.\n- 400 · `FROM_MESSAGE_BOT_DISABLED` — Боты не могут использовать конструкторы fromMessage min.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MESSAGE_EMPTY` — Предоставленное сообщение пустое.\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 500 · `MSG_WAIT_FAILED` — Ожидающий вызов возвратил ошибку.\n- 406 · `PAYMENT_UNSUPPORTED` — Подробное описание ошибки будет получено отдельно, как описано [здесь »](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 404 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PEER_TYPES_INVALID` — Переданное поле [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline.md).`peer_types` недействительно.\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Слишком много закрепленных диалогов.\n- 400 · `POLL_OPTION_INVALID` — Предоставлен неверный вариант опроса.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 406 · `PRIVACY_PREMIUM_REQUIRED` — Вам нужна [подписка Telegram Premium](https://core.telegram.org/api/premium.md), чтобы отправить сообщение этому пользователю.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Быстрые ответы](https://core.telegram.org/api/business.md#quick-reply-shortcuts) не могут быть использованы ботами.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — Можно создать максимум [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) ярлыков, достигнут предел.\n- 400 · `QUOTE_TEXT_INVALID` — Указанное поле `reply_to`.`quote_text` неверно.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `RANDOM_ID_EMPTY` — Случайный идентификатор пуст.\n- 400 · `REPLY_MARKUP_INVALID` — Предоставленная разметка ответа недействительна.\n- 400 · `REPLY_MARKUP_TOO_LONG` — Указанное reply_markup слишком длинное.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Каждый ярлык может содержать максимум [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) сообщений, достигнут предел.\n- 400 · `REPLY_MESSAGE_ID_INVALID` — Указан неверный идентификатор ответного сообщения.\n- 400 · `REPLY_TO_INVALID` — Указанное поле `reply_to` неверно.\n- 400 · `REPLY_TO_MONOFORUM_PEER_INVALID` — Указанное inputReplyToMonoForum.monoforum_peer_id неверно.\n- 400 · `REPLY_TO_USER_INVALID` — Ответивший пользователь недействителен.\n- 400 · `SCHEDULE_BOT_NOT_ALLOWED` — Боты не могут планировать сообщения.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — Вы не можете запланировать сообщение так далеко в будущем.\n- 400 · `SCHEDULE_STATUS_PRIVATE` — Невозможно запланировать, пока пользователь не будет в сети, если временная метка последнего посещения пользователя скрыта его настройками конфиденциальности.\n- 400 · `SCHEDULE_TOO_MUCH` — Слишком много запланированных сообщений.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла.\n- 420 · `SLOWMODE_WAIT_%d` — В этом чате включен медленный режим: подождите %d секунд, прежде чем отправлять еще одно сообщение в этот чат.\n- 400 · `STORIES_NEVER_CREATED` — Этот собеседник никогда не публиковал историй.\n- 400 · `STORY_ID_INVALID` — Указан неверный идентификатор истории.\n- 400 · `SUGGESTED_POST_AMOUNT_INVALID` — Указана цена за предложенный пост недействительна.\n- 400 · `SUGGESTED_POST_PEER_INVALID` — Вы не можете отправлять предлагаемые сообщения коллегам, не являющимся [monoforum](https://core.telegram.org/api/monoforum.md)].\n- 406 · `TOPIC_CLOSED` — Эта тема закрыта, отправлять в нее сообщения больше нельзя.\n- 406 · `TOPIC_DELETED` — Указанная тема удалена.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `USER_BOT_TO_BOT_DISABLED` — Обмен сообщениями между ботами отключен, поскольку один из двух ботов не включил настройку «Бот-бот» в @BotFather.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем.\n- 400 · `USER_IS_BOT` — Боты не могут отправлять сообщения другим ботам.\n- 400 · `WC_CONVERT_URL_INVALID` — конвертация WC URL недействительна.\n- 400 · `YOU_BLOCKED_USER` — Вы заблокировали этого пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Отключить превью ссылок."}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Отправить без звукового уведомления."}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Отправить это сообщение в качестве фонового сообщения"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Очистить поле черновика"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Только для ботов, запрещает пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]."}, "update_stickersets_order": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true", "description": "Перемещать ли использованные наборы наклеек наверх, [дополнительную информацию об этом флаге см. здесь »](https://core.telegram.org/api/stickers.md#recent-stickersets)"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу."}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат назначения."}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Сообщение или тема, на которые отправляется ответ.", "x-tl-flag": "flags.0?InputReplyTo"}, "message": {"type": "string", "x-tl-type": "string", "description": "Текст сообщения."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор отправки для защиты от повторов.", "x-tl-type": "long"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Разметка ответа для отправки кнопок бота", "x-tl-flag": "flags.2?ReplyMarkup"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "Сообщение [entities](https://core.telegram.org/api/entities.md) для отправки стилизованного текста"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Запланированная дата сообщения для [запланированных сообщений](https://core.telegram.org/api/scheduled-messages.md)"}, "schedule_repeat_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.24?int", "description": "После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений."}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Отправьте это сообщение как указанный узел", "x-tl-flag": "flags.13?InputPeer"}, "quick_reply_shortcut": {"type": "object", "x-tl-type": "InputQuickReplyShortcut", "oneOf": [{"$ref": "#/components/schemas/inputQuickReplyShortcut"}, {"$ref": "#/components/schemas/inputQuickReplyShortcutId"}], "description": "Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке.", "x-tl-flag": "flags.22?SuggestedPost"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.23?InputRichMessage"}}, "additionalProperties": false, "required": ["peer", "message", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `no_webpage` | `true` | Нет | Отключить превью ссылок. |\n| `silent` | `true` | Нет | Отправить без звукового уведомления. |\n| `background` | `true` | Нет | Отправить это сообщение в качестве фонового сообщения |\n| `clear_draft` | `true` | Нет | Очистить поле черновика |\n| `noforwards` | `true` | Нет | Только для ботов, запрещает пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]. |\n| `update_stickersets_order` | `true` | Нет | Перемещать ли использованные наборы наклеек наверх, [дополнительную информацию об этом флаге см. здесь »](https://core.telegram.org/api/stickers.md#recent-stickersets) |\n| `invert_media` | `true` | Нет | Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу. |\n| `allow_paid_floodskip` | `true` | Нет | Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота. |\n| `peer` | `InputPeer` | Да | Чат назначения. |\n| `reply_to` | `InputReplyTo` | Нет | Сообщение или тема, на которые отправляется ответ. |\n| `message` | `string` | Да | Текст сообщения. |\n| `random_id` | `long` | Да | Уникальный идентификатор отправки для защиты от повторов. |\n| `reply_markup` | `ReplyMarkup` | Нет | Разметка ответа для отправки кнопок бота |\n| `entities` | `Vector<MessageEntity>` | Нет | Сообщение [entities](https://core.telegram.org/api/entities.md) для отправки стилизованного текста |\n| `schedule_date` | `int` | Нет | Запланированная дата сообщения для [запланированных сообщений](https://core.telegram.org/api/scheduled-messages.md) |\n| `schedule_repeat_period` | `int` | Нет | После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений. |\n| `send_as` | `InputPeer` | Нет | Отправьте это сообщение как указанный узел |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | Нет | Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `effect` | `long` | Нет | Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения. |\n| `allow_paid_stars` | `long` | Нет | Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения. |\n| `suggested_post` | `SuggestedPost` | Нет | Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке. |\n| `rich_message` | `InputRichMessage` | Нет | Тип TL: InputRichMessage. |"}, "x-telegram-rpc-errors": ["ADMIN_RIGHTS_EMPTY", "ALLOW_PAYMENT_REQUIRED", "ALLOW_PAYMENT_REQUIRED_%d", "BALANCE_TOO_LOW", "BOT_DOMAIN_INVALID", "BOT_INVALID", "BUSINESS_CONNECTION_INVALID", "BUSINESS_PEER_INVALID", "BUSINESS_PEER_USAGE_MISSING", "BUTTON_COPY_TEXT_INVALID", "BUTTON_DATA_INVALID", "BUTTON_ID_INVALID", "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID", "BUTTON_USER_INVALID", "BUTTON_USER_PRIVACY_RESTRICTED", "CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_FORWARDS_RESTRICTED", "CHAT_GUEST_SEND_FORBIDDEN", "CHAT_ID_INVALID", "CHAT_RESTRICTED", "CHAT_SEND_PLAIN_FORBIDDEN", "CHAT_WRITE_FORBIDDEN", "DOCUMENT_INVALID", "EFFECT_CHAT_INVALID", "ENCRYPTION_DECLINED", "ENTITIES_TOO_LONG", "ENTITY_BOUNDS_INVALID", "ENTITY_DATE_FORMAT_INVALID", "ENTITY_DATE_INVALID", "ENTITY_DATE_TOO_LONG", "ENTITY_MENTION_USER_INVALID", "FROM_MESSAGE_BOT_DISABLED", "INPUT_USER_DEACTIVATED", "MESSAGE_EMPTY", "MESSAGE_TOO_LONG", "MSG_ID_INVALID", "MSG_WAIT_FAILED", "PAYMENT_UNSUPPORTED", "PEER_ID_INVALID", "PEER_TYPES_INVALID", "PINNED_DIALOGS_TOO_MUCH", "POLL_OPTION_INVALID", "PREMIUM_ACCOUNT_REQUIRED", "PRIVACY_PREMIUM_REQUIRED", "QUICK_REPLIES_BOT_NOT_ALLOWED", "QUICK_REPLIES_TOO_MUCH", "QUOTE_TEXT_INVALID", "RANDOM_ID_DUPLICATE", "RANDOM_ID_EMPTY", "REPLY_MARKUP_INVALID", "REPLY_MARKUP_TOO_LONG", "REPLY_MESSAGES_TOO_MUCH", "REPLY_MESSAGE_ID_INVALID", "REPLY_TO_INVALID", "REPLY_TO_MONOFORUM_PEER_INVALID", "REPLY_TO_USER_INVALID", "SCHEDULE_BOT_NOT_ALLOWED", "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_STATUS_PRIVATE", "SCHEDULE_TOO_MUCH", "SEND_AS_PEER_INVALID", "SLOWMODE_WAIT_%d", "STORIES_NEVER_CREATED", "STORY_ID_INVALID", "SUGGESTED_POST_AMOUNT_INVALID", "SUGGESTED_POST_PEER_INVALID", "TOPIC_CLOSED", "TOPIC_DELETED", "USER_BANNED_IN_CHANNEL", "USER_BOT_TO_BOT_DISABLED", "USER_IS_BLOCKED", "USER_IS_BOT", "WC_CONVERT_URL_INVALID", "YOU_BLOCKED_USER"], "x-browser-schema-id": "4277440354"}}, "/catalog/messages.sendMedia": {"post": {"operationId": "messages.sendMedia", "tags": ["Сообщения"], "summary": "Отправить медиа", "description": "Отправить медиа\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [File references](https://core.telegram.org/api/file-references.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.sendMedia", "x-tl-id": "53536639", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["File references", "https://core.telegram.org/api/file-references.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `ALLOW_PAYMENT_REQUIRED` — Этот узел принимает только [платные сообщения »](https://core.telegram.org/api/paid-messages.md): эта ошибка выдается только для более старых уровней без поддержки платных сообщений, поэтому для использования платных сообщений необходимо обновить клиент.  .\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — Этот узел взимает %d [Telegram Stars](https://core.telegram.org/api/stars.md) за сообщение, но `allow_paid_stars` не было установлено или его значение меньше %d.\n- 400 · `BOT_GAMES_DISABLED` — Игры нельзя отправлять на каналы.\n- 400 · `BOT_PAYMENTS_DISABLED` — Пожалуйста, включите бот-платежи в botfather перед вызовом этого метода.\n- 400 · `BROADCAST_PUBLIC_VOTERS_FORBIDDEN` — Вы не можете пересылать опросы публичных избирателей.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `BUSINESS_PEER_INVALID` — Сообщения не могут быть отправлены указанному узлу через текущее [деловое соединение](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUSINESS_PEER_USAGE_MISSING` — Вы не можете отправить сообщение пользователю через [деловое соединение](https://core.telegram.org/api/business.md#connected-bots), если пользователь недавно не связывался с нами.\n- 400 · `BUTTON_COPY_TEXT_INVALID` — Указанный [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy.md).`copy_text` недействителен.\n- 400 · `BUTTON_DATA_INVALID` — Данные одной или нескольких предоставленных вами кнопок недействительны.\n- 400 · `BUTTON_POS_INVALID` — Неверное положение одной из кнопок клавиатуры (i.e. Кнопка «Игра» или «Оплата» не в первом положении и так далее...).\n- 400 · `BUTTON_TYPE_INVALID` — Тип одной или нескольких предоставленных вами кнопок недействителен.\n- 400 · `BUTTON_URL_INVALID` — Кнопка URL недействительна.\n- 400 · `BUTTON_USER_PRIVACY_RESTRICTED` — Настройки конфиденциальности пользователя, указанные в кнопке [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile.md), не позволяют создать такую кнопку.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — Нельзя пересылать сообщения из защищенного чата.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — Вы присоединяетесь к группе обсуждения, прежде чем оставлять комментарии, см. [здесь »](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) для получения дополнительной информации.\n- 400 · `CHAT_RESTRICTED` — В этом чате нельзя отправлять сообщения, вас поставили под ограничения.\n- 403 · `CHAT_SEND_AUDIOS_FORBIDDEN` — В этом чате нельзя отправлять аудиосообщения.\n- 403 · `CHAT_SEND_DOCS_FORBIDDEN` — В этом чате нельзя отправлять документы.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — В этом чате нельзя отправлять гифки.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — В этом чате нельзя отправлять медиа.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — В этом чате нельзя отправлять фотографии.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — В этом чате нельзя отправлять немедийные (текстовые) сообщения.\n- 403 · `CHAT_SEND_POLL_FORBIDDEN` — В этом чате нельзя отправлять опросы.\n- 403 · `CHAT_SEND_ROUNDVIDEOS_FORBIDDEN` — В этот чат нельзя отправлять круглые видео.\n- 403 · `CHAT_SEND_STICKERS_FORBIDDEN` — В этом чате нельзя отправлять стикеры.\n- 403 · `CHAT_SEND_VIDEOS_FORBIDDEN` — В этом чате нельзя отправлять видео.\n- 403 · `CHAT_SEND_VOICES_FORBIDDEN` — В этом чате нельзя отправлять голосовые записи.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `CURRENCY_TOTAL_AMOUNT_INVALID` — Сумма всех цен недействительна.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 400 · `EFFECT_CHAT_INVALID` — Сообщение [эффекты](https://core.telegram.org/api/effects.md) можно использовать только в приватных чатах один на один, но звонивший пытался отправить сообщение с эффектом в группу или канал.\n- 400 · `EFFECT_ID_INVALID` — Указанный идентификатор эффекта недействителен.\n- 400 · `EMOTICON_INVALID` — Указанный смайлик недействителен.\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `EXTENDED_MEDIA_AMOUNT_INVALID` — Указанный `stars_amount` переданного [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia.md) недействителен.\n- 400 · `EXTENDED_MEDIA_EMPTY` — Указанный расширенный носитель пуст.\n- 400 · `EXTENDED_MEDIA_INVALID` — Указанный платный носитель недействителен.\n- 400 · `EXTENDED_MEDIA_PEER_INVALID` — Платный носитель не разрешен для целевого узла.\n- 400 · `EXTERNAL_URL_INVALID` — Внешний URL недействителен.\n- 400 · `FILE_PARTS_INVALID` — Недопустимое количество частей файла.\n- 400 · `FILE_PART_LENGTH_INVALID` — Недопустимая длина части файла.\n- 400 · `FILE_REFERENCE_EMPTY` — Указана пустая [ссылка на файл](https://core.telegram.org/api/file-references.md).\n- 400 · `FILE_REFERENCE_EXPIRED` — Срок действия ссылки на файл истек, его необходимо загрузить заново, как описано в [документация](https://core.telegram.org/api/file-references.md).\n- 400 · `GAME_BOT_INVALID` — Боты не могут отправить игру другого бота.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 400 · `INPUT_FILE_INVALID` — Указанный [InputFile](https://core.telegram.org/type/InputFile.md) недействителен.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `INVOICE_PAYLOAD_INVALID` — Указанная полезная нагрузка счета недействительна.\n- 400 · `MD5_CHECKSUM_INVALID` — Контрольные суммы MD5 не совпадают.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — Подпись слишком длинная.\n- 400 · `MEDIA_EMPTY` — Указанный медиа-объект недействителен.\n- 400 · `MEDIA_FILE_INVALID` — Указанный медиафайл недействителен.\n- 400 · `MEDIA_INVALID` — Недействительный носитель.\n- 400 · `MESSAGE_EMPTY` — Предоставленное сообщение пустое.\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PAYMENT_PROVIDER_INVALID` — Указанный платежный провайдер недействителен.\n- 406 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PHOTO_EXT_INVALID` — Недопустимое расширение фотографии.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — Неверные размеры фотографии.\n- 400 · `PHOTO_SAVE_FILE_INVALID` — Внутренние проблемы, повторите попытку позже.\n- 400 · `POLL_ANSWERS_INVALID` — Были предоставлены неверные ответы на опрос.\n- 400 · `POLL_ANSWER_INVALID` — Один из ответов опроса не приемлем.\n- 400 · `POLL_OPTION_DUPLICATE` — Предусмотрены дублирующиеся варианты опроса.\n- 400 · `POLL_OPTION_INVALID` — Предоставлен неверный вариант опроса.\n- 400 · `POLL_QUESTION_INVALID` — Один из вопросов опроса не приемлем.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — Вам нужна [подписка Telegram Premium](https://core.telegram.org/api/premium.md), чтобы отправить сообщение этому пользователю.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Быстрые ответы](https://core.telegram.org/api/business.md#quick-reply-shortcuts) не могут быть использованы ботами.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — Можно создать максимум [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) ярлыков, достигнут предел.\n- 400 · `QUIZ_CORRECT_ANSWERS_EMPTY` — Не указан правильный ответ викторины.\n- 400 · `QUIZ_CORRECT_ANSWERS_TOO_MUCH` — Вы указали слишком много правильных ответов в викторине, в викторине может быть только один правильный ответ!\n- 400 · `QUIZ_CORRECT_ANSWER_INVALID` — В поле correct_answers указано недопустимое значение.\n- 400 · `QUIZ_MULTIPLE_INVALID` — В викторинах не может быть установлен флаг multiple_choice!\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `REPLY_MARKUP_BUY_EMPTY` — Разметка ответа для кнопки покупки пуста.\n- 400 · `REPLY_MARKUP_GAME_EMPTY` — Игровое сообщение редактируется, но на новой клавиатуре нет кнопки KeyboardButtonGame.\n- 400 · `REPLY_MARKUP_INVALID` — Предоставленная разметка ответа недействительна.\n- 400 · `REPLY_MARKUP_TOO_LONG` — Указанное reply_markup слишком длинное.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Каждый ярлык может содержать максимум [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) сообщений, достигнут предел.\n- 400 · `REPLY_MESSAGE_ID_INVALID` — Указан неверный идентификатор ответного сообщения.\n- 400 · `REPLY_TO_MONOFORUM_PEER_INVALID` — Указанное inputReplyToMonoForum.monoforum_peer_id неверно.\n- 400 · `SCHEDULE_BOT_NOT_ALLOWED` — Боты не могут планировать сообщения.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — Вы не можете запланировать сообщение так далеко в будущем.\n- 400 · `SCHEDULE_TOO_MUCH` — Слишком много запланированных сообщений.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла.\n- 420 · `SLOWMODE_WAIT_%d` — В этом чате включен медленный режим: подождите %d секунд, прежде чем отправлять еще одно сообщение в этот чат.\n- 400 · `STARS_INVOICE_INVALID` — Указанный счет Telegram Star недействителен.\n- 400 · `STORY_ID_INVALID` — Указан неверный идентификатор истории.\n- 400 · `SUBSCRIPTION_EXPORT_MISSING` — Вы не можете отправить [счет за подписку на бота](https://core.telegram.org/api/subscriptions.md#bot-subscriptions) напрямую, вы можете создавать ссылки на счета только с помощью [payments.exportInvoice](https://core.telegram.org/method/payments.exportInvoice.md).\n- 400 · `SUGGESTED_POST_PEER_INVALID` — Вы не можете отправлять предлагаемые сообщения коллегам, не являющимся [monoforum](https://core.telegram.org/api/monoforum.md)].\n- 400 · `TERMS_URL_INVALID` — Указанный [счет-фактура](https://core.telegram.org/constructor/invoice.md).`terms_url` недействителен.\n- 400 · `TODO_ITEMS_EMPTY` — Контрольный список был указан, но [пункты контрольного списка](https://core.telegram.org/api/todo.md) не были пройдены.\n- 400 · `TODO_ITEMS_TOO_MUCH` — Вы указали слишком много пунктов списка дел.\n- 400 · `TODO_ITEM_DUPLICATE` — Обнаружен дубликат [элементов контрольного списка](https://core.telegram.org/api/todo.md).\n- 406 · `TOPIC_CLOSED` — Эта тема закрыта, отправлять в нее сообщения больше нельзя.\n- 406 · `TOPIC_DELETED` — Указанная тема удалена.\n- 400 · `TTL_MEDIA_INVALID` — Указан неверный носитель Time To Live.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `USER_BOT_TO_BOT_DISABLED` — Обмен сообщениями между ботами отключен, поскольку один из двух ботов не включил настройку «Бот-бот» в @BotFather.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем.\n- 400 · `USER_IS_BOT` — Боты не могут отправлять сообщения другим ботам.\n- 400 · `VIDEO_CONTENT_TYPE_INVALID` — Неверный тип контента видео.\n- 400 · `VOICE_MESSAGES_FORBIDDEN` — Настройки конфиденциальности этого пользователя запрещают вам отправлять голосовые сообщения.\n- 400 · `WEBDOCUMENT_MIME_INVALID` — Указан неверный тип mime веб-документа.\n- 400 · `WEBPAGE_CURL_FAILED` — Ошибка при загрузке веб-страницы с помощью cURL.\n- 400 · `WEBPAGE_MEDIA_EMPTY` — Веб-страница пуста.\n- 400 · `WEBPAGE_NOT_FOUND` — Не удалось создать предварительный просмотр указанной веб-страницы `url`.\n- 400 · `WEBPAGE_URL_INVALID` — Указанная веб-страница `url` недействительна.\n- 400 · `YOU_BLOCKED_USER` — Вы заблокировали этого пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Отправить сообщение без уведомления (уведомление не должно срабатывать)"}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Отправить сообщение в фоновом режиме"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Очистить черновик"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Только для ботов, запрещает пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]."}, "update_stickersets_order": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true", "description": "Перемещать ли использованные наборы наклеек наверх, [дополнительную информацию об этом флаге см. здесь »](https://core.telegram.org/api/stickers.md#recent-stickersets)"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу."}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пункт назначения"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю.", "x-tl-flag": "flags.0?InputReplyTo"}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Прикрепленные медиа"}, "message": {"type": "string", "x-tl-type": "string", "description": "Подпись"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор, чтобы избежать повторной отправки одного и того же сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Разметка ответа для клавиатуры бота", "x-tl-flag": "flags.2?ReplyMarkup"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "Сообщение [entities](https://core.telegram.org/api/entities.md) для стилизованного текста"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Запланированная дата сообщения для [запланированных сообщений](https://core.telegram.org/api/scheduled-messages.md)"}, "schedule_repeat_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.24?int", "description": "После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений."}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Отправьте это сообщение как указанный узел", "x-tl-flag": "flags.13?InputPeer"}, "quick_reply_shortcut": {"type": "object", "x-tl-type": "InputQuickReplyShortcut", "oneOf": [{"$ref": "#/components/schemas/inputQuickReplyShortcut"}, {"$ref": "#/components/schemas/inputQuickReplyShortcutId"}], "description": "Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке.", "x-tl-flag": "flags.22?SuggestedPost"}}, "additionalProperties": false, "required": ["peer", "media", "message", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Отправить сообщение без уведомления (уведомление не должно срабатывать) |\n| `background` | `true` | Нет | Отправить сообщение в фоновом режиме |\n| `clear_draft` | `true` | Нет | Очистить черновик |\n| `noforwards` | `true` | Нет | Только для ботов, запрещает пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]. |\n| `update_stickersets_order` | `true` | Нет | Перемещать ли использованные наборы наклеек наверх, [дополнительную информацию об этом флаге см. здесь »](https://core.telegram.org/api/stickers.md#recent-stickersets) |\n| `invert_media` | `true` | Нет | Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу. |\n| `allow_paid_floodskip` | `true` | Нет | Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота. |\n| `peer` | `InputPeer` | Да | Пункт назначения |\n| `reply_to` | `InputReplyTo` | Нет | Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю. |\n| `media` | `InputMedia` | Да | Прикрепленные медиа |\n| `message` | `string` | Да | Подпись |\n| `random_id` | `long` | Да | Случайный идентификатор, чтобы избежать повторной отправки одного и того же сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `reply_markup` | `ReplyMarkup` | Нет | Разметка ответа для клавиатуры бота |\n| `entities` | `Vector<MessageEntity>` | Нет | Сообщение [entities](https://core.telegram.org/api/entities.md) для стилизованного текста |\n| `schedule_date` | `int` | Нет | Запланированная дата сообщения для [запланированных сообщений](https://core.telegram.org/api/scheduled-messages.md) |\n| `schedule_repeat_period` | `int` | Нет | После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений. |\n| `send_as` | `InputPeer` | Нет | Отправьте это сообщение как указанный узел |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | Нет | Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `effect` | `long` | Нет | Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения. |\n| `allow_paid_stars` | `long` | Нет | Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения. |\n| `suggested_post` | `SuggestedPost` | Нет | Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке. |"}, "x-telegram-rpc-errors": ["ALLOW_PAYMENT_REQUIRED", "ALLOW_PAYMENT_REQUIRED_%d", "BOT_GAMES_DISABLED", "BOT_PAYMENTS_DISABLED", "BROADCAST_PUBLIC_VOTERS_FORBIDDEN", "BUSINESS_CONNECTION_INVALID", "BUSINESS_PEER_INVALID", "BUSINESS_PEER_USAGE_MISSING", "BUTTON_COPY_TEXT_INVALID", "BUTTON_DATA_INVALID", "BUTTON_POS_INVALID", "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID", "BUTTON_USER_PRIVACY_RESTRICTED", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_FORWARDS_RESTRICTED", "CHAT_GUEST_SEND_FORBIDDEN", "CHAT_RESTRICTED", "CHAT_SEND_AUDIOS_FORBIDDEN", "CHAT_SEND_DOCS_FORBIDDEN", "CHAT_SEND_GIFS_FORBIDDEN", "CHAT_SEND_MEDIA_FORBIDDEN", "CHAT_SEND_PHOTOS_FORBIDDEN", "CHAT_SEND_PLAIN_FORBIDDEN", "CHAT_SEND_POLL_FORBIDDEN", "CHAT_SEND_ROUNDVIDEOS_FORBIDDEN", "CHAT_SEND_STICKERS_FORBIDDEN", "CHAT_SEND_VIDEOS_FORBIDDEN", "CHAT_SEND_VOICES_FORBIDDEN", "CHAT_WRITE_FORBIDDEN", "CURRENCY_TOTAL_AMOUNT_INVALID", "DOCUMENT_INVALID", "EFFECT_CHAT_INVALID", "EFFECT_ID_INVALID", "EMOTICON_INVALID", "ENTITY_BOUNDS_INVALID", "EXTENDED_MEDIA_AMOUNT_INVALID", "EXTENDED_MEDIA_EMPTY", "EXTENDED_MEDIA_INVALID", "EXTENDED_MEDIA_PEER_INVALID", "EXTERNAL_URL_INVALID", "FILE_PARTS_INVALID", "FILE_PART_LENGTH_INVALID", "FILE_REFERENCE_EMPTY", "FILE_REFERENCE_EXPIRED", "GAME_BOT_INVALID", "IMAGE_PROCESS_FAILED", "INPUT_FILE_INVALID", "INPUT_USER_DEACTIVATED", "INVOICE_PAYLOAD_INVALID", "MD5_CHECKSUM_INVALID", "MEDIA_CAPTION_TOO_LONG", "MEDIA_EMPTY", "MEDIA_FILE_INVALID", "MEDIA_INVALID", "MESSAGE_EMPTY", "MESSAGE_TOO_LONG", "MSG_ID_INVALID", "PAYMENT_PROVIDER_INVALID", "PEER_ID_INVALID", "PHOTO_EXT_INVALID", "PHOTO_INVALID_DIMENSIONS", "PHOTO_SAVE_FILE_INVALID", "POLL_ANSWERS_INVALID", "POLL_ANSWER_INVALID", "POLL_OPTION_DUPLICATE", "POLL_OPTION_INVALID", "POLL_QUESTION_INVALID", "PREMIUM_ACCOUNT_REQUIRED", "PRIVACY_PREMIUM_REQUIRED", "QUICK_REPLIES_BOT_NOT_ALLOWED", "QUICK_REPLIES_TOO_MUCH", "QUIZ_CORRECT_ANSWERS_EMPTY", "QUIZ_CORRECT_ANSWERS_TOO_MUCH", "QUIZ_CORRECT_ANSWER_INVALID", "QUIZ_MULTIPLE_INVALID", "RANDOM_ID_DUPLICATE", "REPLY_MARKUP_BUY_EMPTY", "REPLY_MARKUP_GAME_EMPTY", "REPLY_MARKUP_INVALID", "REPLY_MARKUP_TOO_LONG", "REPLY_MESSAGES_TOO_MUCH", "REPLY_MESSAGE_ID_INVALID", "REPLY_TO_MONOFORUM_PEER_INVALID", "SCHEDULE_BOT_NOT_ALLOWED", "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH", "SEND_AS_PEER_INVALID", "SLOWMODE_WAIT_%d", "STARS_INVOICE_INVALID", "STORY_ID_INVALID", "SUBSCRIPTION_EXPORT_MISSING", "SUGGESTED_POST_PEER_INVALID", "TERMS_URL_INVALID", "TODO_ITEMS_EMPTY", "TODO_ITEMS_TOO_MUCH", "TODO_ITEM_DUPLICATE", "TOPIC_CLOSED", "TOPIC_DELETED", "TTL_MEDIA_INVALID", "USER_BANNED_IN_CHANNEL", "USER_BOT_TO_BOT_DISABLED", "USER_IS_BLOCKED", "USER_IS_BOT", "VIDEO_CONTENT_TYPE_INVALID", "VOICE_MESSAGES_FORBIDDEN", "WEBDOCUMENT_MIME_INVALID", "WEBPAGE_CURL_FAILED", "WEBPAGE_MEDIA_EMPTY", "WEBPAGE_NOT_FOUND", "WEBPAGE_URL_INVALID", "YOU_BLOCKED_USER"], "x-browser-schema-id": "53536639"}}, "/catalog/messages.forwardMessages": {"post": {"operationId": "messages.forwardMessages", "tags": ["Сообщения"], "summary": "Переслать сообщения", "description": "Пересылает одно или несколько сообщений из исходного чата в чат назначения.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.forwardMessages", "x-tl-id": "326126204", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `ALLOW_PAYMENT_REQUIRED` — Этот узел принимает только [платные сообщения »](https://core.telegram.org/api/paid-messages.md): эта ошибка выдается только для более старых уровней без поддержки платных сообщений, поэтому для использования платных сообщений необходимо обновить клиент.  .\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — Этот узел взимает %d [Telegram Stars](https://core.telegram.org/api/stars.md) за сообщение, но `allow_paid_stars` не было установлено или его значение меньше %d.\n- 400 · `BROADCAST_PUBLIC_VOTERS_FORBIDDEN` — Вы не можете пересылать опросы публичных избирателей.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 406 · `CHAT_FORWARDS_RESTRICTED` — Нельзя пересылать сообщения из защищенного чата.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — Вы присоединяетесь к группе обсуждения, прежде чем оставлять комментарии, см. [здесь »](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) для получения дополнительной информации.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_RESTRICTED` — В этом чате нельзя отправлять сообщения, вас поставили под ограничения.\n- 403 · `CHAT_SEND_AUDIOS_FORBIDDEN` — В этом чате нельзя отправлять аудиосообщения.\n- 403 · `CHAT_SEND_DOCS_FORBIDDEN` — В этом чате нельзя отправлять документы.\n- 403 · `CHAT_SEND_GAME_FORBIDDEN` — В этот чат нельзя отправить игру.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — В этом чате нельзя отправлять гифки.\n- 403 · `CHAT_SEND_INLINE_FORBIDDEN` — В этой группе нельзя отправлять встроенные сообщения.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — В этом чате нельзя отправлять медиа.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — В этом чате нельзя отправлять фотографии.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — В этом чате нельзя отправлять немедийные (текстовые) сообщения.\n- 403 · `CHAT_SEND_POLL_FORBIDDEN` — В этом чате нельзя отправлять опросы.\n- 403 · `CHAT_SEND_STICKERS_FORBIDDEN` — В этом чате нельзя отправлять стикеры.\n- 403 · `CHAT_SEND_VIDEOS_FORBIDDEN` — В этом чате нельзя отправлять видео.\n- 403 · `CHAT_SEND_VOICES_FORBIDDEN` — В этом чате нельзя отправлять голосовые записи.\n- 403 · `CHAT_SEND_WEBPAGE_FORBIDDEN` — В этот чат нельзя отправлять превью веб-страниц.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `GROUPED_MEDIA_INVALID` — Неверно сгруппированы носители.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MEDIA_EMPTY` — Указанный медиа-объект недействителен.\n- 400 · `MEDIA_FILE_INVALID` — Указанный медиафайл недействителен.\n- 400 · `MESSAGE_IDS_EMPTY` — Идентификаторы сообщений не предоставлены.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 406 · `PAYMENT_UNSUPPORTED` — Подробное описание ошибки будет получено отдельно, как описано [здесь »](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 406 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 406 · `PRIVACY_PREMIUM_REQUIRED` — Вам нужна [подписка Telegram Premium](https://core.telegram.org/api/premium.md), чтобы отправить сообщение этому пользователю.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Быстрые ответы](https://core.telegram.org/api/business.md#quick-reply-shortcuts) не могут быть использованы ботами.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — Можно создать максимум [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) ярлыков, достигнут предел.\n- 400 · `QUIZ_ANSWER_MISSING` — Вы можете переслать тест, скрыв первоначального автора, только после выбора варианта в тесте.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `RANDOM_ID_INVALID` — Указанный случайный идентификатор недействителен.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Каждый ярлык может содержать максимум [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) сообщений, достигнут предел.\n- 400 · `REPLY_TO_MONOFORUM_PEER_INVALID` — Указанное inputReplyToMonoForum.monoforum_peer_id неверно.\n- 400 · `SCHEDULE_BOT_NOT_ALLOWED` — Боты не могут планировать сообщения.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — Вы не можете запланировать сообщение так далеко в будущем.\n- 400 · `SCHEDULE_TOO_MUCH` — Слишком много запланированных сообщений.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла.\n- 400 · `SLOWMODE_MULTI_MSGS_DISABLED` — Медленный режим включен, вы не можете пересылать несколько сообщений в эту группу.\n- 420 · `SLOWMODE_WAIT_%d` — В этом чате включен медленный режим: подождите %d секунд, прежде чем отправлять еще одно сообщение в этот чат.\n- 400 · `SUGGESTED_POST_PEER_INVALID` — Вы не можете отправлять предлагаемые сообщения коллегам, не являющимся [monoforum](https://core.telegram.org/api/monoforum.md)].\n- 406 · `TOPIC_CLOSED` — Эта тема закрыта, отправлять в нее сообщения больше нельзя.\n- 406 · `TOPIC_DELETED` — Указанная тема удалена.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `USER_BOT_TO_BOT_DISABLED` — Обмен сообщениями между ботами отключен, поскольку один из двух ботов не включил настройку «Бот-бот» в @BotFather.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем.\n- 400 · `USER_IS_BOT` — Боты не могут отправлять сообщения другим ботам.\n- 403 · `VOICE_MESSAGES_FORBIDDEN` — Настройки конфиденциальности этого пользователя запрещают вам отправлять голосовые сообщения.\n- 400 · `YOU_BLOCKED_USER` — Вы заблокировали этого пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.forwardMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Переслать без звукового уведомления."}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Отправлять ли сообщение в фоновом режиме"}, "with_my_score": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "При пересылке игр включать ли ваш результат в игру"}, "drop_author": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true", "description": "Пересылать ли сообщения без цитирования оригинального автора"}, "drop_media_captions": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true", "description": "Удалять ли субтитры с носителя"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Только для ботов, запрещает дальнейшую пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]."}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота."}, "from_ephemeral": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true", "description": "Значение типа TL `true`."}, "from_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, из которого нужно переслать сообщения."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы исходных сообщений."}, "random_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Уникальный идентификатор пересылки для каждого сообщения."}, "to_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат назначения."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int", "description": "Пункт назначения [тема форума](https://core.telegram.org/api/forum.md#forum-topics)"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Может содержать только [inputReplyToMonoForum](https://core.telegram.org/constructor/inputReplyToMonoForum.md), чтобы пересылать сообщения в [тему монофорума](https://core.telegram.org/api/monoforum.md) (взаимоисключающее с `top_msg_id`).", "x-tl-flag": "flags.22?InputReplyTo"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Запланированная дата сообщения для запланированных сообщений"}, "schedule_repeat_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.24?int", "description": "После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений."}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пересылать сообщения указанному узлу", "x-tl-flag": "flags.13?InputPeer"}, "quick_reply_shortcut": {"type": "object", "x-tl-type": "InputQuickReplyShortcut", "oneOf": [{"$ref": "#/components/schemas/inputQuickReplyShortcut"}, {"$ref": "#/components/schemas/inputQuickReplyShortcutId"}], "description": "Вместо этого добавьте сообщения в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int", "description": "Начать воспроизведение видео в указанную отметку времени (в секундах)."}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке.", "x-tl-flag": "flags.23?SuggestedPost"}}, "additionalProperties": false, "required": ["from_peer", "id", "random_id", "to_peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Переслать без звукового уведомления. |\n| `background` | `true` | Нет | Отправлять ли сообщение в фоновом режиме |\n| `with_my_score` | `true` | Нет | При пересылке игр включать ли ваш результат в игру |\n| `drop_author` | `true` | Нет | Пересылать ли сообщения без цитирования оригинального автора |\n| `drop_media_captions` | `true` | Нет | Удалять ли субтитры с носителя |\n| `noforwards` | `true` | Нет | Только для ботов, запрещает дальнейшую пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]. |\n| `allow_paid_floodskip` | `true` | Нет | Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота. |\n| `from_ephemeral` | `true` | Нет | Значение типа TL `true`. |\n| `from_peer` | `InputPeer` | Да | Чат, из которого нужно переслать сообщения. |\n| `id` | `Vector<int>` | Да | Идентификаторы исходных сообщений. |\n| `random_id` | `Vector<long>` | Да | Уникальный идентификатор пересылки для каждого сообщения. |\n| `to_peer` | `InputPeer` | Да | Чат назначения. |\n| `top_msg_id` | `int` | Нет | Пункт назначения [тема форума](https://core.telegram.org/api/forum.md#forum-topics) |\n| `reply_to` | `InputReplyTo` | Нет | Может содержать только [inputReplyToMonoForum](https://core.telegram.org/constructor/inputReplyToMonoForum.md), чтобы пересылать сообщения в [тему монофорума](https://core.telegram.org/api/monoforum.md) (взаимоисключающее с `top_msg_id`). |\n| `schedule_date` | `int` | Нет | Запланированная дата сообщения для запланированных сообщений |\n| `schedule_repeat_period` | `int` | Нет | После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений. |\n| `send_as` | `InputPeer` | Нет | Пересылать сообщения указанному узлу |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | Нет | Вместо этого добавьте сообщения в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `effect` | `long` | Нет | Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения. |\n| `video_timestamp` | `int` | Нет | Начать воспроизведение видео в указанную отметку времени (в секундах). |\n| `allow_paid_stars` | `long` | Нет | Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения. |\n| `suggested_post` | `SuggestedPost` | Нет | Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке. |"}, "x-telegram-rpc-errors": ["ALLOW_PAYMENT_REQUIRED", "ALLOW_PAYMENT_REQUIRED_%d", "BROADCAST_PUBLIC_VOTERS_FORBIDDEN", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_FORWARDS_RESTRICTED", "CHAT_GUEST_SEND_FORBIDDEN", "CHAT_ID_INVALID", "CHAT_RESTRICTED", "CHAT_SEND_AUDIOS_FORBIDDEN", "CHAT_SEND_DOCS_FORBIDDEN", "CHAT_SEND_GAME_FORBIDDEN", "CHAT_SEND_GIFS_FORBIDDEN", "CHAT_SEND_INLINE_FORBIDDEN", "CHAT_SEND_MEDIA_FORBIDDEN", "CHAT_SEND_PHOTOS_FORBIDDEN", "CHAT_SEND_PLAIN_FORBIDDEN", "CHAT_SEND_POLL_FORBIDDEN", "CHAT_SEND_STICKERS_FORBIDDEN", "CHAT_SEND_VIDEOS_FORBIDDEN", "CHAT_SEND_VOICES_FORBIDDEN", "CHAT_SEND_WEBPAGE_FORBIDDEN", "CHAT_WRITE_FORBIDDEN", "GROUPED_MEDIA_INVALID", "INPUT_USER_DEACTIVATED", "MEDIA_EMPTY", "MEDIA_FILE_INVALID", "MESSAGE_IDS_EMPTY", "MESSAGE_ID_INVALID", "MSG_ID_INVALID", "PAYMENT_UNSUPPORTED", "PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED", "PRIVACY_PREMIUM_REQUIRED", "QUICK_REPLIES_BOT_NOT_ALLOWED", "QUICK_REPLIES_TOO_MUCH", "QUIZ_ANSWER_MISSING", "RANDOM_ID_DUPLICATE", "RANDOM_ID_INVALID", "REPLY_MESSAGES_TOO_MUCH", "REPLY_TO_MONOFORUM_PEER_INVALID", "SCHEDULE_BOT_NOT_ALLOWED", "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH", "SEND_AS_PEER_INVALID", "SLOWMODE_MULTI_MSGS_DISABLED", "SLOWMODE_WAIT_%d", "SUGGESTED_POST_PEER_INVALID", "TOPIC_CLOSED", "TOPIC_DELETED", "USER_BANNED_IN_CHANNEL", "USER_BOT_TO_BOT_DISABLED", "USER_IS_BLOCKED", "USER_IS_BOT", "VOICE_MESSAGES_FORBIDDEN", "YOU_BLOCKED_USER"], "x-browser-schema-id": "326126204"}}, "/catalog/messages.reportSpam": {"post": {"operationId": "messages.reportSpam", "tags": ["Сообщения"], "summary": "Сообщить о спаме в новом входящем чате, если настройки чата позволяют это сделать", "description": "Сообщите о новом входящем чате на наличие спама, если [настройки узла](https://core.telegram.org/constructor/peerSettings.md) чата позволяют нам это сделать.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.reportSpam", "x-tl-id": "3474297563", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reportSpam"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер для отчета"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Партнер для отчета |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3474297563"}}, "/catalog/messages.getPeerSettings": {"post": {"operationId": "messages.getPeerSettings", "tags": ["Сообщения"], "summary": "Получить настройки пиров", "description": "Получить настройки пиров\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getPeerSettings", "x-tl-id": "4024018594", "x-tl-result": "messages.PeerSettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.PeerSettings`.\n\n[messages.PeerSettings](https://core.telegram.org/type/messages.PeerSettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.PeerSettings", "oneOf": [{"$ref": "#/components/schemas/messages.peerSettings"}], "description": "Тип TL: messages.PeerSettings."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPeerSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Партнер |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4024018594"}}, "/catalog/messages.report": {"post": {"operationId": "messages.report", "tags": ["Сообщения"], "summary": "Пожаловаться на сообщение в чате о нарушении Условий обслуживания Telegram", "description": "Пожаловаться на сообщение в чате о нарушении Условий обслуживания Telegram\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.report", "x-tl-id": "4235767707", "x-tl-result": "ReportResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `ReportResult`.\n\n[РезультатОтчета](https://core.telegram.org/type/ReportResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ReportResult", "oneOf": [{"$ref": "#/components/schemas/reportResultChooseOption"}, {"$ref": "#/components/schemas/reportResultAddComment"}, {"$ref": "#/components/schemas/reportResultReported"}], "description": "Тип TL: ReportResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MESSAGE_REQUIRED` — На `id` необходимо передать непустой список идентификаторов.\n- 400 · `OPTION_INVALID` — Выбран неверный вариант.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.report"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы сообщений, о которых нужно сообщить"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Пункт меню, изначально пустой"}, "message": {"type": "string", "x-tl-type": "string", "description": "Комментарий для модерации отчета"}}, "additionalProperties": false, "required": ["peer", "id", "option", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `id` | `Vector<int>` | Да | Идентификаторы сообщений, о которых нужно сообщить |\n| `option` | `bytes` | Да | Пункт меню, изначально пустой |\n| `message` | `string` | Да | Комментарий для модерации отчета |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MESSAGE_REQUIRED", "OPTION_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4235767707"}}, "/catalog/messages.getChats": {"post": {"operationId": "messages.getChats", "tags": ["Сообщения"], "summary": "Возвращает основную информацию чата по их идентификаторам.", "description": "Возвращает основную информацию чата по их идентификаторам.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.getChats", "x-tl-id": "1240027791", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getChats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Список идентификаторов чатов"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | Да | Список идентификаторов чатов |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1240027791"}}, "/catalog/messages.getFullChat": {"post": {"operationId": "messages.getFullChat", "tags": ["Сообщения"], "summary": "Получите полную информацию о базовой группе.", "description": "Получите полную информацию о [базовой группе](https://core.telegram.org/api/channel.md#basic-groups).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getFullChat", "x-tl-id": "2930772788", "x-tl-result": "messages.ChatFull", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ChatFull`.\n\n[messages.ChatFull](https://core.telegram.org/type/messages.ChatFull.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ChatFull", "oneOf": [{"$ref": "#/components/schemas/messages.chatFull"}], "description": "Тип TL: messages.ChatFull."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getFullChat"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Базовая группа](https://core.telegram.org/api/channel.md#basic-groups) ID.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | Да | [Базовая группа](https://core.telegram.org/api/channel.md#basic-groups) ID. |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "2930772788"}}, "/catalog/messages.editChatTitle": {"post": {"operationId": "messages.editChatTitle", "tags": ["Сообщения"], "summary": "Меняет имя чата и отправляет на него служебное сообщение.", "description": "Меняет имя чата и отправляет на него служебное сообщение.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.editChatTitle", "x-tl-id": "1937260541", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `CHAT_TITLE_EMPTY` — Название чата не указано.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editChatTitle"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор чата", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "description": "Новое имя чата, отличное от старого"}}, "additionalProperties": false, "required": ["chat_id", "title"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | Да | Идентификатор чата |\n| `title` | `string` | Да | Новое имя чата, отличное от старого |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "CHAT_TITLE_EMPTY", "PEER_ID_INVALID"], "x-browser-schema-id": "1937260541"}}, "/catalog/messages.editChatPhoto": {"post": {"operationId": "messages.editChatPhoto", "tags": ["Сообщения"], "summary": "Меняет фотографию чата и отправляет на нее служебное сообщение", "description": "Меняет фотографию чата и отправляет на нее служебное сообщение\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.editChatPhoto", "x-tl-id": "903730804", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Фотография слишком маленькая.\n- 400 · `PHOTO_EXT_INVALID` — Недопустимое расширение фотографии.\n- 400 · `PHOTO_INVALID` — Фотография недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editChatPhoto"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор чата", "x-tl-type": "long"}, "photo": {"type": "object", "x-tl-type": "InputChatPhoto", "oneOf": [{"$ref": "#/components/schemas/inputChatPhotoEmpty"}, {"$ref": "#/components/schemas/inputChatUploadedPhoto"}, {"$ref": "#/components/schemas/inputChatPhoto"}], "description": "Фото для установки"}}, "additionalProperties": false, "required": ["chat_id", "photo"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | Да | Идентификатор чата |\n| `photo` | `InputChatPhoto` | Да | Фото для установки |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "IMAGE_PROCESS_FAILED", "PEER_ID_INVALID", "PHOTO_CROP_SIZE_SMALL", "PHOTO_EXT_INVALID", "PHOTO_INVALID"], "x-browser-schema-id": "903730804"}}, "/catalog/messages.addChatUser": {"post": {"operationId": "messages.addChatUser", "tags": ["Сообщения"], "summary": "Добавляет пользователя в чат и отправляет ему служебное сообщение.", "description": "Добавляет пользователя в чат и отправляет ему служебное сообщение.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.addChatUser", "x-tl-id": "3418804487", "x-tl-result": "messages.InvitedUsers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.InvitedUsers`.\n\n[messages.InvitedUsers](https://core.telegram.org/type/messages.InvitedUsers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.InvitedUsers", "oneOf": [{"$ref": "#/components/schemas/messages.invitedUsers"}], "description": "Тип TL: messages.InvitedUsers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_GROUPS_BLOCKED` — Этого бота нельзя добавлять в группы.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Не удалось добавить участников.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USERS_TOO_MUCH` — Превышено максимальное количество пользователей (для создания чата, например).\n- 400 · `USER_ALREADY_PARTICIPANT` — Пользователь уже в группе.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 400 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем.\n- 403 · `USER_NOT_MUTUAL_CONTACT` — Указанный пользователь не является взаимным контактом.\n- 403 · `USER_PRIVACY_RESTRICTED` — Настройки приватности пользователя не позволяют это сделать.\n- 400 · `YOU_BLOCKED_USER` — Вы заблокировали этого пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.addChatUser"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор чата", "x-tl-type": "long"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя, который необходимо добавить"}, "fwd_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество последних сообщений, которые необходимо переслать"}}, "additionalProperties": false, "required": ["chat_id", "user_id", "fwd_limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | Да | Идентификатор чата |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя, который необходимо добавить |\n| `fwd_limit` | `int` | Да | Количество последних сообщений, которые необходимо переслать |"}, "x-telegram-rpc-errors": ["BOT_GROUPS_BLOCKED", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_INVALID", "CHAT_MEMBER_ADD_FAILED", "CHAT_WRITE_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID", "USERS_TOO_MUCH", "USER_ALREADY_PARTICIPANT", "USER_ID_INVALID", "USER_IS_BLOCKED", "USER_NOT_MUTUAL_CONTACT", "USER_PRIVACY_RESTRICTED", "YOU_BLOCKED_USER"], "x-browser-schema-id": "3418804487"}}, "/catalog/messages.deleteChatUser": {"post": {"operationId": "messages.deleteChatUser", "tags": ["Сообщения"], "summary": "Удаляет пользователя из чата и отправляет ему служебное сообщение.", "description": "Удаляет пользователя из чата и отправляет ему служебное сообщение.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.deleteChatUser", "x-tl-id": "2719505579", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 400 · `USER_NOT_PARTICIPANT` — Вы не состоите в этой супергруппе/канале."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteChatUser"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"revoke_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалить всю историю чата указанного пользователя в этом чате."}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор чата", "x-tl-type": "long"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя, который будет удален"}}, "additionalProperties": false, "required": ["chat_id", "user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `revoke_history` | `true` | Нет | Удалить всю историю чата указанного пользователя в этом чате. |\n| `chat_id` | `long` | Да | Идентификатор чата |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя, который будет удален |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "INPUT_USER_DEACTIVATED", "PEER_ID_INVALID", "USER_ID_INVALID", "USER_NOT_PARTICIPANT"], "x-browser-schema-id": "2719505579"}}, "/catalog/messages.createChat": {"post": {"operationId": "messages.createChat", "tags": ["Сообщения"], "summary": "Создает новый чат.", "description": "Создает новый чат.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.createChat", "x-tl-id": "2463030740", "x-tl-result": "messages.InvitedUsers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.InvitedUsers`.\n\n[messages.InvitedUsers](https://core.telegram.org/type/messages.InvitedUsers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.InvitedUsers", "oneOf": [{"$ref": "#/components/schemas/messages.invitedUsers"}], "description": "Тип TL: messages.InvitedUsers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 500 · `CHAT_ID_GENERATE_FAILED` — Ошибка при генерации идентификатора чата.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Не удалось добавить участников.\n- 400 · `CHAT_TITLE_EMPTY` — Название чата не указано.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `TTL_PERIOD_INVALID` — Указанный период TTL недействителен.\n- 400 · `USERS_TOO_FEW` — Недостаточно пользователей (например, для создания чата).\n- 406 · `USER_RESTRICTED` — Вас сообщили о спаме, вы не можете создавать каналы и чаты."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.createChat"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Список идентификаторов пользователей, которых нужно пригласить"}, "title": {"type": "string", "x-tl-type": "string", "description": "Имя чата"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Время жизни всех сообщений, которые будут отправлены в чат: однажды message.date+message.ttl_period === time(), сообщение будет удалено на сервере и также должно быть удалено локально. Вы можете использовать [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md), чтобы изменить это значение позже."}}, "additionalProperties": false, "required": ["users", "title"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `users` | `Vector<InputUser>` | Да | Список идентификаторов пользователей, которых нужно пригласить |\n| `title` | `string` | Да | Имя чата |\n| `ttl_period` | `int` | Нет | Время жизни всех сообщений, которые будут отправлены в чат: однажды message.date+message.ttl_period === time(), сообщение будет удалено на сервере и также должно быть удалено локально. Вы можете использовать [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md), чтобы изменить это значение позже. |"}, "x-telegram-rpc-errors": ["CHAT_ID_GENERATE_FAILED", "CHAT_INVALID", "CHAT_MEMBER_ADD_FAILED", "CHAT_TITLE_EMPTY", "INPUT_USER_DEACTIVATED", "TTL_PERIOD_INVALID", "USERS_TOO_FEW", "USER_RESTRICTED"], "x-browser-schema-id": "2463030740"}}, "/catalog/messages.getDhConfig": {"post": {"operationId": "messages.getDhConfig", "tags": ["Сообщения"], "summary": "Возвращает параметры конфигурации для генерации ключей Диффи-Хеллмана. Также может возвращать случайную последовательность байтов необходимой длины.", "description": "Возвращает параметры конфигурации для генерации ключей Диффи-Хеллмана. Также может возвращать случайную последовательность байтов необходимой длины.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getDhConfig", "x-tl-id": "651135312", "x-tl-result": "messages.DhConfig", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.DhConfig`.\n\n[messages.DhConfig](https://core.telegram.org/type/messages.DhConfig.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.DhConfig", "oneOf": [{"$ref": "#/components/schemas/messages.dhConfigNotModified"}, {"$ref": "#/components/schemas/messages.dhConfig"}], "description": "Тип TL: messages.DhConfig."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `RANDOM_LENGTH_INVALID` — Неверная случайная длина."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDhConfig"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение параметра **версия** из [messages.dhConfig](https://core.telegram.org/constructor/messages.dhConfig.md), доступно на клиенте"}, "random_length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина требуемой случайной последовательности"}}, "additionalProperties": false, "required": ["version", "random_length"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `version` | `int` | Да | Значение параметра **версия** из [messages.dhConfig](https://core.telegram.org/constructor/messages.dhConfig.md), доступно на клиенте |\n| `random_length` | `int` | Да | Длина требуемой случайной последовательности |"}, "x-telegram-rpc-errors": ["RANDOM_LENGTH_INVALID"], "x-browser-schema-id": "651135312"}}, "/catalog/messages.requestEncryption": {"post": {"operationId": "messages.requestEncryption", "tags": ["Сообщения"], "summary": "Отправляет пользователю запрос на запуск секретного чата.", "description": "Отправляет пользователю запрос на запуск секретного чата.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.requestEncryption", "x-tl-id": "4132286275", "x-tl-result": "EncryptedChat", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `EncryptedChat`.\n\n[ЗашифрованныйЧат](https://core.telegram.org/type/EncryptedChat.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EncryptedChat", "oneOf": [{"$ref": "#/components/schemas/encryptedChatEmpty"}, {"$ref": "#/components/schemas/encryptedChatWaiting"}, {"$ref": "#/components/schemas/encryptedChatRequested"}, {"$ref": "#/components/schemas/encryptedChat"}, {"$ref": "#/components/schemas/encryptedChatDiscarded"}], "description": "Тип TL: EncryptedChat."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DH_G_A_INVALID` — g_a инвалид.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.requestEncryption"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя"}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Уникальный идентификатор запроса клиента, необходимый для предотвращения повторной отправки. Это также идентификатор чата. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}, "g_a": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`A = g ^ a mod p`, см. [Википедия](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)"}}, "additionalProperties": false, "required": ["user_id", "random_id", "g_a"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя |\n| `random_id` | `int` | Да | Уникальный идентификатор запроса клиента, необходимый для предотвращения повторной отправки. Это также идентификатор чата. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `g_a` | `bytes` | Да | `A = g ^ a mod p`, см. [Википедия](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) |"}, "x-telegram-rpc-errors": ["DH_G_A_INVALID", "INPUT_USER_DEACTIVATED", "RANDOM_ID_DUPLICATE", "USER_ID_INVALID", "USER_IS_BLOCKED"], "x-browser-schema-id": "4132286275"}}, "/catalog/messages.acceptEncryption": {"post": {"operationId": "messages.acceptEncryption", "tags": ["Сообщения"], "summary": "Подтверждает создание секретного чата", "description": "Подтверждает создание секретного чата\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.acceptEncryption", "x-tl-id": "1035731989", "x-tl-result": "EncryptedChat", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `EncryptedChat`.\n\n[ЗашифрованныйЧат](https://core.telegram.org/type/EncryptedChat.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EncryptedChat", "oneOf": [{"$ref": "#/components/schemas/encryptedChatEmpty"}, {"$ref": "#/components/schemas/encryptedChatWaiting"}, {"$ref": "#/components/schemas/encryptedChatRequested"}, {"$ref": "#/components/schemas/encryptedChat"}, {"$ref": "#/components/schemas/encryptedChatDiscarded"}], "description": "Тип TL: EncryptedChat."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `ENCRYPTION_ALREADY_ACCEPTED` — Секретный чат уже принят.\n- 400 · `ENCRYPTION_ALREADY_DECLINED` — Секретный чат уже отклонен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.acceptEncryption"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Идентификатор секретного чата"}, "g_b": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`B = g ^ b mod p`, см. [Википедия](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)"}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битный отпечаток полученного ключа", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "g_b", "key_fingerprint"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | Да | Идентификатор секретного чата |\n| `g_b` | `bytes` | Да | `B = g ^ b mod p`, см. [Википедия](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) |\n| `key_fingerprint` | `long` | Да | 64-битный отпечаток полученного ключа |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_DECLINED"], "x-browser-schema-id": "1035731989"}}, "/catalog/messages.discardEncryption": {"post": {"operationId": "messages.discardEncryption", "tags": ["Сообщения"], "summary": "Отменяет запрос на создание и/или удаление информации в секретном чате.", "description": "Отменяет запрос на создание и/или удаление информации в секретном чате.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.discardEncryption", "x-tl-id": "4086541984", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_EMPTY` — Указанный идентификатор чата пуст.\n- 400 · `ENCRYPTION_ALREADY_ACCEPTED` — Секретный чат уже принят.\n- 400 · `ENCRYPTION_ALREADY_DECLINED` — Секретный чат уже отклонен.\n- 400 · `ENCRYPTION_ID_INVALID` — Указанный идентификатор секретного чата недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.discardEncryption"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"delete_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалить ли всю историю чата и для другого пользователя?"}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор секретного чата"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `delete_history` | `true` | Нет | Удалить ли всю историю чата и для другого пользователя? |\n| `chat_id` | `int` | Да | Идентификатор секретного чата |"}, "x-telegram-rpc-errors": ["CHAT_ID_EMPTY", "ENCRYPTION_ALREADY_ACCEPTED", "ENCRYPTION_ALREADY_DECLINED", "ENCRYPTION_ID_INVALID"], "x-browser-schema-id": "4086541984"}}, "/catalog/messages.setEncryptedTyping": {"post": {"operationId": "messages.setEncryptedTyping", "tags": ["Сообщения"], "summary": "Отправить событие набора текста текущим пользователем в секретный чат.", "description": "Отправить событие набора текста текущим пользователем в секретный чат.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.setEncryptedTyping", "x-tl-id": "2031374829", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setEncryptedTyping"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Идентификатор секретного чата"}, "typing": {"type": "boolean", "x-tl-type": "Bool", "description": "Печатание. **Возможные значения**: [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), если пользователь начал печатать и с момента последнего запроса прошло более **5 секунд** [(boolFalse)](https://core.telegram.org/constructor/boolFalse.md), если пользователь прекратил печатать"}}, "additionalProperties": false, "required": ["peer", "typing"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | Да | Идентификатор секретного чата |\n| `typing` | `Bool` | Да | Печатание. **Возможные значения**: [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), если пользователь начал печатать и с момента последнего запроса прошло более **5 секунд** [(boolFalse)](https://core.telegram.org/constructor/boolFalse.md), если пользователь прекратил печатать |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID"], "x-browser-schema-id": "2031374829"}}, "/catalog/messages.readEncryptedHistory": {"post": {"operationId": "messages.readEncryptedHistory", "tags": ["Сообщения"], "summary": "Помечает историю сообщений в секретном чате как прочитанную.", "description": "Помечает историю сообщений в секретном чате как прочитанную.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.readEncryptedHistory", "x-tl-id": "2135648522", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `MAX_DATE_INVALID` — Указанная максимальная дата недействительна.\n- 400 · `MSG_WAIT_FAILED` — Ожидающий вызов возвратил ошибку."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readEncryptedHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Идентификатор секретного чата"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное значение даты для полученных сообщений в истории"}}, "additionalProperties": false, "required": ["peer", "max_date"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | Да | Идентификатор секретного чата |\n| `max_date` | `int` | Да | Максимальное значение даты для полученных сообщений в истории |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "MAX_DATE_INVALID", "MSG_WAIT_FAILED"], "x-browser-schema-id": "2135648522"}}, "/catalog/messages.sendEncrypted": {"post": {"operationId": "messages.sendEncrypted", "tags": ["Сообщения"], "summary": "Отправляет текстовое сообщение в секретный чат.", "description": "Отправляет текстовое сообщение в секретный чат.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendEncrypted", "x-tl-id": "1157265941", "x-tl-result": "messages.SentEncryptedMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SentEncryptedMessage`.\n\n[messages.SentEncryptedMessage](https://core.telegram.org/type/messages.SentEncryptedMessage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SentEncryptedMessage", "oneOf": [{"$ref": "#/components/schemas/messages.sentEncryptedMessage"}, {"$ref": "#/components/schemas/messages.sentEncryptedFile"}], "description": "Тип TL: messages.SentEncryptedMessage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `DATA_INVALID` — Зашифрованные данные недействительны.\n- 400 · `DATA_TOO_LONG` — Слишком длинные данные.\n- 400 · `ENCRYPTION_DECLINED` — Секретный чат отклонен.\n- 500 · `MSG_WAIT_FAILED` — Ожидающий вызов возвратил ошибку.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendEncrypted"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Отправить зашифрованное сообщение без уведомления"}, "peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Идентификатор секретного чата"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL-сериализация типа [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md), зашифрованная ключом, созданным при инициализации чата."}}, "additionalProperties": false, "required": ["peer", "random_id", "data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Отправить зашифрованное сообщение без уведомления |\n| `peer` | `InputEncryptedChat` | Да | Идентификатор секретного чата |\n| `random_id` | `long` | Да | Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `data` | `bytes` | Да | TL-сериализация типа [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md), зашифрованная ключом, созданным при инициализации чата. |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "DATA_INVALID", "DATA_TOO_LONG", "ENCRYPTION_DECLINED", "MSG_WAIT_FAILED", "USER_IS_BLOCKED"], "x-browser-schema-id": "1157265941"}}, "/catalog/messages.sendEncryptedFile": {"post": {"operationId": "messages.sendEncryptedFile", "tags": ["Сообщения"], "summary": "Отправляет сообщение с вложенным файлом в секретный чат.", "description": "Отправляет сообщение с вложенным файлом в секретный чат.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendEncryptedFile", "x-tl-id": "1431914525", "x-tl-result": "messages.SentEncryptedMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SentEncryptedMessage`.\n\n[messages.SentEncryptedMessage](https://core.telegram.org/type/messages.SentEncryptedMessage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SentEncryptedMessage", "oneOf": [{"$ref": "#/components/schemas/messages.sentEncryptedMessage"}, {"$ref": "#/components/schemas/messages.sentEncryptedFile"}], "description": "Тип TL: messages.SentEncryptedMessage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `DATA_TOO_LONG` — Слишком длинные данные.\n- 400 · `ENCRYPTION_DECLINED` — Секретный чат отклонен.\n- 400 · `FILE_EMTPY` — Предоставлен пустой файл.\n- 400 · `MD5_CHECKSUM_INVALID` — Контрольные суммы MD5 не совпадают.\n- 400 · `MSG_WAIT_FAILED` — Ожидающий вызов возвратил ошибку."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendEncryptedFile"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Отправлять ли файл без запуска уведомления"}, "peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Идентификатор секретного чата"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL-сериализация типа [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md), зашифрованная ключом, сгенерированным при инициализации чата."}, "file": {"type": "object", "x-tl-type": "InputEncryptedFile", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedFileEmpty"}, {"$ref": "#/components/schemas/inputEncryptedFileUploaded"}, {"$ref": "#/components/schemas/inputEncryptedFile"}, {"$ref": "#/components/schemas/inputEncryptedFileBigUploaded"}], "description": "Вложенный файл для секретного чата"}}, "additionalProperties": false, "required": ["peer", "random_id", "data", "file"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Отправлять ли файл без запуска уведомления |\n| `peer` | `InputEncryptedChat` | Да | Идентификатор секретного чата |\n| `random_id` | `long` | Да | Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `data` | `bytes` | Да | TL-сериализация типа [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md), зашифрованная ключом, сгенерированным при инициализации чата. |\n| `file` | `InputEncryptedFile` | Да | Вложенный файл для секретного чата |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "DATA_TOO_LONG", "ENCRYPTION_DECLINED", "FILE_EMTPY", "MD5_CHECKSUM_INVALID", "MSG_WAIT_FAILED"], "x-browser-schema-id": "1431914525"}}, "/catalog/messages.sendEncryptedService": {"post": {"operationId": "messages.sendEncryptedService", "tags": ["Сообщения"], "summary": "Отправляет служебное сообщение в секретный чат.", "description": "Отправляет служебное сообщение в секретный чат.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendEncryptedService", "x-tl-id": "852769188", "x-tl-result": "messages.SentEncryptedMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SentEncryptedMessage`.\n\n[messages.SentEncryptedMessage](https://core.telegram.org/type/messages.SentEncryptedMessage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SentEncryptedMessage", "oneOf": [{"$ref": "#/components/schemas/messages.sentEncryptedMessage"}, {"$ref": "#/components/schemas/messages.sentEncryptedFile"}], "description": "Тип TL: messages.SentEncryptedMessage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `DATA_INVALID` — Зашифрованные данные недействительны.\n- 400 · `DATA_TOO_LONG` — Слишком длинные данные.\n- 400 · `ENCRYPTION_DECLINED` — Секретный чат отклонен.\n- 400 · `ENCRYPTION_ID_INVALID` — Указанный идентификатор секретного чата недействителен.\n- 500 · `MSG_WAIT_FAILED` — Ожидающий вызов возвратил ошибку.\n- 403 · `USER_DELETED` — Вы не можете отправить это секретное сообщение, поскольку другой участник удалил свою учетную запись.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendEncryptedService"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Идентификатор секретного чата"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL-сериализация типа [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md), зашифрованная ключом, сгенерированным при инициализации чата."}}, "additionalProperties": false, "required": ["peer", "random_id", "data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | Да | Идентификатор секретного чата |\n| `random_id` | `long` | Да | Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `data` | `bytes` | Да | TL-сериализация типа [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md), зашифрованная ключом, сгенерированным при инициализации чата. |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "DATA_INVALID", "DATA_TOO_LONG", "ENCRYPTION_DECLINED", "ENCRYPTION_ID_INVALID", "MSG_WAIT_FAILED", "USER_DELETED", "USER_IS_BLOCKED"], "x-browser-schema-id": "852769188"}}, "/catalog/messages.receivedQueue": {"post": {"operationId": "messages.receivedQueue", "tags": ["Сообщения"], "summary": "Подтверждает получение клиентом сообщений в секретном чате, отменяет push-уведомления.", "description": "Подтверждает получение клиентом сообщений в секретном чате, отменяет push-уведомления.\nМетод возвращает список **случайных\\_id** сообщений, для которых push-уведомления были отменены.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.receivedQueue", "x-tl-id": "1436924774", "x-tl-result": "Vector<long>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<long>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[длинный](https://core.telegram.org/type/long.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MAX_QTS_INVALID` — Указанное max_qts неверно.\n- 500 · `MSG_WAIT_FAILED` — Ожидающий вызов возвратил ошибку."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.receivedQueue"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"max_qts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное значение qts, доступное на клиенте"}}, "additionalProperties": false, "required": ["max_qts"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `max_qts` | `int` | Да | Максимальное значение qts, доступное на клиенте |"}, "x-telegram-rpc-errors": ["MAX_QTS_INVALID", "MSG_WAIT_FAILED"], "x-browser-schema-id": "1436924774"}}, "/catalog/messages.reportEncryptedSpam": {"post": {"operationId": "messages.reportEncryptedSpam", "tags": ["Сообщения"], "summary": "Сообщить о спаме в секретном чате", "description": "Сообщить о спаме в секретном чате\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.reportEncryptedSpam", "x-tl-id": "1259113487", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reportEncryptedSpam"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Секретный чат, о котором можно сообщить"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | Да | Секретный чат, о котором можно сообщить |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID"], "x-browser-schema-id": "1259113487"}}, "/catalog/messages.readMessageContents": {"post": {"operationId": "messages.readMessageContents", "tags": ["Сообщения"], "summary": "Уведомляет отправителя о том, что получатель прослушал голосовое сообщение или посмотрел видео, отправляя updateReadMessagesContents.", "description": "Уведомляет отправителя о том, что получатель прослушал голосовое сообщение или посмотрел видео, отправляя сообщение [updateReadMessagesContents](https://core.telegram.org/constructor/updateReadMessagesContents.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.readMessageContents", "x-tl-id": "916930423", "x-tl-result": "messages.AffectedMessages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedMessages`.\n\n[messages.AffectedMessages](https://core.telegram.org/type/messages.AffectedMessages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedMessages", "oneOf": [{"$ref": "#/components/schemas/messages.affectedMessages"}], "description": "Тип TL: messages.AffectedMessages."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readMessageContents"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Список идентификаторов сообщений"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<int>` | Да | Список идентификаторов сообщений |"}, "x-browser-schema-id": "916930423"}}, "/catalog/messages.getStickers": {"post": {"operationId": "messages.getStickers", "tags": ["Сообщения"], "summary": "Получите стикеры по смайликам", "description": "Получите стикеры по смайликам\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getStickers", "x-tl-id": "3584414625", "x-tl-result": "messages.Stickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Stickers`.\n\n[messages.Stickers](https://core.telegram.org/type/messages.Stickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Stickers", "oneOf": [{"$ref": "#/components/schemas/messages.stickersNotModified"}, {"$ref": "#/components/schemas/messages.stickers"}], "description": "Тип TL: messages.Stickers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMOTICON_EMPTY` — Эмодзи пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["emoticon", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `emoticon` | `string` | Да | Эмодзи |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-telegram-rpc-errors": ["EMOTICON_EMPTY"], "x-browser-schema-id": "3584414625"}}, "/catalog/messages.getAllStickers": {"post": {"operationId": "messages.getAllStickers", "tags": ["Сообщения"], "summary": "Получить все установленные стикеры", "description": "Получить все установленные стикеры\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getAllStickers", "x-tl-id": "3097534888", "x-tl-result": "messages.AllStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AllStickers`.\n\n[messages.AllStickers](https://core.telegram.org/type/messages.AllStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AllStickers", "oneOf": [{"$ref": "#/components/schemas/messages.allStickersNotModified"}, {"$ref": "#/components/schemas/messages.allStickers"}], "description": "Тип TL: messages.AllStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAllStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3097534888"}}, "/catalog/messages.getWebPagePreview": {"post": {"operationId": "messages.getWebPagePreview", "tags": ["Сообщения"], "summary": "Получить предварительный просмотр веб-страницы", "description": "Получить предварительный просмотр веб-страницы\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)", "x-tl-method": "messages.getWebPagePreview", "x-tl-id": "1460498287", "x-tl-result": "messages.WebPagePreview", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.WebPagePreview`.\n\n[messages.WebPagePreview](https://core.telegram.org/type/messages.WebPagePreview.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.WebPagePreview", "oneOf": [{"$ref": "#/components/schemas/messages.webPagePreview"}], "description": "Тип TL: messages.WebPagePreview."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `MESSAGE_EMPTY` — Предоставленное сообщение пустое."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getWebPagePreview"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"message": {"type": "string", "x-tl-type": "string", "description": "Сообщение, из которого можно извлечь превью"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)"}}, "additionalProperties": false, "required": ["message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `message` | `string` | Да | Сообщение, из которого можно извлечь превью |\n| `entities` | `Vector<MessageEntity>` | Нет | [Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md) |"}, "x-telegram-rpc-errors": ["ENTITY_BOUNDS_INVALID", "MESSAGE_EMPTY"], "x-browser-schema-id": "1460498287"}}, "/catalog/messages.exportChatInvite": {"post": {"operationId": "messages.exportChatInvite", "tags": ["Сообщения"], "summary": "Экспортировать ссылку для приглашения в чат", "description": "Экспортировать ссылку для приглашения в чат\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.exportChatInvite", "x-tl-id": "2757090960", "x-tl-result": "ExportedChatInvite", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `ExportedChatInvite`.\n\n[ExportedChatInvite](https://core.telegram.org/type/ExportedChatInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedChatInvite", "oneOf": [{"$ref": "#/components/schemas/chatInviteExported"}, {"$ref": "#/components/schemas/chatInvitePublicJoinRequests"}], "description": "Тип TL: ExportedChatInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `EXPIRE_DATE_INVALID` — Указана неверная дата истечения срока действия.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PRICING_CHAT_INVALID` — Цена на [подписку](https://core.telegram.org/api/subscriptions.md) недействительна, максимальная цена указана в конфигурационном ключе [`stars_subscription_amount_max`»](https://core.telegram.org/api/config.md#stars-subscription-amount-max).\n- 400 · `SUBSCRIPTION_PERIOD_INVALID` — Указанный subscription_pricing.период недействителен.\n- 400 · `USAGE_LIMIT_INVALID` — Указанный лимит использования недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.exportChatInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"legacy_revoke_permanent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Флаг Legacy, воспроизводящий устаревшее поведение этого метода: если он установлен, отменяет все предыдущие ссылки перед созданием новой. Сохранено для бота API BC, не должно использоваться современными клиентами."}, "request_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Требуется ли подтверждение администратора перед допуском каждого отдельного пользователя в чат"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Срок годности"}, "usage_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Максимальное количество пользователей, которые могут присоединиться по этой ссылке"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string", "description": "Описание ссылки-приглашения, видимой только администраторам"}, "subscription_pricing": {"type": "object", "x-tl-type": "StarsSubscriptionPricing", "oneOf": [{"$ref": "#/components/schemas/starsSubscriptionPricing"}], "description": "Для [подписок Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) указана стоимость подписки, которую пользователь должен активировать, чтобы присоединиться к частному каналу.", "x-tl-flag": "flags.5?StarsSubscriptionPricing"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `legacy_revoke_permanent` | `true` | Нет | Флаг Legacy, воспроизводящий устаревшее поведение этого метода: если он установлен, отменяет все предыдущие ссылки перед созданием новой. Сохранено для бота API BC, не должно использоваться современными клиентами. |\n| `request_needed` | `true` | Нет | Требуется ли подтверждение администратора перед допуском каждого отдельного пользователя в чат |\n| `peer` | `InputPeer` | Да | Чат |\n| `expire_date` | `int` | Нет | Срок годности |\n| `usage_limit` | `int` | Нет | Максимальное количество пользователей, которые могут присоединиться по этой ссылке |\n| `title` | `string` | Нет | Описание ссылки-приглашения, видимой только администраторам |\n| `subscription_pricing` | `StarsSubscriptionPricing` | Нет | Для [подписок Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) указана стоимость подписки, которую пользователь должен активировать, чтобы присоединиться к частному каналу. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_WRITE_FORBIDDEN", "EXPIRE_DATE_INVALID", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID", "PRICING_CHAT_INVALID", "SUBSCRIPTION_PERIOD_INVALID", "USAGE_LIMIT_INVALID"], "x-browser-schema-id": "2757090960"}}, "/catalog/messages.checkChatInvite": {"post": {"operationId": "messages.checkChatInvite", "tags": ["Сообщения"], "summary": "Проверьте действительность ссылки для приглашения в чат и получите основную информацию о ней.", "description": "Проверьте действительность ссылки для приглашения в чат и получите основную информацию о ней.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "messages.checkChatInvite", "x-tl-id": "1051570619", "x-tl-result": "ChatInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `ChatInvite`.\n\n[Приглашение в чат](https://core.telegram.org/type/ChatInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ChatInvite", "oneOf": [{"$ref": "#/components/schemas/chatInviteAlready"}, {"$ref": "#/components/schemas/chatInvite"}, {"$ref": "#/components/schemas/chatInvitePeek"}], "description": "Тип TL: ChatInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `INVITE_HASH_EMPTY` — Хэш приглашения пуст.\n- 406 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `INVITE_HASH_INVALID` — Неверный хеш приглашения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.checkChatInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "x-tl-type": "string", "description": "Хэш приглашения из [глубокая ссылка на приглашение в чат »](https://core.telegram.org/api/links.md#chat-invite-links)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `string` | Да | Хэш приглашения из [глубокая ссылка на приглашение в чат »](https://core.telegram.org/api/links.md#chat-invite-links). |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED", "INVITE_HASH_INVALID"], "x-browser-schema-id": "1051570619"}}, "/catalog/messages.importChatInvite": {"post": {"operationId": "messages.importChatInvite", "tags": ["Сообщения"], "summary": "Импортируйте приглашение в чат и присоединитесь к частному чату/супергруппе/каналу.", "description": "Импортируйте приглашение в чат и присоединитесь к частному чату/супергруппе/каналу.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)", "x-tl-method": "messages.importChatInvite", "x-tl-id": "3734061934", "x-tl-result": "messages.ChatInviteJoinResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ChatInviteJoinResult`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ChatInviteJoinResult", "oneOf": [{"$ref": "#/components/schemas/messages.chatInviteJoinResultOk"}, {"$ref": "#/components/schemas/messages.chatInviteJoinResultWebView"}], "description": "Тип TL: messages.ChatInviteJoinResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — Вы присоединились к слишком большому количеству каналов/супергрупп.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `INVITE_HASH_EMPTY` — Хэш приглашения пуст.\n- 406 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `INVITE_HASH_INVALID` — Неверный хеш приглашения.\n- 400 · `INVITE_REQUEST_SENT` — Вы успешно отправили запрос на присоединение к этому чату или каналу.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STARS_PAYMENT_REQUIRED` — Чтобы импортировать эту ссылку для приглашения в чат, вам необходимо сначала [оплатить соответствующую подписку Telegram Star»](https://core.telegram.org/api/subscriptions.md#channel-subscriptions).\n- 400 · `USERS_TOO_MUCH` — Превышено максимальное количество пользователей (для создания чата, например).\n- 400 · `USER_ALREADY_PARTICIPANT` — Пользователь уже в группе.\n- 400 · `USER_CHANNELS_TOO_MUCH` — Один из пользователей, которых вы пытались добавить, уже состоит в слишком многих каналах/супергруппах."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.importChatInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "x-tl-type": "string", "description": "`hash` из [глубокой ссылки на приглашение в чат](https://core.telegram.org/api/links.md#chat-invite-links)"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `string` | Да | `hash` из [глубокой ссылки на приглашение в чат](https://core.telegram.org/api/links.md#chat-invite-links) |"}, "x-telegram-rpc-errors": ["CHANNELS_TOO_MUCH", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_INVALID", "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED", "INVITE_HASH_INVALID", "INVITE_REQUEST_SENT", "MSG_ID_INVALID", "PEER_ID_INVALID", "STARS_PAYMENT_REQUIRED", "USERS_TOO_MUCH", "USER_ALREADY_PARTICIPANT", "USER_CHANNELS_TOO_MUCH"], "x-browser-schema-id": "3734061934"}}, "/catalog/messages.getStickerSet": {"post": {"operationId": "messages.getStickerSet", "tags": ["Сообщения"], "summary": "Получить информацию о наборе стикеров", "description": "Получить информацию о наборе стикеров\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getStickerSet", "x-tl-id": "3365989492", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMOTICON_STICKERPACK_MISSING` — inputStickerSetDice.emoji не может быть пустым.\n- 406 · `STICKERSET_INVALID` — Указанный набор наклеек недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getStickerSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор наклеек"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)"}}, "additionalProperties": false, "required": ["stickerset", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | Да | Набор наклеек |\n| `hash` | `int` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation) |"}, "x-telegram-rpc-errors": ["EMOTICON_STICKERPACK_MISSING", "STICKERSET_INVALID"], "x-browser-schema-id": "3365989492"}}, "/catalog/messages.installStickerSet": {"post": {"operationId": "messages.installStickerSet", "tags": ["Сообщения"], "summary": "Установить набор стикеров", "description": "Установить набор стикеров\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.installStickerSet", "x-tl-id": "3348096096", "x-tl-result": "messages.StickerSetInstallResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSetInstallResult`.\n\n[messages.StickerSetInstallResult](https://core.telegram.org/type/messages.StickerSetInstallResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSetInstallResult", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSetInstallResultSuccess"}, {"$ref": "#/components/schemas/messages.stickerSetInstallResultArchive"}], "description": "Тип TL: messages.StickerSetInstallResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `STICKERSET_INVALID` — Указанный набор наклеек недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.installStickerSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор стикеров для установки"}, "archived": {"type": "boolean", "x-tl-type": "Bool", "description": "Архивировать ли набор стикеров"}}, "additionalProperties": false, "required": ["stickerset", "archived"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | Да | Набор стикеров для установки |\n| `archived` | `Bool` | Да | Архивировать ли набор стикеров |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "3348096096"}}, "/catalog/messages.uninstallStickerSet": {"post": {"operationId": "messages.uninstallStickerSet", "tags": ["Сообщения"], "summary": "Удаление набора стикеров", "description": "Удаление набора стикеров\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.uninstallStickerSet", "x-tl-id": "4184757726", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `STICKERSET_INVALID` — Указанный набор наклеек недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.uninstallStickerSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор наклеек, который нужно удалить"}}, "additionalProperties": false, "required": ["stickerset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | Да | Набор наклеек, который нужно удалить |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "4184757726"}}, "/catalog/messages.startBot": {"post": {"operationId": "messages.startBot", "tags": ["Сообщения"], "summary": "Начните разговор с ботом, используя параметр глубокой ссылки.", "description": "Начните разговор с ботом, используя [параметр глубокой ссылки](https://core.telegram.org/api/links.md#bot-links)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "messages.startBot", "x-tl-id": "3873403768", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `START_PARAM_EMPTY` — Стартовый параметр пуст.\n- 400 · `START_PARAM_INVALID` — Неверный параметр запуска.\n- 400 · `START_PARAM_TOO_LONG` — Слишком длинный параметр запуска."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.startBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, где запустить бота, может быть приватным чатом бота или групповым."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор, чтобы избежать повторной отправки одного и того же сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "start_param": {"type": "string", "x-tl-type": "string", "description": "[Параметр диплинкинга](https://core.telegram.org/api/links.md#bot-links)"}}, "additionalProperties": false, "required": ["bot", "peer", "random_id", "start_param"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот |\n| `peer` | `InputPeer` | Да | Чат, где запустить бота, может быть приватным чатом бота или групповым. |\n| `random_id` | `long` | Да | Случайный идентификатор, чтобы избежать повторной отправки одного и того же сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `start_param` | `string` | Да | [Параметр диплинкинга](https://core.telegram.org/api/links.md#bot-links) |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID", "RANDOM_ID_DUPLICATE", "START_PARAM_EMPTY", "START_PARAM_INVALID", "START_PARAM_TOO_LONG"], "x-browser-schema-id": "3873403768"}}, "/catalog/messages.getMessagesViews": {"post": {"operationId": "messages.getMessagesViews", "tags": ["Сообщения"], "summary": "Получайте и увеличивайте счетчик просмотров сообщения, отправленного или пересланного с канала.", "description": "Получайте и увеличивайте счетчик просмотров сообщения, отправленного или пересланного с [канала](https://core.telegram.org/api/channel.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getMessagesViews", "x-tl-id": "1468322785", "x-tl-result": "messages.MessageViews", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.MessageViews`.\n\n[messages.MessageViews](https://core.telegram.org/type/messages.MessageViews.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.MessageViews", "oneOf": [{"$ref": "#/components/schemas/messages.messageViews"}], "description": "Тип TL: messages.MessageViews."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMessagesViews"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, где было найдено сообщение"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "идентификатор сообщения"}, "increment": {"type": "boolean", "x-tl-type": "Bool", "description": "Отмечать ли сообщение как просмотренное и увеличивать счетчик просмотров"}}, "additionalProperties": false, "required": ["peer", "id", "increment"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, где было найдено сообщение |\n| `id` | `Vector<int>` | Да | идентификатор сообщения |\n| `increment` | `Bool` | Да | Отмечать ли сообщение как просмотренное и увеличивать счетчик просмотров |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1468322785"}}, "/catalog/messages.editChatAdmin": {"post": {"operationId": "messages.editChatAdmin", "tags": ["Сообщения"], "summary": "Сделайте администратором пользователя в базовой группе.", "description": "Сделайте администратором пользователя в [базовой группе](https://core.telegram.org/api/channel.md#basic-groups).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatAdmin", "x-tl-id": "2824589762", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 400 · `USER_NOT_PARTICIPANT` — Вы не состоите в этой супергруппе/канале."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editChatAdmin"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор группы", "x-tl-type": "long"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, которого можно сделать администратором"}, "is_admin": {"type": "boolean", "x-tl-type": "Bool", "description": "Сделать ли их администратором"}}, "additionalProperties": false, "required": ["chat_id", "user_id", "is_admin"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | Да | Идентификатор группы |\n| `user_id` | `InputUser` | Да | Пользователь, которого можно сделать администратором |\n| `is_admin` | `Bool` | Да | Сделать ли их администратором |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "PEER_ID_INVALID", "USER_ID_INVALID", "USER_NOT_PARTICIPANT"], "x-browser-schema-id": "2824589762"}}, "/catalog/messages.migrateChat": {"post": {"operationId": "messages.migrateChat", "tags": ["Сообщения"], "summary": "Превратите базовую группу в супергруппу", "description": "Превратите [базовую группу в супергруппу](https://core.telegram.org/api/channel.md#migration)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.migrateChat", "x-tl-id": "2726777625", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — Вы присоединились к слишком большому количеству каналов/супергрупп.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 500 · `CHAT_INVALID` — Неверный чат.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.migrateChat"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Основная группа](https://core.telegram.org/api/channel.md#basic-groups) для миграции", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | Да | [Основная группа](https://core.telegram.org/api/channel.md#basic-groups) для миграции |"}, "x-telegram-rpc-errors": ["CHANNELS_TOO_MUCH", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "2726777625"}}, "/catalog/messages.searchGlobal": {"post": {"operationId": "messages.searchGlobal", "tags": ["Сообщения"], "summary": "Поиск сообщений и пиров по всему миру", "description": "Поиск сообщений и пиров по всему миру\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Search and filters](https://core.telegram.org/api/search.md)\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.searchGlobal", "x-tl-id": "1629922364", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Search and filters", "https://core.telegram.org/api/search.md"], ["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FOLDER_ID_INVALID` — Неверный идентификатор папки.\n- 400 · `INPUT_FILTER_INVALID` — Указанный фильтр недействителен.\n- 400 · `SEARCH_QUERY_EMPTY` — Поисковый запрос пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.searchGlobal"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"broadcasts_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлено, возвращаются результаты только из каналов (используются на вкладке [вкладка глобального поиска каналов»](https://core.telegram.org/api/search.md#global-search))."}, "groups_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Искать ли только в группах"}, "users_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Искать ли только в приватных чатах"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "[Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders)"}, "community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel.", "x-tl-flag": "flags.4?InputChannel"}, "q": {"type": "string", "x-tl-type": "string", "description": "Запрос"}, "filter": {"type": "object", "x-tl-type": "MessagesFilter", "oneOf": [{"$ref": "#/components/schemas/inputMessagesFilterEmpty"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotoVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterDocument"}, {"$ref": "#/components/schemas/inputMessagesFilterUrl"}, {"$ref": "#/components/schemas/inputMessagesFilterGif"}, {"$ref": "#/components/schemas/inputMessagesFilterVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterMusic"}, {"$ref": "#/components/schemas/inputMessagesFilterChatPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterPhoneCalls"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterMyMentions"}, {"$ref": "#/components/schemas/inputMessagesFilterGeo"}, {"$ref": "#/components/schemas/inputMessagesFilterContacts"}, {"$ref": "#/components/schemas/inputMessagesFilterPinned"}, {"$ref": "#/components/schemas/inputMessagesFilterPoll"}], "description": "Глобальный поисковый фильтр"}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было указано положительное значение, метод будет возвращать только сообщения с датой больше min_date."}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было передано положительное значение, метод вернет только сообщения с датой меньше max_date."}, "offset_rate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Первоначально 0, затем устанавливается параметр [`next_rate` messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) или, если он отсутствует, `date` последнего возвращенного сообщения."}, "offset_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["q", "filter", "min_date", "max_date", "offset_rate", "offset_peer", "offset_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `broadcasts_only` | `true` | Нет | Если установлено, возвращаются результаты только из каналов (используются на вкладке [вкладка глобального поиска каналов»](https://core.telegram.org/api/search.md#global-search)). |\n| `groups_only` | `true` | Нет | Искать ли только в группах |\n| `users_only` | `true` | Нет | Искать ли только в приватных чатах |\n| `folder_id` | `int` | Нет | [Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders) |\n| `community` | `InputChannel` | Нет | Тип TL: InputChannel. |\n| `q` | `string` | Да | Запрос |\n| `filter` | `MessagesFilter` | Да | Глобальный поисковый фильтр |\n| `min_date` | `int` | Да | Если было указано положительное значение, метод будет возвращать только сообщения с датой больше min_date. |\n| `max_date` | `int` | Да | Если было передано положительное значение, метод вернет только сообщения с датой меньше max_date. |\n| `offset_rate` | `int` | Да | Первоначально 0, затем устанавливается параметр [`next_rate` messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) или, если он отсутствует, `date` последнего возвращенного сообщения. |\n| `offset_peer` | `InputPeer` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["FOLDER_ID_INVALID", "INPUT_FILTER_INVALID", "SEARCH_QUERY_EMPTY"], "x-browser-schema-id": "1629922364"}}, "/catalog/messages.reorderStickerSets": {"post": {"operationId": "messages.reorderStickerSets", "tags": ["Сообщения"], "summary": "Изменение порядка установленных наборов наклеек", "description": "Изменение порядка установленных наборов наклеек\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.reorderStickerSets", "x-tl-id": "2016638777", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reorderStickerSets"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Изменение порядка наборов наклеек с масками"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Изменить порядок [пользовательских наборов стикеров с эмодзи](https://core.telegram.org/api/custom-emoji.md)"}, "order": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Новый порядок наборов стикеров по идентификаторам наборов стикеров"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `masks` | `true` | Нет | Изменение порядка наборов наклеек с масками |\n| `emojis` | `true` | Нет | Изменить порядок [пользовательских наборов стикеров с эмодзи](https://core.telegram.org/api/custom-emoji.md) |\n| `order` | `Vector<long>` | Да | Новый порядок наборов стикеров по идентификаторам наборов стикеров |"}, "x-browser-schema-id": "2016638777"}}, "/catalog/messages.getDocumentByHash": {"post": {"operationId": "messages.getDocumentByHash", "tags": ["Сообщения"], "summary": "Получите документ по его хешу SHA256, который в основном используется для изображений в формате GIF.", "description": "Получите документ по его хешу SHA256, который в основном используется для изображений в формате GIF.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.getDocumentByHash", "x-tl-id": "2985428511", "x-tl-result": "Document", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Document`.\n\n[Документ](https://core.telegram.org/type/Document.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Document", "oneOf": [{"$ref": "#/components/schemas/documentEmpty"}, {"$ref": "#/components/schemas/document"}], "description": "Тип TL: Document."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SHA256_HASH_INVALID` — Указанный хеш SHA256 недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDocumentByHash"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"sha256": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "SHA256 файла"}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "Размер файла в байтах", "x-tl-type": "long"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "Тип пантомимы"}}, "additionalProperties": false, "required": ["sha256", "size", "mime_type"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sha256` | `bytes` | Да | SHA256 файла |\n| `size` | `long` | Да | Размер файла в байтах |\n| `mime_type` | `string` | Да | Тип пантомимы |"}, "x-telegram-rpc-errors": ["SHA256_HASH_INVALID"], "x-browser-schema-id": "2985428511"}}, "/catalog/messages.getSavedGifs": {"post": {"operationId": "messages.getSavedGifs", "tags": ["Сообщения"], "summary": "Получите сохраненные GIF-файлы.", "description": "Получите сохраненные GIF-файлы.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSavedGifs", "x-tl-id": "1559270965", "x-tl-result": "messages.SavedGifs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SavedGifs`.\n\n[messages.SavedGifs](https://core.telegram.org/type/messages.SavedGifs.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SavedGifs", "oneOf": [{"$ref": "#/components/schemas/messages.savedGifsNotModified"}, {"$ref": "#/components/schemas/messages.savedGifs"}], "description": "Тип TL: messages.SavedGifs."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSavedGifs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1559270965"}}, "/catalog/messages.saveGif": {"post": {"operationId": "messages.saveGif", "tags": ["Сообщения"], "summary": "Добавьте GIF в список сохраненных картинок.", "description": "Добавьте GIF в список сохраненных картинок.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.saveGif", "x-tl-id": "846868683", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GIF_ID_INVALID` — Указанный идентификатор GIF недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.saveGif"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "GIF, чтобы сохранить"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Удалить ли GIF из списка сохраненных картинок"}}, "additionalProperties": false, "required": ["id", "unsave"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | Да | GIF, чтобы сохранить |\n| `unsave` | `Bool` | Да | Удалить ли GIF из списка сохраненных картинок |"}, "x-telegram-rpc-errors": ["GIF_ID_INVALID"], "x-browser-schema-id": "846868683"}}, "/catalog/messages.getInlineBotResults": {"post": {"operationId": "messages.getInlineBotResults", "tags": ["Сообщения"], "summary": "Запрос встроенного бота", "description": "Запрос встроенного бота\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getInlineBotResults", "x-tl-id": "1364105629", "x-tl-result": "messages.BotResults", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.BotResults`.\n\n[messages.BotResults](https://core.telegram.org/type/messages.BotResults.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotResults", "oneOf": [{"$ref": "#/components/schemas/messages.botResults"}], "description": "Тип TL: messages.BotResults."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INLINE_DISABLED` — Этот бот нельзя использовать во встроенном режиме.\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `BOT_RESPONSE_TIMEOUT` — При получении данных от бота произошел таймаут.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getInlineBotResults"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот для запроса"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Открытый в данный момент чат"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "oneOf": [{"$ref": "#/components/schemas/inputGeoPointEmpty"}, {"$ref": "#/components/schemas/inputGeoPoint"}], "description": "Геолокация, если требуется", "x-tl-flag": "flags.0?InputGeoPoint"}, "query": {"type": "string", "x-tl-type": "string", "description": "Запрос"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение в результатах будет передано боту как есть."}}, "additionalProperties": false, "required": ["bot", "peer", "query", "offset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот для запроса |\n| `peer` | `InputPeer` | Да | Открытый в данный момент чат |\n| `geo_point` | `InputGeoPoint` | Нет | Геолокация, если требуется |\n| `query` | `string` | Да | Запрос |\n| `offset` | `string` | Да | Смещение в результатах будет передано боту как есть. |"}, "x-telegram-rpc-errors": ["BOT_INLINE_DISABLED", "BOT_INVALID", "BOT_RESPONSE_TIMEOUT", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID"], "x-browser-schema-id": "1364105629"}}, "/catalog/messages.setInlineBotResults": {"post": {"operationId": "messages.setInlineBotResults", "tags": ["Сообщения"], "summary": "Ответьте на встроенный запрос (только для ботов).", "description": "Ответьте на встроенный запрос (только для ботов).\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.setInlineBotResults", "x-tl-id": "3138561049", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ARTICLE_TITLE_EMPTY` — Заголовок статьи пуст.\n- 400 · `AUDIO_CONTENT_URL_EMPTY` — Пульт URL, указанный в поле содержимого, пуст.\n- 400 · `AUDIO_TITLE_EMPTY` — Был предоставлен пустой аудиозаголовок.\n- 400 · `BUTTON_DATA_INVALID` — Данные одной или нескольких предоставленных вами кнопок недействительны.\n- 400 · `BUTTON_TYPE_INVALID` — Тип одной или нескольких предоставленных вами кнопок недействителен.\n- 400 · `BUTTON_URL_INVALID` — Кнопка URL недействительна.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 400 · `FILE_CONTENT_TYPE_INVALID` — Неверный тип содержимого файла.\n- 400 · `FILE_TITLE_EMPTY` — Указан пустой заголовок файла.\n- 400 · `GIF_CONTENT_TYPE_INVALID` — GIF неверный тип контента.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — Подпись слишком длинная.\n- 400 · `MESSAGE_EMPTY` — Предоставленное сообщение пустое.\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `NEXT_OFFSET_INVALID` — Указанное смещение длиннее 64 байт.\n- 400 · `PEER_TYPES_INVALID` — Переданное поле [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline.md).`peer_types` недействительно.\n- 400 · `PHOTO_CONTENT_TYPE_INVALID` — Неверный мим-тип фотографии.\n- 400 · `PHOTO_CONTENT_URL_EMPTY` — Фотография URL недействительна.\n- 400 · `PHOTO_INVALID` — Фотография недействительна.\n- 400 · `PHOTO_THUMB_URL_EMPTY` — Миниатюра фотографии URL пуста.\n- 400 · `QUERY_ID_INVALID` — Неверный идентификатор запроса.\n- 400 · `REPLY_MARKUP_INVALID` — Предоставленная разметка ответа недействительна.\n- 400 · `RESULTS_TOO_MUCH` — Предоставлено слишком много результатов.\n- 400 · `RESULT_ID_DUPLICATE` — Вы указали повторяющийся идентификатор результата.\n- 400 · `RESULT_ID_INVALID` — Один из указанных идентификаторов результата недействителен.\n- 400 · `RESULT_TYPE_INVALID` — Неверный тип результата.\n- 400 · `SEND_MESSAGE_MEDIA_INVALID` — Указан недопустимый носитель.\n- 400 · `SEND_MESSAGE_TYPE_INVALID` — Неверный тип сообщения.\n- 400 · `START_PARAM_EMPTY` — Стартовый параметр пуст.\n- 400 · `START_PARAM_INVALID` — Неверный параметр запуска.\n- 400 · `STICKER_DOCUMENT_INVALID` — Указанный документ-стикер недействителен.\n- 400 · `SWITCH_PM_TEXT_EMPTY` — Поле switch_pm.text было пустым.\n- 400 · `SWITCH_WEBVIEW_URL_INVALID` — URL, указанный в switch_webview.url, недействителен!\n- 400 · `URL_INVALID` — Указано неверное URL.\n- 403 · `USER_BOT_INVALID` — Учетные записи пользователей должны предоставить параметр метода `bot` при вызове этого метода. Если такого параметра метода нет, этот метод может быть вызван только учетными записями ботов.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `VIDEO_CONTENT_TYPE_INVALID` — Неверный тип контента видео.\n- 400 · `VIDEO_TITLE_EMPTY` — Указанный заголовок видео пуст.\n- 400 · `WEBDOCUMENT_INVALID` — Предоставлен неверный веб-документ URL.\n- 400 · `WEBDOCUMENT_MIME_INVALID` — Указан неверный тип mime веб-документа.\n- 400 · `WEBDOCUMENT_SIZE_TOO_BIG` — Веб-документ слишком велик!\n- 400 · `WEBDOCUMENT_URL_EMPTY` — Переданный веб-документ URL пуст.\n- 400 · `WEBDOCUMENT_URL_INVALID` — Указанный веб-документ URL недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setInlineBotResults"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"gallery": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг, если результаты состоят из медиа-файлов."}, "private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Установите этот флаг, если результаты могут кэшироваться на стороне сервера только для пользователя, отправившего запрос. По умолчанию результаты могут быть возвращены любому пользователю, отправившему тот же запрос."}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор ответного запроса", "x-tl-type": "long"}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "InputBotInlineResult", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineResult"}, {"$ref": "#/components/schemas/inputBotInlineResultPhoto"}, {"$ref": "#/components/schemas/inputBotInlineResultDocument"}, {"$ref": "#/components/schemas/inputBotInlineResultGame"}], "description": "Тип TL: InputBotInlineResult."}, "x-tl-type": "Vector<InputBotInlineResult>", "description": "Вектор результатов встроенного запроса"}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное время в секундах, в течение которого результат встроенного запроса может кэшироваться на сервере. По умолчанию 300."}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Передайте смещение, которое клиент должен отправить в следующем запросе с тем же текстом, чтобы получить больше результатов. Передайте пустую строку, если результатов больше нет или если вы не поддерживаете нумерацию страниц. Длина смещения не может превышать 64 байта."}, "switch_pm": {"type": "object", "x-tl-type": "InlineBotSwitchPM", "oneOf": [{"$ref": "#/components/schemas/inlineBotSwitchPM"}], "description": "В случае положительного ответа клиенты отобразят кнопку поверх оставшегося встроенного списка результатов с указанным текстом, которая переключает пользователя в приватный чат с ботом и отправляет боту стартовое сообщение с определенным параметром.", "x-tl-flag": "flags.3?InlineBotSwitchPM"}, "switch_webview": {"type": "object", "x-tl-type": "InlineBotWebView", "oneOf": [{"$ref": "#/components/schemas/inlineBotWebView"}], "description": "В случае положительного ответа клиенты отобразят кнопку поверх оставшегося встроенного списка результатов с указанным текстом, которая переключает пользователя на указанное [мини-приложение встроенного режима](https://core.telegram.org/api/bots/webapps.md#inline-mode-mini-apps).", "x-tl-flag": "flags.4?InlineBotWebView"}}, "additionalProperties": false, "required": ["query_id", "results", "cache_time"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `gallery` | `true` | Нет | Установите этот флаг, если результаты состоят из медиа-файлов. |\n| `private` | `true` | Нет | Установите этот флаг, если результаты могут кэшироваться на стороне сервера только для пользователя, отправившего запрос. По умолчанию результаты могут быть возвращены любому пользователю, отправившему тот же запрос. |\n| `query_id` | `long` | Да | Уникальный идентификатор ответного запроса |\n| `results` | `Vector<InputBotInlineResult>` | Да | Вектор результатов встроенного запроса |\n| `cache_time` | `int` | Да | Максимальное время в секундах, в течение которого результат встроенного запроса может кэшироваться на сервере. По умолчанию 300. |\n| `next_offset` | `string` | Нет | Передайте смещение, которое клиент должен отправить в следующем запросе с тем же текстом, чтобы получить больше результатов. Передайте пустую строку, если результатов больше нет или если вы не поддерживаете нумерацию страниц. Длина смещения не может превышать 64 байта. |\n| `switch_pm` | `InlineBotSwitchPM` | Нет | В случае положительного ответа клиенты отобразят кнопку поверх оставшегося встроенного списка результатов с указанным текстом, которая переключает пользователя в приватный чат с ботом и отправляет боту стартовое сообщение с определенным параметром. |\n| `switch_webview` | `InlineBotWebView` | Нет | В случае положительного ответа клиенты отобразят кнопку поверх оставшегося встроенного списка результатов с указанным текстом, которая переключает пользователя на указанное [мини-приложение встроенного режима](https://core.telegram.org/api/bots/webapps.md#inline-mode-mini-apps). |"}, "x-telegram-rpc-errors": ["ARTICLE_TITLE_EMPTY", "AUDIO_CONTENT_URL_EMPTY", "AUDIO_TITLE_EMPTY", "BUTTON_DATA_INVALID", "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID", "DOCUMENT_INVALID", "FILE_CONTENT_TYPE_INVALID", "FILE_TITLE_EMPTY", "GIF_CONTENT_TYPE_INVALID", "MEDIA_CAPTION_TOO_LONG", "MESSAGE_EMPTY", "MESSAGE_TOO_LONG", "NEXT_OFFSET_INVALID", "PEER_TYPES_INVALID", "PHOTO_CONTENT_TYPE_INVALID", "PHOTO_CONTENT_URL_EMPTY", "PHOTO_INVALID", "PHOTO_THUMB_URL_EMPTY", "QUERY_ID_INVALID", "REPLY_MARKUP_INVALID", "RESULTS_TOO_MUCH", "RESULT_ID_DUPLICATE", "RESULT_ID_INVALID", "RESULT_TYPE_INVALID", "SEND_MESSAGE_MEDIA_INVALID", "SEND_MESSAGE_TYPE_INVALID", "START_PARAM_EMPTY", "START_PARAM_INVALID", "STICKER_DOCUMENT_INVALID", "SWITCH_PM_TEXT_EMPTY", "SWITCH_WEBVIEW_URL_INVALID", "URL_INVALID", "USER_BOT_INVALID", "USER_BOT_REQUIRED", "VIDEO_CONTENT_TYPE_INVALID", "VIDEO_TITLE_EMPTY", "WEBDOCUMENT_INVALID", "WEBDOCUMENT_MIME_INVALID", "WEBDOCUMENT_SIZE_TOO_BIG", "WEBDOCUMENT_URL_EMPTY", "WEBDOCUMENT_URL_INVALID"], "x-browser-schema-id": "3138561049"}}, "/catalog/messages.sendInlineBotResult": {"post": {"operationId": "messages.sendInlineBotResult", "tags": ["Сообщения"], "summary": "Отправьте полученный результат с помощью messages.getInlineBotResults.", "description": "Отправьте результат, полученный с помощью [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendInlineBotResult", "x-tl-id": "3234821702", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — Этот узел взимает %d [Telegram Stars](https://core.telegram.org/api/stars.md) за сообщение, но `allow_paid_stars` не было установлено или его значение меньше %d.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — Вы присоединяетесь к группе обсуждения, прежде чем оставлять комментарии, см. [здесь »](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) для получения дополнительной информации.\n- 400 · `CHAT_RESTRICTED` — В этом чате нельзя отправлять сообщения, вас поставили под ограничения.\n- 403 · `CHAT_SEND_AUDIOS_FORBIDDEN` — В этом чате нельзя отправлять аудиосообщения.\n- 403 · `CHAT_SEND_GAME_FORBIDDEN` — В этот чат нельзя отправить игру.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — В этом чате нельзя отправлять гифки.\n- 403 · `CHAT_SEND_INLINE_FORBIDDEN` — В этой группе нельзя отправлять встроенные сообщения.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — В этом чате нельзя отправлять медиа.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — В этом чате нельзя отправлять фотографии.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — В этом чате нельзя отправлять немедийные (текстовые) сообщения.\n- 403 · `CHAT_SEND_STICKERS_FORBIDDEN` — В этом чате нельзя отправлять стикеры.\n- 403 · `CHAT_SEND_VOICES_FORBIDDEN` — В этом чате нельзя отправлять голосовые записи.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `INLINE_RESULT_EXPIRED` — Срок действия встроенного запроса истек.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MEDIA_EMPTY` — Указанный медиа-объект недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — Вам нужна [подписка Telegram Premium](https://core.telegram.org/api/premium.md), чтобы отправить сообщение этому пользователю.\n- 400 · `QUERY_ID_EMPTY` — Идентификатор запроса пуст.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — Можно создать максимум [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) ярлыков, достигнут предел.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Каждый ярлык может содержать максимум [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) сообщений, достигнут предел.\n- 400 · `RESULT_ID_EMPTY` — Идентификатор результата пуст.\n- 400 · `RESULT_ID_INVALID` — Один из указанных идентификаторов результата недействителен.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — Вы не можете запланировать сообщение так далеко в будущем.\n- 400 · `SCHEDULE_TOO_MUCH` — Слишком много запланированных сообщений.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла.\n- 500 · `SEND_MEDIA_INVALID` — Указанный носитель недействителен.\n- 420 · `SLOWMODE_WAIT_%d` — В этом чате включен медленный режим: подождите %d секунд, прежде чем отправлять еще одно сообщение в этот чат.\n- 400 · `TOPIC_DELETED` — Указанная тема удалена.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `VOICE_MESSAGES_FORBIDDEN` — Настройки конфиденциальности этого пользователя запрещают вам отправлять голосовые сообщения.\n- 400 · `WEBPAGE_CURL_FAILED` — Ошибка при загрузке веб-страницы с помощью cURL.\n- 400 · `WEBPAGE_MEDIA_EMPTY` — Веб-страница пуста.\n- 400 · `YOU_BLOCKED_USER` — Вы заблокировали этого пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendInlineBotResult"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Отправлять ли сообщение автоматически (уведомление на другом клиенте не будет выдано)"}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Отправлять ли сообщение в фоновом режиме"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Очистить ли [черновик](https://core.telegram.org/api/drafts.md)"}, "hide_via": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true", "description": "Скрывать ли `via @botname` в полученном сообщении (только для имен пользователей ботов, встречающихся в [config](https://core.telegram.org/constructor/config.md))"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пункт назначения"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю.", "x-tl-flag": "flags.0?InputReplyTo"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор, чтобы избежать повторной отправки одного и того же запроса. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор запроса из [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)", "x-tl-type": "long"}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор результата из [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Запланированная дата сообщения для запланированных сообщений"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Отправьте это сообщение как указанный узел", "x-tl-flag": "flags.13?InputPeer"}, "quick_reply_shortcut": {"type": "object", "x-tl-type": "InputQuickReplyShortcut", "oneOf": [{"$ref": "#/components/schemas/inputQuickReplyShortcut"}, {"$ref": "#/components/schemas/inputQuickReplyShortcutId"}], "description": "Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}}, "additionalProperties": false, "required": ["peer", "random_id", "query_id", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Отправлять ли сообщение автоматически (уведомление на другом клиенте не будет выдано) |\n| `background` | `true` | Нет | Отправлять ли сообщение в фоновом режиме |\n| `clear_draft` | `true` | Нет | Очистить ли [черновик](https://core.telegram.org/api/drafts.md) |\n| `hide_via` | `true` | Нет | Скрывать ли `via @botname` в полученном сообщении (только для имен пользователей ботов, встречающихся в [config](https://core.telegram.org/constructor/config.md)) |\n| `peer` | `InputPeer` | Да | Пункт назначения |\n| `reply_to` | `InputReplyTo` | Нет | Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю. |\n| `random_id` | `long` | Да | Случайный идентификатор, чтобы избежать повторной отправки одного и того же запроса. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `query_id` | `long` | Да | Идентификатор запроса из [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) |\n| `id` | `string` | Да | Идентификатор результата из [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) |\n| `schedule_date` | `int` | Нет | Запланированная дата сообщения для запланированных сообщений |\n| `send_as` | `InputPeer` | Нет | Отправьте это сообщение как указанный узел |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | Нет | Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `allow_paid_stars` | `long` | Нет | Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения. |"}, "x-telegram-rpc-errors": ["ALLOW_PAYMENT_REQUIRED_%d", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_GUEST_SEND_FORBIDDEN", "CHAT_RESTRICTED", "CHAT_SEND_AUDIOS_FORBIDDEN", "CHAT_SEND_GAME_FORBIDDEN", "CHAT_SEND_GIFS_FORBIDDEN", "CHAT_SEND_INLINE_FORBIDDEN", "CHAT_SEND_MEDIA_FORBIDDEN", "CHAT_SEND_PHOTOS_FORBIDDEN", "CHAT_SEND_PLAIN_FORBIDDEN", "CHAT_SEND_STICKERS_FORBIDDEN", "CHAT_SEND_VOICES_FORBIDDEN", "CHAT_WRITE_FORBIDDEN", "ENTITY_BOUNDS_INVALID", "INLINE_RESULT_EXPIRED", "INPUT_USER_DEACTIVATED", "MEDIA_EMPTY", "MSG_ID_INVALID", "PEER_ID_INVALID", "PRIVACY_PREMIUM_REQUIRED", "QUERY_ID_EMPTY", "QUICK_REPLIES_TOO_MUCH", "RANDOM_ID_DUPLICATE", "REPLY_MESSAGES_TOO_MUCH", "RESULT_ID_EMPTY", "RESULT_ID_INVALID", "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH", "SEND_AS_PEER_INVALID", "SEND_MEDIA_INVALID", "SLOWMODE_WAIT_%d", "TOPIC_DELETED", "USER_BANNED_IN_CHANNEL", "VOICE_MESSAGES_FORBIDDEN", "WEBPAGE_CURL_FAILED", "WEBPAGE_MEDIA_EMPTY", "YOU_BLOCKED_USER"], "x-browser-schema-id": "3234821702"}}, "/catalog/messages.getMessageEditData": {"post": {"operationId": "messages.getMessageEditData", "tags": ["Сообщения"], "summary": "Узнайте, можно ли редактировать заголовок медиасообщения", "description": "Узнайте, можно ли редактировать заголовок медиасообщения\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getMessageEditData", "x-tl-id": "4255550774", "x-tl-result": "messages.MessageEditData", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.MessageEditData`.\n\n[messages.MessageEditData](https://core.telegram.org/type/messages.MessageEditData.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.MessageEditData", "oneOf": [{"$ref": "#/components/schemas/messages.messageEditData"}], "description": "Тип TL: messages.MessageEditData."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 403 · `MESSAGE_AUTHOR_REQUIRED` — Требуется автор сообщения.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMessageEditData"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда был отправлен носитель"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "идентификатор сообщения"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, куда был отправлен носитель |\n| `id` | `int` | Да | идентификатор сообщения |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "MESSAGE_AUTHOR_REQUIRED", "MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4255550774"}}, "/catalog/messages.editMessage": {"post": {"operationId": "messages.editMessage", "tags": ["Сообщения"], "summary": "Изменить сообщение", "description": "Редактирует сообщение по идентификатору в выбранном чате.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.editMessage", "x-tl-id": "2970019436", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_DOMAIN_INVALID` — Домен бота недействителен.\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `BUSINESS_PEER_INVALID` — Сообщения не могут быть отправлены указанному узлу через текущее [деловое соединение](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUTTON_COPY_TEXT_INVALID` — Указанный [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy.md).`copy_text` недействителен.\n- 400 · `BUTTON_DATA_INVALID` — Данные одной или нескольких предоставленных вами кнопок недействительны.\n- 400 · `BUTTON_TYPE_INVALID` — Тип одной или нескольких предоставленных вами кнопок недействителен.\n- 400 · `BUTTON_URL_INVALID` — Кнопка URL недействительна.\n- 400 · `BUTTON_USER_PRIVACY_RESTRICTED` — Настройки конфиденциальности пользователя, указанные в кнопке [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile.md), не позволяют создать такую кнопку.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — Нельзя пересылать сообщения из защищенного чата.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — В этом чате нельзя отправлять гифки.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 406 · `EDIT_MESSAGE_TEMP_RESTRICTED` — Редактирование сообщений этому пользователю временно запрещено в связи с нормативными ограничениями.\n- 400 · `ENTITIES_TOO_LONG` — Вы предоставили слишком много стилизованных объектов сообщения.\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `FILE_PARTS_INVALID` — Недопустимое количество частей файла.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 403 · `INLINE_BOT_REQUIRED` — Редактировать сообщение может только встроенный бот.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — Подпись слишком длинная.\n- 400 · `MEDIA_EMPTY` — Указанный медиа-объект недействителен.\n- 400 · `MEDIA_GROUPED_INVALID` — Вы попытались отправить в альбоме медиафайлы разных типов.\n- 400 · `MEDIA_INVALID` — Недействительный носитель.\n- 400 · `MEDIA_NEW_INVALID` — Новый носитель недействителен.\n- 400 · `MEDIA_PREV_INVALID` — Предыдущий носитель недействителен.\n- 400 · `MEDIA_TTL_INVALID` — Указанный носитель TTL недействителен.\n- 403 · `MESSAGE_AUTHOR_REQUIRED` — Требуется автор сообщения.\n- 400 · `MESSAGE_EDIT_TIME_EXPIRED` — Вы больше не можете редактировать это сообщение, с момента его создания прошло слишком много времени.\n- 400 · `MESSAGE_EMPTY` — Предоставленное сообщение пустое.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MESSAGE_NOT_MODIFIED` — Предоставленные данные сообщения идентичны данным предыдущего сообщения, сообщение не было изменено.\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 500 · `MSG_WAIT_FAILED` — Ожидающий вызов возвратил ошибку.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PEER_TYPES_INVALID` — Переданное поле [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline.md).`peer_types` недействительно.\n- 400 · `PHOTO_EXT_INVALID` — Недопустимое расширение фотографии.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — Неверные размеры фотографии.\n- 400 · `PHOTO_SAVE_FILE_INVALID` — Внутренние проблемы, повторите попытку позже.\n- 400 · `REPLY_MARKUP_INVALID` — Предоставленная разметка ответа недействительна.\n- 400 · `REPLY_MARKUP_TOO_LONG` — Указанное reply_markup слишком длинное.\n- 400 · `SCHEDULE_DATE_INVALID` — Указана неверная дата расписания.\n- 400 · `TODO_ITEMS_EMPTY` — Контрольный список был указан, но [пункты контрольного списка](https://core.telegram.org/api/todo.md) не были пройдены.\n- 400 · `TODO_ITEM_DUPLICATE` — Обнаружен дубликат [элементов контрольного списка](https://core.telegram.org/api/todo.md).\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `WEBPAGE_NOT_FOUND` — Не удалось создать предварительный просмотр указанной веб-страницы `url`."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Отключить превью ссылок."}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, где находится сообщение."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор редактируемого сообщения."}, "message": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.11?string", "description": "Новый текст сообщения."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Новые прикрепленные медиафайлы", "x-tl-flag": "flags.14?InputMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Разметка ответа для встроенных клавиатур", "x-tl-flag": "flags.2?ReplyMarkup"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "Элементы форматирования нового текста."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int", "description": "Запланированная дата сообщения для [запланированных сообщений](https://core.telegram.org/api/scheduled-messages.md)"}, "schedule_repeat_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.18?int", "description": "После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений."}, "quick_reply_shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int", "description": "Если указано, редактирует [быстрое сообщение быстрого ответа вместо »](https://core.telegram.org/api/business.md#quick-reply-shortcuts)."}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.23?InputRichMessage"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `no_webpage` | `true` | Нет | Отключить превью ссылок. |\n| `invert_media` | `true` | Нет | Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу. |\n| `peer` | `InputPeer` | Да | Чат, где находится сообщение. |\n| `id` | `int` | Да | Идентификатор редактируемого сообщения. |\n| `message` | `string` | Нет | Новый текст сообщения. |\n| `media` | `InputMedia` | Нет | Новые прикрепленные медиафайлы |\n| `reply_markup` | `ReplyMarkup` | Нет | Разметка ответа для встроенных клавиатур |\n| `entities` | `Vector<MessageEntity>` | Нет | Элементы форматирования нового текста. |\n| `schedule_date` | `int` | Нет | Запланированная дата сообщения для [запланированных сообщений](https://core.telegram.org/api/scheduled-messages.md) |\n| `schedule_repeat_period` | `int` | Нет | После отправки это сообщение будет автоматически перепланировано для повторной отправки через такое же количество секунд в будущем, см. [здесь »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) дополнительную информацию о повторении запланированных сообщений. |\n| `quick_reply_shortcut_id` | `int` | Нет | Если указано, редактирует [быстрое сообщение быстрого ответа вместо »](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `rich_message` | `InputRichMessage` | Нет | Тип TL: InputRichMessage. |"}, "x-telegram-rpc-errors": ["BOT_DOMAIN_INVALID", "BOT_INVALID", "BUSINESS_CONNECTION_INVALID", "BUSINESS_PEER_INVALID", "BUTTON_COPY_TEXT_INVALID", "BUTTON_DATA_INVALID", "BUTTON_TYPE_INVALID", "BUTTON_URL_INVALID", "BUTTON_USER_PRIVACY_RESTRICTED", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_FORWARDS_RESTRICTED", "CHAT_SEND_GIFS_FORBIDDEN", "CHAT_WRITE_FORBIDDEN", "DOCUMENT_INVALID", "EDIT_MESSAGE_TEMP_RESTRICTED", "ENTITIES_TOO_LONG", "ENTITY_BOUNDS_INVALID", "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", "INLINE_BOT_REQUIRED", "INPUT_USER_DEACTIVATED", "MEDIA_CAPTION_TOO_LONG", "MEDIA_EMPTY", "MEDIA_GROUPED_INVALID", "MEDIA_INVALID", "MEDIA_NEW_INVALID", "MEDIA_PREV_INVALID", "MEDIA_TTL_INVALID", "MESSAGE_AUTHOR_REQUIRED", "MESSAGE_EDIT_TIME_EXPIRED", "MESSAGE_EMPTY", "MESSAGE_ID_INVALID", "MESSAGE_NOT_MODIFIED", "MESSAGE_TOO_LONG", "MSG_ID_INVALID", "MSG_WAIT_FAILED", "PEER_ID_INVALID", "PEER_TYPES_INVALID", "PHOTO_EXT_INVALID", "PHOTO_INVALID_DIMENSIONS", "PHOTO_SAVE_FILE_INVALID", "REPLY_MARKUP_INVALID", "REPLY_MARKUP_TOO_LONG", "SCHEDULE_DATE_INVALID", "TODO_ITEMS_EMPTY", "TODO_ITEM_DUPLICATE", "USER_BANNED_IN_CHANNEL", "WEBPAGE_NOT_FOUND"], "x-browser-schema-id": "2970019436"}}, "/catalog/messages.editInlineBotMessage": {"post": {"operationId": "messages.editInlineBotMessage", "tags": ["Сообщения"], "summary": "Редактировать встроенное сообщение бота", "description": "Редактировать встроенное сообщение бота\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)", "x-tl-method": "messages.editInlineBotMessage", "x-tl-id": "2753805137", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUTTON_DATA_INVALID` — Данные одной или нескольких предоставленных вами кнопок недействительны.\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MESSAGE_NOT_MODIFIED` — Предоставленные данные сообщения идентичны данным предыдущего сообщения, сообщение не было изменено."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editInlineBotMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Отключить предварительный просмотр веб-страницы"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу."}, "id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineMessageID"}, {"$ref": "#/components/schemas/inputBotInlineMessageID64"}], "description": "Идентификатор отправленного встроенного сообщения"}, "message": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.11?string", "description": "Сообщение"}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "СМИ", "x-tl-flag": "flags.14?InputMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Разметка ответа для встроенных клавиатур", "x-tl-flag": "flags.2?ReplyMarkup"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.23?InputRichMessage"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `no_webpage` | `true` | Нет | Отключить предварительный просмотр веб-страницы |\n| `invert_media` | `true` | Нет | Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу. |\n| `id` | `InputBotInlineMessageID` | Да | Идентификатор отправленного встроенного сообщения |\n| `message` | `string` | Нет | Сообщение |\n| `media` | `InputMedia` | Нет | СМИ |\n| `reply_markup` | `ReplyMarkup` | Нет | Разметка ответа для встроенных клавиатур |\n| `entities` | `Vector<MessageEntity>` | Нет | [Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md) |\n| `rich_message` | `InputRichMessage` | Нет | Тип TL: InputRichMessage. |"}, "x-telegram-rpc-errors": ["BUTTON_DATA_INVALID", "ENTITY_BOUNDS_INVALID", "MESSAGE_ID_INVALID", "MESSAGE_NOT_MODIFIED"], "x-browser-schema-id": "2753805137"}}, "/catalog/messages.getBotCallbackAnswer": {"post": {"operationId": "messages.getBotCallbackAnswer", "tags": ["Сообщения"], "summary": "Нажмите кнопку обратного звонка и получите ответ от бота.", "description": "Нажмите кнопку обратного звонка и получите ответ от бота.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "messages.getBotCallbackAnswer", "x-tl-id": "2470627847", "x-tl-result": "messages.BotCallbackAnswer", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.BotCallbackAnswer`.\n\n[messages.BotCallbackAnswer](https://core.telegram.org/type/messages.BotCallbackAnswer.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotCallbackAnswer", "oneOf": [{"$ref": "#/components/schemas/messages.botCallbackAnswer"}], "description": "Тип TL: messages.BotCallbackAnswer."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_RESPONSE_TIMEOUT` — При получении данных от бота произошел таймаут.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `DATA_INVALID` — Зашифрованные данные недействительны.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PASSWORD_MISSING` — Перед выполнением этой операции необходимо [включить 2FA](https://core.telegram.org/api/srp.md).\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getBotCallbackAnswer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"game": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Является ли это кнопкой «играть в игру»"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Куда была отправлена встроенная клавиатура"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения со встроенной клавиатуры"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes", "description": "Данные обратного вызова"}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Для кнопок [требующих подтверждения вашей личности с помощью пароля 2FA](https://core.telegram.org/constructor/keyboardButtonCallback.md), полезная нагрузка SRP генерируется с использованием [SRP](https://core.telegram.org/api/srp.md).", "x-tl-flag": "flags.2?InputCheckPasswordSRP"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `game` | `true` | Нет | Является ли это кнопкой «играть в игру» |\n| `peer` | `InputPeer` | Да | Куда была отправлена встроенная клавиатура |\n| `msg_id` | `int` | Да | Идентификатор сообщения со встроенной клавиатуры |\n| `data` | `bytes` | Нет | Данные обратного вызова |\n| `password` | `InputCheckPasswordSRP` | Нет | Для кнопок [требующих подтверждения вашей личности с помощью пароля 2FA](https://core.telegram.org/constructor/keyboardButtonCallback.md), полезная нагрузка SRP генерируется с использованием [SRP](https://core.telegram.org/api/srp.md). |"}, "x-telegram-rpc-errors": ["BOT_RESPONSE_TIMEOUT", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "DATA_INVALID", "MESSAGE_ID_INVALID", "MSG_ID_INVALID", "PASSWORD_MISSING", "PEER_ID_INVALID"], "x-browser-schema-id": "2470627847"}}, "/catalog/messages.setBotCallbackAnswer": {"post": {"operationId": "messages.setBotCallbackAnswer", "tags": ["Сообщения"], "summary": "Установите ответ обратного вызова на нажатие пользовательской кнопки (только для ботов)", "description": "Установите ответ обратного вызова на нажатие пользовательской кнопки (только для ботов)\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.setBotCallbackAnswer", "x-tl-id": "3582923530", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `QUERY_ID_INVALID` — Неверный идентификатор запроса.\n- 400 · `URL_INVALID` — Указано неверное URL.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setBotCallbackAnswer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"alert": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Показывать ли сообщение в виде всплывающего окна вместо всплывающего уведомления"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор запроса", "x-tl-type": "long"}, "message": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Всплывающее окно для отображения"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "URL, чтобы открыть"}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок действия кэша"}}, "additionalProperties": false, "required": ["query_id", "cache_time"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `alert` | `true` | Нет | Показывать ли сообщение в виде всплывающего окна вместо всплывающего уведомления |\n| `query_id` | `long` | Да | Идентификатор запроса |\n| `message` | `string` | Нет | Всплывающее окно для отображения |\n| `url` | `string` | Нет | URL, чтобы открыть |\n| `cache_time` | `int` | Да | Срок действия кэша |"}, "x-telegram-rpc-errors": ["MESSAGE_TOO_LONG", "QUERY_ID_INVALID", "URL_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3582923530"}}, "/catalog/messages.getPeerDialogs": {"post": {"operationId": "messages.getPeerDialogs", "tags": ["Сообщения"], "summary": "Получить информацию о диалоге указанных пиров", "description": "Получить информацию о диалоге указанных пиров\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "messages.getPeerDialogs", "x-tl-id": "3832593661", "x-tl-result": "messages.PeerDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.PeerDialogs`.\n\n[messages.PeerDialogs](https://core.telegram.org/type/messages.PeerDialogs.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.PeerDialogs", "oneOf": [{"$ref": "#/components/schemas/messages.peerDialogs"}], "description": "Тип TL: messages.PeerDialogs."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — Текущая учетная запись [заморожена](https://core.telegram.org/api/auth.md#frozen-accounts) и не может получить доступ к указанному узлу.\n- 400 · `INPUT_PEERS_EMPTY` — Указанный массив одноранговых узлов пуст.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPeerDialogs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "Тип TL: InputDialogPeer."}, "x-tl-type": "Vector<InputDialogPeer>", "description": "Сверстники"}}, "additionalProperties": false, "required": ["peers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peers` | `Vector<InputDialogPeer>` | Да | Сверстники |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "FROZEN_PARTICIPANT_MISSING", "INPUT_PEERS_EMPTY", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3832593661"}}, "/catalog/messages.saveDraft": {"post": {"operationId": "messages.saveDraft", "tags": ["Сообщения"], "summary": "Сохраните черновик сообщения, связанный с чатом.", "description": "Сохраните сообщение [черновик](https://core.telegram.org/api/drafts.md), связанное с чатом.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Message drafts](https://core.telegram.org/api/drafts.md)", "x-tl-method": "messages.saveDraft", "x-tl-id": "2903482716", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Message drafts", "https://core.telegram.org/api/drafts.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.saveDraft"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Отключить создание предварительного просмотра веб-страницы"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу."}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю.", "x-tl-flag": "flags.4?InputReplyTo"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Назначение сообщения, которое должно быть отправлено"}, "message": {"type": "string", "x-tl-type": "string", "description": "Проект"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "Сообщение [entities](https://core.telegram.org/api/entities.md) для стилизованного текста"}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Прикрепленные медиа", "x-tl-flag": "flags.5?InputMedia"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке.", "x-tl-flag": "flags.8?SuggestedPost"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.9?InputRichMessage"}}, "additionalProperties": false, "required": ["peer", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `no_webpage` | `true` | Нет | Отключить создание предварительного просмотра веб-страницы |\n| `invert_media` | `true` | Нет | Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу. |\n| `reply_to` | `InputReplyTo` | Нет | Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю. |\n| `peer` | `InputPeer` | Да | Назначение сообщения, которое должно быть отправлено |\n| `message` | `string` | Да | Проект |\n| `entities` | `Vector<MessageEntity>` | Нет | Сообщение [entities](https://core.telegram.org/api/entities.md) для стилизованного текста |\n| `media` | `InputMedia` | Нет | Прикрепленные медиа |\n| `effect` | `long` | Нет | Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения. |\n| `suggested_post` | `SuggestedPost` | Нет | Используется для [предложить публикацию на канале, см. здесь »](https://core.telegram.org/api/suggested-posts.md) для получения дополнительной информации о полном потоке. |\n| `rich_message` | `InputRichMessage` | Нет | Тип TL: InputRichMessage. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "ENTITY_BOUNDS_INVALID", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "2903482716"}}, "/catalog/messages.getAllDrafts": {"post": {"operationId": "messages.getAllDrafts", "tags": ["Сообщения"], "summary": "Вернуть все черновики сообщений.", "description": "Вернуть все сообщения [черновики](https://core.telegram.org/api/drafts.md).\nВозвращает все последние обновления [updateDraftMessage](https://core.telegram.org/constructor/updateDraftMessage.md), относящиеся ко всем чатам с черновиками.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)", "x-tl-method": "messages.getAllDrafts", "x-tl-id": "1782549861", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAllDrafts"}, "x-browser-schema-id": "1782549861"}}, "/catalog/messages.getFeaturedStickers": {"post": {"operationId": "messages.getFeaturedStickers", "tags": ["Сообщения"], "summary": "Получите избранные стикеры", "description": "Получите избранные стикеры\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getFeaturedStickers", "x-tl-id": "1685588756", "x-tl-result": "messages.FeaturedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.FeaturedStickers`.\n\n[messages.FeaturedStickers](https://core.telegram.org/type/messages.FeaturedStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.FeaturedStickers", "oneOf": [{"$ref": "#/components/schemas/messages.featuredStickersNotModified"}, {"$ref": "#/components/schemas/messages.featuredStickers"}], "description": "Тип TL: messages.FeaturedStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getFeaturedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1685588756"}}, "/catalog/messages.readFeaturedStickers": {"post": {"operationId": "messages.readFeaturedStickers", "tags": ["Сообщения"], "summary": "Отметить новые избранные стикеры как прочитанные", "description": "Отметить новые избранные стикеры как прочитанные", "x-tl-method": "messages.readFeaturedStickers", "x-tl-id": "1527873830", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readFeaturedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Идентификаторы наборов стикеров, которые нужно пометить как прочитанные"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | Да | Идентификаторы наборов стикеров, которые нужно пометить как прочитанные |"}, "x-browser-schema-id": "1527873830"}}, "/catalog/messages.getRecentStickers": {"post": {"operationId": "messages.getRecentStickers", "tags": ["Сообщения"], "summary": "Получить последние стикеры", "description": "Получить последние стикеры\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getRecentStickers", "x-tl-id": "2645114939", "x-tl-result": "messages.RecentStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.RecentStickers`.\n\n[messages.RecentStickers](https://core.telegram.org/type/messages.RecentStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.RecentStickers", "oneOf": [{"$ref": "#/components/schemas/messages.recentStickersNotModified"}, {"$ref": "#/components/schemas/messages.recentStickers"}], "description": "Тип TL: messages.RecentStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getRecentStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"attached": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Получайте стикеры, недавно прикрепленные к фото или видеофайлам."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `attached` | `true` | Нет | Получайте стикеры, недавно прикрепленные к фото или видеофайлам. |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2645114939"}}, "/catalog/messages.saveRecentSticker": {"post": {"operationId": "messages.saveRecentSticker", "tags": ["Сообщения"], "summary": "Добавить/удалить стикер из списка последних стикеров", "description": "Добавить/удалить стикер из списка последних стикеров\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.saveRecentSticker", "x-tl-id": "958863608", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKER_ID_INVALID` — Указанный идентификатор стикера недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.saveRecentSticker"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"attached": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Добавлять/удалять стикеры, недавно прикрепленные к фото или видеофайлам"}, "id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "наклейка"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Сохранить или отменить сохранение наклейки"}}, "additionalProperties": false, "required": ["id", "unsave"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `attached` | `true` | Нет | Добавлять/удалять стикеры, недавно прикрепленные к фото или видеофайлам |\n| `id` | `InputDocument` | Да | наклейка |\n| `unsave` | `Bool` | Да | Сохранить или отменить сохранение наклейки |"}, "x-telegram-rpc-errors": ["STICKER_ID_INVALID"], "x-browser-schema-id": "958863608"}}, "/catalog/messages.clearRecentStickers": {"post": {"operationId": "messages.clearRecentStickers", "tags": ["Сообщения"], "summary": "Очистить недавние стикеры", "description": "Очистить недавние стикеры", "x-tl-method": "messages.clearRecentStickers", "x-tl-id": "2308530221", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.clearRecentStickers"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"attached": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг, чтобы очистить список стикеров, недавно прикрепленных к фото или видеофайлам."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `attached` | `true` | Нет | Установите этот флаг, чтобы очистить список стикеров, недавно прикрепленных к фото или видеофайлам. |"}, "x-browser-schema-id": "2308530221"}}, "/catalog/messages.getArchivedStickers": {"post": {"operationId": "messages.getArchivedStickers", "tags": ["Сообщения"], "summary": "Получить все заархивированные стикеры", "description": "Получить все заархивированные стикеры\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getArchivedStickers", "x-tl-id": "1475442322", "x-tl-result": "messages.ArchivedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ArchivedStickers`.\n\n[messages.ArchivedStickers](https://core.telegram.org/type/messages.ArchivedStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ArchivedStickers", "oneOf": [{"$ref": "#/components/schemas/messages.archivedStickers"}], "description": "Тип TL: messages.ArchivedStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getArchivedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Получите [наклейки с масками](https://core.telegram.org/api/stickers.md#mask-stickers)"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Получите [собственные стикеры с эмодзи](https://core.telegram.org/api/custom-emoji.md)"}, "offset_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `masks` | `true` | Нет | Получите [наклейки с масками](https://core.telegram.org/api/stickers.md#mask-stickers) |\n| `emojis` | `true` | Нет | Получите [собственные стикеры с эмодзи](https://core.telegram.org/api/custom-emoji.md) |\n| `offset_id` | `long` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "1475442322"}}, "/catalog/messages.getMaskStickers": {"post": {"operationId": "messages.getMaskStickers", "tags": ["Сообщения"], "summary": "Установите наклейки с масками", "description": "Установите наклейки с масками\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getMaskStickers", "x-tl-id": "1678738104", "x-tl-result": "messages.AllStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AllStickers`.\n\n[messages.AllStickers](https://core.telegram.org/type/messages.AllStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AllStickers", "oneOf": [{"$ref": "#/components/schemas/messages.allStickersNotModified"}, {"$ref": "#/components/schemas/messages.allStickers"}], "description": "Тип TL: messages.AllStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMaskStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1678738104"}}, "/catalog/messages.getAttachedStickers": {"post": {"operationId": "messages.getAttachedStickers", "tags": ["Сообщения"], "summary": "Прикрепляйте стикеры к фото или видео", "description": "Прикрепляйте стикеры к фото или видео\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getAttachedStickers", "x-tl-id": "3428542412", "x-tl-result": "Vector<StickerSetCovered>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<StickerSetCovered>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[StickerSetCovered](https://core.telegram.org/type/StickerSetCovered.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "oneOf": [{"$ref": "#/components/schemas/stickerSetCovered"}, {"$ref": "#/components/schemas/stickerSetMultiCovered"}, {"$ref": "#/components/schemas/stickerSetFullCovered"}, {"$ref": "#/components/schemas/stickerSetNoCovered"}], "description": "Тип TL: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MEDIA_EMPTY` — Указанный медиа-объект недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAttachedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"media": {"type": "object", "x-tl-type": "InputStickeredMedia", "oneOf": [{"$ref": "#/components/schemas/inputStickeredMediaPhoto"}, {"$ref": "#/components/schemas/inputStickeredMediaDocument"}], "description": "Наклейки"}}, "additionalProperties": false, "required": ["media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `media` | `InputStickeredMedia` | Да | Наклейки |"}, "x-telegram-rpc-errors": ["MEDIA_EMPTY"], "x-browser-schema-id": "3428542412"}}, "/catalog/messages.setGameScore": {"post": {"operationId": "messages.setGameScore", "tags": ["Сообщения"], "summary": "Используйте этот метод, чтобы установить счет указанного пользователя в игре, отправленный в виде обычного сообщения (только для ботов).", "description": "Используйте этот метод, чтобы установить счет указанного пользователя в игре, отправленный в виде обычного сообщения (только для ботов).\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.setGameScore", "x-tl-id": "2398678208", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_SCORE_NOT_MODIFIED` — Счёт не изменился.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SCORE_INVALID` — Указанный игровой счет недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setGameScore"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"edit_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг, если игровое сообщение должно автоматически редактироваться и включать в себя текущее табло."}, "force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Установите этот флаг, если разрешено уменьшение максимального балла. Это может быть полезно при исправлении ошибок или бане читеров."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Уникальный идентификатор целевого чата"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор отправленного сообщения"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя"}, "score": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новая оценка"}}, "additionalProperties": false, "required": ["peer", "id", "user_id", "score"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `edit_message` | `true` | Нет | Установите этот флаг, если игровое сообщение должно автоматически редактироваться и включать в себя текущее табло. |\n| `force` | `true` | Нет | Установите этот флаг, если разрешено уменьшение максимального балла. Это может быть полезно при исправлении ошибок или бане читеров. |\n| `peer` | `InputPeer` | Да | Уникальный идентификатор целевого чата |\n| `id` | `int` | Да | Идентификатор отправленного сообщения |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя |\n| `score` | `int` | Да | Новая оценка |"}, "x-telegram-rpc-errors": ["BOT_SCORE_NOT_MODIFIED", "MESSAGE_ID_INVALID", "PEER_ID_INVALID", "SCORE_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "2398678208"}}, "/catalog/messages.setInlineGameScore": {"post": {"operationId": "messages.setInlineGameScore", "tags": ["Сообщения"], "summary": "Используйте этот метод, чтобы установить счет указанного пользователя в игре, отправленный в виде встроенного сообщения (только для ботов).", "description": "Используйте этот метод, чтобы установить счет указанного пользователя в игре, отправленный в виде встроенного сообщения (только для ботов).\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.setInlineGameScore", "x-tl-id": "363700068", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setInlineGameScore"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"edit_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг, если игровое сообщение должно автоматически редактироваться и включать в себя текущее табло."}, "force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Установите этот флаг, если разрешено уменьшение максимального балла. Это может быть полезно при исправлении ошибок или бане читеров."}, "id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineMessageID"}, {"$ref": "#/components/schemas/inputBotInlineMessageID64"}], "description": "Идентификатор встроенного сообщения"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя"}, "score": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новая оценка"}}, "additionalProperties": false, "required": ["id", "user_id", "score"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `edit_message` | `true` | Нет | Установите этот флаг, если игровое сообщение должно автоматически редактироваться и включать в себя текущее табло. |\n| `force` | `true` | Нет | Установите этот флаг, если разрешено уменьшение максимального балла. Это может быть полезно при исправлении ошибок или бане читеров. |\n| `id` | `InputBotInlineMessageID` | Да | Идентификатор встроенного сообщения |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя |\n| `score` | `int` | Да | Новая оценка |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "363700068"}}, "/catalog/messages.getGameHighScores": {"post": {"operationId": "messages.getGameHighScores", "tags": ["Сообщения"], "summary": "Получите рекорды в игре", "description": "Получите рекорды в игре\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.getGameHighScores", "x-tl-id": "3894568093", "x-tl-result": "messages.HighScores", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.HighScores`.\n\n[messages.HighScores](https://core.telegram.org/type/messages.HighScores.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.HighScores", "oneOf": [{"$ref": "#/components/schemas/messages.highScores"}], "description": "Тип TL: messages.HighScores."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getGameHighScores"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Куда отправили игру"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения с прикрепленным мультимедийным файлом игры"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Получите высокие баллы, полученные определенным пользователем"}}, "additionalProperties": false, "required": ["peer", "id", "user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Куда отправили игру |\n| `id` | `int` | Да | Идентификатор сообщения с прикрепленным мультимедийным файлом игры |\n| `user_id` | `InputUser` | Да | Получите высокие баллы, полученные определенным пользователем |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3894568093"}}, "/catalog/messages.getInlineGameHighScores": {"post": {"operationId": "messages.getInlineGameHighScores", "tags": ["Сообщения"], "summary": "Получите рекорды игры, отправленные с помощью встроенного бота.", "description": "Получите рекорды игры, отправленные с помощью встроенного бота.\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.getInlineGameHighScores", "x-tl-id": "258170395", "x-tl-result": "messages.HighScores", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.HighScores`.\n\n[messages.HighScores](https://core.telegram.org/type/messages.HighScores.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.HighScores", "oneOf": [{"$ref": "#/components/schemas/messages.highScores"}], "description": "Тип TL: messages.HighScores."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getInlineGameHighScores"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineMessageID"}, {"$ref": "#/components/schemas/inputBotInlineMessageID64"}], "description": "Идентификатор встроенного сообщения"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Получите высокие баллы определенного пользователя"}}, "additionalProperties": false, "required": ["id", "user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputBotInlineMessageID` | Да | Идентификатор встроенного сообщения |\n| `user_id` | `InputUser` | Да | Получите высокие баллы определенного пользователя |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "258170395"}}, "/catalog/messages.getCommonChats": {"post": {"operationId": "messages.getCommonChats", "tags": ["Сообщения"], "summary": "Получите общие чаты с пользователем", "description": "Получите общие чаты с пользователем\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getCommonChats", "x-tl-id": "3826032900", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getCommonChats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Максимальный идентификатор возвращаемого чата (см. [нумерация страниц](https://core.telegram.org/api/offsets.md))", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["user_id", "max_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя |\n| `max_id` | `long` | Да | Максимальный идентификатор возвращаемого чата (см. [нумерация страниц](https://core.telegram.org/api/offsets.md)) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "MSG_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "3826032900"}}, "/catalog/messages.getWebPage": {"post": {"operationId": "messages.getWebPage", "tags": ["Сообщения"], "summary": "Получить страницу мгновенного просмотра", "description": "Получить [мгновенный просмотр](https://instantview.telegram.org) страницы\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getWebPage", "x-tl-id": "2375455395", "x-tl-result": "messages.WebPage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.WebPage`.\n\n[messages.WebPage](https://core.telegram.org/type/messages.WebPage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.WebPage", "oneOf": [{"$ref": "#/components/schemas/messages.webPage"}], "description": "Тип TL: messages.WebPage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `WC_CONVERT_URL_INVALID` — конвертация WC URL недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getWebPage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string", "x-tl-type": "string", "description": "URL страницы IV для загрузки"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).  **Примечание**: в этом случае нельзя использовать обычный алгоритм генерации хеша. Повторно используйте поле [webPage](https://core.telegram.org/constructor/webPage.md).`hash`, возвращенное предыдущим вызовом метода, или передайте 0, если это первый вызов или если предыдущий вызов не вернул [webPage](https://core.telegram.org/constructor/webPage.md)."}}, "additionalProperties": false, "required": ["url", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `url` | `string` | Да | URL страницы IV для загрузки |\n| `hash` | `int` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).  **Примечание**: в этом случае нельзя использовать обычный алгоритм генерации хеша. Повторно используйте поле [webPage](https://core.telegram.org/constructor/webPage.md).`hash`, возвращенное предыдущим вызовом метода, или передайте 0, если это первый вызов или если предыдущий вызов не вернул [webPage](https://core.telegram.org/constructor/webPage.md). |"}, "x-telegram-rpc-errors": ["WC_CONVERT_URL_INVALID"], "x-browser-schema-id": "2375455395"}}, "/catalog/messages.toggleDialogPin": {"post": {"operationId": "messages.toggleDialogPin", "tags": ["Сообщения"], "summary": "Закрепить/открепить диалоговое окно", "description": "Закрепить/открепить диалоговое окно\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.toggleDialogPin", "x-tl-id": "2805064279", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `PEER_HISTORY_EMPTY` — Нельзя закрепить пустой чат с пользователем.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Слишком много закрепленных диалогов."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleDialogPin"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Закрепить или открепить диалоговое окно"}, "peer": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "Диалог, который нужно закрепить"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `pinned` | `true` | Нет | Закрепить или открепить диалоговое окно |\n| `peer` | `InputDialogPeer` | Да | Диалог, который нужно закрепить |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "PEER_HISTORY_EMPTY", "PEER_ID_INVALID", "PINNED_DIALOGS_TOO_MUCH"], "x-browser-schema-id": "2805064279"}}, "/catalog/messages.reorderPinnedDialogs": {"post": {"operationId": "messages.reorderPinnedDialogs", "tags": ["Сообщения"], "summary": "Изменение порядка закрепленных диалогов", "description": "Изменение порядка закрепленных диалогов\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.reorderPinnedDialogs", "x-tl-id": "991616823", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reorderPinnedDialogs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если этот параметр установлен, диалоги, закрепленные на стороне сервера, но не присутствующие в поле `order`, будут откреплены."}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders)"}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "Тип TL: InputDialogPeer."}, "x-tl-type": "Vector<InputDialogPeer>", "description": "Новый порядок диалогов"}}, "additionalProperties": false, "required": ["folder_id", "order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `force` | `true` | Нет | Если этот параметр установлен, диалоги, закрепленные на стороне сервера, но не присутствующие в поле `order`, будут откреплены. |\n| `folder_id` | `int` | Да | [Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders) |\n| `order` | `Vector<InputDialogPeer>` | Да | Новый порядок диалогов |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "991616823"}}, "/catalog/messages.getPinnedDialogs": {"post": {"operationId": "messages.getPinnedDialogs", "tags": ["Сообщения"], "summary": "Получить закрепленные диалоги", "description": "Получить закрепленные диалоги\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.getPinnedDialogs", "x-tl-id": "3602468338", "x-tl-result": "messages.PeerDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.PeerDialogs`.\n\n[messages.PeerDialogs](https://core.telegram.org/type/messages.PeerDialogs.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.PeerDialogs", "oneOf": [{"$ref": "#/components/schemas/messages.peerDialogs"}], "description": "Тип TL: messages.PeerDialogs."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FOLDER_ID_INVALID` — Неверный идентификатор папки."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPinnedDialogs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders)"}}, "additionalProperties": false, "required": ["folder_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `folder_id` | `int` | Да | [Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders) |"}, "x-telegram-rpc-errors": ["FOLDER_ID_INVALID"], "x-browser-schema-id": "3602468338"}}, "/catalog/messages.setBotShippingResults": {"post": {"operationId": "messages.setBotShippingResults", "tags": ["Сообщения"], "summary": "Если вы отправили счет-фактуру с запросом адреса доставки и был указан параметр is_flexible, бот получит обновление updateBotShippingQuery. Используйте этот метод для ответа на запросы о доставке.", "description": "Если вы отправили счет-фактуру с запросом адреса доставки и был указан параметр is\\_flexible, бот получит обновление [updateBotShippingQuery](https://core.telegram.org/constructor/updateBotShippingQuery.md). Используйте этот метод для ответа на запросы о доставке.\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.setBotShippingResults", "x-tl-id": "3858133754", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `QUERY_ID_INVALID` — Неверный идентификатор запроса.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setBotShippingResults"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор запроса, на который необходимо ответить.", "x-tl-type": "long"}, "error": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Сообщение об ошибке в удобочитаемой форме, объясняющее, почему невозможно выполнить заказ (e.g. «К сожалению, доставка по желаемому адресу невозможна»). Telegram отобразит это сообщение пользователю."}, "shipping_options": {"type": "array", "items": {"type": "object", "x-tl-type": "ShippingOption", "oneOf": [{"$ref": "#/components/schemas/shippingOption"}], "description": "Тип TL: ShippingOption."}, "x-tl-type": "Vector<ShippingOption>", "x-tl-flag": "flags.1?Vector<ShippingOption>", "description": "Вектор доступных вариантов доставки."}}, "additionalProperties": false, "required": ["query_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query_id` | `long` | Да | Уникальный идентификатор запроса, на который необходимо ответить. |\n| `error` | `string` | Нет | Сообщение об ошибке в удобочитаемой форме, объясняющее, почему невозможно выполнить заказ (e.g. «К сожалению, доставка по желаемому адресу невозможна»). Telegram отобразит это сообщение пользователю. |\n| `shipping_options` | `Vector<ShippingOption>` | Нет | Вектор доступных вариантов доставки. |"}, "x-telegram-rpc-errors": ["QUERY_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3858133754"}}, "/catalog/messages.setBotPrecheckoutResults": {"post": {"operationId": "messages.setBotPrecheckoutResults", "tags": ["Сообщения"], "summary": "Как только пользователь подтвердит свои данные об оплате и доставке, бот получит обновление updateBotPrecheckoutQuery.", "description": "Как только пользователь подтвердит свои данные об оплате и доставке, бот получит обновление [updateBotPrecheckoutQuery](https://core.telegram.org/constructor/updateBotPrecheckoutQuery.md).\nИспользуйте этот метод для ответа на такие запросы перед оформлением заказа.\n**Примечание**: Telegram должен получить ответ в течение 10 секунд после отправки запроса на предоплату.\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.setBotPrecheckoutResults", "x-tl-id": "163765653", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ERROR_TEXT_EMPTY` — Предоставленное сообщение об ошибке пустое.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setBotPrecheckoutResults"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"success": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Устанавливайте этот флаг, если все в порядке (товар есть в наличии и т.п.) и бот готов приступить к оформлению заказа, иначе не устанавливайте его, а установите вместо него поле `error`"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор запроса, на который необходимо ответить.", "x-tl-type": "long"}, "error": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Требуется, если `success` не установлен. Сообщение об ошибке в удобочитаемой форме, объясняющее причину невозможности оформления заказа (e.g. «Извините, кто-то только что купил последнюю из наших замечательных черных футболок, пока вы были заняты заполнением платежных данных. Пожалуйста, выберите другой цвет или одежду!»). Telegram отобразит это сообщение пользователю."}}, "additionalProperties": false, "required": ["query_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `success` | `true` | Нет | Устанавливайте этот флаг, если все в порядке (товар есть в наличии и т.п.) и бот готов приступить к оформлению заказа, иначе не устанавливайте его, а установите вместо него поле `error` |\n| `query_id` | `long` | Да | Уникальный идентификатор запроса, на который необходимо ответить. |\n| `error` | `string` | Нет | Требуется, если `success` не установлен. Сообщение об ошибке в удобочитаемой форме, объясняющее причину невозможности оформления заказа (e.g. «Извините, кто-то только что купил последнюю из наших замечательных черных футболок, пока вы были заняты заполнением платежных данных. Пожалуйста, выберите другой цвет или одежду!»). Telegram отобразит это сообщение пользователю. |"}, "x-telegram-rpc-errors": ["ERROR_TEXT_EMPTY", "USER_BOT_REQUIRED"], "x-browser-schema-id": "163765653"}}, "/catalog/messages.uploadMedia": {"post": {"operationId": "messages.uploadMedia", "tags": ["Сообщения"], "summary": "Загрузите файл и привяжите его к чату (фактически не отправляя его в чат)", "description": "Загрузите файл и привяжите его к чату (фактически не отправляя его в чат)\n\nТакже может использоваться в [деловом соединении](https://core.telegram.org/api/bots/connected-business-bots.md), *не* путем обертывания запроса в [invokeWithBusinessConnection »](https://core.telegram.org/method/invokeWithBusinessConnection.md), а путем указания идентификатора делового соединения в параметре `business_connection_id`.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "messages.uploadMedia", "x-tl-id": "345405816", "x-tl-result": "MessageMedia", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "Результат MTProto · `MessageMedia`.\n\n[СообщениеМедиа](https://core.telegram.org/type/MessageMedia.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "MessageMedia", "oneOf": [{"$ref": "#/components/schemas/messageMediaEmpty"}, {"$ref": "#/components/schemas/messageMediaPhoto"}, {"$ref": "#/components/schemas/messageMediaGeo"}, {"$ref": "#/components/schemas/messageMediaContact"}, {"$ref": "#/components/schemas/messageMediaUnsupported"}, {"$ref": "#/components/schemas/messageMediaDocument"}, {"$ref": "#/components/schemas/messageMediaWebPage"}, {"$ref": "#/components/schemas/messageMediaVenue"}, {"$ref": "#/components/schemas/messageMediaGame"}, {"$ref": "#/components/schemas/messageMediaInvoice"}, {"$ref": "#/components/schemas/messageMediaGeoLive"}, {"$ref": "#/components/schemas/messageMediaPoll"}, {"$ref": "#/components/schemas/messageMediaDice"}, {"$ref": "#/components/schemas/messageMediaStory"}, {"$ref": "#/components/schemas/messageMediaGiveaway"}, {"$ref": "#/components/schemas/messageMediaGiveawayResults"}, {"$ref": "#/components/schemas/messageMediaPaidMedia"}, {"$ref": "#/components/schemas/messageMediaToDo"}, {"$ref": "#/components/schemas/messageMediaVideoStream"}, {"$ref": "#/components/schemas/messageMediaWidget"}], "description": "Тип TL: MessageMedia."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_RESTRICTED` — В этом чате нельзя отправлять сообщения, вас поставили под ограничения.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `FILE_PARTS_INVALID` — Недопустимое количество частей файла.\n- 400 · `FILE_PART_LENGTH_INVALID` — Недопустимая длина части файла.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MEDIA_INVALID` — Недействительный носитель.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PHOTO_EXT_INVALID` — Недопустимое расширение фотографии.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — Неверные размеры фотографии.\n- 400 · `PHOTO_SAVE_FILE_INVALID` — Внутренние проблемы, повторите попытку позже.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `VOICE_MESSAGES_FORBIDDEN` — Настройки конфиденциальности этого пользователя запрещают вам отправлять голосовые сообщения.\n- 400 · `WEBPAGE_CURL_FAILED` — Ошибка при загрузке веб-страницы с помощью cURL."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.uploadMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"business_connection_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Будет ли носитель использоваться только в указанной [деловой связи»](https://core.telegram.org/api/bots/connected-business-bots.md), а не напрямую ботом."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат может быть [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) для ботов и [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) для пользователей."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Файл загружается частями, как описано в [файлы »](https://core.telegram.org/api/files.md)"}}, "additionalProperties": false, "required": ["peer", "media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `business_connection_id` | `string` | Нет | Будет ли носитель использоваться только в указанной [деловой связи»](https://core.telegram.org/api/bots/connected-business-bots.md), а не напрямую ботом. |\n| `peer` | `InputPeer` | Да | Чат может быть [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) для ботов и [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) для пользователей. |\n| `media` | `InputMedia` | Да | Файл загружается частями, как описано в [файлы »](https://core.telegram.org/api/files.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_RESTRICTED", "CHAT_WRITE_FORBIDDEN", "FILE_PARTS_INVALID", "FILE_PART_LENGTH_INVALID", "IMAGE_PROCESS_FAILED", "INPUT_USER_DEACTIVATED", "MEDIA_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID", "PHOTO_EXT_INVALID", "PHOTO_INVALID_DIMENSIONS", "PHOTO_SAVE_FILE_INVALID", "USER_BANNED_IN_CHANNEL", "VOICE_MESSAGES_FORBIDDEN", "WEBPAGE_CURL_FAILED"], "x-browser-schema-id": "345405816"}}, "/catalog/messages.sendScreenshotNotification": {"post": {"operationId": "messages.sendScreenshotNotification", "tags": ["Сообщения"], "summary": "Сообщите другому пользователю в приватном чате, что был сделан скриншот чата.", "description": "Сообщите другому пользователю в приватном чате, что был сделан скриншот чата.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendScreenshotNotification", "x-tl-id": "2705348631", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `REPLY_MESSAGE_ID_INVALID` — Указан неверный идентификатор ответного сообщения.\n- 400 · `STORY_ID_INVALID` — Указан неверный идентификатор истории.\n- 400 · `YOU_BLOCKED_USER` — Вы заблокировали этого пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendScreenshotNotification"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Другой пользователь"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Указывает сообщение, скриншот которого был сделан (указанный идентификатор сообщения также может быть `0`, чтобы не указывать какое-либо конкретное сообщение)."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор, чтобы избежать повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "reply_to", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Другой пользователь |\n| `reply_to` | `InputReplyTo` | Да | Указывает сообщение, скриншот которого был сделан (указанный идентификатор сообщения также может быть `0`, чтобы не указывать какое-либо конкретное сообщение). |\n| `random_id` | `long` | Да | Случайный идентификатор, чтобы избежать повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |"}, "x-telegram-rpc-errors": ["INPUT_USER_DEACTIVATED", "PEER_ID_INVALID", "REPLY_MESSAGE_ID_INVALID", "STORY_ID_INVALID", "YOU_BLOCKED_USER"], "x-browser-schema-id": "2705348631"}}, "/catalog/messages.getFavedStickers": {"post": {"operationId": "messages.getFavedStickers", "tags": ["Сообщения"], "summary": "Получите любимые стикеры", "description": "Получите любимые стикеры\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getFavedStickers", "x-tl-id": "82946729", "x-tl-result": "messages.FavedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.FavedStickers`.\n\n[messages.FavedStickers](https://core.telegram.org/type/messages.FavedStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.FavedStickers", "oneOf": [{"$ref": "#/components/schemas/messages.favedStickersNotModified"}, {"$ref": "#/components/schemas/messages.favedStickers"}], "description": "Тип TL: messages.FavedStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getFavedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "82946729"}}, "/catalog/messages.faveSticker": {"post": {"operationId": "messages.faveSticker", "tags": ["Сообщения"], "summary": "Отметить стикер как избранный или снять его с него", "description": "Отметить стикер как избранный или снять его с него\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.faveSticker", "x-tl-id": "3120547163", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKER_ID_INVALID` — Указанный идентификатор стикера недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.faveSticker"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Наклейка под вопросом"}, "unfave": {"type": "boolean", "x-tl-type": "Bool", "description": "Добавить или удалить наклейку из избранного"}}, "additionalProperties": false, "required": ["id", "unfave"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | Да | Наклейка под вопросом |\n| `unfave` | `Bool` | Да | Добавить или удалить наклейку из избранного |"}, "x-telegram-rpc-errors": ["STICKER_ID_INVALID"], "x-browser-schema-id": "3120547163"}}, "/catalog/messages.getUnreadMentions": {"post": {"operationId": "messages.getUnreadMentions", "tags": ["Сообщения"], "summary": "Получить непрочитанные сообщения, в которых нас упомянули", "description": "Получить непрочитанные сообщения, в которых нас упомянули\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getUnreadMentions", "x-tl-id": "4043827088", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getUnreadMentions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Попытайтесь, где искать упоминания"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Если установлено, рассматриваются только сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальный идентификатор возвращаемого сообщения, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Минимальный идентификатор сообщения для возврата, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset_id", "add_offset", "limit", "max_id", "min_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Попытайтесь, где искать упоминания |\n| `top_msg_id` | `int` | Нет | Если установлено, рассматриваются только сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics) |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | Да | Максимальный идентификатор возвращаемого сообщения, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `min_id` | `int` | Да | Минимальный идентификатор сообщения для возврата, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4043827088"}}, "/catalog/messages.readMentions": {"post": {"operationId": "messages.readMentions", "tags": ["Сообщения"], "summary": "Марк упоминает как прочитанное; можно использовать на форумах, но **нельзя** использовать на монофорумах.", "description": "Марк упоминает как прочитанное; можно использовать в [форумах](https://core.telegram.org/api/forum.md), но **нельзя** использовать в [монофорумах](https://core.telegram.org/api/monoforum.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.readMentions", "x-tl-id": "921026381", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readMentions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Диалог"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Пометить как только для чтения упоминания в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics) (кроме монофорумов)."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Диалог |\n| `top_msg_id` | `int` | Нет | Пометить как только для чтения упоминания в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics) (кроме монофорумов). |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "921026381"}}, "/catalog/messages.getRecentLocations": {"post": {"operationId": "messages.getRecentLocations", "tags": ["Сообщения"], "summary": "Получить все последние текущие местоположения, отправленные в определенный чат: возвращает до 1 сообщения о местоположении (messageMediaGeoLive) для каждого участника чата.", "description": "Получить все последние [текущие местоположения](https://core.telegram.org/api/live-location.md), отправленные в определенный чат: возвращает до 1 сообщения о местоположении ([messageMediaGeoLive](https://core.telegram.org/constructor/messageMediaGeoLive.md)) для каждого участника чата.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Live geolocation](https://core.telegram.org/api/live-location.md)", "x-tl-method": "messages.getRecentLocations", "x-tl-id": "1881817312", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Live geolocation", "https://core.telegram.org/api/live-location.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getRecentLocations"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Целевая группа или приватный чат."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Целевая группа или приватный чат. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation) |"}, "x-browser-schema-id": "1881817312"}}, "/catalog/messages.sendMultiMedia": {"post": {"operationId": "messages.sendMultiMedia", "tags": ["Сообщения"], "summary": "Отправьте альбом или сгруппированные медиафайлы", "description": "Отправьте [альбом или группу медиа](https://core.telegram.org/api/files.md#albums-grouped-media)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [File references](https://core.telegram.org/api/file-references.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendMultiMedia", "x-tl-id": "469278068", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"], ["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["File references", "https://core.telegram.org/api/file-references.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — Этот узел взимает %d [Telegram Stars](https://core.telegram.org/api/stars.md) за сообщение, но `allow_paid_stars` не было установлено или его значение меньше %d.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `BUSINESS_PEER_INVALID` — Сообщения не могут быть отправлены указанному узлу через текущее [деловое соединение](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — Нельзя пересылать сообщения из защищенного чата.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — В этом чате нельзя отправлять медиа.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — В этом чате нельзя отправлять фотографии.\n- 403 · `CHAT_SEND_VIDEOS_FORBIDDEN` — В этом чате нельзя отправлять видео.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `EFFECT_ID_INVALID` — Указанный идентификатор эффекта недействителен.\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 400 · `FILE_REFERENCE_%d_EMPTY` — Ссылка на медиафайл по смещению %d в массиве multi_media недействительна.\n- 400 · `FILE_REFERENCE_%d_EXPIRED` — Срок действия ссылки на медиафайл с индексом %d в переданном медиамассиве истек, его [необходимо обновить, как указано в документации](https://core.telegram.org/api/file-references.md). .\n- 400 · `FILE_REFERENCE_%d_INVALID` — [ссылка на файл](https://core.telegram.org/api/file-references.md) медиа-файла с индексом %d в переданном медиа-массиве недействительна.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — Подпись слишком длинная.\n- 400 · `MEDIA_EMPTY` — Указанный медиа-объект недействителен.\n- 400 · `MEDIA_INVALID` — Недействительный носитель.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `MULTI_MEDIA_TOO_LONG` — Слишком много медиафайлов для альбома.\n- 406 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — Вам нужна [подписка Telegram Premium](https://core.telegram.org/api/premium.md), чтобы отправить сообщение этому пользователю.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Быстрые ответы](https://core.telegram.org/api/business.md#quick-reply-shortcuts) не могут быть использованы ботами.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — Можно создать максимум [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) ярлыков, достигнут предел.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `RANDOM_ID_EMPTY` — Случайный идентификатор пуст.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Каждый ярлык может содержать максимум [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) сообщений, достигнут предел.\n- 400 · `REPLY_TO_INVALID` — Указанное поле `reply_to` неверно.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — Вы не можете запланировать сообщение так далеко в будущем.\n- 400 · `SCHEDULE_TOO_MUCH` — Слишком много запланированных сообщений.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла.\n- 420 · `SLOWMODE_WAIT_%d` — В этом чате включен медленный режим: подождите %d секунд, прежде чем отправлять еще одно сообщение в этот чат.\n- 400 · `TOPIC_CLOSED` — Эта тема закрыта, отправлять в нее сообщения больше нельзя.\n- 400 · `TOPIC_DELETED` — Указанная тема удалена.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendMultiMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Отправлять ли альбом без уведомления (уведомление не срабатывает)"}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Отправить в фоновом режиме?"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Очистить ли [черновики](https://core.telegram.org/api/drafts.md)"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Только для ботов, запрещает пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]."}, "update_stickersets_order": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true", "description": "Перемещать ли использованные наборы наклеек наверх, [дополнительную информацию об этом флаге см. здесь »](https://core.telegram.org/api/stickers.md#recent-stickersets)"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу."}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат назначения"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю.", "x-tl-flag": "flags.0?InputReplyTo"}, "multi_media": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSingleMedia", "oneOf": [{"$ref": "#/components/schemas/inputSingleMedia"}], "description": "Тип TL: InputSingleMedia."}, "x-tl-type": "Vector<InputSingleMedia>", "description": "Отправляемые медиафайлы: обратите внимание, что их необходимо сначала загрузить отдельно с помощью [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md), использование необработанных конструкторов `inputMediaUploaded*` не поддерживается."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Запланированная дата сообщения для запланированных сообщений"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Отправьте это сообщение как указанный узел", "x-tl-flag": "flags.13?InputPeer"}, "quick_reply_shortcut": {"type": "object", "x-tl-type": "InputQuickReplyShortcut", "oneOf": [{"$ref": "#/components/schemas/inputQuickReplyShortcut"}, {"$ref": "#/components/schemas/inputQuickReplyShortcutId"}], "description": "Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}}, "additionalProperties": false, "required": ["peer", "multi_media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Отправлять ли альбом без уведомления (уведомление не срабатывает) |\n| `background` | `true` | Нет | Отправить в фоновом режиме? |\n| `clear_draft` | `true` | Нет | Очистить ли [черновики](https://core.telegram.org/api/drafts.md) |\n| `noforwards` | `true` | Нет | Только для ботов, запрещает пересылку и сохранение сообщений, даже если в целевом чате не включена [защита контента](https://telegram.org/blog/content-protection-delete-by-date-and-more)]. |\n| `update_stickersets_order` | `true` | Нет | Перемещать ли использованные наборы наклеек наверх, [дополнительную информацию об этом флаге см. здесь »](https://core.telegram.org/api/stickers.md#recent-stickersets) |\n| `invert_media` | `true` | Нет | Если этот параметр установлен, любой предварительный просмотр веб-страницы будет отображаться вверху сообщения, а не внизу. |\n| `allow_paid_floodskip` | `true` | Нет | Только боты: если установлено, позволяет отправлять до 1000 сообщений в секунду, игнорируя [ограничения на трансляцию](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) за плату в размере 0,1 Telegram Stars за сообщение. Соответствующие Звезды будут сняты с баланса бота. |\n| `peer` | `InputPeer` | Да | Чат назначения |\n| `reply_to` | `InputReplyTo` | Нет | Если установлено, указывает, что сообщение должно быть отправлено в ответ на указанное сообщение или историю. |\n| `multi_media` | `Vector<InputSingleMedia>` | Да | Отправляемые медиафайлы: обратите внимание, что их необходимо сначала загрузить отдельно с помощью [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md), использование необработанных конструкторов `inputMediaUploaded*` не поддерживается. |\n| `schedule_date` | `int` | Нет | Запланированная дата сообщения для запланированных сообщений |\n| `send_as` | `InputPeer` | Нет | Отправьте это сообщение как указанный узел |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | Нет | Вместо этого добавьте сообщение в указанный [ярлык быстрого ответа »](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `effect` | `long` | Нет | Указывает [эффект сообщения »](https://core.telegram.org/api/effects.md), который будет использоваться для сообщения. |\n| `allow_paid_stars` | `long` | Нет | Для [платных сообщений»](https://core.telegram.org/api/paid-messages.md) указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь согласился заплатить за отправку сообщения. |"}, "x-telegram-rpc-errors": ["ALLOW_PAYMENT_REQUIRED_%d", "BUSINESS_CONNECTION_INVALID", "BUSINESS_PEER_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_FORWARDS_RESTRICTED", "CHAT_SEND_MEDIA_FORBIDDEN", "CHAT_SEND_PHOTOS_FORBIDDEN", "CHAT_SEND_VIDEOS_FORBIDDEN", "CHAT_WRITE_FORBIDDEN", "EFFECT_ID_INVALID", "ENTITY_BOUNDS_INVALID", "FILE_REFERENCE_%d_EMPTY", "FILE_REFERENCE_%d_EXPIRED", "FILE_REFERENCE_%d_INVALID", "MEDIA_CAPTION_TOO_LONG", "MEDIA_EMPTY", "MEDIA_INVALID", "MSG_ID_INVALID", "MULTI_MEDIA_TOO_LONG", "PEER_ID_INVALID", "PRIVACY_PREMIUM_REQUIRED", "QUICK_REPLIES_BOT_NOT_ALLOWED", "QUICK_REPLIES_TOO_MUCH", "RANDOM_ID_DUPLICATE", "RANDOM_ID_EMPTY", "REPLY_MESSAGES_TOO_MUCH", "REPLY_TO_INVALID", "SCHEDULE_DATE_TOO_LATE", "SCHEDULE_TOO_MUCH", "SEND_AS_PEER_INVALID", "SLOWMODE_WAIT_%d", "TOPIC_CLOSED", "TOPIC_DELETED", "USER_BANNED_IN_CHANNEL", "USER_IS_BLOCKED"], "x-browser-schema-id": "469278068"}}, "/catalog/messages.uploadEncryptedFile": {"post": {"operationId": "messages.uploadEncryptedFile", "tags": ["Сообщения"], "summary": "Загрузите зашифрованный файл и привяжите его к секретному чату (фактически не отправляя его в чат).", "description": "Загрузите зашифрованный файл и привяжите его к секретному чату (фактически не отправляя его в чат).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.uploadEncryptedFile", "x-tl-id": "1347929239", "x-tl-result": "EncryptedFile", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `EncryptedFile`.\n\n[ЗашифрованныйФайл](https://core.telegram.org/type/EncryptedFile.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EncryptedFile", "oneOf": [{"$ref": "#/components/schemas/encryptedFileEmpty"}, {"$ref": "#/components/schemas/encryptedFile"}], "description": "Тип TL: EncryptedFile."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.uploadEncryptedFile"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Секретный чат, с которым можно связать файл"}, "file": {"type": "object", "x-tl-type": "InputEncryptedFile", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedFileEmpty"}, {"$ref": "#/components/schemas/inputEncryptedFileUploaded"}, {"$ref": "#/components/schemas/inputEncryptedFile"}, {"$ref": "#/components/schemas/inputEncryptedFileBigUploaded"}], "description": "Файл"}}, "additionalProperties": false, "required": ["peer", "file"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | Да | Секретный чат, с которым можно связать файл |\n| `file` | `InputEncryptedFile` | Да | Файл |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID"], "x-browser-schema-id": "1347929239"}}, "/catalog/messages.searchStickerSets": {"post": {"operationId": "messages.searchStickerSets", "tags": ["Сообщения"], "summary": "Поиск наборов стикеров", "description": "Поиск наборов стикеров\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.searchStickerSets", "x-tl-id": "896555914", "x-tl-result": "messages.FoundStickerSets", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.FoundStickerSets`.\n\n[messages.FoundStickerSets](https://core.telegram.org/type/messages.FoundStickerSets.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.FoundStickerSets", "oneOf": [{"$ref": "#/components/schemas/messages.foundStickerSetsNotModified"}, {"$ref": "#/components/schemas/messages.foundStickerSets"}], "description": "Тип TL: messages.FoundStickerSets."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.searchStickerSets"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"exclude_featured": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Исключить избранные наборы стикеров из результатов"}, "q": {"type": "string", "x-tl-type": "string", "description": "Строка запроса"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["q", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `exclude_featured` | `true` | Нет | Исключить избранные наборы стикеров из результатов |\n| `q` | `string` | Да | Строка запроса |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "896555914"}}, "/catalog/messages.getSplitRanges": {"post": {"operationId": "messages.getSplitRanges", "tags": ["Сообщения"], "summary": "Получите диапазоны сообщений для сохранения истории чата пользователя.", "description": "Получите диапазоны сообщений для сохранения истории чата пользователя.", "x-tl-method": "messages.getSplitRanges", "x-tl-id": "486505992", "x-tl-result": "Vector<MessageRange>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<MessageRange>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[MessageRange](https://core.telegram.org/type/MessageRange.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageRange", "oneOf": [{"$ref": "#/components/schemas/messageRange"}], "description": "Тип TL: MessageRange."}, "x-tl-type": "Vector<MessageRange>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSplitRanges"}, "x-browser-schema-id": "486505992"}}, "/catalog/messages.markDialogUnread": {"post": {"operationId": "messages.markDialogUnread", "tags": ["Сообщения"], "summary": "Вручную пометить диалог как непрочитанный", "description": "Вручную пометить диалог как непрочитанный\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.markDialogUnread", "x-tl-id": "2354054904", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.markDialogUnread"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Отметить как непрочитанное/прочитанное"}, "parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, он должен быть равен идентификатору [monoforum](https://core.telegram.org/api/monoforum.md) и будет влиять на тему монофорума, переданную в `peer`.", "x-tl-flag": "flags.1?InputPeer"}, "peer": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "Диалог"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `unread` | `true` | Нет | Отметить как непрочитанное/прочитанное |\n| `parent_peer` | `InputPeer` | Нет | Если установлено, он должен быть равен идентификатору [monoforum](https://core.telegram.org/api/monoforum.md) и будет влиять на тему монофорума, переданную в `peer`. |\n| `peer` | `InputDialogPeer` | Да | Диалог |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2354054904"}}, "/catalog/messages.getDialogUnreadMarks": {"post": {"operationId": "messages.getDialogUnreadMarks", "tags": ["Сообщения"], "summary": "Получать диалоги, помеченные вручную как непрочитанные", "description": "Получать диалоги, помеченные вручную как непрочитанные", "x-tl-method": "messages.getDialogUnreadMarks", "x-tl-id": "555754018", "x-tl-result": "Vector<DialogPeer>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<DialogPeer>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[DialogPeer](https://core.telegram.org/type/DialogPeer.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogPeer", "oneOf": [{"$ref": "#/components/schemas/dialogPeer"}, {"$ref": "#/components/schemas/dialogPeerFolder"}, {"$ref": "#/components/schemas/dialogPeerCommunity"}], "description": "Тип TL: DialogPeer."}, "x-tl-type": "Vector<DialogPeer>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDialogUnreadMarks"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Может быть равен идентификатору монофорума, чтобы получить темы монофорума, вручную помеченные как непрочитанные.", "x-tl-flag": "flags.0?InputPeer"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | Нет | Может быть равен идентификатору монофорума, чтобы получить темы монофорума, вручную помеченные как непрочитанные. |"}, "x-browser-schema-id": "555754018"}}, "/catalog/messages.clearAllDrafts": {"post": {"operationId": "messages.clearAllDrafts", "tags": ["Сообщения"], "summary": "Очистите все черновики.", "description": "Очистить все [черновики](https://core.telegram.org/api/drafts.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)", "x-tl-method": "messages.clearAllDrafts", "x-tl-id": "2119757468", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.clearAllDrafts"}, "x-browser-schema-id": "2119757468"}}, "/catalog/messages.updatePinnedMessage": {"post": {"operationId": "messages.updatePinnedMessage", "tags": ["Сообщения"], "summary": "Закрепить сообщение", "description": "Закрепить сообщение\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.updatePinnedMessage", "x-tl-id": "3534419948", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_ONESIDE_NOT_AVAIL` — Боты не могут закреплять сообщения в личке только для себя.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `BUSINESS_PEER_INVALID` — Сообщения не могут быть отправлены указанному узлу через текущее [деловое соединение](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PIN_RESTRICTED` — Закреплять сообщения нельзя.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.updatePinnedMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Закрепите сообщение автоматически, не вызывая уведомления."}, "unpin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Должно ли сообщение быть откреплено или закреплено"}, "pm_oneside": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Следует ли закреплять сообщение только на локальной стороне индивидуального чата"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, где закрепить сообщение"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Сообщение, которое нужно закрепить или открепить"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Закрепите сообщение автоматически, не вызывая уведомления. |\n| `unpin` | `true` | Нет | Должно ли сообщение быть откреплено или закреплено |\n| `pm_oneside` | `true` | Нет | Следует ли закреплять сообщение только на локальной стороне индивидуального чата |\n| `peer` | `InputPeer` | Да | Узел, где закрепить сообщение |\n| `id` | `int` | Да | Сообщение, которое нужно закрепить или открепить |"}, "x-telegram-rpc-errors": ["BOT_ONESIDE_NOT_AVAIL", "BUSINESS_CONNECTION_INVALID", "BUSINESS_PEER_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_INVALID", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MESSAGE_ID_INVALID", "PEER_ID_INVALID", "PIN_RESTRICTED", "USER_BANNED_IN_CHANNEL"], "x-browser-schema-id": "3534419948"}}, "/catalog/messages.sendVote": {"post": {"operationId": "messages.sendVote", "tags": ["Сообщения"], "summary": "Проголосовать в опросе", "description": "Проголосуйте в [опросе](https://core.telegram.org/constructor/poll.md)\n\nНачиная с уровня 159, голос будет отправлен от узла, указанного с помощью [messages.saveDefaultSendAs](https://core.telegram.org/method/messages.saveDefaultSendAs.md).\n\nПеред голосованием клиенты должны убедиться, что пользователю действительно разрешено голосовать: голосование невозможно, если опрос закрыт, если он [только для подписчиков »](https://core.telegram.org/api/poll.md#subscriber-only-polls) и пользователь не является подходящим подписчиком, или если он [ограничен по стране »](https://core.telegram.org/api/poll.md#country-restricted-polls) и [`phone_country_iso2` »](https://core.telegram.org/api/config.md#phone-country-iso2) пользователя не входит в список разрешенных стран для опроса. Полный список условий см. в разделе [ограничения голосования »](https://core.telegram.org/api/poll.md#vote-restrictions).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendVote", "x-tl-id": "283795844", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MESSAGE_POLL_CLOSED` — Голосование закрыто.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `OPTIONS_TOO_MUCH` — Предоставлено слишком много вариантов.\n- 400 · `OPTION_INVALID` — Выбран неверный вариант.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 406 · `POLL_COUNTRY_RESTRICTED` — Пользователи из страны текущего пользователя не могут голосовать в этом [опросе, ограниченном страной »](https://core.telegram.org/api/poll.md#country-restricted-polls).\n- 406 · `POLL_MEMBER_RESTRICTED` — В этом опросе могут голосовать только подписчики канала.\n- 400 · `REVOTE_NOT_ALLOWED` — Вы не можете изменить свой голос."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendVote"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, куда был отправлен опрос"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения опроса"}, "options": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "Варианты, которые были выбраны"}}, "additionalProperties": false, "required": ["peer", "msg_id", "options"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, куда был отправлен опрос |\n| `msg_id` | `int` | Да | Идентификатор сообщения опроса |\n| `options` | `Vector<bytes>` | Да | Варианты, которые были выбраны |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MESSAGE_ID_INVALID", "MESSAGE_POLL_CLOSED", "MSG_ID_INVALID", "OPTIONS_TOO_MUCH", "OPTION_INVALID", "PEER_ID_INVALID", "POLL_COUNTRY_RESTRICTED", "POLL_MEMBER_RESTRICTED", "REVOTE_NOT_ALLOWED"], "x-browser-schema-id": "283795844"}}, "/catalog/messages.getPollResults": {"post": {"operationId": "messages.getPollResults", "tags": ["Сообщения"], "summary": "Получить результаты опроса", "description": "Получить результаты опроса\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getPollResults", "x-tl-id": "3986940731", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPollResults"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, где был найден опрос"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения опроса"}, "poll_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Передайте `poll.hash` из последнего полученного состояния опроса; сервер пропускает возврат неизмененных данных", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "msg_id", "poll_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир, где был найден опрос |\n| `msg_id` | `int` | Да | Идентификатор сообщения опроса |\n| `poll_hash` | `long` | Да | Передайте `poll.hash` из последнего полученного состояния опроса; сервер пропускает возврат неизмененных данных |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3986940731"}}, "/catalog/messages.getOnlines": {"post": {"operationId": "messages.getOnlines", "tags": ["Сообщения"], "summary": "Получите количество онлайн-пользователей в чате", "description": "Получите количество онлайн-пользователей в чате\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getOnlines", "x-tl-id": "1848369232", "x-tl-result": "ChatOnlines", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `ChatOnlines`.\n\n[ЧатОнлайнс](https://core.telegram.org/type/ChatOnlines.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ChatOnlines", "oneOf": [{"$ref": "#/components/schemas/chatOnlines"}], "description": "Тип TL: ChatOnlines."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getOnlines"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "CHAT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1848369232"}}, "/catalog/messages.editChatAbout": {"post": {"operationId": "messages.editChatAbout", "tags": ["Сообщения"], "summary": "Отредактируйте описание группы/супергруппы/канала.", "description": "Отредактируйте описание [группы/супергруппы/канала](https://core.telegram.org/api/channel.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatAbout", "x-tl-id": "3740665751", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ABOUT_NOT_MODIFIED` — О тексте не изменилось.\n- 400 · `CHAT_ABOUT_TOO_LONG` — Болтать слишком долго.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editChatAbout"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "[группа/супергруппа/канал](https://core.telegram.org/api/channel.md)."}, "about": {"type": "string", "x-tl-type": "string", "description": "Новое описание"}}, "additionalProperties": false, "required": ["peer", "about"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | [группа/супергруппа/канал](https://core.telegram.org/api/channel.md). |\n| `about` | `string` | Да | Новое описание |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ABOUT_NOT_MODIFIED", "CHAT_ABOUT_TOO_LONG", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "3740665751"}}, "/catalog/messages.editChatDefaultBannedRights": {"post": {"operationId": "messages.editChatDefaultBannedRights", "tags": ["Сообщения"], "summary": "Измените запрещенные по умолчанию права канала/супергруппы/группы.", "description": "Отредактируйте запрещенные по умолчанию права для [канала/супергруппы/группы](https://core.telegram.org/api/channel.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatDefaultBannedRights", "x-tl-id": "2777049921", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BANNED_RIGHTS_INVALID` — Вы указали неверные флаги в запрещенных правах.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `UNTIL_DATE_INVALID` — Недействительно до указанной даты."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editChatDefaultBannedRights"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер"}, "banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "oneOf": [{"$ref": "#/components/schemas/chatBannedRights"}], "description": "Новые глобальные права"}}, "additionalProperties": false, "required": ["peer", "banned_rights"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Партнер |\n| `banned_rights` | `ChatBannedRights` | Да | Новые глобальные права |"}, "x-telegram-rpc-errors": ["BANNED_RIGHTS_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "PEER_ID_INVALID", "UNTIL_DATE_INVALID"], "x-browser-schema-id": "2777049921"}}, "/catalog/messages.getEmojiKeywords": {"post": {"operationId": "messages.getEmojiKeywords", "tags": ["Сообщения"], "summary": "Получите локализованные ключевые слова для смайликов».", "description": "Получите локализованные [ключевые слова смайликов»](https://core.telegram.org/api/custom-emoji.md#emoji-keywords).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiKeywords", "x-tl-id": "899735650", "x-tl-result": "EmojiKeywordsDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiKeywordsDifference`.\n\n[EmojiKeywordsDifference](https://core.telegram.org/type/EmojiKeywordsDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiKeywordsDifference", "oneOf": [{"$ref": "#/components/schemas/emojiKeywordsDifference"}], "description": "Тип TL: EmojiKeywordsDifference."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiKeywords"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка"}}, "additionalProperties": false, "required": ["lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_code` | `string` | Да | Код языка |"}, "x-browser-schema-id": "899735650"}}, "/catalog/messages.getEmojiKeywordsDifference": {"post": {"operationId": "messages.getEmojiKeywordsDifference", "tags": ["Сообщения"], "summary": "Измените ключевые слова для смайликов».", "description": "Измените [ключевые слова смайликов »](https://core.telegram.org/api/custom-emoji.md#emoji-keywords).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiKeywordsDifference", "x-tl-id": "352892591", "x-tl-result": "EmojiKeywordsDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiKeywordsDifference`.\n\n[EmojiKeywordsDifference](https://core.telegram.org/type/EmojiKeywordsDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiKeywordsDifference", "oneOf": [{"$ref": "#/components/schemas/emojiKeywordsDifference"}], "description": "Тип TL: EmojiKeywordsDifference."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiKeywordsDifference"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка"}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Предыдущий сохраненный список ключевых слов для смайликов `version`"}}, "additionalProperties": false, "required": ["lang_code", "from_version"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_code` | `string` | Да | Код языка |\n| `from_version` | `int` | Да | Предыдущий сохраненный список ключевых слов для смайликов `version` |"}, "x-browser-schema-id": "352892591"}}, "/catalog/messages.getEmojiKeywordsLanguages": {"post": {"operationId": "messages.getEmojiKeywordsLanguages", "tags": ["Сообщения"], "summary": "Получите список родственных языков, которые необходимо использовать при получении списков ключевых слов для смайликов».", "description": "Получите список родственных языков, которые необходимо использовать при получении [списков ключевых слов эмодзи »](https://core.telegram.org/api/custom-emoji.md#emoji-keywords).\n\nОбычно метод возвращает переданные коды языков (если они локализованы) + `en` + некоторые коды языков для похожих языков (если применимо).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiKeywordsLanguages", "x-tl-id": "1318675378", "x-tl-result": "Vector<EmojiLanguage>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<EmojiLanguage>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[EmojiLanguage](https://core.telegram.org/type/EmojiLanguage.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiLanguage", "oneOf": [{"$ref": "#/components/schemas/emojiLanguage"}], "description": "Тип TL: EmojiLanguage."}, "x-tl-type": "Vector<EmojiLanguage>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiKeywordsLanguages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_codes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Языковые коды пользователя"}}, "additionalProperties": false, "required": ["lang_codes"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_codes` | `Vector<string>` | Да | Языковые коды пользователя |"}, "x-browser-schema-id": "1318675378"}}, "/catalog/messages.getEmojiURL": {"post": {"operationId": "messages.getEmojiURL", "tags": ["Сообщения"], "summary": "Возвращает HTTP URL, который можно использовать для автоматического входа в платформу перевода и предложения новых ключевых слов для смайликов». URL будет действовать в течение 30 секунд после генерации.", "description": "Возвращает HTTP URL, который можно использовать для автоматического входа в платформу перевода и предложения новых [ключевых слов эмодзи »](https://core.telegram.org/api/custom-emoji.md#emoji-keywords). URL будет действовать в течение 30 секунд после генерации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiURL", "x-tl-id": "3585149990", "x-tl-result": "EmojiURL", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiURL`.\n\n[EmojiURL](https://core.telegram.org/type/EmojiURL.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiURL", "oneOf": [{"$ref": "#/components/schemas/emojiURL"}], "description": "Тип TL: EmojiURL."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiURL"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка, для которого будут предлагаться ключевые слова смайликов."}}, "additionalProperties": false, "required": ["lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_code` | `string` | Да | Код языка, для которого будут предлагаться ключевые слова смайликов. |"}, "x-browser-schema-id": "3585149990"}}, "/catalog/messages.getSearchCounters": {"post": {"operationId": "messages.getSearchCounters", "tags": ["Сообщения"], "summary": "Получите количество результатов, которые будут найдены вызовом messages.search с теми же параметрами.", "description": "Получите количество результатов, которые будут найдены вызовом [messages.search](https://core.telegram.org/method/messages.search.md) с теми же параметрами.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.getSearchCounters", "x-tl-id": "465367808", "x-tl-result": "Vector<messages.SearchCounter>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<messages.SearchCounter>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[messages.SearchCounter](https://core.telegram.org/type/messages.SearchCounter.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "messages.SearchCounter", "oneOf": [{"$ref": "#/components/schemas/messages.searchCounter"}], "description": "Тип TL: messages.SearchCounter."}, "x-tl-type": "Vector<messages.SearchCounter>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSearchCounters"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, где искать"}, "saved_peer_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором.", "x-tl-flag": "flags.2?InputPeer"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Если установлено, рассматривать только сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics)"}, "filters": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagesFilter", "oneOf": [{"$ref": "#/components/schemas/inputMessagesFilterEmpty"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotoVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterDocument"}, {"$ref": "#/components/schemas/inputMessagesFilterUrl"}, {"$ref": "#/components/schemas/inputMessagesFilterGif"}, {"$ref": "#/components/schemas/inputMessagesFilterVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterMusic"}, {"$ref": "#/components/schemas/inputMessagesFilterChatPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterPhoneCalls"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterMyMentions"}, {"$ref": "#/components/schemas/inputMessagesFilterGeo"}, {"$ref": "#/components/schemas/inputMessagesFilterContacts"}, {"$ref": "#/components/schemas/inputMessagesFilterPinned"}, {"$ref": "#/components/schemas/inputMessagesFilterPoll"}], "description": "Тип TL: MessagesFilter."}, "x-tl-type": "Vector<MessagesFilter>", "description": "Фильтры поиска"}}, "additionalProperties": false, "required": ["peer", "filters"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, где искать |\n| `saved_peer_id` | `InputPeer` | Нет | Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором. |\n| `top_msg_id` | `int` | Нет | Если установлено, рассматривать только сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics) |\n| `filters` | `Vector<MessagesFilter>` | Да | Фильтры поиска |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "465367808"}}, "/catalog/messages.requestUrlAuth": {"post": {"operationId": "messages.requestUrlAuth", "tags": ["Сообщения"], "summary": "Получите дополнительную информацию о запросе на авторизацию для бесшовного входа в Telegram. Для получения дополнительной информации нажмите здесь »", "description": "Получите дополнительную информацию о запросе на авторизацию для бесшовного входа в Telegram. Для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/url-authorization.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.requestUrlAuth", "x-tl-id": "2303510940", "x-tl-result": "UrlAuthResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "Результат MTProto · `UrlAuthResult`.\n\n[UrlAuthResult](https://core.telegram.org/type/UrlAuthResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "UrlAuthResult", "oneOf": [{"$ref": "#/components/schemas/urlAuthResultRequest"}, {"$ref": "#/components/schemas/urlAuthResultAccepted"}, {"$ref": "#/components/schemas/urlAuthResultDefault"}], "description": "Тип TL: UrlAuthResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 500 · `OAUTH_REQUEST_INVALID` — Указанный запрос OAuth недействителен.\n- 400 · `URL_EXPIRED` — Срок действия указанного запроса OAuth истек.\n- 400 · `URL_INVALID` — Указано неверное URL."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.requestUrlAuth"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, где находится сообщение", "x-tl-flag": "flags.1?InputPeer"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Сообщение"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "ID кнопки с запросом авторизации"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "URL используется для [ссылка URL авторизации, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/url-authorization.md#link-url-authorization)"}, "in_app_origin": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Для [авторизации OAuth из мини-приложений»](https://core.telegram.org/api/url-authorization.md#oauth-authorization-for-mini-apps): источник веб-просмотра, отправившего запрос OAuth, в формате `scheme://host` (или `scheme://host:port` для портов, отличных от стандартных)."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Нет | Узел, где находится сообщение |\n| `msg_id` | `int` | Нет | Сообщение |\n| `button_id` | `int` | Нет | ID кнопки с запросом авторизации |\n| `url` | `string` | Нет | URL используется для [ссылка URL авторизации, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/url-authorization.md#link-url-authorization) |\n| `in_app_origin` | `string` | Нет | Для [авторизации OAuth из мини-приложений»](https://core.telegram.org/api/url-authorization.md#oauth-authorization-for-mini-apps): источник веб-просмотра, отправившего запрос OAuth, в формате `scheme://host` (или `scheme://host:port` для портов, отличных от стандартных). |"}, "x-telegram-rpc-errors": ["OAUTH_REQUEST_INVALID", "URL_EXPIRED", "URL_INVALID"], "x-browser-schema-id": "2303510940"}}, "/catalog/messages.acceptUrlAuth": {"post": {"operationId": "messages.acceptUrlAuth", "tags": ["Сообщения"], "summary": "Используйте это, чтобы принять запрос на авторизацию для бесшовного входа в Telegram. Для получения дополнительной информации нажмите здесь »", "description": "Используйте это, чтобы принять запрос на авторизацию для бесшовного входа в Telegram. Для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/url-authorization.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.acceptUrlAuth", "x-tl-id": "417156754", "x-tl-result": "UrlAuthResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "Результат MTProto · `UrlAuthResult`.\n\n[UrlAuthResult](https://core.telegram.org/type/UrlAuthResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "UrlAuthResult", "oneOf": [{"$ref": "#/components/schemas/urlAuthResultRequest"}, {"$ref": "#/components/schemas/urlAuthResultAccepted"}, {"$ref": "#/components/schemas/urlAuthResultDefault"}], "description": "Тип TL: UrlAuthResult."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.acceptUrlAuth"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"write_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг, чтобы бот мог отправлять вам сообщения (по запросу)."}, "share_phone_number": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Установите этот флаг, чтобы поделиться номером телефона пользователя с ботом (если запрос через [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`request_phone_number` и согласие пользователя)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Местоположение сообщения", "x-tl-flag": "flags.1?InputPeer"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Идентификатор сообщения с кнопкой входа в систему"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Идентификатор кнопки входа"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "URL используется для [ссылка URL авторизации, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/url-authorization.md#link-url-authorization)"}, "match_code": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string", "description": "Если был установлен [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`match_codes`, смайлик или код, выбранный пользователем из предоставленного списка; всегда должен предоставляться, когда установлен `match_codes`, даже если был установлен `match_codes_first` и код уже проверен с помощью [messages.checkUrlAuthMatchCode](https://core.telegram.org/method/messages.checkUrlAuthMatchCode.md)"}, "tonconnect_session": {"type": "object", "x-tl-type": "InputTonConnectOauthSession", "oneOf": [{"$ref": "#/components/schemas/inputTonConnectOauthSession"}], "description": "Тип TL: InputTonConnectOauthSession.", "x-tl-flag": "flags.5?InputTonConnectOauthSession"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `write_allowed` | `true` | Нет | Установите этот флаг, чтобы бот мог отправлять вам сообщения (по запросу). |\n| `share_phone_number` | `true` | Нет | Установите этот флаг, чтобы поделиться номером телефона пользователя с ботом (если запрос через [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`request_phone_number` и согласие пользователя) |\n| `peer` | `InputPeer` | Нет | Местоположение сообщения |\n| `msg_id` | `int` | Нет | Идентификатор сообщения с кнопкой входа в систему |\n| `button_id` | `int` | Нет | Идентификатор кнопки входа |\n| `url` | `string` | Нет | URL используется для [ссылка URL авторизации, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/url-authorization.md#link-url-authorization) |\n| `match_code` | `string` | Нет | Если был установлен [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`match_codes`, смайлик или код, выбранный пользователем из предоставленного списка; всегда должен предоставляться, когда установлен `match_codes`, даже если был установлен `match_codes_first` и код уже проверен с помощью [messages.checkUrlAuthMatchCode](https://core.telegram.org/method/messages.checkUrlAuthMatchCode.md) |\n| `tonconnect_session` | `InputTonConnectOauthSession` | Нет | Тип TL: InputTonConnectOauthSession. |"}, "x-browser-schema-id": "417156754"}}, "/catalog/messages.hidePeerSettingsBar": {"post": {"operationId": "messages.hidePeerSettingsBar", "tags": ["Сообщения"], "summary": "Должен вызываться после того, как пользователь скрывает сообщение о спаме/добавлении в качестве панели контактов нового чата, эффективно запрещает пользователю выполнять действия, указанные на панели действий».", "description": "Должен вызываться после того, как пользователь скрывает [сообщить о спаме/добавить как панель контактов](https://core.telegram.org/api/action-bar.md) нового чата, эффективно запрещает пользователю выполнять действия, указанные в [панели действий »](https://core.telegram.org/api/action-bar.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Action bar](https://core.telegram.org/api/action-bar.md)", "x-tl-method": "messages.hidePeerSettingsBar", "x-tl-id": "1336717624", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Action bar", "https://core.telegram.org/api/action-bar.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.hidePeerSettingsBar"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1336717624"}}, "/catalog/messages.getScheduledHistory": {"post": {"operationId": "messages.getScheduledHistory", "tags": ["Сообщения"], "summary": "Получайте запланированные сообщения", "description": "Получайте запланированные сообщения\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getScheduledHistory", "x-tl-id": "4111889931", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getScheduledHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).  Чтобы сгенерировать хэш, заполните массив `ids` числами `id`, `edit_date` (0, если не редактировалось) и `date` (в этом порядке) ранее возвращенных сообщений (по порядку: i.e. `ids = [id1, (edit_date1 ?? 0), date1, id2, (edit_date2 ?? 0), date2, ...]`).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).  Чтобы сгенерировать хэш, заполните массив `ids` числами `id`, `edit_date` (0, если не редактировалось) и `date` (в этом порядке) ранее возвращенных сообщений (по порядку: i.e. `ids = [id1, (edit_date1 ?? 0), date1, id2, (edit_date2 ?? 0), date2, ...]`). |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "4111889931"}}, "/catalog/messages.getScheduledMessages": {"post": {"operationId": "messages.getScheduledMessages", "tags": ["Сообщения"], "summary": "Получайте запланированные сообщения", "description": "Получайте запланированные сообщения\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getScheduledMessages", "x-tl-id": "3183150180", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getScheduledMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы запланированных сообщений"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `id` | `Vector<int>` | Да | Идентификаторы запланированных сообщений |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "3183150180"}}, "/catalog/messages.sendScheduledMessages": {"post": {"operationId": "messages.sendScheduledMessages", "tags": ["Сообщения"], "summary": "Отправляйте запланированные сообщения прямо сейчас", "description": "Отправляйте запланированные сообщения прямо сейчас\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.sendScheduledMessages", "x-tl-id": "3174597898", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendScheduledMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы запланированных сообщений"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `id` | `Vector<int>` | Да | Идентификаторы запланированных сообщений |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID", "RANDOM_ID_DUPLICATE"], "x-browser-schema-id": "3174597898"}}, "/catalog/messages.deleteScheduledMessages": {"post": {"operationId": "messages.deleteScheduledMessages", "tags": ["Сообщения"], "summary": "Удалить запланированные сообщения", "description": "Удалить запланированные сообщения\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.deleteScheduledMessages", "x-tl-id": "1504586518", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — Вы не можете удалить одно из сообщений, которые пытались удалить, скорее всего потому, что это служебное сообщение.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteScheduledMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы запланированных сообщений"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `id` | `Vector<int>` | Да | Идентификаторы запланированных сообщений |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "MESSAGE_DELETE_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "1504586518"}}, "/catalog/messages.getPollVotes": {"post": {"operationId": "messages.getPollVotes", "tags": ["Сообщения"], "summary": "Получить результаты опросов для неанонимных опросов", "description": "Получить результаты опросов для неанонимных опросов\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getPollVotes", "x-tl-id": "3094231054", "x-tl-result": "messages.VotesList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.VotesList`.\n\n[messages.VotesList](https://core.telegram.org/type/messages.VotesList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.VotesList", "oneOf": [{"$ref": "#/components/schemas/messages.votesList"}], "description": "Тип TL: messages.VotesList."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `BROADCAST_FORBIDDEN` — Избиратели и реакции на опросы каналов не могут быть получены во избежание деанонимизации.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 403 · `POLL_VOTE_REQUIRED` — Проголосуйте в опросе перед вызовом этого метода."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPollVotes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, куда был отправлен опрос"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes", "description": "Получить результаты только для указанного опроса `option`"}, "offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Смещение для результатов, взятое из поля `next_offset` [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md), изначально это пустая строка.  Примечание. Если результатов больше нет, вызов метода вернет пустое `next_offset`; таким образом, избегайте предоставления `next_offset`, возвращаемого в [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md), если он пуст, чтобы избежать бесконечного цикла."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество результатов для возврата"}}, "additionalProperties": false, "required": ["peer", "id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, куда был отправлен опрос |\n| `id` | `int` | Да | Идентификатор сообщения |\n| `option` | `bytes` | Нет | Получить результаты только для указанного опроса `option` |\n| `offset` | `string` | Нет | Смещение для результатов, взятое из поля `next_offset` [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md), изначально это пустая строка.  Примечание. Если результатов больше нет, вызов метода вернет пустое `next_offset`; таким образом, избегайте предоставления `next_offset`, возвращаемого в [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md), если он пуст, чтобы избежать бесконечного цикла. |\n| `limit` | `int` | Да | Количество результатов для возврата |"}, "x-telegram-rpc-errors": ["BROADCAST_FORBIDDEN", "MSG_ID_INVALID", "POLL_VOTE_REQUIRED"], "x-browser-schema-id": "3094231054"}}, "/catalog/messages.toggleStickerSets": {"post": {"operationId": "messages.toggleStickerSets", "tags": ["Сообщения"], "summary": "Применить изменения к нескольким наборам наклеек", "description": "Применить изменения к нескольким наборам наклеек", "x-tl-method": "messages.toggleStickerSets", "x-tl-id": "3037016042", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleStickerSets"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"uninstall": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалить указанные наборы наклеек"}, "archive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Архивировать указанные наборы стикеров"}, "unarchive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Разархивировать указанные наборы наклеек"}, "stickersets": {"type": "array", "items": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Тип TL: InputStickerSet."}, "x-tl-type": "Vector<InputStickerSet>", "description": "Наборы стикеров для действий"}}, "additionalProperties": false, "required": ["stickersets"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `uninstall` | `true` | Нет | Удалить указанные наборы наклеек |\n| `archive` | `true` | Нет | Архивировать указанные наборы стикеров |\n| `unarchive` | `true` | Нет | Разархивировать указанные наборы наклеек |\n| `stickersets` | `Vector<InputStickerSet>` | Да | Наборы стикеров для действий |"}, "x-browser-schema-id": "3037016042"}}, "/catalog/messages.getDialogFilters": {"post": {"operationId": "messages.getDialogFilters", "tags": ["Сообщения"], "summary": "Получить папки", "description": "Получить [папки](https://core.telegram.org/api/folders.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.getDialogFilters", "x-tl-id": "4023684233", "x-tl-result": "messages.DialogFilters", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.DialogFilters`.\n\n[messages.DialogFilters](https://core.telegram.org/type/messages.DialogFilters.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.DialogFilters", "oneOf": [{"$ref": "#/components/schemas/messages.dialogFilters"}], "description": "Тип TL: messages.DialogFilters."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDialogFilters"}, "x-browser-schema-id": "4023684233"}}, "/catalog/messages.getSuggestedDialogFilters": {"post": {"operationId": "messages.getSuggestedDialogFilters", "tags": ["Сообщения"], "summary": "Получить предлагаемые папки", "description": "Получить [предлагаемые папки](https://core.telegram.org/api/folders.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.getSuggestedDialogFilters", "x-tl-id": "2728186924", "x-tl-result": "Vector<DialogFilterSuggested>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<DialogFilterSuggested>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[DialogFilterSuggested](https://core.telegram.org/type/DialogFilterSuggested.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogFilterSuggested", "oneOf": [{"$ref": "#/components/schemas/dialogFilterSuggested"}], "description": "Тип TL: DialogFilterSuggested."}, "x-tl-type": "Vector<DialogFilterSuggested>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSuggestedDialogFilters"}, "x-browser-schema-id": "2728186924"}}, "/catalog/messages.updateDialogFilter": {"post": {"operationId": "messages.updateDialogFilter", "tags": ["Сообщения"], "summary": "Обновить папку", "description": "Обновить [папку](https://core.telegram.org/api/folders.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.updateDialogFilter", "x-tl-id": "450142282", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHATLIST_EXCLUDE_INVALID` — Указанные `exclude_peers` недействительны.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_INCLUDE_EMPTY` — Вектор include_peers фильтра пуст.\n- 400 · `FILTER_TITLE_EMPTY` — Поле заголовка фильтра пусто.\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.updateDialogFilter"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор папки](https://core.telegram.org/api/folders.md)"}, "filter": {"type": "object", "x-tl-type": "DialogFilter", "oneOf": [{"$ref": "#/components/schemas/dialogFilter"}, {"$ref": "#/components/schemas/dialogFilterDefault"}, {"$ref": "#/components/schemas/dialogFilterChatlist"}], "description": "[Информация о папке](https://core.telegram.org/api/folders.md)", "x-tl-flag": "flags.0?DialogFilter"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `int` | Да | [Идентификатор папки](https://core.telegram.org/api/folders.md) |\n| `filter` | `DialogFilter` | Нет | [Информация о папке](https://core.telegram.org/api/folders.md) |"}, "x-telegram-rpc-errors": ["CHATLIST_EXCLUDE_INVALID", "CHAT_ID_INVALID", "FILTER_ID_INVALID", "FILTER_INCLUDE_EMPTY", "FILTER_TITLE_EMPTY", "MESSAGE_TOO_LONG", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "450142282"}}, "/catalog/messages.updateDialogFiltersOrder": {"post": {"operationId": "messages.updateDialogFiltersOrder", "tags": ["Сообщения"], "summary": "Изменение порядка папок", "description": "Изменить порядок [папок](https://core.telegram.org/api/folders.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.updateDialogFiltersOrder", "x-tl-id": "3311649252", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.updateDialogFiltersOrder"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Новый порядок [папка](https://core.telegram.org/api/folders.md)]"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `order` | `Vector<int>` | Да | Новый порядок [папка](https://core.telegram.org/api/folders.md)] |"}, "x-browser-schema-id": "3311649252"}}, "/catalog/messages.getOldFeaturedStickers": {"post": {"operationId": "messages.getOldFeaturedStickers", "tags": ["Сообщения"], "summary": "Метод получения ранее представленных стикеров", "description": "Метод получения ранее представленных стикеров\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getOldFeaturedStickers", "x-tl-id": "2127598753", "x-tl-result": "messages.FeaturedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.FeaturedStickers`.\n\n[messages.FeaturedStickers](https://core.telegram.org/type/messages.FeaturedStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.FeaturedStickers", "oneOf": [{"$ref": "#/components/schemas/messages.featuredStickersNotModified"}, {"$ref": "#/components/schemas/messages.featuredStickers"}], "description": "Тип TL: messages.FeaturedStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getOldFeaturedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offset` | `int` | Да | Смещение |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2127598753"}}, "/catalog/messages.getReplies": {"post": {"operationId": "messages.getReplies", "tags": ["Сообщения"], "summary": "Получайте сообщения в ветке ответов", "description": "Получайте сообщения в ветке ответов\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getReplies", "x-tl-id": "584962828", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TOPIC_ID_INVALID` — Указан неверный идентификатор темы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getReplies"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было передано положительное значение, метод вернет только сообщения с идентификатором меньше max_id."}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было передано положительное значение, метод вернет только сообщения с идентификатором больше min_id."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "msg_id", "offset_id", "offset_date", "add_offset", "limit", "max_id", "min_id", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `msg_id` | `int` | Да | Идентификатор сообщения |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `offset_date` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | Да | Если было передано положительное значение, метод вернет только сообщения с идентификатором меньше max_id. |\n| `min_id` | `int` | Да | Если было передано положительное значение, метод вернет только сообщения с идентификатором больше min_id. |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID", "TOPIC_ID_INVALID"], "x-browser-schema-id": "584962828"}}, "/catalog/messages.getDiscussionMessage": {"post": {"operationId": "messages.getDiscussionMessage", "tags": ["Сообщения"], "summary": "Получите сообщение обсуждения из связанной дискуссионной группы канала, чтобы отобразить его в верхней части раздела комментариев, не присоединяясь к группе.", "description": "Получите [сообщение обсуждения](https://core.telegram.org/api/threads.md) из [связанной дискуссионной группы](https://core.telegram.org/api/discussion.md) канала, чтобы показать его в верхней части раздела комментариев, фактически не присоединяясь к группе.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Message threads](https://core.telegram.org/api/threads.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "messages.getDiscussionMessage", "x-tl-id": "1147761405", "x-tl-result": "messages.DiscussionMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Message threads", "https://core.telegram.org/api/threads.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.DiscussionMessage`.\n\n[messages.DiscussionMessage](https://core.telegram.org/type/messages.DiscussionMessage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.DiscussionMessage", "oneOf": [{"$ref": "#/components/schemas/messages.discussionMessage"}], "description": "Тип TL: messages.DiscussionMessage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TOPIC_ID_INVALID` — Указан неверный идентификатор темы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDiscussionMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "[Идентификатор канала](https://core.telegram.org/api/channel.md)"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | [Идентификатор канала](https://core.telegram.org/api/channel.md) |\n| `msg_id` | `int` | Да | Идентификатор сообщения |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID", "TOPIC_ID_INVALID"], "x-browser-schema-id": "1147761405"}}, "/catalog/messages.readDiscussion": {"post": {"operationId": "messages.readDiscussion", "tags": ["Сообщения"], "summary": "Отметить тему как прочитанную", "description": "Отметить [тему](https://core.telegram.org/api/threads.md) как прочитанную\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message threads](https://core.telegram.org/api/threads.md)", "x-tl-method": "messages.readDiscussion", "x-tl-id": "4147227124", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message threads", "https://core.telegram.org/api/threads.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readDiscussion"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Идентификатор группы"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, с которого началась ветка"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор, до которого были прочитаны сообщения потока"}}, "additionalProperties": false, "required": ["peer", "msg_id", "read_max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Идентификатор группы |\n| `msg_id` | `int` | Да | Идентификатор сообщения, с которого началась ветка |\n| `read_max_id` | `int` | Да | Идентификатор, до которого были прочитаны сообщения потока |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4147227124"}}, "/catalog/messages.unpinAllMessages": {"post": {"operationId": "messages.unpinAllMessages", "tags": ["Сообщения"], "summary": "Открепить все закрепленные сообщения", "description": "[Открепить](https://core.telegram.org/api/pin.md) все закрепленные сообщения\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Pinned messages](https://core.telegram.org/api/pin.md)", "x-tl-method": "messages.unpinAllMessages", "x-tl-id": "103667527", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Pinned messages", "https://core.telegram.org/api/pin.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.unpinAllMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, где открепить"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "[Тема форума](https://core.telegram.org/api/forum.md#forum-topics) где открепить"}, "saved_peer_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, он должен быть равен идентификатору [темы монофорума](https://core.telegram.org/api/monoforum.md) и открепить все сообщения, закрепленные в переданной теме монофорума.", "x-tl-flag": "flags.1?InputPeer"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, где открепить |\n| `top_msg_id` | `int` | Нет | [Тема форума](https://core.telegram.org/api/forum.md#forum-topics) где открепить |\n| `saved_peer_id` | `InputPeer` | Нет | Если установлено, он должен быть равен идентификатору [темы монофорума](https://core.telegram.org/api/monoforum.md) и открепить все сообщения, закрепленные в переданной теме монофорума. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "INPUT_USER_DEACTIVATED", "PEER_ID_INVALID"], "x-browser-schema-id": "103667527"}}, "/catalog/messages.deleteChat": {"post": {"operationId": "messages.deleteChat", "tags": ["Сообщения"], "summary": "Удалить чат", "description": "Удалить [чат](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.deleteChat", "x-tl-id": "1540419152", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteChat"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор чата", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | Да | Идентификатор чата |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1540419152"}}, "/catalog/messages.deletePhoneCallHistory": {"post": {"operationId": "messages.deletePhoneCallHistory", "tags": ["Сообщения"], "summary": "Удалить всю историю телефонных звонков.", "description": "Удалить всю историю телефонных звонков.", "x-tl-method": "messages.deletePhoneCallHistory", "x-tl-id": "4190888969", "x-tl-result": "messages.AffectedFoundMessages", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedFoundMessages`.\n\n[messages.AffectedFoundMessages](https://core.telegram.org/type/messages.AffectedFoundMessages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedFoundMessages", "oneOf": [{"$ref": "#/components/schemas/messages.affectedFoundMessages"}], "description": "Тип TL: messages.AffectedFoundMessages."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deletePhoneCallHistory"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"revoke": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалить ли историю телефонных звонков для участников?"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `revoke` | `true` | Нет | Удалить ли историю телефонных звонков для участников? |"}, "x-browser-schema-id": "4190888969"}}, "/catalog/messages.checkHistoryImport": {"post": {"operationId": "messages.checkHistoryImport", "tags": ["Сообщения"], "summary": "Получает информацию о файле экспорта чата, созданном зарубежным приложением чата. Нажмите здесь, чтобы получить дополнительную информацию об импортированных чатах ».", "description": "Получает информацию о файле экспорта чата, созданном зарубежным приложением чата, [нажмите здесь, чтобы получить дополнительную информацию об импортированных чатах »](https://core.telegram.org/api/import.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.checkHistoryImport", "x-tl-id": "1140726259", "x-tl-result": "messages.HistoryImportParsed", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.HistoryImportParsed`.\n\n[messages.HistoryImportParsed](https://core.telegram.org/type/messages.HistoryImportParsed.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.HistoryImportParsed", "oneOf": [{"$ref": "#/components/schemas/messages.historyImportParsed"}], "description": "Тип TL: messages.HistoryImportParsed."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `IMPORT_FORMAT_UNRECOGNIZED` — Указанный файл экспорта чата был экспортирован из неподдерживаемого приложения чата."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.checkHistoryImport"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"import_head": {"type": "string", "x-tl-type": "string", "description": "Начало файла сообщения; до 100 строк."}}, "additionalProperties": false, "required": ["import_head"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `import_head` | `string` | Да | Начало файла сообщения; до 100 строк. |"}, "x-telegram-rpc-errors": ["IMPORT_FORMAT_UNRECOGNIZED"], "x-browser-schema-id": "1140726259"}}, "/catalog/messages.initHistoryImport": {"post": {"operationId": "messages.initHistoryImport", "tags": ["Сообщения"], "summary": "Импортируйте историю чатов из зарубежного приложения чата в конкретный чат Telegram. Нажмите здесь, чтобы получить дополнительную информацию об импортированных чатах».", "description": "Импортируйте историю чатов из зарубежного приложения чата в конкретный чат Telegram, [нажмите здесь, чтобы получить дополнительную информацию об импортированных чатах »](https://core.telegram.org/api/import.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.initHistoryImport", "x-tl-id": "873008187", "x-tl-result": "messages.HistoryImport", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.HistoryImport`.\n\n[messages.HistoryImport](https://core.telegram.org/type/messages.HistoryImport.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.HistoryImport", "oneOf": [{"$ref": "#/components/schemas/messages.historyImport"}], "description": "Тип TL: messages.HistoryImport."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `IMPORT_FILE_INVALID` — Указанный файл экспорта чата недействителен.\n- 400 · `IMPORT_FORMAT_DATE_INVALID` — Дата, указанная в файле импорта, недействительна.\n- 400 · `IMPORT_FORMAT_UNRECOGNIZED` — Указанный файл экспорта чата был экспортирован из неподдерживаемого приложения чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 406 · `PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN` — Импорт этого чата уже выполняется, подождите %d минут, прежде чем начинать новый.\n- 400 · `USER_NOT_MUTUAL_CONTACT` — Указанный пользователь не является взаимным контактом."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.initHistoryImport"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат Telegram, куда следует импортировать [историю](https://core.telegram.org/api/import.md)."}, "file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Файл с сообщениями для импорта."}, "media_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество медиафайлов, связанных с чатом, которые будут загружены с помощью [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia.md)."}}, "additionalProperties": false, "required": ["peer", "file", "media_count"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат Telegram, куда следует импортировать [историю](https://core.telegram.org/api/import.md). |\n| `file` | `InputFile` | Да | Файл с сообщениями для импорта. |\n| `media_count` | `int` | Да | Количество медиафайлов, связанных с чатом, которые будут загружены с помощью [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia.md). |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "IMPORT_FILE_INVALID", "IMPORT_FORMAT_DATE_INVALID", "IMPORT_FORMAT_UNRECOGNIZED", "PEER_ID_INVALID", "PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN", "USER_NOT_MUTUAL_CONTACT"], "x-browser-schema-id": "873008187"}}, "/catalog/messages.uploadImportedMedia": {"post": {"operationId": "messages.uploadImportedMedia", "tags": ["Сообщения"], "summary": "Загрузите медиафайл, связанный с импортированным чатом, нажмите здесь для получения дополнительной информации».", "description": "Загрузите медиафайл, связанный с [импортированным чатом, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/import.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.uploadImportedMedia", "x-tl-id": "713433234", "x-tl-result": "MessageMedia", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "Результат MTProto · `MessageMedia`.\n\n[СообщениеМедиа](https://core.telegram.org/type/MessageMedia.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "MessageMedia", "oneOf": [{"$ref": "#/components/schemas/messageMediaEmpty"}, {"$ref": "#/components/schemas/messageMediaPhoto"}, {"$ref": "#/components/schemas/messageMediaGeo"}, {"$ref": "#/components/schemas/messageMediaContact"}, {"$ref": "#/components/schemas/messageMediaUnsupported"}, {"$ref": "#/components/schemas/messageMediaDocument"}, {"$ref": "#/components/schemas/messageMediaWebPage"}, {"$ref": "#/components/schemas/messageMediaVenue"}, {"$ref": "#/components/schemas/messageMediaGame"}, {"$ref": "#/components/schemas/messageMediaInvoice"}, {"$ref": "#/components/schemas/messageMediaGeoLive"}, {"$ref": "#/components/schemas/messageMediaPoll"}, {"$ref": "#/components/schemas/messageMediaDice"}, {"$ref": "#/components/schemas/messageMediaStory"}, {"$ref": "#/components/schemas/messageMediaGiveaway"}, {"$ref": "#/components/schemas/messageMediaGiveawayResults"}, {"$ref": "#/components/schemas/messageMediaPaidMedia"}, {"$ref": "#/components/schemas/messageMediaToDo"}, {"$ref": "#/components/schemas/messageMediaVideoStream"}, {"$ref": "#/components/schemas/messageMediaWidget"}], "description": "Тип TL: MessageMedia."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `IMPORT_ID_INVALID` — Указанный идентификатор импорта недействителен.\n- 400 · `MEDIA_INVALID` — Недействительный носитель."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.uploadImportedMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат Telegram, куда будут импортированы медиа"}, "import_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор [сеанса импорта истории](https://core.telegram.org/api/import.md), возвращаемый [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md)", "x-tl-type": "long"}, "file_name": {"type": "string", "x-tl-type": "string", "description": "Имя файла"}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Медиа-метаданные"}}, "additionalProperties": false, "required": ["peer", "import_id", "file_name", "media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат Telegram, куда будут импортированы медиа |\n| `import_id` | `long` | Да | Идентификатор [сеанса импорта истории](https://core.telegram.org/api/import.md), возвращаемый [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) |\n| `file_name` | `string` | Да | Имя файла |\n| `media` | `InputMedia` | Да | Медиа-метаданные |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "IMPORT_ID_INVALID", "MEDIA_INVALID"], "x-browser-schema-id": "713433234"}}, "/catalog/messages.startHistoryImport": {"post": {"operationId": "messages.startHistoryImport", "tags": ["Сообщения"], "summary": "Завершите процесс импорта истории, импортировав все сообщения в чат.", "description": "Завершите [процесс импорта истории](https://core.telegram.org/api/import.md), импортировав все сообщения в чат.\nВызывается только после инициализации импорта с помощью [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) и загрузки всех файлов с помощью [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.startHistoryImport", "x-tl-id": "3023958852", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `IMPORT_ID_INVALID` — Указанный идентификатор импорта недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.startHistoryImport"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат Telegram, куда следует импортировать сообщения, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/import.md)"}, "import_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор сеанса импорта истории, возвращаемый [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "import_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат Telegram, куда следует импортировать сообщения, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/import.md) |\n| `import_id` | `long` | Да | Идентификатор сеанса импорта истории, возвращаемый [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md). |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "IMPORT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3023958852"}}, "/catalog/messages.getExportedChatInvites": {"post": {"operationId": "messages.getExportedChatInvites", "tags": ["Сообщения"], "summary": "Получить информацию о приглашениях в чат определенного чата", "description": "Получить информацию о приглашениях в чат определенного чата\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getExportedChatInvites", "x-tl-id": "2729812982", "x-tl-result": "messages.ExportedChatInvites", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ExportedChatInvites`.\n\n[messages.ExportedChatInvites](https://core.telegram.org/type/messages.ExportedChatInvites.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ExportedChatInvites", "oneOf": [{"$ref": "#/components/schemas/messages.exportedChatInvites"}], "description": "Тип TL: messages.ExportedChatInvites."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ADMIN_ID_INVALID` — Указанный идентификатор администратора недействителен.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getExportedChatInvites"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Получать ли отозванные приглашения в чат"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}, "admin_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Получать ли приглашения в чат только от этого администратора"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "offset_link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "admin_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `revoked` | `true` | Нет | Получать ли отозванные приглашения в чат |\n| `peer` | `InputPeer` | Да | Чат |\n| `admin_id` | `InputUser` | Да | Получать ли приглашения в чат только от этого администратора |\n| `offset_date` | `int` | Нет | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `offset_link` | `string` | Нет | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["ADMIN_ID_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_WRITE_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "2729812982"}}, "/catalog/messages.getExportedChatInvite": {"post": {"operationId": "messages.getExportedChatInvite", "tags": ["Сообщения"], "summary": "Получить информацию о приглашении в чат", "description": "Получить информацию о приглашении в чат\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getExportedChatInvite", "x-tl-id": "1937010524", "x-tl-result": "messages.ExportedChatInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.ExportedChatInvite`.\n\n[messages.ExportedChatInvite](https://core.telegram.org/type/messages.ExportedChatInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ExportedChatInvite", "oneOf": [{"$ref": "#/components/schemas/messages.exportedChatInvite"}, {"$ref": "#/components/schemas/messages.exportedChatInviteReplaced"}], "description": "Тип TL: messages.ExportedChatInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getExportedChatInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}, "link": {"type": "string", "x-tl-type": "string", "description": "Ссылка для приглашения"}}, "additionalProperties": false, "required": ["peer", "link"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат |\n| `link` | `string` | Да | Ссылка для приглашения |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "INVITE_HASH_EXPIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "1937010524"}}, "/catalog/messages.editExportedChatInvite": {"post": {"operationId": "messages.editExportedChatInvite", "tags": ["Сообщения"], "summary": "Изменение экспортированного приглашения в чат", "description": "Изменение экспортированного приглашения в чат\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.editExportedChatInvite", "x-tl-id": "3184144245", "x-tl-result": "messages.ExportedChatInvite", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.ExportedChatInvite`.\n\n[messages.ExportedChatInvite](https://core.telegram.org/type/messages.ExportedChatInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ExportedChatInvite", "oneOf": [{"$ref": "#/components/schemas/messages.exportedChatInvite"}, {"$ref": "#/components/schemas/messages.exportedChatInviteReplaced"}], "description": "Тип TL: messages.ExportedChatInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_INVITE_PERMANENT` — Вы не можете установить срок действия для постоянных пригласительных ссылок.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 403 · `EDIT_BOT_INVITE_FORBIDDEN` — Обычные пользователи не могут редактировать приглашения, созданные ботами.\n- 400 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USAGE_LIMIT_INVALID` — Указанный лимит использования недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editExportedChatInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Отозвать ли приглашение в чат"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}, "link": {"type": "string", "x-tl-type": "string", "description": "Ссылка для приглашения"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Новый срок годности"}, "usage_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Максимальное количество пользователей, которые могут присоединиться по этой ссылке"}, "request_needed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool", "description": "Требуется ли подтверждение администратора перед допуском каждого отдельного пользователя в чат"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string", "description": "Описание ссылки-приглашения, видимой только администраторам"}}, "additionalProperties": false, "required": ["peer", "link"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `revoked` | `true` | Нет | Отозвать ли приглашение в чат |\n| `peer` | `InputPeer` | Да | Чат |\n| `link` | `string` | Да | Ссылка для приглашения |\n| `expire_date` | `int` | Нет | Новый срок годности |\n| `usage_limit` | `int` | Нет | Максимальное количество пользователей, которые могут присоединиться по этой ссылке |\n| `request_needed` | `Bool` | Нет | Требуется ли подтверждение администратора перед допуском каждого отдельного пользователя в чат |\n| `title` | `string` | Нет | Описание ссылки-приглашения, видимой только администраторам |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_INVITE_PERMANENT", "CHAT_WRITE_FORBIDDEN", "EDIT_BOT_INVITE_FORBIDDEN", "INVITE_HASH_EXPIRED", "PEER_ID_INVALID", "USAGE_LIMIT_INVALID"], "x-browser-schema-id": "3184144245"}}, "/catalog/messages.deleteRevokedExportedChatInvites": {"post": {"operationId": "messages.deleteRevokedExportedChatInvites", "tags": ["Сообщения"], "summary": "Удалить все отозванные приглашения в чат", "description": "Удалить все отозванные приглашения в чат\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.deleteRevokedExportedChatInvites", "x-tl-id": "1452833749", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ADMIN_ID_INVALID` — Указанный идентификатор администратора недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteRevokedExportedChatInvites"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}, "admin_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор администратора, который изначально сгенерировал отозванные приглашения в чат."}}, "additionalProperties": false, "required": ["peer", "admin_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат |\n| `admin_id` | `InputUser` | Да | Идентификатор администратора, который изначально сгенерировал отозванные приглашения в чат. |"}, "x-telegram-rpc-errors": ["ADMIN_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1452833749"}}, "/catalog/messages.deleteExportedChatInvite": {"post": {"operationId": "messages.deleteExportedChatInvite", "tags": ["Сообщения"], "summary": "Удаление приглашения в чат", "description": "Удаление приглашения в чат\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.deleteExportedChatInvite", "x-tl-id": "3563365419", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `INVITE_REVOKED_MISSING` — Указанная ссылка-приглашение уже отозвана или недействительна.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteExportedChatInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "link": {"type": "string", "x-tl-type": "string", "description": "Ссылка для приглашения"}}, "additionalProperties": false, "required": ["peer", "link"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `link` | `string` | Да | Ссылка для приглашения |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "INVITE_HASH_EXPIRED", "INVITE_REVOKED_MISSING", "PEER_ID_INVALID"], "x-browser-schema-id": "3563365419"}}, "/catalog/messages.getAdminsWithInvites": {"post": {"operationId": "messages.getAdminsWithInvites", "tags": ["Сообщения"], "summary": "Получите информацию о приглашениях в чат, созданных администраторами.", "description": "Получите информацию о приглашениях в чат, созданных администраторами.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.getAdminsWithInvites", "x-tl-id": "958457583", "x-tl-result": "messages.ChatAdminsWithInvites", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.ChatAdminsWithInvites`.\n\n[messages.ChatAdminsWithInvites](https://core.telegram.org/type/messages.ChatAdminsWithInvites.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ChatAdminsWithInvites", "oneOf": [{"$ref": "#/components/schemas/messages.chatAdminsWithInvites"}], "description": "Тип TL: messages.ChatAdminsWithInvites."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAdminsWithInvites"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "958457583"}}, "/catalog/messages.getChatInviteImporters": {"post": {"operationId": "messages.getChatInviteImporters", "tags": ["Сообщения"], "summary": "Получите информацию о пользователях, которые присоединились к чату с помощью определенного приглашения в чат.", "description": "Получите информацию о пользователях, которые присоединились к чату с помощью определенного приглашения в чат.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Invite links](https://core.telegram.org/api/invites.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getChatInviteImporters", "x-tl-id": "3741637966", "x-tl-result": "messages.ChatInviteImporters", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ChatInviteImporters`.\n\n[messages.ChatInviteImporters](https://core.telegram.org/type/messages.ChatInviteImporters.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ChatInviteImporters", "oneOf": [{"$ref": "#/components/schemas/messages.chatInviteImporters"}], "description": "Тип TL: messages.ChatInviteImporters."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SEARCH_WITH_LINK_NOT_SUPPORTED` — Нельзя одновременно указать поисковый запрос и ссылку для приглашения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getChatInviteImporters"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, возвращается информация только о пользователях с ожидающими [запросами на присоединение »](https://core.telegram.org/api/invites.md#join-requests)"}, "subscription_expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Установите этот флаг, если ссылка представляет собой [ссылка на подписку Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) и должны быть возвращены только участники с уже истекшей подпиской."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат"}, "link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Ссылка для приглашения"}, "q": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Поиск пользователя в списке ожидающих [запросов на присоединение »](https://core.telegram.org/api/invites.md#join-requests): доступен только при установленном флаге `requested`, не может использоваться вместе с определенным `link`."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "offset_user": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя для [нумерации страниц](https://core.telegram.org/api/offsets.md): если установлено, также необходимо установить `offset_date`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset_date", "offset_user", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `requested` | `true` | Нет | Если установлено, возвращается информация только о пользователях с ожидающими [запросами на присоединение »](https://core.telegram.org/api/invites.md#join-requests) |\n| `subscription_expired` | `true` | Нет | Установите этот флаг, если ссылка представляет собой [ссылка на подписку Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) и должны быть возвращены только участники с уже истекшей подпиской. |\n| `peer` | `InputPeer` | Да | Чат |\n| `link` | `string` | Нет | Ссылка для приглашения |\n| `q` | `string` | Нет | Поиск пользователя в списке ожидающих [запросов на присоединение »](https://core.telegram.org/api/invites.md#join-requests): доступен только при установленном флаге `requested`, не может использоваться вместе с определенным `link`. |\n| `offset_date` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `offset_user` | `InputUser` | Да | Идентификатор пользователя для [нумерации страниц](https://core.telegram.org/api/offsets.md): если установлено, также необходимо установить `offset_date`. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "INVITE_HASH_EXPIRED", "PEER_ID_INVALID", "SEARCH_WITH_LINK_NOT_SUPPORTED"], "x-browser-schema-id": "3741637966"}}, "/catalog/messages.setHistoryTTL": {"post": {"operationId": "messages.setHistoryTTL", "tags": ["Сообщения"], "summary": "Установить максимальное время жизни всех сообщений в указанном чате", "description": "Установить максимальное время жизни всех сообщений в указанном чате\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.setHistoryTTL", "x-tl-id": "3087949796", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TTL_PERIOD_INVALID` — Указанный период TTL недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setHistoryTTL"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Диалог"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Автоматически удалять все сообщения, отправленные в чате по истечении указанного количества секунд."}}, "additionalProperties": false, "required": ["peer", "period"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Диалог |\n| `period` | `int` | Да | Автоматически удалять все сообщения, отправленные в чате по истечении указанного количества секунд. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "PEER_ID_INVALID", "TTL_PERIOD_INVALID"], "x-browser-schema-id": "3087949796"}}, "/catalog/messages.checkHistoryImportPeer": {"post": {"operationId": "messages.checkHistoryImportPeer", "tags": ["Сообщения"], "summary": "Проверьте, можно ли импортировать историю чата, экспортированную из другого приложения чата, в конкретный чат Telegram. Нажмите здесь, чтобы получить дополнительную информацию».", "description": "Проверьте, можно ли [импортировать в определенный чат Telegram историю чата, экспортированную из другого приложения чата, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/import.md).\n\nЕсли проверка прошла успешно и ошибки RPC не возвращены, перед фактической инициализацией импорта будет возвращен конструктор [messages.CheckedHistoryImportPeer](https://core.telegram.org/type/messages.CheckedHistoryImportPeer.md) с текстом подтверждения, который будет показан пользователю.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.checkHistoryImportPeer", "x-tl-id": "1573261059", "x-tl-result": "messages.CheckedHistoryImportPeer", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.CheckedHistoryImportPeer`.\n\n[messages.CheckedHistoryImportPeer](https://core.telegram.org/type/messages.CheckedHistoryImportPeer.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.CheckedHistoryImportPeer", "oneOf": [{"$ref": "#/components/schemas/messages.checkedHistoryImportPeer"}], "description": "Тип TL: messages.CheckedHistoryImportPeer."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_NOT_MUTUAL_CONTACT` — Указанный пользователь не является взаимным контактом."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.checkHistoryImportPeer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, в который мы хотим [импортировать историю»](https://core.telegram.org/api/import.md)."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, в который мы хотим [импортировать историю»](https://core.telegram.org/api/import.md). |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID", "USER_NOT_MUTUAL_CONTACT"], "x-browser-schema-id": "1573261059"}}, "/catalog/messages.setChatTheme": {"post": {"operationId": "messages.setChatTheme", "tags": ["Сообщения"], "summary": "Измените тему определенного чата. Дополнительную информацию см. здесь ».", "description": "Измените тему определенного чата. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/themes.md#chat-themes).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram themes](https://core.telegram.org/api/themes.md)", "x-tl-method": "messages.setChatTheme", "x-tl-id": "135398089", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram themes", "https://core.telegram.org/api/themes.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMOJI_INVALID` — Указанный смайлик темы действителен.\n- 400 · `EMOJI_NOT_MODIFIED` — Тема не изменилась.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setChatTheme"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Приватный чат, где сменить тему"}, "theme": {"type": "object", "x-tl-type": "InputChatTheme", "oneOf": [{"$ref": "#/components/schemas/inputChatThemeEmpty"}, {"$ref": "#/components/schemas/inputChatTheme"}, {"$ref": "#/components/schemas/inputChatThemeUniqueGift"}], "description": "Тема для установки."}}, "additionalProperties": false, "required": ["peer", "theme"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Приватный чат, где сменить тему |\n| `theme` | `InputChatTheme` | Да | Тема для установки. |"}, "x-telegram-rpc-errors": ["EMOJI_INVALID", "EMOJI_NOT_MODIFIED", "PEER_ID_INVALID"], "x-browser-schema-id": "135398089"}}, "/catalog/messages.getMessageReadParticipants": {"post": {"operationId": "messages.getMessageReadParticipants", "tags": ["Сообщения"], "summary": "Узнайте, какие пользователи прочитали конкретное сообщение: доступно только для групп и супергрупп с количеством участников менее `chat_read_mark_size_threshold`, уведомления о прочтении будут храниться в течение `chat_read_mark_expire_period` секунд после отправки сообщения, дополнительную информацию см. в конфигурации клиента ».", "description": "Узнайте, какие пользователи прочитали конкретное сообщение: доступно только для групп и супергрупп с количеством менее [`chat_read_mark_size_threshold` участников](https://core.telegram.org/api/config.md#chat-read-mark-size-threshold), уведомления о прочтении будут храниться в течение [`chat_read_mark_expire_period` секунд после отправки сообщения](https://core.telegram.org/api/config.md#chat-read-mark-expire-period), см. [конфигурацию клиента для получения дополнительной информации »](https://core.telegram.org/api/config.md#client-configuration).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.getMessageReadParticipants", "x-tl-id": "834782287", "x-tl-result": "Vector<ReadParticipantDate>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<ReadParticipantDate>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[ReadParticipantDate](https://core.telegram.org/type/ReadParticipantDate.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "ReadParticipantDate", "oneOf": [{"$ref": "#/components/schemas/readParticipantDate"}], "description": "Тип TL: ReadParticipantDate."}, "x-tl-type": "Vector<ReadParticipantDate>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_TOO_BIG` — Этот метод недоступен для групп, состоящих более чем из `chat_read_mark_size_threshold` участников, [см. конфигурацию клиента »](https://core.telegram.org/api/config.md#client-configuration).\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `MSG_TOO_OLD` — [`chat_read_mark_expire_period` секунд](https://core.telegram.org/api/config.md#chat-read-mark-expire-period) прошло с момента отправки сообщения, уведомления о прочтении удалены.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMessageReadParticipants"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Диалог"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Диалог |\n| `msg_id` | `int` | Да | Идентификатор сообщения |"}, "x-telegram-rpc-errors": ["CHAT_TOO_BIG", "MSG_ID_INVALID", "MSG_TOO_OLD", "PEER_ID_INVALID"], "x-browser-schema-id": "834782287"}}, "/catalog/messages.getSearchResultsCalendar": {"post": {"operationId": "messages.getSearchResultsCalendar", "tags": ["Сообщения"], "summary": "Возвращает информацию о следующих сообщениях указанного типа в чате с разбивкой по дням.", "description": "Возвращает информацию о следующих сообщениях указанного типа в чате с разбивкой по дням.\n\nВозвращает результаты в обратном хронологическом порядке.\nМожет возвращать частичные результаты за последний возвращенный день.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSearchResultsCalendar", "x-tl-id": "1789130429", "x-tl-result": "messages.SearchResultsCalendar", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SearchResultsCalendar`.\n\n[messages.SearchResultsCalendar](https://core.telegram.org/type/messages.SearchResultsCalendar.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SearchResultsCalendar", "oneOf": [{"$ref": "#/components/schemas/messages.searchResultsCalendar"}], "description": "Тип TL: messages.SearchResultsCalendar."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSearchResultsCalendar"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, где искать"}, "saved_peer_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором.", "x-tl-flag": "flags.2?InputPeer"}, "filter": {"type": "object", "x-tl-type": "MessagesFilter", "oneOf": [{"$ref": "#/components/schemas/inputMessagesFilterEmpty"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotoVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterDocument"}, {"$ref": "#/components/schemas/inputMessagesFilterUrl"}, {"$ref": "#/components/schemas/inputMessagesFilterGif"}, {"$ref": "#/components/schemas/inputMessagesFilterVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterMusic"}, {"$ref": "#/components/schemas/inputMessagesFilterChatPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterPhoneCalls"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterMyMentions"}, {"$ref": "#/components/schemas/inputMessagesFilterGeo"}, {"$ref": "#/components/schemas/inputMessagesFilterContacts"}, {"$ref": "#/components/schemas/inputMessagesFilterPinned"}, {"$ref": "#/components/schemas/inputMessagesFilterPoll"}], "description": "Фильтр сообщений, фильтры [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md)] не поддерживаются этим методом."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "filter", "offset_id", "offset_date"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, где искать |\n| `saved_peer_id` | `InputPeer` | Нет | Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором. |\n| `filter` | `MessagesFilter` | Да | Фильтр сообщений, фильтры [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md)] не поддерживаются этим методом. |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `offset_date` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["FILTER_NOT_SUPPORTED", "PEER_ID_INVALID"], "x-browser-schema-id": "1789130429"}}, "/catalog/messages.getSearchResultsPositions": {"post": {"operationId": "messages.getSearchResultsPositions", "tags": ["Сообщения"], "summary": "Возвращает разреженные позиции сообщений указанного типа в чате, которые будут использоваться для реализации общей прокрутки мультимедиа.", "description": "Возвращает разреженные позиции сообщений указанного типа в чате, которые будут использоваться для реализации общей прокрутки мультимедиа.\n\nВозвращает результаты в обратном хронологическом порядке (i.e., в порядке убывания message\\_id).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSearchResultsPositions", "x-tl-id": "2625580816", "x-tl-result": "messages.SearchResultsPositions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SearchResultsPositions`.\n\n[messages.SearchResultsPositions](https://core.telegram.org/type/messages.SearchResultsPositions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SearchResultsPositions", "oneOf": [{"$ref": "#/components/schemas/messages.searchResultsPositions"}], "description": "Тип TL: messages.SearchResultsPositions."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSearchResultsPositions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, где искать"}, "saved_peer_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором.", "x-tl-flag": "flags.2?InputPeer"}, "filter": {"type": "object", "x-tl-type": "MessagesFilter", "oneOf": [{"$ref": "#/components/schemas/inputMessagesFilterEmpty"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotoVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterDocument"}, {"$ref": "#/components/schemas/inputMessagesFilterUrl"}, {"$ref": "#/components/schemas/inputMessagesFilterGif"}, {"$ref": "#/components/schemas/inputMessagesFilterVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterMusic"}, {"$ref": "#/components/schemas/inputMessagesFilterChatPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterPhoneCalls"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterMyMentions"}, {"$ref": "#/components/schemas/inputMessagesFilterGeo"}, {"$ref": "#/components/schemas/inputMessagesFilterContacts"}, {"$ref": "#/components/schemas/inputMessagesFilterPinned"}, {"$ref": "#/components/schemas/inputMessagesFilterPoll"}], "description": "Фильтр сообщений, фильтры [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md)] не поддерживаются этим методом."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "filter", "offset_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, где искать |\n| `saved_peer_id` | `InputPeer` | Нет | Выполните поиск в [диалоге сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md) с этим идентификатором. |\n| `filter` | `MessagesFilter` | Да | Фильтр сообщений, фильтры [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md)] не поддерживаются этим методом. |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2625580816"}}, "/catalog/messages.hideChatJoinRequest": {"post": {"operationId": "messages.hideChatJoinRequest", "tags": ["Сообщения"], "summary": "Отклоните или утвердите запрос на присоединение к чату, связанный с конкретным чатом или каналом.", "description": "Закрыть или одобрить чат [запрос на присоединение](https://core.telegram.org/api/invites.md#join-requests), связанный с конкретным чатом или каналом.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "messages.hideChatJoinRequest", "x-tl-id": "2145904661", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — Вы присоединились к слишком большому количеству каналов/супергрупп.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `HIDE_REQUESTER_MISSING` — Запрос на присоединение отсутствовал или уже был обработан.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_ALREADY_PARTICIPANT` — Пользователь уже в группе.\n- 403 · `USER_CHANNELS_TOO_MUCH` — Один из пользователей, которых вы пытались добавить, уже состоит в слишком многих каналах/супергруппах.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.hideChatJoinRequest"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"approved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Закрыть или одобрить чат [запрос на присоединение »](https://core.telegram.org/api/invites.md#join-requests)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат или канал"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, чей [запрос на присоединение »](https://core.telegram.org/api/invites.md#join-requests) должен быть отклонен или одобрен"}}, "additionalProperties": false, "required": ["peer", "user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `approved` | `true` | Нет | Закрыть или одобрить чат [запрос на присоединение »](https://core.telegram.org/api/invites.md#join-requests) |\n| `peer` | `InputPeer` | Да | Чат или канал |\n| `user_id` | `InputUser` | Да | Пользователь, чей [запрос на присоединение »](https://core.telegram.org/api/invites.md#join-requests) должен быть отклонен или одобрен |"}, "x-telegram-rpc-errors": ["CHANNELS_TOO_MUCH", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "HIDE_REQUESTER_MISSING", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID", "USER_ALREADY_PARTICIPANT", "USER_CHANNELS_TOO_MUCH", "USER_ID_INVALID"], "x-browser-schema-id": "2145904661"}}, "/catalog/messages.hideAllChatJoinRequests": {"post": {"operationId": "messages.hideAllChatJoinRequests", "tags": ["Сообщения"], "summary": "Отклоните или одобрите все запросы на присоединение, относящиеся к определенному чату или каналу.", "description": "Отклонить или утвердить все [запросы на присоединение](https://core.telegram.org/api/invites.md#join-requests), относящиеся к определенному чату или каналу.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "messages.hideAllChatJoinRequests", "x-tl-id": "3766875370", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — Вы присоединились к слишком большому количеству каналов/супергрупп.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `HIDE_REQUESTER_MISSING` — Запрос на присоединение отсутствовал или уже был обработан.\n- 400 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_CHANNELS_TOO_MUCH` — Один из пользователей, которых вы пытались добавить, уже состоит в слишком многих каналах/супергруппах."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.hideAllChatJoinRequests"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"approved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Отклонить или одобрить весь чат [запросы на присоединение »](https://core.telegram.org/api/invites.md#join-requests)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат или канал"}, "link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Отклонять или одобрять только [запросы на присоединение »](https://core.telegram.org/api/invites.md#join-requests), инициированные с использованием этой ссылки-приглашения."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `approved` | `true` | Нет | Отклонить или одобрить весь чат [запросы на присоединение »](https://core.telegram.org/api/invites.md#join-requests) |\n| `peer` | `InputPeer` | Да | Чат или канал |\n| `link` | `string` | Нет | Отклонять или одобрять только [запросы на присоединение »](https://core.telegram.org/api/invites.md#join-requests), инициированные с использованием этой ссылки-приглашения. |"}, "x-telegram-rpc-errors": ["CHANNELS_TOO_MUCH", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "HIDE_REQUESTER_MISSING", "INVITE_HASH_EXPIRED", "PEER_ID_INVALID", "USER_CHANNELS_TOO_MUCH"], "x-browser-schema-id": "3766875370"}}, "/catalog/messages.toggleNoForwards": {"post": {"operationId": "messages.toggleNoForwards", "tags": ["Сообщения"], "summary": "Включите или отключите защиту контента в канале, группе или приватном чате.", "description": "Включите или отключите [защиту контента](https://core.telegram.org/api/content-protection.md) на канале, в группе или приватном чате.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Content protection](https://core.telegram.org/api/content-protection.md)", "x-tl-method": "messages.toggleNoForwards", "x-tl-id": "2986875445", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Content protection", "https://core.telegram.org/api/content-protection.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `REQUEST_MSG_EXPIRED` — Срок действия запроса, указанного в request_msg_id, уже истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleNoForwards"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат или канал"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Включить или отключить защиту контента"}, "request_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Используется только внутри приватных чатов, чтобы принять или отклонить запрос на отключение защиты контента. Дополнительную информацию о полном потоке см. [здесь »](https://core.telegram.org/api/content-protection.md#for-users)."}}, "additionalProperties": false, "required": ["peer", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат или канал |\n| `enabled` | `Bool` | Да | Включить или отключить защиту контента |\n| `request_msg_id` | `int` | Нет | Используется только внутри приватных чатов, чтобы принять или отклонить запрос на отключение защиты контента. Дополнительную информацию о полном потоке см. [здесь »](https://core.telegram.org/api/content-protection.md#for-users). |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "PEER_ID_INVALID", "REQUEST_MSG_EXPIRED"], "x-browser-schema-id": "2986875445"}}, "/catalog/messages.saveDefaultSendAs": {"post": {"operationId": "messages.saveDefaultSendAs", "tags": ["Сообщения"], "summary": "Измените одноранговый узел по умолчанию, который следует использовать при отправке сообщений, реакций и голосований в опросах определенной группе.", "description": "Измените одноранговый узел по умолчанию, который следует использовать при отправке сообщений, реакций и голосований в опросах определенной группе.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.saveDefaultSendAs", "x-tl-id": "3439189910", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.saveDefaultSendAs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Группа"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Одноранговый узел по умолчанию, который следует использовать при отправке сообщений в группу."}}, "additionalProperties": false, "required": ["peer", "send_as"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Группа |\n| `send_as` | `InputPeer` | Да | Одноранговый узел по умолчанию, который следует использовать при отправке сообщений в группу. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "PEER_ID_INVALID", "SEND_AS_PEER_INVALID"], "x-browser-schema-id": "3439189910"}}, "/catalog/messages.sendReaction": {"post": {"operationId": "messages.sendReaction", "tags": ["Сообщения"], "summary": "Реагируйте на сообщение.", "description": "Реагируйте на сообщение.\n\nНачиная с уровня 159, ответ будет отправлен от узла, указанного с помощью [messages.saveDefaultSendAs](https://core.telegram.org/method/messages.saveDefaultSendAs.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendReaction", "x-tl-id": "3540875476", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `CUSTOM_REACTIONS_TOO_MANY` — Указано слишком много пользовательских реакций.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MESSAGE_NOT_MODIFIED` — Предоставленные данные сообщения идентичны данным предыдущего сообщения, сообщение не было изменено.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 400 · `REACTIONS_TOO_MANY` — В сообщении уже содержится ровно `reactions_uniq_max` реакционных смайлов, вы не можете реагировать новыми смайликами, см. [документацию для получения дополнительной информации »](https://core.telegram.org/api/config.md#client-configuration).\n- 400 · `REACTION_EMPTY` — Указана пустая реакция.\n- 400 · `REACTION_INVALID` — Указанная реакция недействительна.\n- 403 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendReaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"big": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Следует ли показывать более масштабную и длительную реакцию"}, "add_to_recent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Добавлять ли эту реакцию в [список последних реакций »](https://core.telegram.org/api/reactions.md#recent-reactions)."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, на которое нужно отреагировать"}, "reaction": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "oneOf": [{"$ref": "#/components/schemas/reactionEmpty"}, {"$ref": "#/components/schemas/reactionEmoji"}, {"$ref": "#/components/schemas/reactionCustomEmoji"}, {"$ref": "#/components/schemas/reactionPaid"}], "description": "Тип TL: Reaction."}, "x-tl-type": "Vector<Reaction>", "x-tl-flag": "flags.0?Vector<Reaction>", "description": "Список реакций (не принимает конструкторы [reactionPaid](https://core.telegram.org/constructor/reactionPaid.md), вместо этого используйте [messages.sendPaidReaction](https://core.telegram.org/method/messages.sendPaidReaction.md) для отправки платных реакций)."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `big` | `true` | Нет | Следует ли показывать более масштабную и длительную реакцию |\n| `add_to_recent` | `true` | Нет | Добавлять ли эту реакцию в [список последних реакций »](https://core.telegram.org/api/reactions.md#recent-reactions). |\n| `peer` | `InputPeer` | Да | Пэр |\n| `msg_id` | `int` | Да | Идентификатор сообщения, на которое нужно отреагировать |\n| `reaction` | `Vector<Reaction>` | Нет | Список реакций (не принимает конструкторы [reactionPaid](https://core.telegram.org/constructor/reactionPaid.md), вместо этого используйте [messages.sendPaidReaction](https://core.telegram.org/method/messages.sendPaidReaction.md) для отправки платных реакций). |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_WRITE_FORBIDDEN", "CUSTOM_REACTIONS_TOO_MANY", "DOCUMENT_INVALID", "MESSAGE_ID_INVALID", "MESSAGE_NOT_MODIFIED", "MSG_ID_INVALID", "PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED", "REACTIONS_TOO_MANY", "REACTION_EMPTY", "REACTION_INVALID", "USER_BANNED_IN_CHANNEL"], "x-browser-schema-id": "3540875476"}}, "/catalog/messages.getMessagesReactions": {"post": {"operationId": "messages.getMessagesReactions", "tags": ["Сообщения"], "summary": "Получить реакцию на сообщение »", "description": "Получить [реакции на сообщение »](https://core.telegram.org/api/reactions.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getMessagesReactions", "x-tl-id": "2344259814", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMessagesReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы сообщений"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `id` | `Vector<int>` | Да | Идентификаторы сообщений |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID"], "x-browser-schema-id": "2344259814"}}, "/catalog/messages.getMessageReactionsList": {"post": {"operationId": "messages.getMessageReactionsList", "tags": ["Сообщения"], "summary": "Получите список реакций на сообщения вместе с отправителем каждой реакции.", "description": "Получите список реакций на сообщения](https://core.telegram.org/api/reactions.md) вместе с отправителем каждой реакции.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getMessageReactionsList", "x-tl-id": "1176190792", "x-tl-result": "messages.MessageReactionsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.MessageReactionsList`.\n\n[messages.MessageReactionsList](https://core.telegram.org/type/messages.MessageReactionsList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.MessageReactionsList", "oneOf": [{"$ref": "#/components/schemas/messages.messageReactionsList"}], "description": "Тип TL: messages.MessageReactionsList."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `BROADCAST_FORBIDDEN` — Избиратели и реакции на опросы каналов не могут быть получены во избежание деанонимизации.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMessageReactionsList"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "oneOf": [{"$ref": "#/components/schemas/reactionEmpty"}, {"$ref": "#/components/schemas/reactionEmoji"}, {"$ref": "#/components/schemas/reactionCustomEmoji"}, {"$ref": "#/components/schemas/reactionPaid"}], "description": "Получать только реакции этого типа", "x-tl-flag": "flags.0?Reaction"}, "offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Смещение для нумерации страниц (берётся из поля `next_offset` возвращаемого [messages.MessageReactionsList](https://core.telegram.org/type/messages.MessageReactionsList.md)); пусто в первом запросе."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `id` | `int` | Да | Идентификатор сообщения |\n| `reaction` | `Reaction` | Нет | Получать только реакции этого типа |\n| `offset` | `string` | Нет | Смещение для нумерации страниц (берётся из поля `next_offset` возвращаемого [messages.MessageReactionsList](https://core.telegram.org/type/messages.MessageReactionsList.md)); пусто в первом запросе. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["BROADCAST_FORBIDDEN", "CHANNEL_INVALID", "MSG_ID_INVALID"], "x-browser-schema-id": "1176190792"}}, "/catalog/messages.setChatAvailableReactions": {"post": {"operationId": "messages.setChatAvailableReactions", "tags": ["Сообщения"], "summary": "Изменить набор реакций на сообщения», который можно использовать в определенной группе, супергруппе или канале", "description": "Изменить набор [реакций на сообщения »](https://core.telegram.org/api/reactions.md), которые можно использовать в определенной группе, супергруппе или канале.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.setChatAvailableReactions", "x-tl-id": "2253071745", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 400 · `LIMIT_PER_POST_INVALID` — Указанное значение reactions_limit неверно.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `REACTION_INVALID` — Указанная реакция недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setChatAvailableReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Группа, где применить изменения"}, "available_reactions": {"type": "object", "x-tl-type": "ChatReactions", "oneOf": [{"$ref": "#/components/schemas/chatReactionsNone"}, {"$ref": "#/components/schemas/chatReactionsAll"}, {"$ref": "#/components/schemas/chatReactionsSome"}], "description": "Разрешенные смайлы-реакции"}, "reactions_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Этот флаг можно использовать для наложения пользовательского лимита уникальных реакций (i.e. настраиваемая версия [appConfig.reactions_uniq_max](https://core.telegram.org/api/config.md#reactions-uniq-max)); это поле и другая информация, заданная методом, затем будут доступны пользователям в [channelFull](https://core.telegram.org/constructor/channelFull.md) и [chatFull](https://core.telegram.org/constructor/chatFull.md).  Если этот флаг не установлен, ранее настроенное `reactions_limit` не будет изменено."}, "paid_enabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool", "description": "Если этот флаг установлен и передано [Bool](https://core.telegram.org/type/Bool.md), метод включит или отключит [реакции на платные сообщения»](https://core.telegram.org/api/reactions.md#paid-reactions). Если этот флаг не установлен, ранее сохраненная настройка не будет изменена."}}, "additionalProperties": false, "required": ["peer", "available_reactions"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Группа, где применить изменения |\n| `available_reactions` | `ChatReactions` | Да | Разрешенные смайлы-реакции |\n| `reactions_limit` | `int` | Нет | Этот флаг можно использовать для наложения пользовательского лимита уникальных реакций (i.e. настраиваемая версия [appConfig.reactions_uniq_max](https://core.telegram.org/api/config.md#reactions-uniq-max)); это поле и другая информация, заданная методом, затем будут доступны пользователям в [channelFull](https://core.telegram.org/constructor/channelFull.md) и [chatFull](https://core.telegram.org/constructor/chatFull.md).  Если этот флаг не установлен, ранее настроенное `reactions_limit` не будет изменено. |\n| `paid_enabled` | `Bool` | Нет | Если этот флаг установлен и передано [Bool](https://core.telegram.org/type/Bool.md), метод включит или отключит [реакции на платные сообщения»](https://core.telegram.org/api/reactions.md#paid-reactions). Если этот флаг не установлен, ранее сохраненная настройка не будет изменена. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "DOCUMENT_INVALID", "LIMIT_PER_POST_INVALID", "PEER_ID_INVALID", "REACTION_INVALID"], "x-browser-schema-id": "2253071745"}}, "/catalog/messages.getAvailableReactions": {"post": {"operationId": "messages.getAvailableReactions", "tags": ["Сообщения"], "summary": "Получить доступные реакции на сообщения »", "description": "Получить доступные [реакции на сообщения »](https://core.telegram.org/api/reactions.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getAvailableReactions", "x-tl-id": "417243308", "x-tl-result": "messages.AvailableReactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AvailableReactions`.\n\n[messages.AvailableReactions](https://core.telegram.org/type/messages.AvailableReactions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AvailableReactions", "oneOf": [{"$ref": "#/components/schemas/messages.availableReactionsNotModified"}, {"$ref": "#/components/schemas/messages.availableReactions"}], "description": "Тип TL: messages.AvailableReactions."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAvailableReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "417243308"}}, "/catalog/messages.setDefaultReaction": {"post": {"operationId": "messages.setDefaultReaction", "tags": ["Сообщения"], "summary": "Измените реакцию эмодзи по умолчанию для использования в меню быстрого реагирования: значение синхронизируется между устройствами и может быть получено с помощью полей help.getConfig, `reactions_default`.", "description": "Измените реакцию эмодзи по умолчанию для использования в меню быстрого реагирования: значение синхронизируется между устройствами и может быть получено с помощью полей [help.getConfig, `reactions_default`](https://core.telegram.org/method/help.getConfig.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.setDefaultReaction", "x-tl-id": "1330094102", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `REACTION_INVALID` — Указанная реакция недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setDefaultReaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"reaction": {"type": "object", "x-tl-type": "Reaction", "oneOf": [{"$ref": "#/components/schemas/reactionEmpty"}, {"$ref": "#/components/schemas/reactionEmoji"}, {"$ref": "#/components/schemas/reactionCustomEmoji"}, {"$ref": "#/components/schemas/reactionPaid"}], "description": "Новая реакция эмодзи"}}, "additionalProperties": false, "required": ["reaction"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `reaction` | `Reaction` | Да | Новая реакция эмодзи |"}, "x-telegram-rpc-errors": ["REACTION_INVALID"], "x-browser-schema-id": "1330094102"}}, "/catalog/messages.translateText": {"post": {"operationId": "messages.translateText", "tags": ["Сообщения"], "summary": "Переведите заданный текст.", "description": "Переведите заданный текст.\n\n[Стилизованные текстовые объекты](https://core.telegram.org/api/entities.md) будут сохранены только для пользователей [Telegram Premium](https://core.telegram.org/api/premium.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [AI features](https://core.telegram.org/api/ai.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)", "x-tl-method": "messages.translateText", "x-tl-id": "2783888197", "x-tl-result": "messages.TranslatedText", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.TranslatedText`.\n\n[messages.TranslatedText](https://core.telegram.org/type/messages.TranslatedText.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.TranslatedText", "oneOf": [{"$ref": "#/components/schemas/messages.translateResult"}], "description": "Тип TL: messages.TranslatedText."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INPUT_TEXT_EMPTY` — Указанный текст пуст.\n- 400 · `INPUT_TEXT_TOO_LONG` — Указанный текст слишком длинный.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TO_LANG_INVALID` — Указанный язык назначения недействителен.\n- 500 · `TRANSLATE_REQ_FAILED` — Ошибка перевода, повторите попытку позже.\n- 400 · `TRANSLATE_REQ_QUOTA_EXCEEDED` — В настоящее время перевод недоступен из-за временной нехватки ресурсов на стороне сервера.\n- 406 · `TRANSLATIONS_DISABLED` — Переводы недоступны, подробное и локализованное описание ошибки будет отправлено через [updateServiceNotification, как указано здесь »](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 500 · `TRANSLATION_TIMEOUT` — При переводе указанного текста произошел таймаут."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.translateText"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если текст представляет собой сообщение чата, идентификатор узла", "x-tl-flag": "flags.0?InputPeer"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>", "description": "Список идентификаторов сообщений для перевода"}, "text": {"type": "array", "items": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Тип TL: TextWithEntities."}, "x-tl-type": "Vector<TextWithEntities>", "x-tl-flag": "flags.1?Vector<TextWithEntities>", "description": "Список стилизованных сообщений для перевода"}, "to_lang": {"type": "string", "x-tl-type": "string", "description": "Двухбуквенный ISO 639-1 код языка, на который переводится сообщение."}, "tone": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Если установлено, перефразирует перевод, используя указанный [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) (передайте идентификатор тона)"}}, "additionalProperties": false, "required": ["to_lang"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Нет | Если текст представляет собой сообщение чата, идентификатор узла |\n| `id` | `Vector<int>` | Нет | Список идентификаторов сообщений для перевода |\n| `text` | `Vector<TextWithEntities>` | Нет | Список стилизованных сообщений для перевода |\n| `to_lang` | `string` | Да | Двухбуквенный ISO 639-1 код языка, на который переводится сообщение. |\n| `tone` | `string` | Нет | Если установлено, перефразирует перевод, используя указанный [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) (передайте идентификатор тона) |"}, "x-telegram-rpc-errors": ["INPUT_TEXT_EMPTY", "INPUT_TEXT_TOO_LONG", "MSG_ID_INVALID", "PEER_ID_INVALID", "TO_LANG_INVALID", "TRANSLATE_REQ_FAILED", "TRANSLATE_REQ_QUOTA_EXCEEDED", "TRANSLATIONS_DISABLED", "TRANSLATION_TIMEOUT"], "x-browser-schema-id": "2783888197"}}, "/catalog/messages.getUnreadReactions": {"post": {"operationId": "messages.getUnreadReactions", "tags": ["Сообщения"], "summary": "Получайте непрочитанные реакции на отправленные вами сообщения.", "description": "Получайте непрочитанные реакции на отправленные вами сообщения.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getUnreadReactions", "x-tl-id": "3179253932", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getUnreadReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Если установлено, учитываются только реакции на сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics)"}, "saved_peer_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, должно быть равно идентификатору [темы монофорума](https://core.telegram.org/api/monoforum.md): повлияет на эту тему на монофоруме, переданную в `peer`.", "x-tl-flag": "flags.1?InputPeer"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращать реакции только на сообщения до этого идентификатора сообщения."}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращать реакции только на сообщения, начинающиеся с этого идентификатора сообщения."}}, "additionalProperties": false, "required": ["peer", "offset_id", "add_offset", "limit", "max_id", "min_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `top_msg_id` | `int` | Нет | Если установлено, учитываются только реакции на сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics) |\n| `saved_peer_id` | `InputPeer` | Нет | Если установлено, должно быть равно идентификатору [темы монофорума](https://core.telegram.org/api/monoforum.md): повлияет на эту тему на монофоруме, переданную в `peer`. |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | Да | Возвращать реакции только на сообщения до этого идентификатора сообщения. |\n| `min_id` | `int` | Да | Возвращать реакции только на сообщения, начинающиеся с этого идентификатора сообщения. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3179253932"}}, "/catalog/messages.readReactions": {"post": {"operationId": "messages.readReactions", "tags": ["Сообщения"], "summary": "Отметить реакцию на сообщение » как прочитанное", "description": "Отметить [реакции на сообщение »](https://core.telegram.org/api/reactions.md) как прочитанное\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.readReactions", "x-tl-id": "2663665555", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Пометить как только для чтения реакции на сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics)"}, "saved_peer_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, должно быть равно идентификатору [темы монофорума](https://core.telegram.org/api/monoforum.md): повлияет на эту тему на монофоруме, переданную в `peer`.", "x-tl-flag": "flags.1?InputPeer"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр |\n| `top_msg_id` | `int` | Нет | Пометить как только для чтения реакции на сообщения в пределах указанной [темы форума](https://core.telegram.org/api/forum.md#forum-topics) |\n| `saved_peer_id` | `InputPeer` | Нет | Если установлено, должно быть равно идентификатору [темы монофорума](https://core.telegram.org/api/monoforum.md): повлияет на эту тему на монофоруме, переданную в `peer`. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2663665555"}}, "/catalog/messages.searchSentMedia": {"post": {"operationId": "messages.searchSentMedia", "tags": ["Сообщения"], "summary": "Просмотр и поиск недавно отправленных медиафайлов.", "description": "Просмотр и поиск недавно отправленных медиафайлов.\nЭтот метод не поддерживает нумерацию страниц.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.searchSentMedia", "x-tl-id": "276705696", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.searchSentMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"q": {"type": "string", "x-tl-type": "string", "description": "Дополнительный поисковый запрос"}, "filter": {"type": "object", "x-tl-type": "MessagesFilter", "oneOf": [{"$ref": "#/components/schemas/inputMessagesFilterEmpty"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterPhotoVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterDocument"}, {"$ref": "#/components/schemas/inputMessagesFilterUrl"}, {"$ref": "#/components/schemas/inputMessagesFilterGif"}, {"$ref": "#/components/schemas/inputMessagesFilterVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterMusic"}, {"$ref": "#/components/schemas/inputMessagesFilterChatPhotos"}, {"$ref": "#/components/schemas/inputMessagesFilterPhoneCalls"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVoice"}, {"$ref": "#/components/schemas/inputMessagesFilterRoundVideo"}, {"$ref": "#/components/schemas/inputMessagesFilterMyMentions"}, {"$ref": "#/components/schemas/inputMessagesFilterGeo"}, {"$ref": "#/components/schemas/inputMessagesFilterContacts"}, {"$ref": "#/components/schemas/inputMessagesFilterPinned"}, {"$ref": "#/components/schemas/inputMessagesFilterPoll"}], "description": "Фильтр сообщений"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов (максимум 100)."}}, "additionalProperties": false, "required": ["q", "filter", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `q` | `string` | Да | Дополнительный поисковый запрос |\n| `filter` | `MessagesFilter` | Да | Фильтр сообщений |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов (максимум 100). |"}, "x-telegram-rpc-errors": ["FILTER_NOT_SUPPORTED"], "x-browser-schema-id": "276705696"}}, "/catalog/messages.getAttachMenuBots": {"post": {"operationId": "messages.getAttachMenuBots", "tags": ["Сообщения"], "summary": "Возвращает установленные мини-приложения бота меню вложений »", "description": "Возвращает меню установленных вложений [мини-приложения ботов »](https://core.telegram.org/api/bots/attach.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)", "x-tl-method": "messages.getAttachMenuBots", "x-tl-id": "385663691", "x-tl-result": "AttachMenuBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"]], "responses": {"200": {"description": "Результат MTProto · `AttachMenuBots`.\n\n[AttachMenuBots](https://core.telegram.org/type/AttachMenuBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AttachMenuBots", "oneOf": [{"$ref": "#/components/schemas/attachMenuBotsNotModified"}, {"$ref": "#/components/schemas/attachMenuBots"}], "description": "Тип TL: AttachMenuBots."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAttachMenuBots"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "385663691"}}, "/catalog/messages.getAttachMenuBot": {"post": {"operationId": "messages.getAttachMenuBot", "tags": ["Сообщения"], "summary": "Возвращает запись меню вложений для мини-приложения бота, которое можно запустить из меню вложений »", "description": "Возвращает запись меню вложений для [мини-приложения-бота, которое можно запустить из меню вложений »](https://core.telegram.org/api/bots/attach.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)", "x-tl-method": "messages.getAttachMenuBot", "x-tl-id": "1998676370", "x-tl-result": "AttachMenuBotsBot", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"]], "responses": {"200": {"description": "Результат MTProto · `AttachMenuBotsBot`.\n\n[ПрикрепитьMenuBotsBot](https://core.telegram.org/type/AttachMenuBotsBot.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AttachMenuBotsBot", "oneOf": [{"$ref": "#/components/schemas/attachMenuBotsBot"}], "description": "Тип TL: AttachMenuBotsBot."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAttachMenuBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор бота"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Идентификатор бота |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1998676370"}}, "/catalog/messages.toggleBotInAttachMenu": {"post": {"operationId": "messages.toggleBotInAttachMenu", "tags": ["Сообщения"], "summary": "Включить или отключить меню прикрепления веб-бота »", "description": "Включить или отключить [меню вложений веб-бота »](https://core.telegram.org/api/bots/attach.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)", "x-tl-method": "messages.toggleBotInAttachMenu", "x-tl-id": "1777704297", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleBotInAttachMenu"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"write_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Разрешает ли пользователь боту писать ему сообщения по запросу [attachMenuBot](https://core.telegram.org/constructor/attachMenuBot.md).`request_write_access`"}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор бота"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Переключить"}}, "additionalProperties": false, "required": ["bot", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `write_allowed` | `true` | Нет | Разрешает ли пользователь боту писать ему сообщения по запросу [attachMenuBot](https://core.telegram.org/constructor/attachMenuBot.md).`request_write_access` |\n| `bot` | `InputUser` | Да | Идентификатор бота |\n| `enabled` | `Bool` | Да | Переключить |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1777704297"}}, "/catalog/messages.requestWebView": {"post": {"operationId": "messages.requestWebView", "tags": ["Сообщения"], "summary": "Откройте мини-приложение-бот, отправляющее информацию о пользователе после подтверждения пользователя.", "description": "Откройте [мини-приложение-бот](https://core.telegram.org/bots/webapps.md), отправляющее информацию о пользователе после подтверждения пользователя.\n\nПосле вызова этого метода, пока пользователь не закроет веб-просмотр, [messages.prolongWebView](https://core.telegram.org/method/messages.prolongWebView.md) необходимо вызывать каждые 60 секунд.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Bot menu button](https://core.telegram.org/api/bots/menu.md)\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "messages.requestWebView", "x-tl-id": "647873217", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot menu button", "https://core.telegram.org/api/bots/menu.md"], ["Deep links", "https://core.telegram.org/api/links.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "Результат MTProto · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "Тип TL: WebViewResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `BOT_WEBVIEW_DISABLED` — Веб-просмотр невозможно открыть в указанных условиях: выдается, например, если установлены `from_bot_menu` или `url` и `peer` не является чатом с ботом.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — Вам нужна [подписка Telegram Premium](https://core.telegram.org/api/premium.md), чтобы отправить сообщение этому пользователю.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла.\n- 400 · `THEME_PARAMS_INVALID` — Указанное поле `theme_params` неверно.\n- 400 · `URL_INVALID` — Указано неверное URL.\n- 400 · `YOU_BLOCKED_USER` — Вы заблокировали этого пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.requestWebView"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"from_bot_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Был ли веб-просмотр открыт при нажатии на [кнопку меню »](https://core.telegram.org/api/bots/menu.md) бота."}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Следует ли отправлять встроенное сообщение, которое будет отправлено ботом от имени пользователя после завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) (без уведомлений для получателей)."}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Если установлено, запрашивает открытие мини-приложения в компактном режиме (в отличие от обычного или полноэкранного режима). Должно быть установлено, если параметр `mode` [глубокой ссылки меню вложений](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) равен `compact`."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "Если установлено, запрашивает открытие мини-приложения в полноэкранном режиме (в отличие от обычного или компактного режима). Должно быть установлено, если параметр `mode` [глубокой ссылки меню вложений](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) равен `fullscreen`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Диалоговое окно, в котором открывается веб-приложение и куда будет отправлено полученное сообщение (дополнительную информацию см. в [документации »](https://core.telegram.org/api/bots/webapps.md))."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, владеющий [веб-приложением](https://core.telegram.org/api/bots/webapps.md)"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "[Веб-приложение URL](https://core.telegram.org/api/bots/webapps.md)"}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Если веб-приложение было открыто из меню вложений с использованием [глубинной ссылки меню вложений](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links), `start_param` должно содержать `data` из параметра `startattach`."}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.2?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Если установлено, указывает, что встроенное сообщение, которое будет отправлено ботом от имени пользователя после [завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)), должно быть отправлено в ответ на указанное сообщение или историю.", "x-tl-flag": "flags.0?InputReplyTo"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Откройте веб-приложение как указанный одноранговый узел, отправив полученное сообщение как указанный одноранговый узел.", "x-tl-flag": "flags.13?InputPeer"}}, "additionalProperties": false, "required": ["peer", "bot", "platform"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `from_bot_menu` | `true` | Нет | Был ли веб-просмотр открыт при нажатии на [кнопку меню »](https://core.telegram.org/api/bots/menu.md) бота. |\n| `silent` | `true` | Нет | Следует ли отправлять встроенное сообщение, которое будет отправлено ботом от имени пользователя после завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) (без уведомлений для получателей). |\n| `compact` | `true` | Нет | Если установлено, запрашивает открытие мини-приложения в компактном режиме (в отличие от обычного или полноэкранного режима). Должно быть установлено, если параметр `mode` [глубокой ссылки меню вложений](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) равен `compact`. |\n| `fullscreen` | `true` | Нет | Если установлено, запрашивает открытие мини-приложения в полноэкранном режиме (в отличие от обычного или компактного режима). Должно быть установлено, если параметр `mode` [глубокой ссылки меню вложений](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) равен `fullscreen`. |\n| `peer` | `InputPeer` | Да | Диалоговое окно, в котором открывается веб-приложение и куда будет отправлено полученное сообщение (дополнительную информацию см. в [документации »](https://core.telegram.org/api/bots/webapps.md)). |\n| `bot` | `InputUser` | Да | Бот, владеющий [веб-приложением](https://core.telegram.org/api/bots/webapps.md) |\n| `url` | `string` | Нет | [Веб-приложение URL](https://core.telegram.org/api/bots/webapps.md) |\n| `start_param` | `string` | Нет | Если веб-приложение было открыто из меню вложений с использованием [глубинной ссылки меню вложений](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links), `start_param` должно содержать `data` из параметра `startattach`. |\n| `theme_params` | `DataJSON` | Нет | [Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | Да | Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания |\n| `reply_to` | `InputReplyTo` | Нет | Если установлено, указывает, что встроенное сообщение, которое будет отправлено ботом от имени пользователя после [завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)), должно быть отправлено в ответ на указанное сообщение или историю. |\n| `send_as` | `InputPeer` | Нет | Откройте веб-приложение как указанный одноранговый узел, отправив полученное сообщение как указанный одноранговый узел. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "BOT_WEBVIEW_DISABLED", "CHAT_WRITE_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID", "PRIVACY_PREMIUM_REQUIRED", "SEND_AS_PEER_INVALID", "THEME_PARAMS_INVALID", "URL_INVALID", "YOU_BLOCKED_USER"], "x-browser-schema-id": "647873217"}}, "/catalog/messages.prolongWebView": {"post": {"operationId": "messages.prolongWebView", "tags": ["Сообщения"], "summary": "Укажите серверу (со стороны пользователя), что пользователь все еще использует веб-приложение.", "description": "Укажите серверу (со стороны пользователя), что пользователь все еще использует веб-приложение.\n\nЕсли метод возвращает ошибку `QUERY_ID_INVALID`, веб-просмотр необходимо закрыть.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.prolongWebView", "x-tl-id": "2966952579", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.prolongWebView"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Следует ли отправлять встроенное сообщение, которое будет отправлено ботом от имени пользователя после завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) (без уведомлений для получателей)."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Диалоговое окно, в котором было открыто веб-приложение."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, владеющий [веб-приложением](https://core.telegram.org/api/bots/webapps.md)"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор взаимодействия с веб-приложением, полученный из [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md)", "x-tl-type": "long"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Если установлено, указывает, что встроенное сообщение, которое будет отправлено ботом от имени пользователя после [завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)), должно быть отправлено в ответ на указанное сообщение или историю.", "x-tl-flag": "flags.0?InputReplyTo"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Откройте веб-приложение как указанный узел.", "x-tl-flag": "flags.13?InputPeer"}}, "additionalProperties": false, "required": ["peer", "bot", "query_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `silent` | `true` | Нет | Следует ли отправлять встроенное сообщение, которое будет отправлено ботом от имени пользователя после завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) (без уведомлений для получателей). |\n| `peer` | `InputPeer` | Да | Диалоговое окно, в котором было открыто веб-приложение. |\n| `bot` | `InputUser` | Да | Бот, владеющий [веб-приложением](https://core.telegram.org/api/bots/webapps.md) |\n| `query_id` | `long` | Да | Идентификатор взаимодействия с веб-приложением, полученный из [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md) |\n| `reply_to` | `InputReplyTo` | Нет | Если установлено, указывает, что встроенное сообщение, которое будет отправлено ботом от имени пользователя после [завершения взаимодействия с веб-приложением](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)), должно быть отправлено в ответ на указанное сообщение или историю. |\n| `send_as` | `InputPeer` | Нет | Откройте веб-приложение как указанный узел. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "2966952579"}}, "/catalog/messages.requestSimpleWebView": {"post": {"operationId": "messages.requestSimpleWebView", "tags": ["Сообщения"], "summary": "Откройте мини-приложение бота.", "description": "Откройте [мини-приложение бота](https://core.telegram.org/api/bots/webapps.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.requestSimpleWebView", "x-tl-id": "1094336115", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "Тип TL: WebViewResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `URL_INVALID` — Указано неверное URL."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.requestSimpleWebView"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"from_switch_webview": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Было ли веб-приложение открыто при нажатии кнопки `switch_webview`, отображаемой в верхней части встроенного списка результатов, возвращаемого [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)."}, "from_side_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Установите этот флаг, если вы открываете мини-приложение из установленного [пункт бокового меню »](https://core.telegram.org/api/bots/attach.md)."}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Устарело."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "Просит открыть приложение в полноэкранном режиме."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит мини-приложение"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Веб-приложение URL, если оно открывается с помощью кнопки клавиатуры или встроенного результата."}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string", "description": "Устарело."}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.0?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания"}}, "additionalProperties": false, "required": ["bot", "platform"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `from_switch_webview` | `true` | Нет | Было ли веб-приложение открыто при нажатии кнопки `switch_webview`, отображаемой в верхней части встроенного списка результатов, возвращаемого [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md). |\n| `from_side_menu` | `true` | Нет | Установите этот флаг, если вы открываете мини-приложение из установленного [пункт бокового меню »](https://core.telegram.org/api/bots/attach.md). |\n| `compact` | `true` | Нет | Устарело. |\n| `fullscreen` | `true` | Нет | Просит открыть приложение в полноэкранном режиме. |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит мини-приложение |\n| `url` | `string` | Нет | Веб-приложение URL, если оно открывается с помощью кнопки клавиатуры или встроенного результата. |\n| `start_param` | `string` | Нет | Устарело. |\n| `theme_params` | `DataJSON` | Нет | [Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | Да | Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "URL_INVALID"], "x-browser-schema-id": "1094336115"}}, "/catalog/messages.sendWebViewResultMessage": {"post": {"operationId": "messages.sendWebViewResultMessage", "tags": ["Сообщения"], "summary": "Завершить взаимодействие веб-просмотра, начатое с messages.requestWebView, отправив указанное сообщение в чат от имени пользователя.", "description": "Завершить взаимодействие веб-просмотра, начатое с помощью [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md), отправив указанное сообщение в чат от имени пользователя.\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "messages.sendWebViewResultMessage", "x-tl-id": "172168437", "x-tl-result": "WebViewMessageSent", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `WebViewMessageSent`.\n\n[WebViewMessageSent](https://core.telegram.org/type/WebViewMessageSent.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewMessageSent", "oneOf": [{"$ref": "#/components/schemas/webViewMessageSent"}], "description": "Тип TL: WebViewMessageSent."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `QUERY_ID_INVALID` — Неверный идентификатор запроса.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendWebViewResultMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot_query_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор взаимодействия веб-просмотра, полученный из [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md)"}, "result": {"type": "object", "x-tl-type": "InputBotInlineResult", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineResult"}, {"$ref": "#/components/schemas/inputBotInlineResultPhoto"}, {"$ref": "#/components/schemas/inputBotInlineResultDocument"}, {"$ref": "#/components/schemas/inputBotInlineResultGame"}], "description": "Сообщение для отправки"}}, "additionalProperties": false, "required": ["bot_query_id", "result"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot_query_id` | `string` | Да | Идентификатор взаимодействия веб-просмотра, полученный из [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md) |\n| `result` | `InputBotInlineResult` | Да | Сообщение для отправки |"}, "x-telegram-rpc-errors": ["QUERY_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "172168437"}}, "/catalog/messages.sendWebViewData": {"post": {"operationId": "messages.sendWebViewData", "tags": ["Сообщения"], "summary": "Используется пользователем для передачи данных из открытого мини-приложения бота-клавиатуры ответа боту, которому оно принадлежит.", "description": "Используется пользователем для передачи данных из открытого мини-приложения [ответить на клавиатуре бота](https://core.telegram.org/api/bots/webapps.md) боту, которому оно принадлежит.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.sendWebViewData", "x-tl-id": "3691135688", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Web events", "https://core.telegram.org/api/web-events.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendWebViewData"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит веб-приложение"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор сообщения клиента для предотвращения повторной отправки одного и того же события. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "button_text": {"type": "string", "x-tl-type": "string", "description": "Текст [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md), который был нажат для открытия веб-приложения."}, "data": {"type": "string", "x-tl-type": "string", "description": "Данные для передачи боту, полученные из [`web_app_data_send` JS-события](https://core.telegram.org/api/web-events.md#web-app-data-send)."}}, "additionalProperties": false, "required": ["bot", "random_id", "button_text", "data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит веб-приложение |\n| `random_id` | `long` | Да | Уникальный идентификатор сообщения клиента для предотвращения повторной отправки одного и того же события. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `button_text` | `string` | Да | Текст [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md), который был нажат для открытия веб-приложения. |\n| `data` | `string` | Да | Данные для передачи боту, полученные из [`web_app_data_send` JS-события](https://core.telegram.org/api/web-events.md#web-app-data-send). |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "3691135688"}}, "/catalog/messages.transcribeAudio": {"post": {"operationId": "messages.transcribeAudio", "tags": ["Сообщения"], "summary": "Расшифровать голосовое сообщение", "description": "[Расшифровать голосовое сообщение](https://core.telegram.org/api/transcribe.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Voice message transcription](https://core.telegram.org/api/transcribe.md)", "x-tl-method": "messages.transcribeAudio", "x-tl-id": "647928393", "x-tl-result": "messages.TranscribedAudio", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Voice message transcription", "https://core.telegram.org/api/transcribe.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.TranscribedAudio`.\n\n[messages.TranscribedAudio](https://core.telegram.org/type/messages.TranscribedAudio.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.TranscribedAudio", "oneOf": [{"$ref": "#/components/schemas/messages.transcribedAudio"}], "description": "Тип TL: messages.TranscribedAudio."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `MSG_VOICE_MISSING` — Указанное сообщение не является голосовым сообщением.\n- 400 · `MSG_VOICE_TOO_LONG` — Указанное голосовое сообщение слишком длинное для расшифровки.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 400 · `TRANSCRIPTION_FAILED` — Не удалось транскрибировать аудио."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.transcribeAudio"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Идентификатор узла, на который было отправлено голосовое сообщение"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор голосового сообщения"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Идентификатор узла, на который было отправлено голосовое сообщение |\n| `msg_id` | `int` | Да | Идентификатор голосового сообщения |"}, "x-telegram-rpc-errors": ["MSG_ID_INVALID", "MSG_VOICE_MISSING", "MSG_VOICE_TOO_LONG", "PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED", "TRANSCRIPTION_FAILED"], "x-browser-schema-id": "647928393"}}, "/catalog/messages.rateTranscribedAudio": {"post": {"operationId": "messages.rateTranscribedAudio", "tags": ["Сообщения"], "summary": "Оценить расшифрованное голосовое сообщение", "description": "Оценить [расшифрованное голосовое сообщение](https://core.telegram.org/api/transcribe.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Voice message transcription](https://core.telegram.org/api/transcribe.md)", "x-tl-method": "messages.rateTranscribedAudio", "x-tl-id": "2132608815", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Voice message transcription", "https://core.telegram.org/api/transcribe.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.rateTranscribedAudio"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда было отправлено голосовое сообщение"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор транскрипции", "x-tl-type": "long"}, "good": {"type": "boolean", "x-tl-type": "Bool", "description": "Была ли транскрипция правильной"}}, "additionalProperties": false, "required": ["peer", "msg_id", "transcription_id", "good"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, куда было отправлено голосовое сообщение |\n| `msg_id` | `int` | Да | Идентификатор сообщения |\n| `transcription_id` | `long` | Да | Идентификатор транскрипции |\n| `good` | `Bool` | Да | Была ли транскрипция правильной |"}, "x-browser-schema-id": "2132608815"}}, "/catalog/messages.getCustomEmojiDocuments": {"post": {"operationId": "messages.getCustomEmojiDocuments", "tags": ["Сообщения"], "summary": "Получите специальные стикеры с эмодзи ».", "description": "Получите [пользовательские стикеры с эмодзи»](https://core.telegram.org/api/custom-emoji.md).\n\nВозвращает список [documents](https://core.telegram.org/constructor/document.md) с анимированными пользовательскими эмодзи в формате TGS и атрибут [documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji.md) с исходными эмодзи и информацией о наборе наклеек эмодзи, к которому принадлежит этот пользовательский эмодзи.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getCustomEmojiDocuments", "x-tl-id": "3651866452", "x-tl-result": "Vector<Document>", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<Document>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Документ](https://core.telegram.org/type/Document.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "oneOf": [{"$ref": "#/components/schemas/documentEmpty"}, {"$ref": "#/components/schemas/document"}], "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getCustomEmojiDocuments"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"document_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "[Пользовательские смайлы](https://core.telegram.org/api/custom-emoji.md) Идентификаторы из [messageEntityCustomEmoji](https://core.telegram.org/constructor/messageEntityCustomEmoji.md)."}}, "additionalProperties": false, "required": ["document_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `document_id` | `Vector<long>` | Да | [Пользовательские смайлы](https://core.telegram.org/api/custom-emoji.md) Идентификаторы из [messageEntityCustomEmoji](https://core.telegram.org/constructor/messageEntityCustomEmoji.md). |"}, "x-browser-schema-id": "3651866452"}}, "/catalog/messages.getEmojiStickers": {"post": {"operationId": "messages.getEmojiStickers", "tags": ["Сообщения"], "summary": "Получает список установленных на данный момент пользовательских наборов стикеров Emoji.", "description": "Получает список установленных на данный момент [пользовательских наборов стикеров эмодзи](https://core.telegram.org/api/custom-emoji.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiStickers", "x-tl-id": "4227637647", "x-tl-result": "messages.AllStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AllStickers`.\n\n[messages.AllStickers](https://core.telegram.org/type/messages.AllStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AllStickers", "oneOf": [{"$ref": "#/components/schemas/messages.allStickersNotModified"}, {"$ref": "#/components/schemas/messages.allStickers"}], "description": "Тип TL: messages.AllStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "4227637647"}}, "/catalog/messages.getFeaturedEmojiStickers": {"post": {"operationId": "messages.getFeaturedEmojiStickers", "tags": ["Сообщения"], "summary": "Получает специальные наборы стикеров с эмодзи.", "description": "Получает специальные наборы стикеров с эмодзи.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getFeaturedEmojiStickers", "x-tl-id": "248473398", "x-tl-result": "messages.FeaturedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.FeaturedStickers`.\n\n[messages.FeaturedStickers](https://core.telegram.org/type/messages.FeaturedStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.FeaturedStickers", "oneOf": [{"$ref": "#/components/schemas/messages.featuredStickersNotModified"}, {"$ref": "#/components/schemas/messages.featuredStickers"}], "description": "Тип TL: messages.FeaturedStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getFeaturedEmojiStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "248473398"}}, "/catalog/messages.reportReaction": {"post": {"operationId": "messages.reportReaction", "tags": ["Сообщения"], "summary": "Сообщить о реакции на сообщение", "description": "Сообщить о [реакция на сообщение](https://core.telegram.org/api/reactions.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.reportReaction", "x-tl-id": "1063567478", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reportReaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда было отправлено сообщение"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}, "reaction_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, отправивший реакцию"}}, "additionalProperties": false, "required": ["peer", "id", "reaction_peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, куда было отправлено сообщение |\n| `id` | `int` | Да | Идентификатор сообщения |\n| `reaction_peer` | `InputPeer` | Да | Пир, отправивший реакцию |"}, "x-telegram-rpc-errors": ["MSG_ID_INVALID", "PEER_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "1063567478"}}, "/catalog/messages.getTopReactions": {"post": {"operationId": "messages.getTopReactions", "tags": ["Сообщения"], "summary": "Получили популярные реакции на сообщения", "description": "Стал популярным [реакции на сообщение](https://core.telegram.org/api/reactions.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getTopReactions", "x-tl-id": "3145803194", "x-tl-result": "messages.Reactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Reactions`.\n\n[messages.Reactions](https://core.telegram.org/type/messages.Reactions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Reactions", "oneOf": [{"$ref": "#/components/schemas/messages.reactionsNotModified"}, {"$ref": "#/components/schemas/messages.reactions"}], "description": "Тип TL: messages.Reactions."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getTopReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3145803194"}}, "/catalog/messages.getRecentReactions": {"post": {"operationId": "messages.getRecentReactions", "tags": ["Сообщения"], "summary": "Получить реакцию на недавно использованные сообщения", "description": "Получить недавно использованные [реакции на сообщения](https://core.telegram.org/api/reactions.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getRecentReactions", "x-tl-id": "960896434", "x-tl-result": "messages.Reactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Reactions`.\n\n[messages.Reactions](https://core.telegram.org/type/messages.Reactions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Reactions", "oneOf": [{"$ref": "#/components/schemas/messages.reactionsNotModified"}, {"$ref": "#/components/schemas/messages.reactions"}], "description": "Тип TL: messages.Reactions."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getRecentReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "960896434"}}, "/catalog/messages.clearRecentReactions": {"post": {"operationId": "messages.clearRecentReactions", "tags": ["Сообщения"], "summary": "Очистить реакции на недавно использованные сообщения", "description": "Очистить недавно использованные [реакции на сообщение](https://core.telegram.org/api/reactions.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.clearRecentReactions", "x-tl-id": "2650730420", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.clearRecentReactions"}, "x-browser-schema-id": "2650730420"}}, "/catalog/messages.getExtendedMedia": {"post": {"operationId": "messages.getExtendedMedia", "tags": ["Сообщения"], "summary": "Получите обновленную информацию о платных носителях, полную информацию см. здесь ».", "description": "Получите обновленную информацию о [платных носителях, полную информацию см. здесь »](https://core.telegram.org/api/paid-media.md).\n\nЭтот метод вернет массив обновлений [updateMessageExtendedMedia](https://core.telegram.org/constructor/updateMessageExtendedMedia.md), только для сообщений, содержащих **уже купленные** платные носители.\nНикакая информация не будет возвращена для сообщений, содержащих еще не купленные платные носители.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Paid media](https://core.telegram.org/api/paid-media.md)", "x-tl-method": "messages.getExtendedMedia", "x-tl-id": "2230847508", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Paid media", "https://core.telegram.org/api/paid-media.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getExtendedMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир с видимыми платными медиа-сообщениями."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы видимых в данный момент сообщений, содержащих платные медиа."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир с видимыми платными медиа-сообщениями. |\n| `id` | `Vector<int>` | Да | Идентификаторы видимых в данный момент сообщений, содержащих платные медиа. |"}, "x-browser-schema-id": "2230847508"}}, "/catalog/messages.setDefaultHistoryTTL": {"post": {"operationId": "messages.setDefaultHistoryTTL", "tags": ["Сообщения"], "summary": "Изменяет значение по умолчанию для параметра «Время жизни», применяемое ко всем новым чатам.", "description": "Изменяет значение по умолчанию для параметра «Время жизни», применяемое ко всем новым чатам.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "messages.setDefaultHistoryTTL", "x-tl-id": "2662667333", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TTL_PERIOD_INVALID` — Указанный период TTL недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setDefaultHistoryTTL"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новое время жизни по умолчанию для всех сообщений, отправленных в новых чатах, в секундах."}}, "additionalProperties": false, "required": ["period"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `period` | `int` | Да | Новое время жизни по умолчанию для всех сообщений, отправленных в новых чатах, в секундах. |"}, "x-telegram-rpc-errors": ["TTL_PERIOD_INVALID"], "x-browser-schema-id": "2662667333"}}, "/catalog/messages.getDefaultHistoryTTL": {"post": {"operationId": "messages.getDefaultHistoryTTL", "tags": ["Сообщения"], "summary": "Получает значение по умолчанию для параметра «Время жизни», применяемое ко всем новым чатам.", "description": "Получает значение по умолчанию для параметра «Время жизни», применяемое ко всем новым чатам.", "x-tl-method": "messages.getDefaultHistoryTTL", "x-tl-id": "1703637384", "x-tl-result": "DefaultHistoryTTL", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `DefaultHistoryTTL`.\n\n[История по умолчаниюTTL](https://core.telegram.org/type/DefaultHistoryTTL.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "DefaultHistoryTTL", "oneOf": [{"$ref": "#/components/schemas/defaultHistoryTTL"}], "description": "Тип TL: DefaultHistoryTTL."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDefaultHistoryTTL"}, "x-browser-schema-id": "1703637384"}}, "/catalog/messages.sendBotRequestedPeer": {"post": {"operationId": "messages.sendBotRequestedPeer", "tags": ["Сообщения"], "summary": "Отправьте один или несколько выбранных одноранговых узлов в соответствии с запросом кнопки KeyboardButtonRequestPeer.", "description": "Отправьте один или несколько выбранных узлов по запросу кнопки [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Bot buttons](https://core.telegram.org/api/bots/buttons.md)", "x-tl-method": "messages.sendBotRequestedPeer", "x-tl-id": "1818030759", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot buttons", "https://core.telegram.org/api/bots/buttons.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendBotRequestedPeer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Бот, отправивший кнопку [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md)."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Идентификатор сообщения, которое содержало клавиатуру ответа с кнопкой [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md)."}, "webapp_req_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Если кнопка была подготовлена для [Мини-приложения »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps), идентификатор запроса мини-приложения возвращается [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md)."}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Поле `button_id` из конструктора [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md)."}, "requested_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Избранные сверстники."}}, "additionalProperties": false, "required": ["peer", "button_id", "requested_peers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Бот, отправивший кнопку [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md). |\n| `msg_id` | `int` | Нет | Идентификатор сообщения, которое содержало клавиатуру ответа с кнопкой [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md). |\n| `webapp_req_id` | `string` | Нет | Если кнопка была подготовлена для [Мини-приложения »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps), идентификатор запроса мини-приложения возвращается [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md). |\n| `button_id` | `int` | Да | Поле `button_id` из конструктора [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md). |\n| `requested_peers` | `Vector<InputPeer>` | Да | Избранные сверстники. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1818030759"}}, "/catalog/messages.getEmojiGroups": {"post": {"operationId": "messages.getEmojiGroups", "tags": ["Сообщения"], "summary": "Представляет список категорий эмодзи.", "description": "Представляет список [категорий эмодзи](https://core.telegram.org/api/emoji-categories.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)", "x-tl-method": "messages.getEmojiGroups", "x-tl-id": "1955122779", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.EmojiGroups`.\n\n[messages.EmojiGroups](https://core.telegram.org/type/messages.EmojiGroups.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.EmojiGroups", "oneOf": [{"$ref": "#/components/schemas/messages.emojiGroupsNotModified"}, {"$ref": "#/components/schemas/messages.emojiGroups"}], "description": "Тип TL: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiGroups"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1955122779"}}, "/catalog/messages.getEmojiStatusGroups": {"post": {"operationId": "messages.getEmojiStatusGroups", "tags": ["Сообщения"], "summary": "Представляет список категорий смайлов, который будет использоваться при выборе пользовательских смайлов для установки в качестве пользовательского статуса смайлов.", "description": "Представляет список [категорий смайликов](https://core.telegram.org/api/emoji-categories.md), которые будут использоваться при выборе пользовательских смайлов для установки в качестве [статуса пользовательского смайлика](https://core.telegram.org/api.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)", "x-tl-method": "messages.getEmojiStatusGroups", "x-tl-id": "785209037", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.EmojiGroups`.\n\n[messages.EmojiGroups](https://core.telegram.org/type/messages.EmojiGroups.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.EmojiGroups", "oneOf": [{"$ref": "#/components/schemas/messages.emojiGroupsNotModified"}, {"$ref": "#/components/schemas/messages.emojiGroups"}], "description": "Тип TL: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiStatusGroups"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "785209037"}}, "/catalog/messages.getEmojiProfilePhotoGroups": {"post": {"operationId": "messages.getEmojiProfilePhotoGroups", "tags": ["Сообщения"], "summary": "Представляет список категорий смайлов, который будет использоваться при выборе пользовательских смайлов для установки в качестве изображения профиля.", "description": "Представляет список [категорий смайликов](https://core.telegram.org/api/emoji-categories.md), которые будут использоваться при выборе пользовательских смайлов для установки в качестве [изображения профиля](https://core.telegram.org/api/files.md#sticker-profile-pictures).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "messages.getEmojiProfilePhotoGroups", "x-tl-id": "564480243", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.EmojiGroups`.\n\n[messages.EmojiGroups](https://core.telegram.org/type/messages.EmojiGroups.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.EmojiGroups", "oneOf": [{"$ref": "#/components/schemas/messages.emojiGroupsNotModified"}, {"$ref": "#/components/schemas/messages.emojiGroups"}], "description": "Тип TL: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiProfilePhotoGroups"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "564480243"}}, "/catalog/messages.searchCustomEmoji": {"post": {"operationId": "messages.searchCustomEmoji", "tags": ["Сообщения"], "summary": "Ищите собственные смайлы, связанные с смайликом UTF8.", "description": "Найдите [пользовательские смайлы](https://core.telegram.org/api/custom-emoji.md), связанные с смайликом UTF8.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.searchCustomEmoji", "x-tl-id": "739360983", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `EmojiList`.\n\n[Список Эмодзи](https://core.telegram.org/type/EmojiList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiList", "oneOf": [{"$ref": "#/components/schemas/emojiListNotModified"}, {"$ref": "#/components/schemas/emojiList"}], "description": "Тип TL: EmojiList."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `EMOTICON_EMPTY` — Эмодзи пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.searchCustomEmoji"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["emoticon", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `emoticon` | `string` | Да | Эмодзи |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-telegram-rpc-errors": ["EMOTICON_EMPTY"], "x-browser-schema-id": "739360983"}}, "/catalog/messages.togglePeerTranslations": {"post": {"operationId": "messages.togglePeerTranslations", "tags": ["Сообщения"], "summary": "Показать или скрыть всплывающее окно перевода чата в реальном времени для определенного чата", "description": "Показать или скрыть [всплывающее окно перевода чата в реальном времени](https://core.telegram.org/api/translation.md) для определенного чата\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message translation](https://core.telegram.org/api/translation.md)", "x-tl-method": "messages.togglePeerTranslations", "x-tl-id": "3833378169", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message translation", "https://core.telegram.org/api/translation.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.togglePeerTranslations"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Отключить или включить всплывающее окно перевода чата в реальном времени."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `disabled` | `true` | Нет | Отключить или включить всплывающее окно перевода чата в реальном времени. |\n| `peer` | `InputPeer` | Да | Партнер |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3833378169"}}, "/catalog/messages.getBotApp": {"post": {"operationId": "messages.getBotApp", "tags": ["Сообщения"], "summary": "Получить информацию о мини-приложении с прямой ссылкой.", "description": "Получите информацию о [мини-приложении с прямой ссылкой](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.getBotApp", "x-tl-id": "889046467", "x-tl-result": "messages.BotApp", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.BotApp`.\n\n[messages.BotApp](https://core.telegram.org/type/messages.BotApp.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotApp", "oneOf": [{"$ref": "#/components/schemas/messages.botApp"}], "description": "Тип TL: messages.BotApp."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_APP_BOT_INVALID` — bot_id, переданный в конструкторе inputBotAppShortName, недействителен.\n- 400 · `BOT_APP_INVALID` — Указанное приложение-бот недействительно.\n- 400 · `BOT_APP_SHORTNAME_INVALID` — Указанное короткое имя приложения-бота недопустимо."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getBotApp"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"app": {"type": "object", "x-tl-type": "InputBotApp", "oneOf": [{"$ref": "#/components/schemas/inputBotAppID"}, {"$ref": "#/components/schemas/inputBotAppShortName"}], "description": "Информация о приложении-боте получена из [Прямая глубокая ссылка на мини-приложение »](https://core.telegram.org/api/links.md#direct-mini-app-links)."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["app", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `app` | `InputBotApp` | Да | Информация о приложении-боте получена из [Прямая глубокая ссылка на мини-приложение »](https://core.telegram.org/api/links.md#direct-mini-app-links). |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation) |"}, "x-telegram-rpc-errors": ["BOT_APP_BOT_INVALID", "BOT_APP_INVALID", "BOT_APP_SHORTNAME_INVALID"], "x-browser-schema-id": "889046467"}}, "/catalog/messages.requestAppWebView": {"post": {"operationId": "messages.requestAppWebView", "tags": ["Сообщения"], "summary": "Откройте мини-приложение-бот по прямой глубокой ссылке на мини-приложение, отправив информацию о пользователе после подтверждения пользователя.", "description": "Откройте [мини-приложение-бот](https://core.telegram.org/bots/webapps.md) по [прямой глубокой ссылке на мини-приложение](https://core.telegram.org/api/links.md#direct-mini-app-links)], отправив информацию о пользователе после подтверждения пользователя.\n\nПосле вызова этого метода, пока пользователь не закроет веб-просмотр, [messages.prolongWebView](https://core.telegram.org/method/messages.prolongWebView.md) необходимо вызывать каждые 60 секунд.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.requestAppWebView", "x-tl-id": "1398901710", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "Тип TL: WebViewResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_APP_BOT_INVALID` — bot_id, переданный в конструкторе inputBotAppShortName, недействителен.\n- 400 · `BOT_APP_INVALID` — Указанное приложение-бот недействительно.\n- 400 · `BOT_APP_SHORTNAME_INVALID` — Указанное короткое имя приложения-бота недопустимо.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `THEME_PARAMS_INVALID` — Указанное поле `theme_params` неверно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.requestAppWebView"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"write_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг, если бот запрашивает разрешение на отправку сообщений пользователю, как указано в документации [прямая глубокая ссылка мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links), и пользователь согласился."}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Если установлено, запрашивает открытие мини-приложения в компактном режиме (в отличие от обычного или полноэкранного режима). Должно быть установлено, если параметр `mode` [прямой глубокой ссылки мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links) равен `compact`."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "Если установлено, запрашивается открытие мини-приложения в полноэкранном режиме (в отличие от компактного или обычного режима). Должно быть установлено, если параметр `mode` [прямой глубокой ссылки мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links) равен `fullscreen`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если клиент нажал на ссылку в чате Telegram, передайте информацию об пире чата; в противном случае вместо этого передайте информацию об одноранговых узлах бота."}, "app": {"type": "object", "x-tl-type": "InputBotApp", "oneOf": [{"$ref": "#/components/schemas/inputBotAppID"}, {"$ref": "#/components/schemas/inputBotAppShortName"}], "description": "Приложение, полученное путем вызова [messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md), как указано в документации [прямая глубокая ссылка на мини-приложение](https://core.telegram.org/api/links.md#direct-mini-app-links)]."}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Если параметр строки запроса `startapp` присутствует в [прямой глубокой ссылке мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links), передайте его в `start_param`."}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.2?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания"}}, "additionalProperties": false, "required": ["peer", "app", "platform"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `write_allowed` | `true` | Нет | Установите этот флаг, если бот запрашивает разрешение на отправку сообщений пользователю, как указано в документации [прямая глубокая ссылка мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links), и пользователь согласился. |\n| `compact` | `true` | Нет | Если установлено, запрашивает открытие мини-приложения в компактном режиме (в отличие от обычного или полноэкранного режима). Должно быть установлено, если параметр `mode` [прямой глубокой ссылки мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links) равен `compact`. |\n| `fullscreen` | `true` | Нет | Если установлено, запрашивается открытие мини-приложения в полноэкранном режиме (в отличие от компактного или обычного режима). Должно быть установлено, если параметр `mode` [прямой глубокой ссылки мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links) равен `fullscreen`. |\n| `peer` | `InputPeer` | Да | Если клиент нажал на ссылку в чате Telegram, передайте информацию об пире чата; в противном случае вместо этого передайте информацию об одноранговых узлах бота. |\n| `app` | `InputBotApp` | Да | Приложение, полученное путем вызова [messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md), как указано в документации [прямая глубокая ссылка на мини-приложение](https://core.telegram.org/api/links.md#direct-mini-app-links)]. |\n| `start_param` | `string` | Нет | Если параметр строки запроса `startapp` присутствует в [прямой глубокой ссылке мини-приложения](https://core.telegram.org/api/links.md#direct-mini-app-links), передайте его в `start_param`. |\n| `theme_params` | `DataJSON` | Нет | [Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | Да | Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания |"}, "x-telegram-rpc-errors": ["BOT_APP_BOT_INVALID", "BOT_APP_INVALID", "BOT_APP_SHORTNAME_INVALID", "MSG_ID_INVALID", "THEME_PARAMS_INVALID"], "x-browser-schema-id": "1398901710"}}, "/catalog/messages.setChatWallPaper": {"post": {"operationId": "messages.setChatWallPaper", "tags": ["Сообщения"], "summary": "Установить собственные обои » в конкретном приватном чате с другим пользователем.", "description": "Установите собственные [обои»](https://core.telegram.org/api/wallpapers.md) в конкретном приватном чате с другим пользователем.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "messages.setChatWallPaper", "x-tl-id": "2415577825", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `WALLPAPER_INVALID` — Указанные обои недействительны.\n- 400 · `WALLPAPER_NOT_FOUND` — Указанные обои не найдены."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setChatWallPaper"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_both": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Только для пользователей [Премиум](https://core.telegram.org/api/premium.md), устанавливает указанные обои для обоих пользователей чата, не требуя подтверждения от другого пользователя."}, "revert": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Если нам не нравятся новые обои, которые другой пользователь чата выбрал для нас с помощью флага `for_both`, мы можем переустановить предыдущие обои только на нашей стороне, используя этот флаг."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Приватный чат, где будут установлены обои"}, "wallpaper": {"type": "object", "x-tl-type": "InputWallPaper", "oneOf": [{"$ref": "#/components/schemas/inputWallPaper"}, {"$ref": "#/components/schemas/inputWallPaperSlug"}, {"$ref": "#/components/schemas/inputWallPaperNoFile"}], "description": "[Обои »](https://core.telegram.org/api/wallpapers.md), полученные, как описано в [обоях документации »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers); не должен **отсутствовать** при установке обоев, полученных из служебного сообщения [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) (вместо этого необходимо указать `id`).", "x-tl-flag": "flags.0?InputWallPaper"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "Настройки обоев, полученные, как описано в [документации по обоям »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers) или из [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md).`wallpaper`.`settings`.", "x-tl-flag": "flags.2?WallPaperSettings"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Если обои были получены из служебного сообщения [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md)), они должны содержать идентификатор этого сообщения."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_both` | `true` | Нет | Только для пользователей [Премиум](https://core.telegram.org/api/premium.md), устанавливает указанные обои для обоих пользователей чата, не требуя подтверждения от другого пользователя. |\n| `revert` | `true` | Нет | Если нам не нравятся новые обои, которые другой пользователь чата выбрал для нас с помощью флага `for_both`, мы можем переустановить предыдущие обои только на нашей стороне, используя этот флаг. |\n| `peer` | `InputPeer` | Да | Приватный чат, где будут установлены обои |\n| `wallpaper` | `InputWallPaper` | Нет | [Обои »](https://core.telegram.org/api/wallpapers.md), полученные, как описано в [обоях документации »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers); не должен **отсутствовать** при установке обоев, полученных из служебного сообщения [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) (вместо этого необходимо указать `id`). |\n| `settings` | `WallPaperSettings` | Нет | Настройки обоев, полученные, как описано в [документации по обоям »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers) или из [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md).`wallpaper`.`settings`. |\n| `id` | `int` | Нет | Если обои были получены из служебного сообщения [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md)), они должны содержать идентификатор этого сообщения. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "WALLPAPER_INVALID", "WALLPAPER_NOT_FOUND"], "x-browser-schema-id": "2415577825"}}, "/catalog/messages.searchEmojiStickerSets": {"post": {"operationId": "messages.searchEmojiStickerSets", "tags": ["Сообщения"], "summary": "Поиск пользовательских наборов стикеров эмодзи »", "description": "Искать [пользовательские наборы стикеров с эмодзи »](https://core.telegram.org/api/custom-emoji.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.searchEmojiStickerSets", "x-tl-id": "2461288780", "x-tl-result": "messages.FoundStickerSets", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.FoundStickerSets`.\n\n[messages.FoundStickerSets](https://core.telegram.org/type/messages.FoundStickerSets.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.FoundStickerSets", "oneOf": [{"$ref": "#/components/schemas/messages.foundStickerSetsNotModified"}, {"$ref": "#/components/schemas/messages.foundStickerSets"}], "description": "Тип TL: messages.FoundStickerSets."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.searchEmojiStickerSets"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"exclude_featured": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Исключить избранные наборы стикеров из результатов"}, "q": {"type": "string", "x-tl-type": "string", "description": "Строка запроса"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["q", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `exclude_featured` | `true` | Нет | Исключить избранные наборы стикеров из результатов |\n| `q` | `string` | Да | Строка запроса |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2461288780"}}, "/catalog/messages.getSavedDialogs": {"post": {"operationId": "messages.getSavedDialogs", "tags": ["Сообщения"], "summary": "Возвращает текущий сохраненный список диалогов » или список тем монофорума ».", "description": "Возвращает текущий [список сохраненных диалогов »](https://core.telegram.org/api/saved-messages.md) или [список тем монофорума »](https://core.telegram.org/api/monoforum.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.getSavedDialogs", "x-tl-id": "512883865", "x-tl-result": "messages.SavedDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SavedDialogs`.\n\n[messages.SavedDialogs](https://core.telegram.org/type/messages.SavedDialogs.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SavedDialogs", "oneOf": [{"$ref": "#/components/schemas/messages.savedDialogs"}, {"$ref": "#/components/schemas/messages.savedDialogsSlice"}, {"$ref": "#/components/schemas/messages.savedDialogsNotModified"}], "description": "Тип TL: messages.SavedDialogs."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSavedDialogs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"exclude_pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Исключить закрепленные диалоги"}, "parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, извлекается список тем пройденного монофорума, в противном случае извлекается список сохраненных диалогов.", "x-tl-flag": "flags.1?InputPeer"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) (`top_message` ID, используемый для нумерации страниц)"}, "offset_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "[Смещение узла для нумерации страниц](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество элементов списка, которые будут возвращены"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset_date", "offset_id", "offset_peer", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `exclude_pinned` | `true` | Нет | Исключить закрепленные диалоги |\n| `parent_peer` | `InputPeer` | Нет | Если установлено, извлекается список тем пройденного монофорума, в противном случае извлекается список сохраненных диалогов. |\n| `offset_date` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) (`top_message` ID, используемый для нумерации страниц) |\n| `offset_peer` | `InputPeer` | Да | [Смещение узла для нумерации страниц](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Количество элементов списка, которые будут возвращены |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation) |"}, "x-browser-schema-id": "512883865"}}, "/catalog/messages.getSavedHistory": {"post": {"operationId": "messages.getSavedHistory", "tags": ["Сообщения"], "summary": "Получить сохраненные сообщения, пересланные от определенного узла, или получить сообщения из темы монофорума».", "description": "Получить [сохраненные сообщения »](https://core.telegram.org/api/saved-messages.md), пересланные от определенного узла, или получить сообщения из [темы монофорума »](https://core.telegram.org/api/monoforum.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.getSavedHistory", "x-tl-id": "2576003081", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PARENT_PEER_INVALID` — Указанное `parent_peer` неверно.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSavedHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, извлекаются сообщения из указанного монофорума, в противном случае — из сохраненных сообщений.", "x-tl-flag": "flags.0?InputPeer"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Целевой коллега (или тема)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращать только сообщения, начиная с указанного идентификатора сообщения."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращать только сообщения, отправленные до указанной даты."}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество элементов списка, которые необходимо пропустить. Также принимаются отрицательные значения."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество результатов для возврата"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было передано положительное значение, метод вернет только сообщения с идентификаторами меньше **max_id**"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было передано положительное значение, метод вернет только сообщения с идентификаторами больше **min_id**"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш результата](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "offset_id", "offset_date", "add_offset", "limit", "max_id", "min_id", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | Нет | Если установлено, извлекаются сообщения из указанного монофорума, в противном случае — из сохраненных сообщений. |\n| `peer` | `InputPeer` | Да | Целевой коллега (или тема) |\n| `offset_id` | `int` | Да | Возвращать только сообщения, начиная с указанного идентификатора сообщения. |\n| `offset_date` | `int` | Да | Возвращать только сообщения, отправленные до указанной даты. |\n| `add_offset` | `int` | Да | Количество элементов списка, которые необходимо пропустить. Также принимаются отрицательные значения. |\n| `limit` | `int` | Да | Количество результатов для возврата |\n| `max_id` | `int` | Да | Если было передано положительное значение, метод вернет только сообщения с идентификаторами меньше **max_id** |\n| `min_id` | `int` | Да | Если было передано положительное значение, метод вернет только сообщения с идентификаторами больше **min_id** |\n| `hash` | `long` | Да | [Хеш результата](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PARENT_PEER_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "2576003081"}}, "/catalog/messages.deleteSavedHistory": {"post": {"operationId": "messages.deleteSavedHistory", "tags": ["Сообщения"], "summary": "Удаляет сообщения из темы монофорума» или удаляет сообщения, перенаправленные от определенного узла в сохраненные сообщения».", "description": "Удаляет сообщения из [темы монофорума »](https://core.telegram.org/api/monoforum.md) или удаляет сообщения, пересланные от определенного узла в [сохраненные сообщения »](https://core.telegram.org/api/saved-messages.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.deleteSavedHistory", "x-tl-id": "1304758367", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteSavedHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, влияет на сообщения пройденной [темы монофорума »](https://core.telegram.org/api/monoforum.md), иначе влияет на [сохраненные сообщения »](https://core.telegram.org/api/saved-messages.md).", "x-tl-flag": "flags.0?InputPeer"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, чьи сообщения будут удалены из [сохранённых сообщений»](https://core.telegram.org/api/saved-messages.md), или ID темы."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальный идентификатор сообщения для удаления"}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "Удалить все сообщения новее этой временной метки UNIX."}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int", "description": "Удалить все сообщения старше этой отметки времени UNIX."}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | Нет | Если установлено, влияет на сообщения пройденной [темы монофорума »](https://core.telegram.org/api/monoforum.md), иначе влияет на [сохраненные сообщения »](https://core.telegram.org/api/saved-messages.md). |\n| `peer` | `InputPeer` | Да | Пир, чьи сообщения будут удалены из [сохранённых сообщений»](https://core.telegram.org/api/saved-messages.md), или ID темы. |\n| `max_id` | `int` | Да | Максимальный идентификатор сообщения для удаления |\n| `min_date` | `int` | Нет | Удалить все сообщения новее этой временной метки UNIX. |\n| `max_date` | `int` | Нет | Удалить все сообщения старше этой отметки времени UNIX. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1304758367"}}, "/catalog/messages.getPinnedSavedDialogs": {"post": {"operationId": "messages.getPinnedSavedDialogs", "tags": ["Сообщения"], "summary": "Закрепите сохраненные диалоги. Дополнительную информацию см. здесь ».", "description": "Закрепите [сохраненные диалоги, см. здесь »](https://core.telegram.org/api/saved-messages.md) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.getPinnedSavedDialogs", "x-tl-id": "3594360032", "x-tl-result": "messages.SavedDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SavedDialogs`.\n\n[messages.SavedDialogs](https://core.telegram.org/type/messages.SavedDialogs.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SavedDialogs", "oneOf": [{"$ref": "#/components/schemas/messages.savedDialogs"}, {"$ref": "#/components/schemas/messages.savedDialogsSlice"}, {"$ref": "#/components/schemas/messages.savedDialogsNotModified"}], "description": "Тип TL: messages.SavedDialogs."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPinnedSavedDialogs"}, "x-browser-schema-id": "3594360032"}}, "/catalog/messages.toggleSavedDialogPin": {"post": {"operationId": "messages.toggleSavedDialogPin", "tags": ["Сообщения"], "summary": "Закрепить или открепить диалоговое окно сохраненного сообщения ».", "description": "Закрепите или открепите [диалоговое окно сохраненного сообщения »](https://core.telegram.org/api/saved-messages.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.toggleSavedDialogPin", "x-tl-id": "2894183390", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleSavedDialogPin"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Закрепить или открепить диалоговое окно"}, "peer": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "Диалог, который нужно закрепить"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `pinned` | `true` | Нет | Закрепить или открепить диалоговое окно |\n| `peer` | `InputDialogPeer` | Да | Диалог, который нужно закрепить |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2894183390"}}, "/catalog/messages.reorderPinnedSavedDialogs": {"post": {"operationId": "messages.reorderPinnedSavedDialogs", "tags": ["Сообщения"], "summary": "Изменение порядка диалоговых окон закрепленных сохраненных сообщений».", "description": "Изменить порядок закрепленных [диалогов сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.reorderPinnedSavedDialogs", "x-tl-id": "2339464583", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reorderPinnedSavedDialogs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если этот параметр установлен, диалоги, закрепленные на стороне сервера, но не присутствующие в поле `order`, будут откреплены."}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "Тип TL: InputDialogPeer."}, "x-tl-type": "Vector<InputDialogPeer>", "description": "Новый порядок диалогов"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `force` | `true` | Нет | Если этот параметр установлен, диалоги, закрепленные на стороне сервера, но не присутствующие в поле `order`, будут откреплены. |\n| `order` | `Vector<InputDialogPeer>` | Да | Новый порядок диалогов |"}, "x-browser-schema-id": "2339464583"}}, "/catalog/messages.getSavedReactionTags": {"post": {"operationId": "messages.getSavedReactionTags", "tags": ["Сообщения"], "summary": "Получить полный список сохраненных тегов сообщений, созданных пользователем.", "description": "Получите полный список [тегов сохраненных сообщений](https://core.telegram.org/api/saved-messages.md#tags), созданных пользователем.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSavedReactionTags", "x-tl-id": "909631579", "x-tl-result": "messages.SavedReactionTags", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SavedReactionTags`.\n\n[messages.SavedReactionTags](https://core.telegram.org/type/messages.SavedReactionTags.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SavedReactionTags", "oneOf": [{"$ref": "#/components/schemas/messages.savedReactionTagsNotModified"}, {"$ref": "#/components/schemas/messages.savedReactionTags"}], "description": "Тип TL: messages.SavedReactionTags."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSavedReactionTags"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, возвращаются теги, используемые только в указанном [диалоге сохраненного сообщения](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs).", "x-tl-flag": "flags.0?InputPeer"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Нет | Если установлено, возвращаются теги, используемые только в указанном [диалоге сохраненного сообщения](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs). |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "909631579"}}, "/catalog/messages.updateSavedReactionTag": {"post": {"operationId": "messages.updateSavedReactionTag", "tags": ["Сообщения"], "summary": "Обновить описание тега сохраненного сообщения».", "description": "Обновите [описание тега сохраненного сообщения »](https://core.telegram.org/api/saved-messages.md#tags).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.updateSavedReactionTag", "x-tl-id": "1613331948", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 400 · `REACTION_INVALID` — Указанная реакция недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.updateSavedReactionTag"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"reaction": {"type": "object", "x-tl-type": "Reaction", "oneOf": [{"$ref": "#/components/schemas/reactionEmpty"}, {"$ref": "#/components/schemas/reactionEmoji"}, {"$ref": "#/components/schemas/reactionCustomEmoji"}, {"$ref": "#/components/schemas/reactionPaid"}], "description": "[Реакция](https://core.telegram.org/api/reactions.md), связанная с тегом"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Описание тега, максимум 12 UTF-8 символов; чтобы удалить описание, вызовите метод без установки этого флага."}}, "additionalProperties": false, "required": ["reaction"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `reaction` | `Reaction` | Да | [Реакция](https://core.telegram.org/api/reactions.md), связанная с тегом |\n| `title` | `string` | Нет | Описание тега, максимум 12 UTF-8 символов; чтобы удалить описание, вызовите метод без установки этого флага. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED", "REACTION_INVALID"], "x-browser-schema-id": "1613331948"}}, "/catalog/messages.getDefaultTagReactions": {"post": {"operationId": "messages.getDefaultTagReactions", "tags": ["Сообщения"], "summary": "Получите рекомендуемый по умолчанию список сохраненных реакций на теги сообщений.", "description": "Получить рекомендуемый по умолчанию список [реакций на теги сохраненных сообщений](https://core.telegram.org/api/saved-messages.md#tags).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.getDefaultTagReactions", "x-tl-id": "3187225640", "x-tl-result": "messages.Reactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Reactions`.\n\n[messages.Reactions](https://core.telegram.org/type/messages.Reactions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Reactions", "oneOf": [{"$ref": "#/components/schemas/messages.reactionsNotModified"}, {"$ref": "#/components/schemas/messages.reactions"}], "description": "Тип TL: messages.Reactions."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getDefaultTagReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3187225640"}}, "/catalog/messages.getOutboxReadDate": {"post": {"operationId": "messages.getOutboxReadDate", "tags": ["Сообщения"], "summary": "Получите точную дату прочтения одного из наших сообщений, отправленного в приватный чат с другим пользователем.", "description": "Получите точную дату прочтения одного из наших сообщений, отправленного в приватный чат с другим пользователем.\n\nЭто можно сделать только для личных исходящих сообщений не старше [appConfig.pm\\_read\\_date\\_expire\\_ period »](https://core.telegram.org/api/config.md#pm-read-date-expire-period).\n\nЕсли установлен флаг [userFull](https://core.telegram.org/constructor/userFull.md).`read_dates_private` для `peer`, мы не сможем получить точную дату чтения сообщений, которые мы отправляем им, и будет выдана ошибка `USER_PRIVACY_RESTRICTED` RPC.\nТочная дата прочтения сообщений может быть недоступна по другим причинам. Дополнительную информацию см. [здесь »](https://core.telegram.org/constructor/globalPrivacySettings.md).\nЧтобы установить [userFull](https://core.telegram.org/constructor/userFull.md).`read_dates_private` для себя, вызовите [account.setGlobalPrivacySettings](https://core.telegram.org/method/account.setGlobalPrivacySettings.md), установив флаг `settings.hide_read_marks`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "messages.getOutboxReadDate", "x-tl-id": "2353790557", "x-tl-result": "OutboxReadDate", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "Результат MTProto · `OutboxReadDate`.\n\n[OutboxReadDate](https://core.telegram.org/type/OutboxReadDate.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "OutboxReadDate", "oneOf": [{"$ref": "#/components/schemas/outboxReadDate"}], "description": "Тип TL: OutboxReadDate."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MESSAGE_NOT_READ_YET` — Указанное сообщение еще не прочитано.\n- 400 · `MESSAGE_TOO_OLD` — Сообщение слишком старое, запрошенная информация недоступна.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `USER_PRIVACY_RESTRICTED` — Настройки приватности пользователя не позволяют это сделать.\n- 403 · `YOUR_PRIVACY_RESTRICTED` — Вы не можете получить дату прочтения этого сообщения, поскольку вы запретили другим пользователям делать это для *ваших* сообщений; Чтобы исправить это, разрешите другим пользователям видеть *вашу* точную дату последнего онлайн-соединения ИЛИ приобретите подписку [Telegram Premium](https://core.telegram.org/api/premium.md)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getOutboxReadDate"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пользователь, которому мы отправили сообщение."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пользователь, которому мы отправили сообщение. |\n| `msg_id` | `int` | Да | Идентификатор сообщения. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "MESSAGE_NOT_READ_YET", "MESSAGE_TOO_OLD", "PEER_ID_INVALID", "USER_PRIVACY_RESTRICTED", "YOUR_PRIVACY_RESTRICTED"], "x-browser-schema-id": "2353790557"}}, "/catalog/messages.getQuickReplies": {"post": {"operationId": "messages.getQuickReplies", "tags": ["Сообщения"], "summary": "Получите основную информацию обо всех существующих ярлыках быстрого ответа.", "description": "Получите основную информацию обо всех существующих [ярлыках быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.getQuickReplies", "x-tl-id": "3565417128", "x-tl-result": "messages.QuickReplies", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.QuickReplies`.\n\n[messages.QuickReplies](https://core.telegram.org/type/messages.QuickReplies.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.QuickReplies", "oneOf": [{"$ref": "#/components/schemas/messages.quickReplies"}, {"$ref": "#/components/schemas/messages.quickRepliesNotModified"}], "description": "Тип TL: messages.QuickReplies."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getQuickReplies"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш для нумерации страниц, сгенерированный, как указано [здесь »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (это не обычный алгоритм, используемый для генерации хэша).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | Хэш для нумерации страниц, сгенерированный, как указано [здесь »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (это не обычный алгоритм, используемый для генерации хэша). |"}, "x-browser-schema-id": "3565417128"}}, "/catalog/messages.reorderQuickReplies": {"post": {"operationId": "messages.reorderQuickReplies", "tags": ["Сообщения"], "summary": "Измените порядок ярлыков быстрого ответа.", "description": "Изменить порядок [ярлыки быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\nЭто приведет к обновлению [updateQuickReplies](https://core.telegram.org/constructor/updateQuickReplies.md) для других сеансов, вошедших в систему.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.reorderQuickReplies", "x-tl-id": "1613961479", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reorderQuickReplies"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы всех созданных [ярлыков быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts), в желаемом порядке."}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `order` | `Vector<int>` | Да | Идентификаторы всех созданных [ярлыков быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts), в желаемом порядке. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "1613961479"}}, "/catalog/messages.checkQuickReplyShortcut": {"post": {"operationId": "messages.checkQuickReplyShortcut", "tags": ["Сообщения"], "summary": "Прежде чем предлагать пользователю возможность добавить сообщение в ярлык быстрого ответа, убедитесь, что ни один из указанных здесь ограничений не достигнут.", "description": "Прежде чем предложить пользователю возможность добавить сообщение в [ярлык быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts), убедитесь, что ни один из ограничений, указанных [здесь »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), не достигнут.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.checkQuickReplyShortcut", "x-tl-id": "4057005011", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.checkQuickReplyShortcut"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"shortcut": {"type": "string", "x-tl-type": "string", "description": "Ярлык имени (не идентификатор!)."}}, "additionalProperties": false, "required": ["shortcut"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `shortcut` | `string` | Да | Ярлык имени (не идентификатор!). |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "4057005011"}}, "/catalog/messages.editQuickReplyShortcut": {"post": {"operationId": "messages.editQuickReplyShortcut", "tags": ["Сообщения"], "summary": "Переименуйте ярлык быстрого ответа.", "description": "Переименуйте [ярлык быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\nЭто приведет к обновлению [updateQuickReplies](https://core.telegram.org/constructor/updateQuickReplies.md) для других сеансов, вошедших в систему.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.editQuickReplyShortcut", "x-tl-id": "1543519471", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 400 · `SHORTCUT_INVALID` — Указанный ярлык недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editQuickReplyShortcut"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор ярлыка](https://core.telegram.org/api/business.md#quick-reply-shortcuts)."}, "shortcut": {"type": "string", "x-tl-type": "string", "description": "Новое имя ярлыка."}}, "additionalProperties": false, "required": ["shortcut_id", "shortcut"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | Да | [Идентификатор ярлыка](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `shortcut` | `string` | Да | Новое имя ярлыка. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED", "SHORTCUT_INVALID"], "x-browser-schema-id": "1543519471"}}, "/catalog/messages.deleteQuickReplyShortcut": {"post": {"operationId": "messages.deleteQuickReplyShortcut", "tags": ["Сообщения"], "summary": "Полностью удалите ярлык быстрого ответа.", "description": "Полностью удалите [ярлык быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\nПри этом также будет отправлено обновление [updateDeleteQuickReply](https://core.telegram.org/constructor/updateDeleteQuickReply.md) для других сеансов, вошедших в систему (и *нет* обновлений [updateDeleteQuickReplyMessages](https://core.telegram.org/constructor/updateDeleteQuickReplyMessages.md), даже если все сообщения в ярлыках также будут удалены этим методом).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.deleteQuickReplyShortcut", "x-tl-id": "1019234112", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SHORTCUT_INVALID` — Указанный ярлык недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteQuickReplyShortcut"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор ярлыка](https://core.telegram.org/api/business.md#quick-reply-shortcuts)"}}, "additionalProperties": false, "required": ["shortcut_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | Да | [Идентификатор ярлыка](https://core.telegram.org/api/business.md#quick-reply-shortcuts) |"}, "x-telegram-rpc-errors": ["SHORTCUT_INVALID"], "x-browser-schema-id": "1019234112"}}, "/catalog/messages.getQuickReplyMessages": {"post": {"operationId": "messages.getQuickReplyMessages", "tags": ["Сообщения"], "summary": "Получить (подмножество или все) сообщения с помощью ярлыка быстрого ответа ».", "description": "Получить (подмножество или все) сообщения с помощью [ярлыка быстрого ответа»](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.getQuickReplyMessages", "x-tl-id": "2493814211", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SHORTCUT_INVALID` — Указанный ярлык недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getQuickReplyMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор быстрого ответа."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>", "description": "Идентификаторы сообщений, которые нужно получить. Если пусто, будут извлечены все сообщения."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш для нумерации страниц, сгенерированный, как указано [здесь »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (не обычный алгоритм, используемый для генерации хеша).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["shortcut_id", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | Да | Идентификатор быстрого ответа. |\n| `id` | `Vector<int>` | Нет | Идентификаторы сообщений, которые нужно получить. Если пусто, будут извлечены все сообщения. |\n| `hash` | `long` | Да | Хэш для нумерации страниц, сгенерированный, как указано [здесь »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (не обычный алгоритм, используемый для генерации хеша). |"}, "x-telegram-rpc-errors": ["SHORTCUT_INVALID"], "x-browser-schema-id": "2493814211"}}, "/catalog/messages.sendQuickReplyMessages": {"post": {"operationId": "messages.sendQuickReplyMessages", "tags": ["Сообщения"], "summary": "Отправить быстрый ответ ».", "description": "Отправьте [быстрый ответ»](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.sendQuickReplyMessages", "x-tl-id": "1819610593", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendQuickReplyMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда отправить ярлык (пока только для пользователей)."}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор ярлыка быстрого ответа для отправки."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Укажите подмножество сообщений из ярлыка для отправки; если пусто, по умолчанию используются все из них."}, "random_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Уникальные идентификаторы клиентов, необходимые для предотвращения повторной отправки сообщений, по одному для каждого отправляемого нами сообщения, могут быть пустыми (но не рекомендуется). См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}}, "additionalProperties": false, "required": ["peer", "shortcut_id", "id", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, куда отправить ярлык (пока только для пользователей). |\n| `shortcut_id` | `int` | Да | Идентификатор ярлыка быстрого ответа для отправки. |\n| `id` | `Vector<int>` | Да | Укажите подмножество сообщений из ярлыка для отправки; если пусто, по умолчанию используются все из них. |\n| `random_id` | `Vector<long>` | Да | Уникальные идентификаторы клиентов, необходимые для предотвращения повторной отправки сообщений, по одному для каждого отправляемого нами сообщения, могут быть пустыми (но не рекомендуется). См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "1819610593"}}, "/catalog/messages.deleteQuickReplyMessages": {"post": {"operationId": "messages.deleteQuickReplyMessages", "tags": ["Сообщения"], "summary": "Удалите одно или несколько сообщений из ярлыка быстрого ответа. Это также создаст обновление updateDeleteQuickReplyMessages.", "description": "Удалите одно или несколько сообщений из [ярлыка быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts). Это также выдаст обновление [updateDeleteQuickReplyMessages](https://core.telegram.org/constructor/updateDeleteQuickReplyMessages.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.deleteQuickReplyMessages", "x-tl-id": "3775260944", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SHORTCUT_INVALID` — Указанный ярлык недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteQuickReplyMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор ярлыка](https://core.telegram.org/api/business.md#quick-reply-shortcuts)."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы ярлыков сообщений, которые нужно удалить."}}, "additionalProperties": false, "required": ["shortcut_id", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | Да | [Идентификатор ярлыка](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `id` | `Vector<int>` | Да | Идентификаторы ярлыков сообщений, которые нужно удалить. |"}, "x-telegram-rpc-errors": ["SHORTCUT_INVALID"], "x-browser-schema-id": "3775260944"}}, "/catalog/messages.toggleDialogFilterTags": {"post": {"operationId": "messages.toggleDialogFilterTags", "tags": ["Сообщения"], "summary": "Включить или отключить теги папок».", "description": "Включите или отключите [теги папок »](https://core.telegram.org/api/folders.md#folder-tags).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.toggleDialogFilterTags", "x-tl-id": "4247640649", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleDialogFilterTags"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Включите или отключите теги папок."}}, "additionalProperties": false, "required": ["enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `enabled` | `Bool` | Да | Включите или отключите теги папок. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "4247640649"}}, "/catalog/messages.getMyStickers": {"post": {"operationId": "messages.getMyStickers", "tags": ["Сообщения"], "summary": "Получить все наборы наклеек » принадлежащие текущему пользователю.", "description": "Получить все [наборы наклеек »](https://core.telegram.org/api/stickers.md), принадлежащие текущему пользователю.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)", "x-tl-method": "messages.getMyStickers", "x-tl-id": "3501580796", "x-tl-result": "messages.MyStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Stickers and masks", "https://core.telegram.org/api/stickers.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.MyStickers`.\n\n[messages.MyStickers](https://core.telegram.org/type/messages.MyStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.MyStickers", "oneOf": [{"$ref": "#/components/schemas/messages.myStickers"}], "description": "Тип TL: messages.MyStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getMyStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offset_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offset_id` | `long` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "3501580796"}}, "/catalog/messages.getEmojiStickerGroups": {"post": {"operationId": "messages.getEmojiStickerGroups", "tags": ["Сообщения"], "summary": "Представляет список категорий эмодзи, которые будут использоваться при выборе стикера.", "description": "Представляет список [категорий эмодзи](https://core.telegram.org/api/emoji-categories.md), которые будут использоваться при выборе стикера.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)", "x-tl-method": "messages.getEmojiStickerGroups", "x-tl-id": "500711669", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.EmojiGroups`.\n\n[messages.EmojiGroups](https://core.telegram.org/type/messages.EmojiGroups.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.EmojiGroups", "oneOf": [{"$ref": "#/components/schemas/messages.emojiGroupsNotModified"}, {"$ref": "#/components/schemas/messages.emojiGroups"}], "description": "Тип TL: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiStickerGroups"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "500711669"}}, "/catalog/messages.getAvailableEffects": {"post": {"operationId": "messages.getAvailableEffects", "tags": ["Сообщения"], "summary": "Получите полный список полезных эффектов анимированных сообщений».", "description": "Получите полный список доступных для использования [эффектов анимированных сообщений»](https://core.telegram.org/api/effects.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)", "x-tl-method": "messages.getAvailableEffects", "x-tl-id": "3735161401", "x-tl-result": "messages.AvailableEffects", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AvailableEffects`.\n\n[messages.AvailableEffects](https://core.telegram.org/type/messages.AvailableEffects.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AvailableEffects", "oneOf": [{"$ref": "#/components/schemas/messages.availableEffectsNotModified"}, {"$ref": "#/components/schemas/messages.availableEffects"}], "description": "Тип TL: messages.AvailableEffects."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getAvailableEffects"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3735161401"}}, "/catalog/messages.editFactCheck": {"post": {"operationId": "messages.editFactCheck", "tags": ["Сообщения"], "summary": "Отредактируйте/создайте проверку фактов сообщения.", "description": "Отредактируйте/создайте [проверку фактов](https://core.telegram.org/api/factcheck.md) в сообщении.\n\nМожет использоваться только независимыми проверяющими факты, как указано в конфигурационном флаге [appConfig.can\\_edit\\_factcheck](https://core.telegram.org/api/config.md#can-edit-factcheck).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Fact checks](https://core.telegram.org/api/factcheck.md)", "x-tl-method": "messages.editFactCheck", "x-tl-id": "92925557", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Fact checks", "https://core.telegram.org/api/factcheck.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `CHAT_ACTION_FORBIDDEN` — Вы не можете выполнить это действие.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editFactCheck"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда было отправлено сообщение"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Проверка фактов (максимальная длина UTF-8 указана в [appConfig.factcheck_length_limit](https://core.telegram.org/api/config.md#factcheck-length-limit))."}}, "additionalProperties": false, "required": ["peer", "msg_id", "text"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, куда было отправлено сообщение |\n| `msg_id` | `int` | Да | Идентификатор сообщения |\n| `text` | `TextWithEntities` | Да | Проверка фактов (максимальная длина UTF-8 указана в [appConfig.factcheck_length_limit](https://core.telegram.org/api/config.md#factcheck-length-limit)). |"}, "x-telegram-rpc-errors": ["CHAT_ACTION_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "92925557"}}, "/catalog/messages.deleteFactCheck": {"post": {"operationId": "messages.deleteFactCheck", "tags": ["Сообщения"], "summary": "Удалить проверку фактов из сообщения.", "description": "Удалите [проверку фактов](https://core.telegram.org/api/factcheck.md) из сообщения.\n\nМожет использоваться только независимыми проверяющими факты, как указано в конфигурационном флаге [appConfig.can\\_edit\\_factcheck](https://core.telegram.org/api/config.md#can-edit-factcheck).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Fact checks](https://core.telegram.org/api/factcheck.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.deleteFactCheck", "x-tl-id": "3520762892", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Fact checks", "https://core.telegram.org/api/factcheck.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `CHAT_ACTION_FORBIDDEN` — Вы не можете выполнить это действие.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteFactCheck"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда было отправлено сообщение."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, куда было отправлено сообщение. |\n| `msg_id` | `int` | Да | Идентификатор сообщения |"}, "x-telegram-rpc-errors": ["CHAT_ACTION_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "3520762892"}}, "/catalog/messages.getFactCheck": {"post": {"operationId": "messages.getFactCheck", "tags": ["Сообщения"], "summary": "Получите одну или несколько проверок фактов. Полный текст см. здесь ».", "description": "Получите одну или несколько [проверок фактов, см. здесь »](https://core.telegram.org/api/factcheck.md) для получения полной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Fact checks](https://core.telegram.org/api/factcheck.md)", "x-tl-method": "messages.getFactCheck", "x-tl-id": "3117270510", "x-tl-result": "Vector<FactCheck>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Fact checks", "https://core.telegram.org/api/factcheck.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<FactCheck>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Проверка фактов](https://core.telegram.org/type/FactCheck.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FactCheck", "oneOf": [{"$ref": "#/components/schemas/factCheck"}], "description": "Тип TL: FactCheck."}, "x-tl-type": "Vector<FactCheck>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getFactCheck"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда были отправлены сообщения."}, "msg_id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Сообщения, которые связали конструкторы [factCheck](https://core.telegram.org/constructor/factCheck.md) с установленным флагом `need_check`."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, куда были отправлены сообщения. |\n| `msg_id` | `Vector<int>` | Да | Сообщения, которые связали конструкторы [factCheck](https://core.telegram.org/constructor/factCheck.md) с установленным флагом `need_check`. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3117270510"}}, "/catalog/messages.requestMainWebView": {"post": {"operationId": "messages.requestMainWebView", "tags": ["Сообщения"], "summary": "Откройте главное мини-приложение.", "description": "Откройте [Основное мини-приложение](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.requestMainWebView", "x-tl-id": "3386908283", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "Тип TL: WebViewResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.requestMainWebView"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Если установлено, запрашивает открытие мини-приложения в компактном режиме (в отличие от обычного или полноэкранного режима). Должно быть установлено, если параметр `mode` [ссылки на главное мини-приложение](https://core.telegram.org/api/links.md#main-mini-app-links) равен `compact`."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "Если установлено, запрашивается открытие мини-приложения в полноэкранном режиме (в отличие от компактного или обычного режима). Должно быть установлено, если параметр `mode` [ссылки на главное мини-приложение](https://core.telegram.org/api/links.md#main-mini-app-links) равен `fullscreen`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Открытый в данный момент чат, может быть [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md), если в данный момент ни один чат не открыт."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, владеющий основным мини-приложением."}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Параметр запуска при открытии из [ссылки на главное мини-приложение »](https://core.telegram.org/api/links.md#main-mini-app-links)."}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.0?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания"}}, "additionalProperties": false, "required": ["peer", "bot", "platform"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `compact` | `true` | Нет | Если установлено, запрашивает открытие мини-приложения в компактном режиме (в отличие от обычного или полноэкранного режима). Должно быть установлено, если параметр `mode` [ссылки на главное мини-приложение](https://core.telegram.org/api/links.md#main-mini-app-links) равен `compact`. |\n| `fullscreen` | `true` | Нет | Если установлено, запрашивается открытие мини-приложения в полноэкранном режиме (в отличие от компактного или обычного режима). Должно быть установлено, если параметр `mode` [ссылки на главное мини-приложение](https://core.telegram.org/api/links.md#main-mini-app-links) равен `fullscreen`. |\n| `peer` | `InputPeer` | Да | Открытый в данный момент чат, может быть [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md), если в данный момент ни один чат не открыт. |\n| `bot` | `InputUser` | Да | Бот, владеющий основным мини-приложением. |\n| `start_param` | `string` | Нет | Параметр запуска при открытии из [ссылки на главное мини-приложение »](https://core.telegram.org/api/links.md#main-mini-app-links). |\n| `theme_params` | `DataJSON` | Нет | [Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | Да | Краткое название приложения; 0–64 английских букв, цифр и знаков подчеркивания |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "3386908283"}}, "/catalog/messages.sendPaidReaction": {"post": {"operationId": "messages.sendPaidReaction", "tags": ["Сообщения"], "summary": "Отправляет одну или несколько платных реакций Telegram Star», переводя Telegram Stars на баланс канала.", "description": "Отправляет одну или несколько [платных реакций Telegram Star»](https://core.telegram.org/api/reactions.md#paid-reactions), переводя [Telegram Stars »](https://core.telegram.org/api/stars.md) на баланс канала.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.sendPaidReaction", "x-tl-id": "1488702288", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BALANCE_TOO_LOW` — Транзакция не может быть завершена, поскольку текущий баланс [Telegram Stars](https://core.telegram.org/api/stars.md) слишком низкий.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `RANDOM_ID_EMPTY` — Случайный идентификатор пуст.\n- 400 · `RANDOM_ID_EXPIRED` — Срок действия указанного `random_id` истек (скорее всего, он не соответствует требуемому формату `uint64_t random_id = (time() << 32) | ((uint64_t)random_uint32_t())` или указанное время слишком далеко в прошлом).\n- 400 · `REACTIONS_COUNT_INVALID` — Указанное количество реакций неверно.\n- 400 · `SEND_AS_PEER_INVALID` — Вы не можете отправлять сообщения от имени указанного узла."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.sendPaidReaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Сообщение, на которое нужно отреагировать"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество [звездочек](https://core.telegram.org/api/stars.md) для отправки (каждая из них увеличит счетчик реакции на единицу)."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. **Примечание**: этот аргумент **должен** состоять из 64-битного целого числа, где младшие 32 бита являются случайными, а старшие 32 бита **равны текущему времени unixtime**, i.e. `uint64_t random_id = (time() << 32). См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "private": {"type": "object", "x-tl-type": "PaidReactionPrivacy", "oneOf": [{"$ref": "#/components/schemas/paidReactionPrivacyDefault"}, {"$ref": "#/components/schemas/paidReactionPrivacyAnonymous"}, {"$ref": "#/components/schemas/paidReactionPrivacyPeer"}], "description": "У каждого поста со звездными реакциями есть таблица лидеров с лучшими отправителями, но пользователи могут отказаться от появления там, если они предпочитают большую конфиденциальность. Если это поле не будет заполнено, будет использоваться конфиденциальность реакции по умолчанию, которая хранится на сервере и синхронизируется с клиентами с помощью [updatePaidReactionPrivacy](https://core.telegram.org/constructor/updatePaidReactionPrivacy.md) (дополнительную информацию см. здесь](https://core.telegram.org/api/reactions.md#paid-reaction-privacy)).", "x-tl-flag": "flags.0?PaidReactionPrivacy"}}, "additionalProperties": false, "required": ["peer", "msg_id", "count", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Канал |\n| `msg_id` | `int` | Да | Сообщение, на которое нужно отреагировать |\n| `count` | `int` | Да | Количество [звездочек](https://core.telegram.org/api/stars.md) для отправки (каждая из них увеличит счетчик реакции на единицу). |\n| `random_id` | `long` | Да | Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. **Примечание**: этот аргумент **должен** состоять из 64-битного целого числа, где младшие 32 бита являются случайными, а старшие 32 бита **равны текущему времени unixtime**, i.e. `uint64_t random_id = (time() << 32). См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `private` | `PaidReactionPrivacy` | Нет | У каждого поста со звездными реакциями есть таблица лидеров с лучшими отправителями, но пользователи могут отказаться от появления там, если они предпочитают большую конфиденциальность. Если это поле не будет заполнено, будет использоваться конфиденциальность реакции по умолчанию, которая хранится на сервере и синхронизируется с клиентами с помощью [updatePaidReactionPrivacy](https://core.telegram.org/constructor/updatePaidReactionPrivacy.md) (дополнительную информацию см. здесь](https://core.telegram.org/api/reactions.md#paid-reaction-privacy)). |"}, "x-telegram-rpc-errors": ["BALANCE_TOO_LOW", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_WRITE_FORBIDDEN", "MESSAGE_ID_INVALID", "PEER_ID_INVALID", "RANDOM_ID_EMPTY", "RANDOM_ID_EXPIRED", "REACTIONS_COUNT_INVALID", "SEND_AS_PEER_INVALID"], "x-browser-schema-id": "1488702288"}}, "/catalog/messages.togglePaidReactionPrivacy": {"post": {"operationId": "messages.togglePaidReactionPrivacy", "tags": ["Сообщения"], "summary": "Изменяет конфиденциальность уже отправленных платных реакций на конкретное сообщение.", "description": "Изменяет конфиденциальность уже отправленных [платных реакций](https://core.telegram.org/api/reactions.md#paid-reactions) на конкретное сообщение.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.togglePaidReactionPrivacy", "x-tl-id": "1129874869", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `REACTION_EMPTY` — Указана пустая реакция."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.togglePaidReactionPrivacy"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, на которое мы отправили платные реакции"}, "private": {"type": "object", "x-tl-type": "PaidReactionPrivacy", "oneOf": [{"$ref": "#/components/schemas/paidReactionPrivacyDefault"}, {"$ref": "#/components/schemas/paidReactionPrivacyAnonymous"}, {"$ref": "#/components/schemas/paidReactionPrivacyPeer"}], "description": "Если это правда, то текущее анонимное сообщение становится анонимным в таблице лидеров лучших отправителей для этого сообщения; в противном случае происходит обратное."}}, "additionalProperties": false, "required": ["peer", "msg_id", "private"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Канал |\n| `msg_id` | `int` | Да | Идентификатор сообщения, на которое мы отправили платные реакции |\n| `private` | `PaidReactionPrivacy` | Да | Если это правда, то текущее анонимное сообщение становится анонимным в таблице лидеров лучших отправителей для этого сообщения; в противном случае происходит обратное. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "REACTION_EMPTY"], "x-browser-schema-id": "1129874869"}}, "/catalog/messages.getPaidReactionPrivacy": {"post": {"operationId": "messages.getPaidReactionPrivacy", "tags": ["Сообщения"], "summary": "Получает обновление updatePaidReactionPrivacy с текущей конфиденциальностью платных реакций по умолчанию. Дополнительные сведения см. здесь ».", "description": "Получает [updatePaidReactionPrivacy](https://core.telegram.org/constructor/updatePaidReactionPrivacy.md) обновление с текущей [конфиденциальностью платных реакций по умолчанию, дополнительную информацию см. здесь »](https://core.telegram.org/api/reactions.md#paid-reactions).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getPaidReactionPrivacy", "x-tl-id": "1193563562", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPaidReactionPrivacy"}, "x-browser-schema-id": "1193563562"}}, "/catalog/messages.viewSponsoredMessage": {"post": {"operationId": "messages.viewSponsoredMessage", "tags": ["Сообщения"], "summary": "Отметить конкретное рекламное сообщение » как прочитанное", "description": "Отметить конкретное [спонсорское сообщение »](https://core.telegram.org/api/sponsored-messages.md) как прочитанное\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.viewSponsoredMessage", "x-tl-id": "647902787", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.viewSponsoredMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Уникальный идентификатор объявления. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `random_id` | `bytes` | Да | Уникальный идентификатор объявления. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |"}, "x-browser-schema-id": "647902787"}}, "/catalog/messages.clickSponsoredMessage": {"post": {"operationId": "messages.clickSponsoredMessage", "tags": ["Сообщения"], "summary": "Сообщает серверу, что пользователь взаимодействовал со спонсируемым сообщением одним из перечисленных здесь способов».", "description": "Сообщает серверу, что пользователь взаимодействовал со спонсируемым сообщением [одним из способов, перечисленных здесь»](https://core.telegram.org/api/sponsored-messages.md#clicking-on-sponsored-messages).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.clickSponsoredMessage", "x-tl-id": "2184512894", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.clickSponsoredMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Пользователь нажал на медиа"}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Пользователь развернул видео на весь экран, а затем кликнул по нему."}, "random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Уникальный идентификатор объявления. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `media` | `true` | Нет | Пользователь нажал на медиа |\n| `fullscreen` | `true` | Нет | Пользователь развернул видео на весь экран, а затем кликнул по нему. |\n| `random_id` | `bytes` | Да | Уникальный идентификатор объявления. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |"}, "x-browser-schema-id": "2184512894"}}, "/catalog/messages.reportSponsoredMessage": {"post": {"operationId": "messages.reportSponsoredMessage", "tags": ["Сообщения"], "summary": "Сообщить о спонсируемом сообщении», см. здесь » для получения дополнительной информации о полном потоке.", "description": "Сообщите о [спонсируемом сообщении»](https://core.telegram.org/api/sponsored-messages.md), см. [здесь »](https://core.telegram.org/api/sponsored-messages.md#reporting-sponsored-messages) дополнительную информацию о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.reportSponsoredMessage", "x-tl-id": "315355332", "x-tl-result": "channels.SponsoredMessageReportResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `channels.SponsoredMessageReportResult`.\n\n[channels.SponsoredMessageReportResult](https://core.telegram.org/type/channels.SponsoredMessageReportResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "channels.SponsoredMessageReportResult", "oneOf": [{"$ref": "#/components/schemas/channels.sponsoredMessageReportResultChooseOption"}, {"$ref": "#/components/schemas/channels.sponsoredMessageReportResultAdsHidden"}, {"$ref": "#/components/schemas/channels.sponsoredMessageReportResultReported"}], "description": "Тип TL: channels.SponsoredMessageReportResult."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reportSponsoredMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Уникальный идентификатор объявления. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Выбранный вариант отчета, изначально пустая строка, см. [здесь »](https://core.telegram.org/api/sponsored-messages.md#reporting-sponsored-messages) дополнительную информацию о полном потоке."}}, "additionalProperties": false, "required": ["random_id", "option"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `random_id` | `bytes` | Да | Уникальный идентификатор объявления. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `option` | `bytes` | Да | Выбранный вариант отчета, изначально пустая строка, см. [здесь »](https://core.telegram.org/api/sponsored-messages.md#reporting-sponsored-messages) дополнительную информацию о полном потоке. |"}, "x-browser-schema-id": "315355332"}}, "/catalog/messages.getSponsoredMessages": {"post": {"operationId": "messages.getSponsoredMessages", "tags": ["Сообщения"], "summary": "Получите список спонсируемых сообщений для партнера. Дополнительную информацию см. здесь ».", "description": "Получите список [спонсируемых сообщений для партнера, см. здесь »](https://core.telegram.org/api/sponsored-messages.md) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.getSponsoredMessages", "x-tl-id": "1030547536", "x-tl-result": "messages.SponsoredMessages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SponsoredMessages`.\n\n[messages.SponsoredMessages](https://core.telegram.org/type/messages.SponsoredMessages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SponsoredMessages", "oneOf": [{"$ref": "#/components/schemas/messages.sponsoredMessages"}, {"$ref": "#/components/schemas/messages.sponsoredMessagesEmpty"}], "description": "Тип TL: messages.SponsoredMessages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSponsoredMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Открытый в данный момент канал/бот."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Должен быть установлен при получении [спонсорских сообщений для показа в видео канала»](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements)."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Открытый в данный момент канал/бот. |\n| `msg_id` | `int` | Нет | Должен быть установлен при получении [спонсорских сообщений для показа в видео канала»](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements). |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MESSAGE_ID_INVALID", "MSG_ID_INVALID"], "x-browser-schema-id": "1030547536"}}, "/catalog/messages.savePreparedInlineMessage": {"post": {"operationId": "messages.savePreparedInlineMessage", "tags": ["Сообщения"], "summary": "Сохраните подготовленное встроенное сообщение, которое будет передано пользователю мини-приложения с помощью события web\\_app\\_send\\_prepared\\_message.", "description": "Сохраните [подготовленное встроенное сообщение](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message), чтобы пользователь мини-приложения мог поделиться им с помощью события [web\\_app\\_send\\_prepared\\_message](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)]\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Inline queries](https://core.telegram.org/api/bots/inline.md)", "x-tl-method": "messages.savePreparedInlineMessage", "x-tl-id": "4062150447", "x-tl-result": "messages.BotPreparedInlineMessage", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Web events", "https://core.telegram.org/api/web-events.md"], ["Inline queries", "https://core.telegram.org/api/bots/inline.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.BotPreparedInlineMessage`.\n\n[messages.BotPreparedInlineMessage](https://core.telegram.org/type/messages.BotPreparedInlineMessage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotPreparedInlineMessage", "oneOf": [{"$ref": "#/components/schemas/messages.botPreparedInlineMessage"}], "description": "Тип TL: messages.BotPreparedInlineMessage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `RESULT_ID_INVALID` — Один из указанных идентификаторов результата недействителен.\n- 400 · `SEND_MESSAGE_GAME_INVALID` — inputBotInlineMessageGame может содержаться только в inputBotInlineResultGame, а не в inputBotInlineResult/inputBotInlineResultPhoto/и т. д.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.savePreparedInlineMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"result": {"type": "object", "x-tl-type": "InputBotInlineResult", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineResult"}, {"$ref": "#/components/schemas/inputBotInlineResultPhoto"}, {"$ref": "#/components/schemas/inputBotInlineResultDocument"}, {"$ref": "#/components/schemas/inputBotInlineResultGame"}], "description": "Сообщение"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, которому будет отправлено событие [web_app_send_prepared_message](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)"}, "peer_types": {"type": "array", "items": {"type": "object", "x-tl-type": "InlineQueryPeerType", "oneOf": [{"$ref": "#/components/schemas/inlineQueryPeerTypeSameBotPM"}, {"$ref": "#/components/schemas/inlineQueryPeerTypePM"}, {"$ref": "#/components/schemas/inlineQueryPeerTypeChat"}, {"$ref": "#/components/schemas/inlineQueryPeerTypeMegagroup"}, {"$ref": "#/components/schemas/inlineQueryPeerTypeBroadcast"}, {"$ref": "#/components/schemas/inlineQueryPeerTypeBotPM"}], "description": "Тип TL: InlineQueryPeerType."}, "x-tl-type": "Vector<InlineQueryPeerType>", "x-tl-flag": "flags.0?Vector<InlineQueryPeerType>", "description": "Типы чатов, куда можно отправить это сообщение"}}, "additionalProperties": false, "required": ["result", "user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `result` | `InputBotInlineResult` | Да | Сообщение |\n| `user_id` | `InputUser` | Да | Пользователь, которому будет отправлено событие [web_app_send_prepared_message](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) |\n| `peer_types` | `Vector<InlineQueryPeerType>` | Нет | Типы чатов, куда можно отправить это сообщение |"}, "x-telegram-rpc-errors": ["RESULT_ID_INVALID", "SEND_MESSAGE_GAME_INVALID", "USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "4062150447"}}, "/catalog/messages.getPreparedInlineMessage": {"post": {"operationId": "messages.getPreparedInlineMessage", "tags": ["Сообщения"], "summary": "Получите подготовленное встроенное сообщение, созданное мини-приложением: вызывается при обработке событий web\\_app\\_send\\_prepared\\_message.", "description": "Получите [подготовленное встроенное сообщение](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message), сгенерированное [мини-приложением](https://core.telegram.org/api/bots/webapps.md): вызывается при обработке событий [web\\_app\\_send\\_prepared\\_message](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Inline queries](https://core.telegram.org/api/bots/inline.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.getPreparedInlineMessage", "x-tl-id": "2239675832", "x-tl-result": "messages.PreparedInlineMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Web events", "https://core.telegram.org/api/web-events.md"], ["Inline queries", "https://core.telegram.org/api/bots/inline.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.PreparedInlineMessage`.\n\n[messages.PreparedInlineMessage](https://core.telegram.org/type/messages.PreparedInlineMessage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.PreparedInlineMessage", "oneOf": [{"$ref": "#/components/schemas/messages.preparedInlineMessage"}], "description": "Тип TL: messages.PreparedInlineMessage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ID_EXPIRED` — Срок действия идентификатора переданного подготовленного встроенного сообщения истек.\n- 400 · `ID_INVALID` — Переданный идентификатор недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPreparedInlineMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит мини-приложение, создавшее событие [web_app_send_prepared_message](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)."}, "id": {"type": "string", "x-tl-type": "string", "description": "`id` из [web_app_send_prepared_message события](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)"}}, "additionalProperties": false, "required": ["bot", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит мини-приложение, создавшее событие [web_app_send_prepared_message](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message). |\n| `id` | `string` | Да | `id` из [web_app_send_prepared_message события](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) |"}, "x-telegram-rpc-errors": ["ID_EXPIRED", "ID_INVALID"], "x-browser-schema-id": "2239675832"}}, "/catalog/messages.searchStickers": {"post": {"operationId": "messages.searchStickers", "tags": ["Сообщения"], "summary": "Ищите стикеры с помощью поиска по ключевым словам на основе искусственного интеллекта.", "description": "Ищите стикеры с помощью поиска по ключевым словам на основе искусственного интеллекта.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.searchStickers", "x-tl-id": "699516522", "x-tl-result": "messages.FoundStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.FoundStickers`.\n\n[messages.FoundStickers](https://core.telegram.org/type/messages.FoundStickers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.FoundStickers", "oneOf": [{"$ref": "#/components/schemas/messages.foundStickersNotModified"}, {"$ref": "#/components/schemas/messages.foundStickers"}], "description": "Тип TL: messages.FoundStickers."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.searchStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, возвращается [пользовательские наклейки с эмодзи](https://core.telegram.org/api/custom-emoji.md)"}, "q": {"type": "string", "x-tl-type": "string", "description": "Поисковый запрос"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Разделенный пробелами список смайлов для поиска"}, "lang_code": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Список возможных IETF языковых тегов языка ввода пользователя; может быть пустым, если неизвестно"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещение для нумерации страниц](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).  Хэш может быть сгенерирован локально с использованием `id`s возвращенной или сохраненной наклейки [document](https://core.telegram.org/constructor/document.md)s.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["q", "emoticon", "lang_code", "offset", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `emojis` | `true` | Нет | Если установлено, возвращается [пользовательские наклейки с эмодзи](https://core.telegram.org/api/custom-emoji.md) |\n| `q` | `string` | Да | Поисковый запрос |\n| `emoticon` | `string` | Да | Разделенный пробелами список смайлов для поиска |\n| `lang_code` | `Vector<string>` | Да | Список возможных IETF языковых тегов языка ввода пользователя; может быть пустым, если неизвестно |\n| `offset` | `int` | Да | [Смещение для нумерации страниц](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation).  Хэш может быть сгенерирован локально с использованием `id`s возвращенной или сохраненной наклейки [document](https://core.telegram.org/constructor/document.md)s. |"}, "x-browser-schema-id": "699516522"}}, "/catalog/messages.reportMessagesDelivery": {"post": {"operationId": "messages.reportMessagesDelivery", "tags": ["Сообщения"], "summary": "Используется для сообщений проверки шлюза Telegram »: указывает серверу, что одно или несколько сообщений были получены клиентом, если это запрошено сообщением. Флаг **report\\_delivery\\_until\\_date** или эквивалентный флаг в push-уведомлениях.", "description": "Используется для [сообщений проверки шлюза Telegram »](https://telegram.org/blog/star-messages-gateway-2-0-and-more#save-even-more-on-user-verification): указывает серверу, что одно или несколько [сообщений](https://core.telegram.org/constructor/message.md) были получены клиентом, если это запрошено флагом [message](https://core.telegram.org/constructor/message.md).**report\\_delivery\\_until\\_date** или эквивалентным флагом в [push-уведомлениях](https://core.telegram.org/api/push-updates.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "messages.reportMessagesDelivery", "x-tl-id": "1517122453", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reportMessagesDelivery"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"push": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Должно быть установлено, если сообщения были получены с помощью [push-уведомления](https://core.telegram.org/api/push-updates.md)."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, на котором были получены сообщения."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы полученных сообщений."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `push` | `true` | Нет | Должно быть установлено, если сообщения были получены с помощью [push-уведомления](https://core.telegram.org/api/push-updates.md). |\n| `peer` | `InputPeer` | Да | Узел, на котором были получены сообщения. |\n| `id` | `Vector<int>` | Да | Идентификаторы полученных сообщений. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1517122453"}}, "/catalog/messages.getSavedDialogsByID": {"post": {"operationId": "messages.getSavedDialogsByID", "tags": ["Сообщения"], "summary": "Получение информации о конкретных сохраненных диалогах сообщений » или темах монофорума ».", "description": "Получите информацию о конкретных [диалогах сохраненных сообщений»](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs) или [темах монофорума»](https://core.telegram.org/api/monoforum.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.getSavedDialogsByID", "x-tl-id": "1869585558", "x-tl-result": "messages.SavedDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.SavedDialogs`.\n\n[messages.SavedDialogs](https://core.telegram.org/type/messages.SavedDialogs.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SavedDialogs", "oneOf": [{"$ref": "#/components/schemas/messages.savedDialogs"}, {"$ref": "#/components/schemas/messages.savedDialogsSlice"}, {"$ref": "#/components/schemas/messages.savedDialogsNotModified"}], "description": "Тип TL: messages.SavedDialogs."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getSavedDialogsByID"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, извлекаются [темы монофорума »](https://core.telegram.org/api/monoforum.md), в противном случае извлекаются [диалоги сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs).", "x-tl-flag": "flags.1?InputPeer"}, "ids": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Идентификаторы диалогов (тем), которые необходимо получить."}}, "additionalProperties": false, "required": ["ids"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | Нет | Если установлено, извлекаются [темы монофорума »](https://core.telegram.org/api/monoforum.md), в противном случае извлекаются [диалоги сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs). |\n| `ids` | `Vector<InputPeer>` | Да | Идентификаторы диалогов (тем), которые необходимо получить. |"}, "x-browser-schema-id": "1869585558"}}, "/catalog/messages.readSavedHistory": {"post": {"operationId": "messages.readSavedHistory", "tags": ["Сообщения"], "summary": "Отмечать сообщения как прочитанные в теме монофорума».", "description": "Отметить сообщения как прочитанные в [теме монофорума »](https://core.telegram.org/api/monoforum.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.readSavedHistory", "x-tl-id": "3125427035", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PARENT_PEER_INVALID` — Указанное `parent_peer` неверно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readSavedHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"parent_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Идентификатор группы монофорума."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Идентификатор темы."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если передано положительное значение, будут прочитаны только сообщения с идентификаторами, меньшими или равными данному."}}, "additionalProperties": false, "required": ["parent_peer", "peer", "max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | Да | Идентификатор группы монофорума. |\n| `peer` | `InputPeer` | Да | Идентификатор темы. |\n| `max_id` | `int` | Да | Если передано положительное значение, будут прочитаны только сообщения с идентификаторами, меньшими или равными данному. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PARENT_PEER_INVALID"], "x-browser-schema-id": "3125427035"}}, "/catalog/messages.toggleTodoCompleted": {"post": {"operationId": "messages.toggleTodoCompleted", "tags": ["Сообщения"], "summary": "Отметьте один или несколько пунктов списка дел » как выполненные или незавершенные.", "description": "Отметьте один или несколько пунктов [списка дел »](https://core.telegram.org/api/todo.md) как выполненные или незавершенные.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.toggleTodoCompleted", "x-tl-id": "3554685220", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleTodoCompleted"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где был размещен список дел."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения со списком задач."}, "completed": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Элементы, которые следует отметить как выполненные."}, "incompleted": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Пункты, которые следует отметить как незавершенные."}}, "additionalProperties": false, "required": ["peer", "msg_id", "completed", "incompleted"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где был размещен список дел. |\n| `msg_id` | `int` | Да | Идентификатор сообщения со списком задач. |\n| `completed` | `Vector<int>` | Да | Элементы, которые следует отметить как выполненные. |\n| `incompleted` | `Vector<int>` | Да | Пункты, которые следует отметить как незавершенные. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3554685220"}}, "/catalog/messages.appendTodoList": {"post": {"operationId": "messages.appendTodoList", "tags": ["Сообщения"], "summary": "Добавляет один или несколько элементов в список дел».", "description": "Добавляет один или несколько элементов в [список дел »](https://core.telegram.org/api/todo.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.appendTodoList", "x-tl-id": "564531287", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TODO_ITEM_DUPLICATE` — Обнаружен дубликат [элементов контрольного списка](https://core.telegram.org/api/todo.md).\n- 400 · `TODO_NOT_MODIFIED` — Элементы задач не указаны, поэтому в список задач не вносилось никаких изменений."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.appendTodoList"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где был размещен список дел."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения со списком задач."}, "list": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoItem", "oneOf": [{"$ref": "#/components/schemas/todoItem"}], "description": "Тип TL: TodoItem."}, "x-tl-type": "Vector<TodoItem>", "description": "Элементы для добавления."}}, "additionalProperties": false, "required": ["peer", "msg_id", "list"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где был размещен список дел. |\n| `msg_id` | `int` | Да | Идентификатор сообщения со списком задач. |\n| `list` | `Vector<TodoItem>` | Да | Элементы для добавления. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID", "TODO_ITEM_DUPLICATE", "TODO_NOT_MODIFIED"], "x-browser-schema-id": "564531287"}}, "/catalog/messages.toggleSuggestedPostApproval": {"post": {"operationId": "messages.toggleSuggestedPostApproval", "tags": ["Сообщения"], "summary": "Одобрить или отклонить предложенную публикацию».", "description": "Одобрите или отклоните [предлагаемую публикацию »](https://core.telegram.org/api/suggested-posts.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)", "x-tl-method": "messages.toggleSuggestedPostApproval", "x-tl-id": "2164737372", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.toggleSuggestedPostApproval"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"reject": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Отклонить предложенную публикацию."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Как для пользователей, так и для каналов должен содержать идентификатор [монофорум прямых сообщений »](https://core.telegram.org/api/monoforum.md) (для каналов идентификатор темы извлекается автоматически из `msg_id`)."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения с предложением."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Дата индивидуального планирования."}, "reject_comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Необязательный комментарий для отклонений (можно использовать, только если установлено `reject`)."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `reject` | `true` | Нет | Отклонить предложенную публикацию. |\n| `peer` | `InputPeer` | Да | Как для пользователей, так и для каналов должен содержать идентификатор [монофорум прямых сообщений »](https://core.telegram.org/api/monoforum.md) (для каналов идентификатор темы извлекается автоматически из `msg_id`). |\n| `msg_id` | `int` | Да | Идентификатор сообщения с предложением. |\n| `schedule_date` | `int` | Нет | Дата индивидуального планирования. |\n| `reject_comment` | `string` | Нет | Необязательный комментарий для отклонений (можно использовать, только если установлено `reject`). |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2164737372"}}, "/catalog/messages.getForumTopics": {"post": {"operationId": "messages.getForumTopics", "tags": ["Сообщения"], "summary": "Получить темы форума", "description": "Получить [темы форума](https://core.telegram.org/api/forum.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.getForumTopics", "x-tl-id": "3331072410", "x-tl-result": "messages.ForumTopics", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ForumTopics`.\n\n[messages.ForumTopics](https://core.telegram.org/type/messages.ForumTopics.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ForumTopics", "oneOf": [{"$ref": "#/components/schemas/messages.forumTopics"}], "description": "Тип TL: messages.ForumTopics."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_FORUM_MISSING` — Эта супергруппа не является форумом.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getForumTopics"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема."}, "q": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Поисковый запрос"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "closed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "Значение типа TL `Bool`."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md), дата последнего сообщения последней найденной темы. Используйте 0 или любую дату в будущем, чтобы получить результаты по последней теме."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md), идентификатор последнего сообщения последней найденной темы (или изначально `0`)."}, "offset_topic": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md), идентификатор последней найденной темы (или изначально `0`)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md). Для оптимальной производительности количество возвращаемых тем выбирается сервером и может быть меньше указанного предела."}}, "additionalProperties": false, "required": ["peer", "offset_date", "offset_id", "offset_topic", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема. |\n| `q` | `string` | Нет | Поисковый запрос |\n| `icon_emoji_id` | `long` | Нет | 64-битное целое в десятичной записи. |\n| `closed` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `offset_date` | `int` | Да | [Смещения нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md), дата последнего сообщения последней найденной темы. Используйте 0 или любую дату в будущем, чтобы получить результаты по последней теме. |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md), идентификатор последнего сообщения последней найденной темы (или изначально `0`). |\n| `offset_topic` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md), идентификатор последней найденной темы (или изначально `0`). |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md). Для оптимальной производительности количество возвращаемых тем выбирается сервером и может быть меньше указанного предела. |"}, "x-telegram-rpc-errors": ["CHANNEL_FORUM_MISSING", "CHANNEL_INVALID"], "x-browser-schema-id": "3331072410"}}, "/catalog/messages.getForumTopicsByID": {"post": {"operationId": "messages.getForumTopicsByID", "tags": ["Сообщения"], "summary": "Получить темы форума по их идентификатору", "description": "Получить темы форума по их идентификатору\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "messages.getForumTopicsByID", "x-tl-id": "2936687112", "x-tl-result": "messages.ForumTopics", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.ForumTopics`.\n\n[messages.ForumTopics](https://core.telegram.org/type/messages.ForumTopics.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ForumTopics", "oneOf": [{"$ref": "#/components/schemas/messages.forumTopics"}], "description": "Тип TL: messages.ForumTopics."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `TOPICS_EMPTY` — Вы не указали идентификаторы тем."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getForumTopicsByID"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема."}, "topics": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы тем"}}, "additionalProperties": false, "required": ["peer", "topics"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема. |\n| `topics` | `Vector<int>` | Да | Идентификаторы тем |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "TOPICS_EMPTY"], "x-browser-schema-id": "2936687112"}}, "/catalog/messages.editForumTopic": {"post": {"operationId": "messages.editForumTopic", "tags": ["Сообщения"], "summary": "Редактировать тему форума.", "description": "Отредактируйте [тему форума](https://core.telegram.org/api/forum.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.editForumTopic", "x-tl-id": "3469480244", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `TOPIC_CLOSE_SEPARATELY` — Флаг `close` не может быть предоставлен вместе с другими флагами.\n- 400 · `TOPIC_NOT_MODIFIED` — Обновленная информация о теме равна текущей, ничего не изменилось."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editForumTopic"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор темы"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Если присутствует, обновит заголовок темы (максимальная длина UTF-8: 128)."}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Если присутствует, обновляет [пользовательский смайлик](https://core.telegram.org/api/custom-emoji.md), используемый в качестве значка темы. [Пользователи Telegram Premium](https://core.telegram.org/api/premium.md) могут использовать любые собственные смайлы, другие пользователи могут использовать только собственные смайлы, содержащиеся в пакете смайлов [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md). Введите 0, чтобы переключиться на значок резервной темы.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "closed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "Если присутствует, обновит открытый/закрытый статус темы."}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool", "description": "Если присутствует, скроет/покажет тему (действительно только для «Общей» темы, `id=1`)."}}, "additionalProperties": false, "required": ["peer", "topic_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема. |\n| `topic_id` | `int` | Да | Идентификатор темы |\n| `title` | `string` | Нет | Если присутствует, обновит заголовок темы (максимальная длина UTF-8: 128). |\n| `icon_emoji_id` | `long` | Нет | Если присутствует, обновляет [пользовательский смайлик](https://core.telegram.org/api/custom-emoji.md), используемый в качестве значка темы. [Пользователи Telegram Premium](https://core.telegram.org/api/premium.md) могут использовать любые собственные смайлы, другие пользователи могут использовать только собственные смайлы, содержащиеся в пакете смайлов [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md). Введите 0, чтобы переключиться на значок резервной темы. |\n| `closed` | `Bool` | Нет | Если присутствует, обновит открытый/закрытый статус темы. |\n| `hidden` | `Bool` | Нет | Если присутствует, скроет/покажет тему (действительно только для «Общей» темы, `id=1`). |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "TOPIC_CLOSE_SEPARATELY", "TOPIC_NOT_MODIFIED"], "x-browser-schema-id": "3469480244"}}, "/catalog/messages.updatePinnedForumTopic": {"post": {"operationId": "messages.updatePinnedForumTopic", "tags": ["Сообщения"], "summary": "Закрепить или открепить темы форума", "description": "Закрепить или открепить [темы форума](https://core.telegram.org/api/forum.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.updatePinnedForumTopic", "x-tl-id": "392032849", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.updatePinnedForumTopic"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор темы форума](https://core.telegram.org/api/forum.md)"}, "pinned": {"type": "boolean", "x-tl-type": "Bool", "description": "Закрепить или открепить тему"}}, "additionalProperties": false, "required": ["peer", "topic_id", "pinned"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема. |\n| `topic_id` | `int` | Да | [Идентификатор темы форума](https://core.telegram.org/api/forum.md) |\n| `pinned` | `Bool` | Да | Закрепить или открепить тему |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "392032849"}}, "/catalog/messages.reorderPinnedForumTopics": {"post": {"operationId": "messages.reorderPinnedForumTopics", "tags": ["Сообщения"], "summary": "Изменение порядка закрепленных тем на форуме", "description": "Изменение порядка закрепленных тем на форуме\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.reorderPinnedForumTopics", "x-tl-id": "242762224", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reorderPinnedForumTopics"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если не установлено, порядок только тем, присутствующих как на стороне сервера, так и в `order`, будет изменен (i.e. упоминание тем, не закрепленных на стороне сервера в `order`, не закрепит их, а отсутствие упоминания тем, закрепленных на стороне сервера, не открепит их).   Если установлено, весь список тем, закрепленных на стороне сервера, будет заменен на `order` (i.e. упоминание тем, не закрепленных на стороне сервера в `order`, закрепит их, а отсутствие упоминания тем, закрепленных на стороне сервера, открепит их)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "[Идентификаторы тем »](https://core.telegram.org/api/forum.md)"}}, "additionalProperties": false, "required": ["peer", "order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `force` | `true` | Нет | Если не установлено, порядок только тем, присутствующих как на стороне сервера, так и в `order`, будет изменен (i.e. упоминание тем, не закрепленных на стороне сервера в `order`, не закрепит их, а отсутствие упоминания тем, закрепленных на стороне сервера, не открепит их).   Если установлено, весь список тем, закрепленных на стороне сервера, будет заменен на `order` (i.e. упоминание тем, не закрепленных на стороне сервера в `order`, закрепит их, а отсутствие упоминания тем, закрепленных на стороне сервера, открепит их) |\n| `peer` | `InputPeer` | Да | Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема. |\n| `order` | `Vector<int>` | Да | [Идентификаторы тем »](https://core.telegram.org/api/forum.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "242762224"}}, "/catalog/messages.createForumTopic": {"post": {"operationId": "messages.createForumTopic", "tags": ["Сообщения"], "summary": "Создайте тему на форуме.", "description": "Создайте [тему форума](https://core.telegram.org/api/forum.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.createForumTopic", "x-tl-id": "798540757", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `BOT_FORUM_CREATE_FORBIDDEN` — Поскольку флаг user.bot_forum_can_manage_topics бота **не установлен**, пользователь не может создавать или изменять темы форума ботов.\n- 400 · `CHANNEL_FORUM_MISSING` — Эта супергруппа не является форумом.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.createForumTopic"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"title_missing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Если установлено, тема не имеет определяемого пользователем названия, ее можно задать только для тем отдельных пользователей [форумов ботов](https://core.telegram.org/api/forum.md#bot-forums); если это поле установлено, боту, скорее всего, придется изменить название темы."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Супергруппа, приватный чат (для ботов с поддержкой форума) или бот форума (для пользователей), где можно создать тему."}, "title": {"type": "string", "x-tl-type": "string", "description": "Название темы (максимальная длина UTF-8: 128)"}, "icon_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Если собственный значок эмодзи не указан, указывает цвет резервного значка темы (RGB), один из `0x6FB9F0`, `0xFFD67E`, `0xCB86DB`, `0x8EEE98`, `0xFF93B2` или `0xFB6F5F`."}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор [пользовательского смайлика](https://core.telegram.org/api/custom-emoji.md), используемого в качестве значка темы. [Пользователи Telegram Premium](https://core.telegram.org/api/premium.md) могут использовать любые собственные смайлы, другие пользователи могут использовать только собственные смайлы, содержащиеся в пакете смайлов [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md).", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор сообщения клиента для предотвращения повторной отправки одного и того же события. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Создать тему как указанный узел", "x-tl-flag": "flags.2?InputPeer"}}, "additionalProperties": false, "required": ["peer", "title", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `title_missing` | `true` | Нет | Если установлено, тема не имеет определяемого пользователем названия, ее можно задать только для тем отдельных пользователей [форумов ботов](https://core.telegram.org/api/forum.md#bot-forums); если это поле установлено, боту, скорее всего, придется изменить название темы. |\n| `peer` | `InputPeer` | Да | Супергруппа, приватный чат (для ботов с поддержкой форума) или бот форума (для пользователей), где можно создать тему. |\n| `title` | `string` | Да | Название темы (максимальная длина UTF-8: 128) |\n| `icon_color` | `int` | Нет | Если собственный значок эмодзи не указан, указывает цвет резервного значка темы (RGB), один из `0x6FB9F0`, `0xFFD67E`, `0xCB86DB`, `0x8EEE98`, `0xFF93B2` или `0xFB6F5F`. |\n| `icon_emoji_id` | `long` | Нет | Идентификатор [пользовательского смайлика](https://core.telegram.org/api/custom-emoji.md), используемого в качестве значка темы. [Пользователи Telegram Premium](https://core.telegram.org/api/premium.md) могут использовать любые собственные смайлы, другие пользователи могут использовать только собственные смайлы, содержащиеся в пакете смайлов [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md). |\n| `random_id` | `long` | Да | Уникальный идентификатор сообщения клиента для предотвращения повторной отправки одного и того же события. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `send_as` | `InputPeer` | Нет | Создать тему как указанный узел |"}, "x-telegram-rpc-errors": ["BOT_FORUM_CREATE_FORBIDDEN", "CHANNEL_FORUM_MISSING", "CHANNEL_INVALID", "PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "798540757"}}, "/catalog/messages.deleteTopicHistory": {"post": {"operationId": "messages.deleteTopicHistory", "tags": ["Сообщения"], "summary": "Удаление истории сообщений темы форума", "description": "Удалить историю сообщений [темы форума](https://core.telegram.org/api/forum.md)]\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.deleteTopicHistory", "x-tl-id": "3531697936", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteTopicHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор темы"}}, "additionalProperties": false, "required": ["peer", "top_msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Форум супергруппы, приватный чат (для ботов с поддержкой форума) или форум ботов (для пользователей), где находится тема. |\n| `top_msg_id` | `int` | Да | Идентификатор темы |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "3531697936"}}, "/catalog/messages.getEmojiGameInfo": {"post": {"operationId": "messages.getEmojiGameInfo", "tags": ["Сообщения"], "summary": "Получите информацию об игре в кости.", "description": "Получите информацию об игре в кости.", "x-tl-method": "messages.getEmojiGameInfo", "x-tl-id": "4219374759", "x-tl-result": "messages.EmojiGameInfo", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.EmojiGameInfo`.\n\n[messages.EmojiGameInfo](https://core.telegram.org/type/messages.EmojiGameInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.EmojiGameInfo", "oneOf": [{"$ref": "#/components/schemas/messages.emojiGameUnavailable"}, {"$ref": "#/components/schemas/messages.emojiGameDiceInfo"}], "description": "Тип TL: messages.EmojiGameInfo."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getEmojiGameInfo"}, "x-browser-schema-id": "4219374759"}}, "/catalog/messages.summarizeText": {"post": {"operationId": "messages.summarizeText", "tags": ["Сообщения"], "summary": "Обобщите содержание сообщения с помощью ИИ. Дополнительную информацию см. здесь ».", "description": "Обобщите содержание сообщения с помощью ИИ. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/ai.md#summarize-messages).\n\nКлиенты должны использовать [message](https://core.telegram.org/constructor/message.md).`summary_from_language` как подсказку для отображения кнопки суммирования; его отсутствие не запрещает вызов этого метода.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "messages.summarizeText", "x-tl-id": "2881213254", "x-tl-result": "TextWithEntities", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "Результат MTProto · `TextWithEntities`.\n\n[TextWithEntities](https://core.telegram.org/type/TextWithEntities.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Тип TL: TextWithEntities."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INPUT_TEXT_TOO_LONG` — Указанный текст слишком длинный.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.summarizeText"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, на котором находится сообщение."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения."}, "to_lang": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Если установлено, генерирует сводку на указанном целевом языке (двухбуквенный код языка ISO 639-1) вместо языка сообщения."}, "tone": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Если установлено, перефразирует сводку, используя указанный [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) (передайте идентификатор тона)"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, на котором находится сообщение. |\n| `id` | `int` | Да | Идентификатор сообщения. |\n| `to_lang` | `string` | Нет | Если установлено, генерирует сводку на указанном целевом языке (двухбуквенный код языка ISO 639-1) вместо языка сообщения. |\n| `tone` | `string` | Нет | Если установлено, перефразирует сводку, используя указанный [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) (передайте идентификатор тона) |"}, "x-telegram-rpc-errors": ["INPUT_TEXT_TOO_LONG", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "2881213254"}}, "/catalog/messages.editChatCreator": {"post": {"operationId": "messages.editChatCreator", "tags": ["Сообщения"], "summary": "Передача права владения базовой группой, супергруппой или каналом другому пользователю. Подробную информацию см. здесь ».", "description": "Передача права владения базовой группой, супергруппой или каналом другому пользователю. Полный процесс см. [здесь »](https://core.telegram.org/api/channel.md#transferring-ownership-of-a-group-channel).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatCreator", "x-tl-id": "4148410455", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — Вы являетесь администратором слишком большого количества общедоступных каналов. Сделайте некоторые каналы частными, чтобы изменить имя пользователя этого канала.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Не удалось добавить участников.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен.\n- 400 · `PASSWORD_MISSING` — Перед выполнением этой операции необходимо [включить 2FA](https://core.telegram.org/api/srp.md).\n- 400 · `PASSWORD_TOO_FRESH_%d` — Пароль был изменен менее 24 часов назад, повторите попытку через %d секунд.\n- 400 · `SESSION_TOO_FRESH_%d` — Этот сеанс был создан менее 24 часов назад, повторите попытку через %d секунд.\n- 400 · `SRP_ID_INVALID` — Указан неверный идентификатор SRP.\n- 400 · `USERS_TOO_MUCH` — Превышено максимальное количество пользователей (для создания чата, например).\n- 403 · `USER_CHANNELS_TOO_MUCH` — Один из пользователей, которых вы пытались добавить, уже состоит в слишком многих каналах/супергруппах.\n- 400 · `USER_NOT_MUTUAL_CONTACT` — Указанный пользователь не является взаимным контактом.\n- 403 · `USER_PRIVACY_RESTRICTED` — Настройки приватности пользователя не позволяют это сделать."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editChatCreator"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Собственная группа/супергруппа/канал."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор нового владельца."}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "[Пароль 2FA](https://core.telegram.org/api/srp.md)."}}, "additionalProperties": false, "required": ["peer", "user_id", "password"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Собственная группа/супергруппа/канал. |\n| `user_id` | `InputUser` | Да | Идентификатор нового владельца. |\n| `password` | `InputCheckPasswordSRP` | Да | [Пароль 2FA](https://core.telegram.org/api/srp.md). |"}, "x-telegram-rpc-errors": ["CHANNELS_ADMIN_PUBLIC_TOO_MUCH", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_MEMBER_ADD_FAILED", "INPUT_USER_DEACTIVATED", "PASSWORD_HASH_INVALID", "PASSWORD_MISSING", "PASSWORD_TOO_FRESH_%d", "SESSION_TOO_FRESH_%d", "SRP_ID_INVALID", "USERS_TOO_MUCH", "USER_CHANNELS_TOO_MUCH", "USER_NOT_MUTUAL_CONTACT", "USER_PRIVACY_RESTRICTED"], "x-browser-schema-id": "4148410455"}}, "/catalog/messages.getFutureChatCreatorAfterLeave": {"post": {"operationId": "messages.getFutureChatCreatorAfterLeave", "tags": ["Сообщения"], "summary": "Только владельцы групп/каналов: возвращает идентификатор пользователя, который станет новым владельцем группы, если мы решим покинуть группу. Дополнительную информацию о полном процессе см. здесь ».", "description": "Только владельцы групп/каналов: возвращает идентификатор пользователя, который станет новым владельцем группы, если мы решим покинуть группу. Дополнительную информацию о полном потоке см. [здесь »](https://core.telegram.org/api/channel.md#leaving-groups-channels).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getFutureChatCreatorAfterLeave", "x-tl-id": "998051494", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `User`.\n\n[Пользователь](https://core.telegram.org/type/User.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_ID_INVALID` — Указанный идентификатор супергруппы недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getFutureChatCreatorAfterLeave"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Основная группа/супергруппа/канал, который мы собираемся покинуть."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Основная группа/супергруппа/канал, который мы собираемся покинуть. |"}, "x-telegram-rpc-errors": ["CHANNEL_ID_INVALID"], "x-browser-schema-id": "998051494"}}, "/catalog/messages.editChatParticipantRank": {"post": {"operationId": "messages.editChatParticipantRank", "tags": ["Сообщения"], "summary": "Редактировать тег участника группы ».", "description": "Отредактируйте [тег »](https://core.telegram.org/api/rank.md) участника группы.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Group participant tags](https://core.telegram.org/api/rank.md)", "x-tl-method": "messages.editChatParticipantRank", "x-tl-id": "2685350576", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Group participant tags", "https://core.telegram.org/api/rank.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.editChatParticipantRank"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Основная группа/супергруппа."}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник."}, "rank": {"type": "string", "x-tl-type": "string", "description": "Новый тег."}}, "additionalProperties": false, "required": ["peer", "participant", "rank"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Основная группа/супергруппа. |\n| `participant` | `InputPeer` | Да | Участник. |\n| `rank` | `string` | Да | Новый тег. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2685350576"}}, "/catalog/messages.declineUrlAuth": {"post": {"operationId": "messages.declineUrlAuth", "tags": ["Сообщения"], "summary": "Отклонить входящий запрос авторизации OAuth», уведомляя сервер о том, что пользователь отклонил запрос на вход.", "description": "Отклонить входящий [запрос авторизации OAuth »](https://core.telegram.org/api/url-authorization.md#oauth-authorization), уведомив сервер о том, что пользователь отклонил запрос на вход.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.declineUrlAuth", "x-tl-id": "893610940", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"], ["Web events", "https://core.telegram.org/api/web-events.md"], ["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `URL_INVALID` — Указано неверное URL."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.declineUrlAuth"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string", "x-tl-type": "string", "description": "Глубокая ссылка OAuth из [OAUTH_REQUEST push-уведомления](https://core.telegram.org/api/push-updates.md#oauth-request) или [`oauth_request` веб-события](https://core.telegram.org/api/web-events.md#oauth-request)]"}}, "additionalProperties": false, "required": ["url"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `url` | `string` | Да | Глубокая ссылка OAuth из [OAUTH_REQUEST push-уведомления](https://core.telegram.org/api/push-updates.md#oauth-request) или [`oauth_request` веб-события](https://core.telegram.org/api/web-events.md#oauth-request)] |"}, "x-telegram-rpc-errors": ["URL_INVALID"], "x-browser-schema-id": "893610940"}}, "/catalog/messages.checkUrlAuthMatchCode": {"post": {"operationId": "messages.checkUrlAuthMatchCode", "tags": ["Сообщения"], "summary": "Проверьте код соответствия, выбранный пользователем, с кодом, показанным на странице входа, в рамках процесса авторизации OAuth».", "description": "Проверьте код соответствия, выбранный пользователем, с кодом, показанным на странице входа в систему, как часть [потока авторизации OAuth »](https://core.telegram.org/api/url-authorization.md#oauth-authorization).\n\nМожно использовать только тогда, когда оба `match_codes` и `match_codes_first` установлены в [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md), возвращаемом [messages.requestUrlAuth](https://core.telegram.org/method/messages.requestUrlAuth.md).\nЕсли возвращается [boolTrue](https://core.telegram.org/constructor/boolTrue.md), продолжите процесс входа в систему и передайте проверенный код на [messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md).`match_code`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.checkUrlAuthMatchCode", "x-tl-id": "3382999819", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `URL_INVALID` — Указано неверное URL."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.checkUrlAuthMatchCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string", "x-tl-type": "string", "description": "Глубокая ссылка OAuth"}, "match_code": {"type": "string", "x-tl-type": "string", "description": "Эмодзи или код, выбранный пользователем из списка в [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`match_codes`"}}, "additionalProperties": false, "required": ["url", "match_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `url` | `string` | Да | Глубокая ссылка OAuth |\n| `match_code` | `string` | Да | Эмодзи или код, выбранный пользователем из списка в [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`match_codes` |"}, "x-telegram-rpc-errors": ["URL_INVALID"], "x-browser-schema-id": "3382999819"}}, "/catalog/messages.composeMessageWithAI": {"post": {"operationId": "messages.composeMessageWithAI", "tags": ["Сообщения"], "summary": "Вызывает AI-редактор Telegram, который может переводить, преобразовывать, исправлять и/или добавлять смайлы в ваше сообщение различными способами, при поддержке Cocoon. Дополнительную информацию см. здесь »!", "description": "Вызывает AI-редактор Telegram, который может переводить, преобразовывать, исправлять и/или эмодзировать ваше сообщение различными способами, при поддержке [Cocoon](https://cocoon.org), см. [здесь »](https://core.telegram.org/api/ai.md#compose-messages) для получения дополнительной информации!\n\nВсе указанные ниже режимы можно комбинировать.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [AI features](https://core.telegram.org/api/ai.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "messages.composeMessageWithAI", "x-tl-id": "3672950153", "x-tl-result": "messages.ComposedMessageWithAI", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ComposedMessageWithAI`.\n\n[messages.ComposedMessageWithAI](https://core.telegram.org/type/messages.ComposedMessageWithAI.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ComposedMessageWithAI", "oneOf": [{"$ref": "#/components/schemas/messages.composedMessageWithAI"}], "description": "Тип TL: messages.ComposedMessageWithAI."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AICOMPOSE_FLOOD_PREMIUM` — Вы достигли дневного лимита текстовых преобразований AI, обновите его до [Telegram Premium](https://core.telegram.org/api/premium.md), чтобы получать в **50x** раз больше текстовых преобразований AI в день!\n- 500 · `AICOMPOSE_TIMEOUT` — При составлении сообщения произошел таймаут.\n- 400 · `AI_COMPOSE_TASK_MISSING` — Задача ИИ не указана. Звонящий должен предоставить хотя бы одно из следующих действий: корректуру, перевод (с целевым языком), тон или смайлик.\n- 400 · `MESSAGE_EMPTY` — Предоставленное сообщение пустое."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.composeMessageWithAI"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"proofread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, вычитывает и исправляет ошибки в сообщении."}, "emojify": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Если установлено, в сообщение добавляется смайлик."}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Сообщение"}, "translate_to_lang": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Если установлено, переводит сообщение на указанный язык."}, "tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeToneDefault"}, {"$ref": "#/components/schemas/inputAiComposeToneID"}, {"$ref": "#/components/schemas/inputAiComposeToneSlug"}, {"$ref": "#/components/schemas/inputAiComposeToneSingleUse"}], "description": "Если установлено, перефразирует сообщение, используя указанный [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones)", "x-tl-flag": "flags.2?InputAiComposeTone"}}, "additionalProperties": false, "required": ["text"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `proofread` | `true` | Нет | Если установлено, вычитывает и исправляет ошибки в сообщении. |\n| `emojify` | `true` | Нет | Если установлено, в сообщение добавляется смайлик. |\n| `text` | `TextWithEntities` | Да | Сообщение |\n| `translate_to_lang` | `string` | Нет | Если установлено, переводит сообщение на указанный язык. |\n| `tone` | `InputAiComposeTone` | Нет | Если установлено, перефразирует сообщение, используя указанный [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) |"}, "x-telegram-rpc-errors": ["AICOMPOSE_FLOOD_PREMIUM", "AICOMPOSE_TIMEOUT", "AI_COMPOSE_TASK_MISSING", "MESSAGE_EMPTY"], "x-browser-schema-id": "3672950153"}}, "/catalog/messages.reportReadMetrics": {"post": {"operationId": "messages.reportReadMetrics", "tags": ["Сообщения"], "summary": "Показатели чтения области просмотра отчета для видимых сообщений, указывающие, как долго каждое сообщение оставалось в области просмотра чата. Дополнительную информацию о полном потоке см. здесь ».", "description": "В окне просмотра отчета отображаются показатели чтения видимых сообщений, указывающие, как долго каждое сообщение оставалось в окне просмотра чата. Дополнительную информацию о полном потоке см. [здесь »](https://core.telegram.org/api/views.md#read-metrics).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Views and read metrics](https://core.telegram.org/api/views.md)", "x-tl-method": "messages.reportReadMetrics", "x-tl-id": "1080542694", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Views and read metrics", "https://core.telegram.org/api/views.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reportReadMetrics"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, где расположены сообщения"}, "metrics": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMessageReadMetric", "oneOf": [{"$ref": "#/components/schemas/inputMessageReadMetric"}], "description": "Тип TL: InputMessageReadMetric."}, "x-tl-type": "Vector<InputMessageReadMetric>", "description": "Список показателей прочтения отдельных сообщений"}}, "additionalProperties": false, "required": ["peer", "metrics"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, где расположены сообщения |\n| `metrics` | `Vector<InputMessageReadMetric>` | Да | Список показателей прочтения отдельных сообщений |"}, "x-browser-schema-id": "1080542694"}}, "/catalog/messages.reportMusicListen": {"post": {"operationId": "messages.reportMusicListen", "tags": ["Сообщения"], "summary": "Сообщите о продолжительности прослушивания музыкального трека (аудиодокумент без флага `voice`), дополнительную информацию о полном потоке см. здесь ».", "description": "Сообщите о продолжительности прослушивания музыкальной дорожки (аудиодокумент без флага `voice`), см. [здесь »](https://core.telegram.org/api/views.md#music-listens) для получения дополнительной информации о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Views and read metrics](https://core.telegram.org/api/views.md)", "x-tl-method": "messages.reportMusicListen", "x-tl-id": "3720140825", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Views and read metrics", "https://core.telegram.org/api/views.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.reportMusicListen"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "[InputDocument](https://core.telegram.org/type/InputDocument.md) прослушанной песни."}, "listened_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Суммарное игровое время в целых секундах"}}, "additionalProperties": false, "required": ["id", "listened_duration"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | Да | [InputDocument](https://core.telegram.org/type/InputDocument.md) прослушанной песни. |\n| `listened_duration` | `int` | Да | Суммарное игровое время в целых секундах |"}, "x-browser-schema-id": "3720140825"}}, "/catalog/messages.addPollAnswer": {"post": {"operationId": "messages.addPollAnswer", "tags": ["Сообщения"], "summary": "Добавить вариант ответа в опрос с открытым ответом »", "description": "Добавьте вариант ответа в [опрос с открытым ответом »](https://core.telegram.org/api/poll.md#open-answer-polls)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.addPollAnswer", "x-tl-id": "431770477", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.addPollAnswer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Peer, где находится опрос"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения опроса"}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "oneOf": [{"$ref": "#/components/schemas/pollAnswer"}, {"$ref": "#/components/schemas/inputPollAnswer"}], "description": "Чтобы добавить новый вариант ответа, используйте [inputPollAnswer](https://core.telegram.org/constructor/inputPollAnswer.md)"}}, "additionalProperties": false, "required": ["peer", "msg_id", "answer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Peer, где находится опрос |\n| `msg_id` | `int` | Да | Идентификатор сообщения опроса |\n| `answer` | `PollAnswer` | Да | Чтобы добавить новый вариант ответа, используйте [inputPollAnswer](https://core.telegram.org/constructor/inputPollAnswer.md) |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "431770477"}}, "/catalog/messages.deletePollAnswer": {"post": {"operationId": "messages.deletePollAnswer", "tags": ["Сообщения"], "summary": "Удаление варианта ответа из опроса с открытым ответом »", "description": "Удалить вариант ответа из [опроса с открытым ответом »](https://core.telegram.org/api/poll.md#open-answer-polls)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.deletePollAnswer", "x-tl-id": "2894398885", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deletePollAnswer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Peer, где находится опрос"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения опроса"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Идентификатор `option` ответа, который нужно удалить."}}, "additionalProperties": false, "required": ["peer", "msg_id", "option"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Peer, где находится опрос |\n| `msg_id` | `int` | Да | Идентификатор сообщения опроса |\n| `option` | `bytes` | Да | Идентификатор `option` ответа, который нужно удалить. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2894398885"}}, "/catalog/messages.getUnreadPollVotes": {"post": {"operationId": "messages.getUnreadPollVotes", "tags": ["Сообщения"], "summary": "Получать сообщения, содержащие опросы с непрочитанными голосами »", "description": "Получать сообщения, содержащие опросы с [непрочитанными голосами »](https://core.telegram.org/api/poll.md#unread-poll-votes)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.getUnreadPollVotes", "x-tl-id": "1126722802", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getUnreadPollVotes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат, из которого можно получить непрочитанные голоса в опросе"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Если чат является форумом, ограничьте результаты этой темой."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращайте только сообщения с идентификаторами, меньшими или равными этому значению."}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Возвращайте только сообщения с идентификаторами, превышающими или равными этому значению."}}, "additionalProperties": false, "required": ["peer", "offset_id", "add_offset", "limit", "max_id", "min_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат, из которого можно получить непрочитанные голоса в опросе |\n| `top_msg_id` | `int` | Нет | Если чат является форумом, ограничьте результаты этой темой. |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | Да | Возвращайте только сообщения с идентификаторами, меньшими или равными этому значению. |\n| `min_id` | `int` | Да | Возвращайте только сообщения с идентификаторами, превышающими или равными этому значению. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1126722802"}}, "/catalog/messages.readPollVotes": {"post": {"operationId": "messages.readPollVotes", "tags": ["Сообщения"], "summary": "Отметить все непрочитанные голоса в опросе » в чате как прочитанные", "description": "Отметить все [непрочитанные голоса опроса »](https://core.telegram.org/api/poll.md#unread-poll-votes) в чате как прочитанные\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.readPollVotes", "x-tl-id": "388019416", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.readPollVotes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Чат для отметки голосов в опросе как прочитанных"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Если чат является форумом, ограничьтесь этой темой."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Чат для отметки голосов в опросе как прочитанных |\n| `top_msg_id` | `int` | Нет | Если чат является форумом, ограничьтесь этой темой. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "388019416"}}, "/catalog/messages.setBotGuestChatResult": {"post": {"operationId": "messages.setBotGuestChatResult", "tags": ["Сообщения"], "summary": "Боты могут использовать этот метод для ответа на запрос в гостевом режиме, полученный через обновление updateBotGuestChatQuery, предоставляя сообщение для публикации в чате в качестве гостя. См. здесь » для получения дополнительной информации.", "description": "Боты могут использовать этот метод для ответа на запрос [гостевой режим »](https://core.telegram.org/api/bots/guest-mode.md), полученный через обновление [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md)], предоставляя сообщение для публикации в чате в качестве гостя. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/bots/guest-mode.md#handling-guest-queries-bot-side).\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Guest mode for bots](https://core.telegram.org/api/bots/guest-mode.md)", "x-tl-method": "messages.setBotGuestChatResult", "x-tl-id": "3102803683", "x-tl-result": "InputBotInlineMessageID", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Guest mode for bots", "https://core.telegram.org/api/bots/guest-mode.md"]], "responses": {"200": {"description": "Результат MTProto · `InputBotInlineMessageID`.\n\n[InputBotInlineMessageID](https://core.telegram.org/type/InputBotInlineMessageID.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineMessageID"}, {"$ref": "#/components/schemas/inputBotInlineMessageID64"}], "description": "Тип TL: InputBotInlineMessageID."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `USER_BOT_INVALID` — Учетные записи пользователей должны предоставить параметр метода `bot` при вызове этого метода. Если такого параметра метода нет, этот метод может быть вызван только учетными записями ботов.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.setBotGuestChatResult"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор запроса из поля [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id`", "x-tl-type": "long"}, "result": {"type": "object", "x-tl-type": "InputBotInlineResult", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineResult"}, {"$ref": "#/components/schemas/inputBotInlineResultPhoto"}, {"$ref": "#/components/schemas/inputBotInlineResultDocument"}, {"$ref": "#/components/schemas/inputBotInlineResultGame"}], "description": "Результат для отправки в качестве ответа на запрос"}}, "additionalProperties": false, "required": ["query_id", "result"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query_id` | `long` | Да | Идентификатор запроса из поля [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id` |\n| `result` | `InputBotInlineResult` | Да | Результат для отправки в качестве ответа на запрос |"}, "x-telegram-rpc-errors": ["USER_BOT_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3102803683"}}, "/catalog/messages.deleteParticipantReactions": {"post": {"operationId": "messages.deleteParticipantReactions", "tags": ["Сообщения"], "summary": "Будучи администратором, вы можете удалить все реакции конкретного участника из каждого сообщения в группе или канале.", "description": "Будучи администратором, вы можете удалить все [реакции](https://core.telegram.org/api/reactions.md) конкретного участника из каждого сообщения в группе или канале.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.deleteParticipantReactions", "x-tl-id": "2696416504", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteParticipantReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Группа или канал, где нужно убрать реакции участника"}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник, чьи реакции следует удалить"}}, "additionalProperties": false, "required": ["peer", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Группа или канал, где нужно убрать реакции участника |\n| `participant` | `InputPeer` | Да | Участник, чьи реакции следует удалить |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2696416504"}}, "/catalog/messages.deleteParticipantReaction": {"post": {"operationId": "messages.deleteParticipantReaction", "tags": ["Сообщения"], "summary": "Будучи администратором, вы можете удалить все реакции конкретного участника из одного сообщения.", "description": "Будучи администратором, вы можете удалить все [реакции](https://core.telegram.org/api/reactions.md) конкретного участника из одного сообщения.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.deleteParticipantReaction", "x-tl-id": "3820484652", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.deleteParticipantReaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Группа или канал, где находится сообщение."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, реакции которого следует удалить"}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник, чьи реакции следует удалить из сообщения"}}, "additionalProperties": false, "required": ["peer", "msg_id", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Группа или канал, где находится сообщение. |\n| `msg_id` | `int` | Да | Идентификатор сообщения, реакции которого следует удалить |\n| `participant` | `InputPeer` | Да | Участник, чьи реакции следует удалить из сообщения |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3820484652"}}, "/catalog/messages.getPersonalChannelHistory": {"post": {"operationId": "messages.getPersonalChannelHistory", "tags": ["Сообщения"], "summary": "Получить историю сообщений личного канала пользователя».", "description": "Получить историю сообщений [личного канала пользователя »](https://core.telegram.org/api/profile.md#personal-channel).\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "messages.getPersonalChannelHistory", "x-tl-id": "1442515350", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/messages.getPersonalChannelHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, чью личную историю канала нужно получить"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было передано положительное значение, метод вернет только сообщения с идентификаторами меньше **max_id**"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если было передано положительное значение, метод вернет только сообщения с идентификаторами больше **min_id**"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш результата](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["user_id", "limit", "max_id", "min_id", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Пользователь, чью личную историю канала нужно получить |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | Да | Если было передано положительное значение, метод вернет только сообщения с идентификаторами меньше **max_id** |\n| `min_id` | `int` | Да | Если было передано положительное значение, метод вернет только сообщения с идентификаторами больше **min_id** |\n| `hash` | `long` | Да | [Хеш результата](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "1442515350"}}, "/catalog/messages.getRichMessage": {"post": {"operationId": "messages.getRichMessage", "tags": ["Сообщения"], "summary": "messages.getRichMessage", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.getRichMessage", "x-tl-id": "1343580623", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1343580623"}}, "/catalog/messages.translateRichMessage": {"post": {"operationId": "messages.translateRichMessage", "tags": ["Сообщения"], "summary": "messages.translateRichMessage", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.translateRichMessage", "x-tl-id": "441720836", "x-tl-result": "messages.TranslatedRichMessage", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.TranslatedRichMessage`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.TranslatedRichMessage", "oneOf": [{"$ref": "#/components/schemas/messages.translatedRichMessage"}], "description": "Тип TL: messages.TranslatedRichMessage."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer.", "x-tl-flag": "flags.0?InputPeer"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>", "description": "Значение типа TL `Vector<int>`."}, "text": {"type": "array", "items": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage."}, "x-tl-type": "Vector<InputRichMessage>", "x-tl-flag": "flags.1?Vector<InputRichMessage>", "description": "Значение типа TL `Vector<InputRichMessage>`."}, "to_lang": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "tone": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["to_lang"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Нет | Тип TL: InputPeer. |\n| `id` | `Vector<int>` | Нет | Значение типа TL `Vector<int>`. |\n| `text` | `Vector<InputRichMessage>` | Нет | Значение типа TL `Vector<InputRichMessage>`. |\n| `to_lang` | `string` | Да | Значение типа TL `string`. |\n| `tone` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "441720836"}}, "/catalog/messages.composeRichMessageWithAI": {"post": {"operationId": "messages.composeRichMessageWithAI", "tags": ["Сообщения"], "summary": "messages.composeRichMessageWithAI", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.composeRichMessageWithAI", "x-tl-id": "2373641903", "x-tl-result": "messages.ComposedRichMessageWithAI", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.ComposedRichMessageWithAI`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ComposedRichMessageWithAI", "oneOf": [{"$ref": "#/components/schemas/messages.composedRichMessageWithAI"}], "description": "Тип TL: messages.ComposedRichMessageWithAI."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"proofread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "emojify": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Значение типа TL `true`."}, "text": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.4?InputRichMessage"}, "translate_to_lang": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Значение типа TL `string`."}, "tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeToneDefault"}, {"$ref": "#/components/schemas/inputAiComposeToneID"}, {"$ref": "#/components/schemas/inputAiComposeToneSlug"}, {"$ref": "#/components/schemas/inputAiComposeToneSingleUse"}], "description": "Тип TL: InputAiComposeTone.", "x-tl-flag": "flags.2?InputAiComposeTone"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `proofread` | `true` | Нет | Значение типа TL `true`. |\n| `emojify` | `true` | Нет | Значение типа TL `true`. |\n| `text` | `InputRichMessage` | Нет | Тип TL: InputRichMessage. |\n| `translate_to_lang` | `string` | Нет | Значение типа TL `string`. |\n| `tone` | `InputAiComposeTone` | Нет | Тип TL: InputAiComposeTone. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2373641903"}}, "/catalog/messages.requestChatJoinWebView": {"post": {"operationId": "messages.requestChatJoinWebView", "tags": ["Сообщения"], "summary": "messages.requestChatJoinWebView", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.requestChatJoinWebView", "x-tl-id": "3130975865", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `WebViewResult`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "Тип TL: WebViewResult."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Тип TL: DataJSON.", "x-tl-flag": "flags.0?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["query_id", "platform"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `theme_params` | `DataJSON` | Нет | Тип TL: DataJSON. |\n| `platform` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3130975865"}}, "/catalog/messages.setShareTheme": {"post": {"operationId": "messages.setShareTheme", "tags": ["Сообщения"], "summary": "messages.setShareTheme", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.setShareTheme", "x-tl-id": "1770691354", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "theme": {"type": "object", "x-tl-type": "ShareTheme", "oneOf": [{"$ref": "#/components/schemas/shareThemeDefault"}, {"$ref": "#/components/schemas/shareThemeEmojiBackdrop"}, {"$ref": "#/components/schemas/shareThemeGift"}, {"$ref": "#/components/schemas/inputShareThemeGift"}], "description": "Тип TL: ShareTheme."}}, "additionalProperties": false, "required": ["peer", "theme"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `theme` | `ShareTheme` | Да | Тип TL: ShareTheme. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1770691354"}}, "/catalog/messages.getShareThemeBackdrops": {"post": {"operationId": "messages.getShareThemeBackdrops", "tags": ["Сообщения"], "summary": "messages.getShareThemeBackdrops", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.getShareThemeBackdrops", "x-tl-id": "4099514098", "x-tl-result": "ShareThemeBackdrops", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `ShareThemeBackdrops`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ShareThemeBackdrops", "oneOf": [{"$ref": "#/components/schemas/shareThemeBackdropsNotModified"}, {"$ref": "#/components/schemas/shareThemeBackdrops"}], "description": "Тип TL: ShareThemeBackdrops."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4099514098"}}, "/catalog/messages.getBotWidgetQueryAnswer": {"post": {"operationId": "messages.getBotWidgetQueryAnswer", "tags": ["Сообщения"], "summary": "messages.getBotWidgetQueryAnswer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.getBotWidgetQueryAnswer", "x-tl-id": "1549075833", "x-tl-result": "messages.BotWidgetQueryAnswer", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.BotWidgetQueryAnswer`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotWidgetQueryAnswer", "oneOf": [{"$ref": "#/components/schemas/messages.botWidgetQueryAnswer"}], "description": "Тип TL: messages.BotWidgetQueryAnswer."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "oneOf": [{"$ref": "#/components/schemas/widgetQueryTypeData"}, {"$ref": "#/components/schemas/widgetQueryTypeSignData"}, {"$ref": "#/components/schemas/widgetQueryTypeSentTransaction"}], "description": "Тип TL: WidgetQueryType."}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["peer", "msg_id", "query_type", "data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `msg_id` | `int` | Да | Значение типа TL `int`. |\n| `query_type` | `WidgetQueryType` | Да | Тип TL: WidgetQueryType. |\n| `data` | `bytes` | Да | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1549075833"}}, "/catalog/messages.setBotWidgetQueryAnswer": {"post": {"operationId": "messages.setBotWidgetQueryAnswer", "tags": ["Сообщения"], "summary": "messages.setBotWidgetQueryAnswer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.setBotWidgetQueryAnswer", "x-tl-id": "4174244970", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "result": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["query_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `result` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4174244970"}}, "/catalog/messages.editMessageWidgetData": {"post": {"operationId": "messages.editMessageWidgetData", "tags": ["Сообщения"], "summary": "messages.editMessageWidgetData", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.editMessageWidgetData", "x-tl-id": "4129602590", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `id` | `int` | Да | Значение типа TL `int`. |\n| `public_data` | `string` | Нет | Значение типа TL `string`. |\n| `chat_data` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4129602590"}}, "/catalog/messages.editInlineBotMessageWidgetData": {"post": {"operationId": "messages.editInlineBotMessageWidgetData", "tags": ["Сообщения"], "summary": "messages.editInlineBotMessageWidgetData", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.editInlineBotMessageWidgetData", "x-tl-id": "1670827563", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineMessageID"}, {"$ref": "#/components/schemas/inputBotInlineMessageID64"}], "description": "Тип TL: InputBotInlineMessageID."}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `InputBotInlineMessageID` | Да | Тип TL: InputBotInlineMessageID. |\n| `public_data` | `string` | Нет | Значение типа TL `string`. |\n| `chat_data` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1670827563"}}, "/catalog/messages.editWidgetData": {"post": {"operationId": "messages.editWidgetData", "tags": ["Сообщения"], "summary": "messages.editWidgetData", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.editWidgetData", "x-tl-id": "3938665408", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "public_data": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["widget_id", "public_data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `widget_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `public_data` | `string` | Да | Значение типа TL `string`. |\n| `cache_time` | `int` | Нет | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3938665408"}}, "/catalog/messages.getWidgetPublicData": {"post": {"operationId": "messages.getWidgetPublicData", "tags": ["Сообщения"], "summary": "messages.getWidgetPublicData", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.getWidgetPublicData", "x-tl-id": "1875194241", "x-tl-result": "messages.WidgetPublicData", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.WidgetPublicData`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.WidgetPublicData", "oneOf": [{"$ref": "#/components/schemas/messages.widgetPublicDataNotModified"}, {"$ref": "#/components/schemas/messages.widgetPublicData"}], "description": "Тип TL: messages.WidgetPublicData."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "msg_id", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `msg_id` | `int` | Да | Значение типа TL `int`. |\n| `hash` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1875194241"}}, "/catalog/messages.transcribeAudioFile": {"post": {"operationId": "messages.transcribeAudioFile", "tags": ["Сообщения"], "summary": "messages.transcribeAudioFile", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.transcribeAudioFile", "x-tl-id": "120401655", "x-tl-result": "messages.TranscribedAudio", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.TranscribedAudio`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.TranscribedAudio", "oneOf": [{"$ref": "#/components/schemas/messages.transcribedAudio"}], "description": "Тип TL: messages.TranscribedAudio."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Тип TL: InputFile."}}, "additionalProperties": false, "required": ["file"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file` | `InputFile` | Да | Тип TL: InputFile. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "120401655"}}, "/catalog/messages.getTranscriptionLangs": {"post": {"operationId": "messages.getTranscriptionLangs", "tags": ["Сообщения"], "summary": "messages.getTranscriptionLangs", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.getTranscriptionLangs", "x-tl-id": "3127695786", "x-tl-result": "Vector<string>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<string>`.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer.", "x-tl-flag": "flags.0?InputPeer"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Нет | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3127695786"}}, "/catalog/messages.inviteUsersToBot": {"post": {"operationId": "messages.inviteUsersToBot", "tags": ["Сообщения"], "summary": "messages.inviteUsersToBot", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.inviteUsersToBot", "x-tl-id": "498593787", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Значение типа TL `Vector<InputUser>`."}}, "additionalProperties": false, "required": ["bot", "users"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Тип TL: InputUser. |\n| `users` | `Vector<InputUser>` | Да | Значение типа TL `Vector<InputUser>`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "498593787"}}, "/catalog/messages.getTranscriptionModels": {"post": {"operationId": "messages.getTranscriptionModels", "tags": ["Сообщения"], "summary": "messages.getTranscriptionModels", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.getTranscriptionModels", "x-tl-id": "136274721", "x-tl-result": "Vector<TranscriptionModel>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<TranscriptionModel>`.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "TranscriptionModel", "oneOf": [{"$ref": "#/components/schemas/transcriptionModel"}], "description": "Тип TL: TranscriptionModel."}, "x-tl-type": "Vector<TranscriptionModel>"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["version"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `version` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "136274721"}}, "/catalog/messages.reportFeedEvents": {"post": {"operationId": "messages.reportFeedEvents", "tags": ["Сообщения"], "summary": "messages.reportFeedEvents", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.reportFeedEvents", "x-tl-id": "3835876816", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"events": {"type": "array", "items": {"type": "object", "x-tl-type": "InputFeedEvent", "oneOf": [{"$ref": "#/components/schemas/inputFeedEvent"}], "description": "Тип TL: InputFeedEvent."}, "x-tl-type": "Vector<InputFeedEvent>", "description": "Значение типа TL `Vector<InputFeedEvent>`."}}, "additionalProperties": false, "required": ["events"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `events` | `Vector<InputFeedEvent>` | Да | Значение типа TL `Vector<InputFeedEvent>`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3835876816"}}, "/catalog/messages.reportNotSpam": {"post": {"operationId": "messages.reportNotSpam", "tags": ["Сообщения"], "summary": "messages.reportNotSpam", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.reportNotSpam", "x-tl-id": "3418396603", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3418396603"}}, "/catalog/messages.getVoipModels": {"post": {"operationId": "messages.getVoipModels", "tags": ["Сообщения"], "summary": "messages.getVoipModels", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "messages.getVoipModels", "x-tl-id": "546169867", "x-tl-result": "Vector<VoipModel>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<VoipModel>`.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "VoipModel", "oneOf": [{"$ref": "#/components/schemas/voipModel"}], "description": "Тип TL: VoipModel."}, "x-tl-type": "Vector<VoipModel>"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["version"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `version` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "546169867"}}, "/catalog/updates.getState": {"post": {"operationId": "updates.getState", "tags": ["Обновления"], "summary": "Возвращает текущее состояние обновлений.", "description": "Возвращает текущее состояние обновлений.", "x-tl-method": "updates.getState", "x-tl-id": "3990128682", "x-tl-result": "updates.State", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `updates.State`.\n\n[updates.State](https://core.telegram.org/type/updates.State.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "updates.State", "oneOf": [{"$ref": "#/components/schemas/updates.state"}], "description": "Тип TL: updates.State."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/updates.getState"}, "x-browser-schema-id": "3990128682"}}, "/catalog/updates.getDifference": {"post": {"operationId": "updates.getDifference", "tags": ["Обновления"], "summary": "Получайте новые обновления.", "description": "Получайте новые [обновления](https://core.telegram.org/api/updates.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "updates.getDifference", "x-tl-id": "432207715", "x-tl-result": "updates.Difference", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `updates.Difference`.\n\n[updates.Difference](https://core.telegram.org/type/updates.Difference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "updates.Difference", "oneOf": [{"$ref": "#/components/schemas/updates.differenceEmpty"}, {"$ref": "#/components/schemas/updates.difference"}, {"$ref": "#/components/schemas/updates.differenceSlice"}, {"$ref": "#/components/schemas/updates.differenceTooLong"}], "description": "Тип TL: updates.Difference."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — Вы не можете вызвать этот метод в CDN DC.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `DATE_EMPTY` — Дата пуста.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PERSISTENT_TIMESTAMP_EMPTY` — Постоянная временная метка пуста.\n- 400 · `PERSISTENT_TIMESTAMP_INVALID` — Постоянная временная метка недействительна.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USER_NOT_PARTICIPANT` — Вы не состоите в этой супергруппе/канале."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/updates.getDifference"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "PTS, см. [обновления](https://core.telegram.org/api/updates.md)."}, "pts_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "PTS лимит"}, "pts_total_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Для быстрого обновления: если указано и `pts + pts_total_limit < remote pts`, будет возвращено [updates.differenceTooLong](https://core.telegram.org/constructor/updates.differenceTooLong.md). Просто говорит серверу не возвращать разницу, если она больше ⟦15. Если удаленные точки слишком велики (> ~4000000), это поле по умолчанию будет равно 1000000."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "дату см. в [обновления](https://core.telegram.org/api/updates.md)."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "QTS, см. [обновления](https://core.telegram.org/api/updates.md)."}, "qts_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "QTS лимит"}}, "additionalProperties": false, "required": ["pts", "date", "qts"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `pts` | `int` | Да | PTS, см. [обновления](https://core.telegram.org/api/updates.md). |\n| `pts_limit` | `int` | Нет | PTS лимит |\n| `pts_total_limit` | `int` | Нет | Для быстрого обновления: если указано и `pts + pts_total_limit < remote pts`, будет возвращено [updates.differenceTooLong](https://core.telegram.org/constructor/updates.differenceTooLong.md). Просто говорит серверу не возвращать разницу, если она больше ⟦15. Если удаленные точки слишком велики (> ~4000000), это поле по умолчанию будет равно 1000000. |\n| `date` | `int` | Да | дату см. в [обновления](https://core.telegram.org/api/updates.md). |\n| `qts` | `int` | Да | QTS, см. [обновления](https://core.telegram.org/api/updates.md). |\n| `qts_limit` | `int` | Нет | QTS лимит |"}, "x-telegram-rpc-errors": ["CDN_METHOD_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "DATE_EMPTY", "MSG_ID_INVALID", "PERSISTENT_TIMESTAMP_EMPTY", "PERSISTENT_TIMESTAMP_INVALID", "RANDOM_ID_DUPLICATE", "USERNAME_INVALID", "USER_NOT_PARTICIPANT"], "x-browser-schema-id": "432207715"}}, "/catalog/updates.getChannelDifference": {"post": {"operationId": "updates.getChannelDifference", "tags": ["Обновления"], "summary": "Возвращает разницу между текущим состоянием обновлений определенного канала и переданным.", "description": "Возвращает разницу между текущим состоянием обновлений определенного канала и переданным.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "updates.getChannelDifference", "x-tl-id": "51854712", "x-tl-result": "updates.ChannelDifference", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `updates.ChannelDifference`.\n\n[updates.ChannelDifference](https://core.telegram.org/type/updates.ChannelDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "updates.ChannelDifference", "oneOf": [{"$ref": "#/components/schemas/updates.channelDifferenceEmpty"}, {"$ref": "#/components/schemas/updates.channelDifferenceTooLong"}, {"$ref": "#/components/schemas/updates.channelDifference"}], "description": "Тип TL: updates.ChannelDifference."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHANNEL_PUBLIC_GROUP_NA` — канал/супергруппа недоступен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `FROM_MESSAGE_BOT_DISABLED` — Боты не могут использовать конструкторы fromMessage min.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — Текущая учетная запись [заморожена](https://core.telegram.org/api/auth.md#frozen-accounts) и не может получить доступ к указанному узлу.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PERSISTENT_TIMESTAMP_EMPTY` — Постоянная временная метка пуста.\n- 400 · `PERSISTENT_TIMESTAMP_INVALID` — Постоянная временная метка недействительна.\n- 500 · `PERSISTENT_TIMESTAMP_OUTDATED` — Проблемы с внутренней репликацией канала, повторите попытку позже (расценивайте это как RPC_CALL_FAIL).\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Слишком много закрепленных диалогов.\n- 400 · `RANGES_INVALID` — Указан неверный диапазон.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/updates.getChannelDifference"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите значение true, чтобы пропустить некоторые, возможно, ненужные обновления и снизить нагрузку на сервер."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}, "filter": {"type": "object", "x-tl-type": "ChannelMessagesFilter", "oneOf": [{"$ref": "#/components/schemas/channelMessagesFilterEmpty"}, {"$ref": "#/components/schemas/channelMessagesFilter"}], "description": "Фильтр сообщений"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Постоянная временная метка (см. [обновления](https://core.telegram.org/api/updates.md))"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Сколько обновлений нужно получить, максимум `100000` Обычные пользователи (не боты) должны передать `10-100`"}}, "additionalProperties": false, "required": ["channel", "filter", "pts", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `force` | `true` | Нет | Установите значение true, чтобы пропустить некоторые, возможно, ненужные обновления и снизить нагрузку на сервер. |\n| `channel` | `InputChannel` | Да | Канал |\n| `filter` | `ChannelMessagesFilter` | Да | Фильтр сообщений |\n| `pts` | `int` | Да | Постоянная временная метка (см. [обновления](https://core.telegram.org/api/updates.md)) |\n| `limit` | `int` | Да | Сколько обновлений нужно получить, максимум `100000` Обычные пользователи (не боты) должны передать `10-100` |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHANNEL_PUBLIC_GROUP_NA", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "FROM_MESSAGE_BOT_DISABLED", "FROZEN_PARTICIPANT_MISSING", "MSG_ID_INVALID", "PERSISTENT_TIMESTAMP_EMPTY", "PERSISTENT_TIMESTAMP_INVALID", "PERSISTENT_TIMESTAMP_OUTDATED", "PINNED_DIALOGS_TOO_MUCH", "RANGES_INVALID", "USER_BANNED_IN_CHANNEL"], "x-browser-schema-id": "51854712"}}, "/catalog/photos.updateProfilePhoto": {"post": {"operationId": "photos.updateProfilePhoto", "tags": ["Фотографии"], "summary": "Устанавливает ранее загруженную фотографию в качестве фотографии профиля.", "description": "Устанавливает ранее загруженную фотографию в качестве фотографии профиля.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "photos.updateProfilePhoto", "x-tl-id": "166207545", "x-tl-result": "photos.Photo", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `photos.Photo`.\n\n[photos.Photo](https://core.telegram.org/type/photos.Photo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "photos.Photo", "oneOf": [{"$ref": "#/components/schemas/photos.photo"}], "description": "Тип TL: photos.Photo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ALBUM_PHOTOS_TOO_MANY` — Вы загрузили слишком много фотографий профиля, удалите некоторые, прежде чем повторить попытку.\n- 400 · `BOT_FALLBACK_UNSUPPORTED` — Для ботов нельзя установить запасной флаг.\n- 400 · `FILE_PARTS_INVALID` — Недопустимое количество частей файла.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 400 · `LOCATION_INVALID` — Указано неверное местоположение.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Фотография слишком маленькая.\n- 400 · `PHOTO_EXT_INVALID` — Недопустимое расширение фотографии.\n- 400 · `PHOTO_ID_INVALID` — Идентификатор фотографии недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/photos.updateProfilePhoto"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"fallback": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, выбранное фото профиля будет показано пользователям, которые не могут отображать ваше основное фото профиля из-за ваших настроек конфиденциальности."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Может содержать информацию о нашем боте, чтобы изменить фотографию профиля этого бота вместо текущего пользователя.", "x-tl-flag": "flags.1?InputUser"}, "id": {"type": "object", "x-tl-type": "InputPhoto", "oneOf": [{"$ref": "#/components/schemas/inputPhotoEmpty"}, {"$ref": "#/components/schemas/inputPhoto"}], "description": "Введите фото"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `fallback` | `true` | Нет | Если установлено, выбранное фото профиля будет показано пользователям, которые не могут отображать ваше основное фото профиля из-за ваших настроек конфиденциальности. |\n| `bot` | `InputUser` | Нет | Может содержать информацию о нашем боте, чтобы изменить фотографию профиля этого бота вместо текущего пользователя. |\n| `id` | `InputPhoto` | Да | Введите фото |"}, "x-telegram-rpc-errors": ["ALBUM_PHOTOS_TOO_MANY", "BOT_FALLBACK_UNSUPPORTED", "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", "LOCATION_INVALID", "PHOTO_CROP_SIZE_SMALL", "PHOTO_EXT_INVALID", "PHOTO_ID_INVALID"], "x-browser-schema-id": "166207545"}}, "/catalog/photos.uploadProfilePhoto": {"post": {"operationId": "photos.uploadProfilePhoto", "tags": ["Фотографии"], "summary": "Обновляет фотографию текущего профиля пользователя.", "description": "Обновляет фотографию текущего профиля пользователя.\n\nФлаги `file`, `video` и `video_emoji_markup` являются взаимоисключающими.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "photos.uploadProfilePhoto", "x-tl-id": "59286453", "x-tl-result": "photos.Photo", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "Результат MTProto · `photos.Photo`.\n\n[photos.Photo](https://core.telegram.org/type/photos.Photo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "photos.Photo", "oneOf": [{"$ref": "#/components/schemas/photos.photo"}], "description": "Тип TL: photos.Photo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ALBUM_PHOTOS_TOO_MANY` — Вы загрузили слишком много фотографий профиля, удалите некоторые, прежде чем повторить попытку.\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `EMOJI_MARKUP_INVALID` — Указанное `video_emoji_markup` неверно.\n- 400 · `FILE_PARTS_INVALID` — Недопустимое количество частей файла.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 400 · `PHOTO_CROP_FILE_MISSING` — Отсутствует файл обрезки фотографии.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Фотография слишком маленькая.\n- 400 · `PHOTO_EXT_INVALID` — Недопустимое расширение фотографии.\n- 400 · `PHOTO_FILE_MISSING` — Отсутствует файл с фотографией профиля.\n- 400 · `PHOTO_INVALID` — Фотография недействительна.\n- 400 · `STICKER_MIME_INVALID` — Указанный тип наклейки MIME недействителен.\n- 400 · `VIDEO_FILE_INVALID` — Указанный видеофайл недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/photos.uploadProfilePhoto"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"fallback": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Если установлено, выбранное фото профиля будет показано пользователям, которые не могут отображать ваше основное фото профиля из-за ваших настроек конфиденциальности."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Может содержать информацию о нашем боте, чтобы изменить фотографию профиля этого бота вместо текущего пользователя.", "x-tl-flag": "flags.5?InputUser"}, "file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Фото профиля", "x-tl-flag": "flags.0?InputFile"}, "video": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "[Анимированное изображение профиля](https://core.telegram.org/api/files.md#animated-profile-pictures) видео", "x-tl-flag": "flags.1?InputFile"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.2?double", "description": "Временная метка с плавающей запятой UNIX в секундах, обозначающая кадр видео/стикера, который следует использовать в качестве статического предварительного просмотра; можно использовать только в том случае, если установлено `video` или `video_emoji_markup`."}, "video_emoji_markup": {"type": "object", "x-tl-type": "VideoSize", "oneOf": [{"$ref": "#/components/schemas/videoSize"}, {"$ref": "#/components/schemas/videoSizeEmojiMarkup"}, {"$ref": "#/components/schemas/videoSizeStickerMarkup"}], "description": "Анимированное изображение профиля стикера должно содержать конструктор [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) или [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)].", "x-tl-flag": "flags.4?VideoSize"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `fallback` | `true` | Нет | Если установлено, выбранное фото профиля будет показано пользователям, которые не могут отображать ваше основное фото профиля из-за ваших настроек конфиденциальности. |\n| `bot` | `InputUser` | Нет | Может содержать информацию о нашем боте, чтобы изменить фотографию профиля этого бота вместо текущего пользователя. |\n| `file` | `InputFile` | Нет | Фото профиля |\n| `video` | `InputFile` | Нет | [Анимированное изображение профиля](https://core.telegram.org/api/files.md#animated-profile-pictures) видео |\n| `video_start_ts` | `double` | Нет | Временная метка с плавающей запятой UNIX в секундах, обозначающая кадр видео/стикера, который следует использовать в качестве статического предварительного просмотра; можно использовать только в том случае, если установлено `video` или `video_emoji_markup`. |\n| `video_emoji_markup` | `VideoSize` | Нет | Анимированное изображение профиля стикера должно содержать конструктор [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) или [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)]. |"}, "x-telegram-rpc-errors": ["ALBUM_PHOTOS_TOO_MANY", "BOT_INVALID", "EMOJI_MARKUP_INVALID", "FILE_PARTS_INVALID", "IMAGE_PROCESS_FAILED", "PHOTO_CROP_FILE_MISSING", "PHOTO_CROP_SIZE_SMALL", "PHOTO_EXT_INVALID", "PHOTO_FILE_MISSING", "PHOTO_INVALID", "STICKER_MIME_INVALID", "VIDEO_FILE_INVALID"], "x-browser-schema-id": "59286453"}}, "/catalog/photos.deletePhotos": {"post": {"operationId": "photos.deletePhotos", "tags": ["Фотографии"], "summary": "Удаляет фотографии профиля. Метод возвращает список успешно удаленных идентификаторов фотографий.", "description": "Удаляет фотографии профиля. Метод возвращает список успешно удаленных идентификаторов фотографий.", "x-tl-method": "photos.deletePhotos", "x-tl-id": "2278522671", "x-tl-result": "Vector<long>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<long>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[длинный](https://core.telegram.org/type/long.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/photos.deletePhotos"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPhoto", "oneOf": [{"$ref": "#/components/schemas/inputPhotoEmpty"}, {"$ref": "#/components/schemas/inputPhoto"}], "description": "Тип TL: InputPhoto."}, "x-tl-type": "Vector<InputPhoto>", "description": "Введите фотографии для удаления"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputPhoto>` | Да | Введите фотографии для удаления |"}, "x-browser-schema-id": "2278522671"}}, "/catalog/photos.getUserPhotos": {"post": {"operationId": "photos.getUserPhotos", "tags": ["Фотографии"], "summary": "Возвращает список фотографий пользователя.", "description": "Возвращает список фотографий пользователя.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [File references](https://core.telegram.org/api/file-references.md)", "x-tl-method": "photos.getUserPhotos", "x-tl-id": "2446144168", "x-tl-result": "photos.Photos", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["File references", "https://core.telegram.org/api/file-references.md"]], "responses": {"200": {"description": "Результат MTProto · `photos.Photos`.\n\n[photos.Photos](https://core.telegram.org/type/photos.Photos.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "photos.Photos", "oneOf": [{"$ref": "#/components/schemas/photos.photos"}, {"$ref": "#/components/schemas/photos.photosSlice"}], "description": "Тип TL: photos.Photos."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MAX_ID_INVALID` — Указанный максимальный идентификатор недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/photos.getUserPhotos"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество элементов списка, которые нужно пропустить"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Если было передано положительное значение, метод вернет только фотографии с идентификаторами меньше заданного. Этот параметр часто бывает полезен при [повторной выборке ссылок на файлы»](https://core.telegram.org/api/file-references.md), как в сочетании с `limit=1` и `offset=-1` можно получить объект [photo](https://core.telegram.org/constructor/photo.md) с `id`, указанным в `max_id`.", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество элементов списка, которые будут возвращены"}}, "additionalProperties": false, "required": ["user_id", "offset", "max_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя |\n| `offset` | `int` | Да | Количество элементов списка, которые нужно пропустить |\n| `max_id` | `long` | Да | Если было передано положительное значение, метод вернет только фотографии с идентификаторами меньше заданного. Этот параметр часто бывает полезен при [повторной выборке ссылок на файлы»](https://core.telegram.org/api/file-references.md), как в сочетании с `limit=1` и `offset=-1` можно получить объект [photo](https://core.telegram.org/constructor/photo.md) с `id`, указанным в `max_id`. |\n| `limit` | `int` | Да | Количество элементов списка, которые будут возвращены |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "MAX_ID_INVALID", "MSG_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "2446144168"}}, "/catalog/photos.uploadContactProfilePhoto": {"post": {"operationId": "photos.uploadContactProfilePhoto", "tags": ["Фотографии"], "summary": "Загрузите собственное изображение профиля для контакта или предложите контакту новое изображение профиля.", "description": "Загрузите собственное изображение профиля для контакта или предложите контакту новое изображение профиля.\n\nФлаги `file`, `video` и `video_emoji_markup` являются взаимоисключающими.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "photos.uploadContactProfilePhoto", "x-tl-id": "3779873393", "x-tl-result": "photos.Photo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "Результат MTProto · `photos.Photo`.\n\n[photos.Photo](https://core.telegram.org/type/photos.Photo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "photos.Photo", "oneOf": [{"$ref": "#/components/schemas/photos.photo"}], "description": "Тип TL: photos.Photo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CONTACT_MISSING` — Указанный пользователь не является контактом.\n- 400 · `NEED_ACTION_MISSING` — Звонивший не указал допустимое действие (сохранить или предложить) для загрузки фотографии профиля контакта.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/photos.uploadContactProfilePhoto"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"suggest": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Если установлено, будет отправлено служебное сообщение [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) на `user_id`, предлагающее использовать указанное изображение профиля; в противном случае для пользователя будет установлено изображение личного профиля (видимое только текущему пользователю)."}, "save": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Если установлено, удаляется ранее установленное изображение личного профиля (не влияет на предлагаемые изображения профиля, чтобы удалить их, просто удалите служебное сообщение [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) с помощью [messages.deleteMessages](https://core.telegram.org/method/messages.deleteMessages.md))."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Контакт"}, "file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Фото профиля", "x-tl-flag": "flags.0?InputFile"}, "video": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "[Анимированное изображение профиля](https://core.telegram.org/api/files.md#animated-profile-pictures) видео", "x-tl-flag": "flags.1?InputFile"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.2?double", "description": "Временная метка с плавающей запятой UNIX в секундах, обозначающая кадр видео/стикера, который следует использовать в качестве статического предварительного просмотра; можно использовать только в том случае, если установлено `video` или `video_emoji_markup`."}, "video_emoji_markup": {"type": "object", "x-tl-type": "VideoSize", "oneOf": [{"$ref": "#/components/schemas/videoSize"}, {"$ref": "#/components/schemas/videoSizeEmojiMarkup"}, {"$ref": "#/components/schemas/videoSizeStickerMarkup"}], "description": "Анимированное изображение профиля стикера должно содержать конструктор [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) или [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)].", "x-tl-flag": "flags.5?VideoSize"}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `suggest` | `true` | Нет | Если установлено, будет отправлено служебное сообщение [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) на `user_id`, предлагающее использовать указанное изображение профиля; в противном случае для пользователя будет установлено изображение личного профиля (видимое только текущему пользователю). |\n| `save` | `true` | Нет | Если установлено, удаляется ранее установленное изображение личного профиля (не влияет на предлагаемые изображения профиля, чтобы удалить их, просто удалите служебное сообщение [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) с помощью [messages.deleteMessages](https://core.telegram.org/method/messages.deleteMessages.md)). |\n| `user_id` | `InputUser` | Да | Контакт |\n| `file` | `InputFile` | Нет | Фото профиля |\n| `video` | `InputFile` | Нет | [Анимированное изображение профиля](https://core.telegram.org/api/files.md#animated-profile-pictures) видео |\n| `video_start_ts` | `double` | Нет | Временная метка с плавающей запятой UNIX в секундах, обозначающая кадр видео/стикера, который следует использовать в качестве статического предварительного просмотра; можно использовать только в том случае, если установлено `video` или `video_emoji_markup`. |\n| `video_emoji_markup` | `VideoSize` | Нет | Анимированное изображение профиля стикера должно содержать конструктор [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) или [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)]. |"}, "x-telegram-rpc-errors": ["CONTACT_MISSING", "NEED_ACTION_MISSING", "USER_ID_INVALID"], "x-browser-schema-id": "3779873393"}}, "/catalog/upload.saveFilePart": {"post": {"operationId": "upload.saveFilePart", "tags": ["Файлы"], "summary": "Сохраняет часть файла для дальнейшей отправки одним из методов.", "description": "Сохраняет часть файла для дальнейшей отправки одним из методов.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "upload.saveFilePart", "x-tl-id": "3003426337", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILE_PART_EMPTY` — Указанная часть файла пуста.\n- 400 · `FILE_PART_INVALID` — Неверный номер части файла.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.saveFilePart"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор файла, созданный клиентом", "x-tl-type": "long"}, "file_part": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Числовой порядок детали"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Двоичные данные, содержимое части"}}, "additionalProperties": false, "required": ["file_id", "file_part", "bytes"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file_id` | `long` | Да | Случайный идентификатор файла, созданный клиентом |\n| `file_part` | `int` | Да | Числовой порядок детали |\n| `bytes` | `bytes` | Да | Двоичные данные, содержимое части |"}, "x-telegram-rpc-errors": ["FILE_PART_EMPTY", "FILE_PART_INVALID", "MSG_ID_INVALID"], "x-browser-schema-id": "3003426337"}}, "/catalog/upload.getFile": {"post": {"operationId": "upload.getFile", "tags": ["Файлы"], "summary": "Возвращает содержимое всего файла или его части.", "description": "Возвращает содержимое всего файла или его части.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [File references](https://core.telegram.org/api/file-references.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "upload.getFile", "x-tl-id": "3193124286", "x-tl-result": "upload.File", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["File references", "https://core.telegram.org/api/file-references.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "Результат MTProto · `upload.File`.\n\n[upload.File](https://core.telegram.org/type/upload.File.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "upload.File", "oneOf": [{"$ref": "#/components/schemas/upload.file"}, {"$ref": "#/components/schemas/upload.fileCdnRedirect"}], "description": "Тип TL: upload.File."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — Вы не можете вызвать этот метод в CDN DC.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 406 · `FILEREF_UPGRADE_NEEDED` — Клиент должен быть обновлен для поддержки [ссылки на файлы](https://core.telegram.org/api/file-references.md).\n- 400 · `FILE_ID_INVALID` — Указанный идентификатор файла недействителен.\n- 400 · `FILE_REFERENCE_EMPTY` — Указана пустая [ссылка на файл](https://core.telegram.org/api/file-references.md).\n- 400 · `FILE_REFERENCE_EXPIRED` — Срок действия ссылки на файл истек, его необходимо загрузить заново, как описано в [документация](https://core.telegram.org/api/file-references.md).\n- 400 · `FILE_REFERENCE_INVALID` — Указанная [ссылка на файл](https://core.telegram.org/api/file-references.md) недействительна.\n- 420 · `FLOOD_PREMIUM_WAIT_%d` — Подождите %d секунд, прежде чем повторять действие, или приобретите [подписку Telegram Premium](https://core.telegram.org/api/premium.md), чтобы снять это ограничение скорости.\n- 400 · `LIMIT_INVALID` — Указанный лимит недействителен.\n- 400 · `LOCATION_INVALID` — Указано неверное местоположение.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `OFFSET_INVALID` — Указанное смещение неверно.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.getFile"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"precise": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Отключите некоторые проверки предельных значений и значений смещения, что полезно, например, для потоковой передачи видео по ключевым кадрам."}, "cdn_supported": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Поддерживает ли текущий клиент [CDN загрузки](https://core.telegram.org/cdn.md)"}, "location": {"type": "object", "x-tl-type": "InputFileLocation", "oneOf": [{"$ref": "#/components/schemas/inputFileLocation"}, {"$ref": "#/components/schemas/inputEncryptedFileLocation"}, {"$ref": "#/components/schemas/inputDocumentFileLocation"}, {"$ref": "#/components/schemas/inputSecureFileLocation"}, {"$ref": "#/components/schemas/inputTakeoutFileLocation"}, {"$ref": "#/components/schemas/inputPhotoFileLocation"}, {"$ref": "#/components/schemas/inputPhotoLegacyFileLocation"}, {"$ref": "#/components/schemas/inputPeerPhotoFileLocation"}, {"$ref": "#/components/schemas/inputStickerSetThumb"}, {"$ref": "#/components/schemas/inputGroupCallStream"}], "description": "Местоположение файла"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество байтов, которые нужно пропустить", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество байт, которое должно быть возвращено"}}, "additionalProperties": false, "required": ["location", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `precise` | `true` | Нет | Отключите некоторые проверки предельных значений и значений смещения, что полезно, например, для потоковой передачи видео по ключевым кадрам. |\n| `cdn_supported` | `true` | Нет | Поддерживает ли текущий клиент [CDN загрузки](https://core.telegram.org/cdn.md) |\n| `location` | `InputFileLocation` | Да | Местоположение файла |\n| `offset` | `long` | Да | Количество байтов, которые нужно пропустить |\n| `limit` | `int` | Да | Количество байт, которое должно быть возвращено |"}, "x-telegram-rpc-errors": ["CDN_METHOD_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "FILEREF_UPGRADE_NEEDED", "FILE_ID_INVALID", "FILE_REFERENCE_EMPTY", "FILE_REFERENCE_EXPIRED", "FILE_REFERENCE_INVALID", "FLOOD_PREMIUM_WAIT_%d", "LIMIT_INVALID", "LOCATION_INVALID", "MSG_ID_INVALID", "OFFSET_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3193124286"}}, "/catalog/upload.saveBigFilePart": {"post": {"operationId": "upload.saveBigFilePart", "tags": ["Файлы"], "summary": "Сохраняет часть большого файла (размером более 10 МБ) для последующей передачи одному из методов.", "description": "Сохраняет часть большого файла (размером более 10 МБ) для последующей передачи одному из методов.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "upload.saveBigFilePart", "x-tl-id": "3732629309", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILE_PARTS_INVALID` — Недопустимое количество частей файла.\n- 400 · `FILE_PART_EMPTY` — Указанная часть файла пуста.\n- 400 · `FILE_PART_INVALID` — Неверный номер части файла.\n- 400 · `FILE_PART_SIZE_CHANGED` — Размер указанной части файла изменился.\n- 400 · `FILE_PART_SIZE_INVALID` — Указан неверный размер части файла.\n- 400 · `FILE_PART_TOO_BIG` — Загруженная часть файла слишком велика.\n- 400 · `FILE_PART_TOO_SMALL` — Размер загружаемой части файла слишком мал, допустимые размеры смотрите в документации."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.saveBigFilePart"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор файла, созданный клиентом", "x-tl-type": "long"}, "file_part": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Порядковый номер детали"}, "file_total_parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество деталей"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Двоичные данные, содержимое части"}}, "additionalProperties": false, "required": ["file_id", "file_part", "file_total_parts", "bytes"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file_id` | `long` | Да | Случайный идентификатор файла, созданный клиентом |\n| `file_part` | `int` | Да | Порядковый номер детали |\n| `file_total_parts` | `int` | Да | Общее количество деталей |\n| `bytes` | `bytes` | Да | Двоичные данные, содержимое части |"}, "x-telegram-rpc-errors": ["FILE_PARTS_INVALID", "FILE_PART_EMPTY", "FILE_PART_INVALID", "FILE_PART_SIZE_CHANGED", "FILE_PART_SIZE_INVALID", "FILE_PART_TOO_BIG", "FILE_PART_TOO_SMALL"], "x-browser-schema-id": "3732629309"}}, "/catalog/upload.getWebFile": {"post": {"operationId": "upload.getWebFile", "tags": ["Файлы"], "summary": "Возвращает содержимое веб-файла, передавая запрос через Telegram. Дополнительную информацию см. в документации по веб-файлу.", "description": "Возвращает содержимое веб-файла, передавая запрос через Telegram, дополнительную информацию см. в [документации веб-файла](https://core.telegram.org/api/files.md#downloading-webfiles).\n\n**Примечание**: запрос необходимо отправить на контроллер домена, указанный в поле конфигурации `webfile_dc_id` [MTProto](https://core.telegram.org/api/config.md#mtproto-configuration).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "upload.getWebFile", "x-tl-id": "619086221", "x-tl-result": "upload.WebFile", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `upload.WebFile`.\n\n[upload.WebFile](https://core.telegram.org/type/upload.WebFile.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "upload.WebFile", "oneOf": [{"$ref": "#/components/schemas/upload.webFile"}], "description": "Тип TL: upload.WebFile."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DOCUMENT_INVALID` — Указанный документ недействителен.\n- 400 · `LOCATION_INVALID` — Указано неверное местоположение."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.getWebFile"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"location": {"type": "object", "x-tl-type": "InputWebFileLocation", "oneOf": [{"$ref": "#/components/schemas/inputWebFileLocation"}, {"$ref": "#/components/schemas/inputWebFileGeoPointLocation"}, {"$ref": "#/components/schemas/inputWebFileAudioAlbumThumbLocation"}], "description": "Файл для скачивания"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество байтов, которые нужно пропустить"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество байт, которое должно быть возвращено"}}, "additionalProperties": false, "required": ["location", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `location` | `InputWebFileLocation` | Да | Файл для скачивания |\n| `offset` | `int` | Да | Количество байтов, которые нужно пропустить |\n| `limit` | `int` | Да | Количество байт, которое должно быть возвращено |"}, "x-telegram-rpc-errors": ["DOCUMENT_INVALID", "LOCATION_INVALID"], "x-browser-schema-id": "619086221"}}, "/catalog/upload.getCdnFile": {"post": {"operationId": "upload.getCdnFile", "tags": ["Файлы"], "summary": "Загрузите файл CDN.", "description": "Загрузите файл [CDN](https://core.telegram.org/cdn.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "upload.getCdnFile", "x-tl-id": "962554330", "x-tl-result": "upload.CdnFile", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `upload.CdnFile`.\n\n[upload.CdnFile](https://core.telegram.org/type/upload.CdnFile.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "upload.CdnFile", "oneOf": [{"$ref": "#/components/schemas/upload.cdnFileReuploadNeeded"}, {"$ref": "#/components/schemas/upload.cdnFile"}], "description": "Тип TL: upload.CdnFile."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILE_TOKEN_INVALID` — Главный DC не принял `file_token` (e.g., срок действия токена истек). Продолжите загрузку файла с главного контроллера домена, используя upload.getFile.\n- 404 · `METHOD_INVALID` — Указанный метод недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.getCdnFile"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен файла"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Смещение чанка для загрузки", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина фрагмента для загрузки"}}, "additionalProperties": false, "required": ["file_token", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file_token` | `bytes` | Да | Токен файла |\n| `offset` | `long` | Да | Смещение чанка для загрузки |\n| `limit` | `int` | Да | Длина фрагмента для загрузки |"}, "x-telegram-rpc-errors": ["FILE_TOKEN_INVALID", "METHOD_INVALID"], "x-browser-schema-id": "962554330"}}, "/catalog/upload.reuploadCdnFile": {"post": {"operationId": "upload.reuploadCdnFile", "tags": ["Файлы"], "summary": "Запросите повторную загрузку определенного файла на CDN DC.", "description": "Запросите повторную загрузку определенного файла на [CDN DC](https://core.telegram.org/cdn.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "upload.reuploadCdnFile", "x-tl-id": "2603046056", "x-tl-result": "Vector<FileHash>", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<FileHash>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[FileHash](https://core.telegram.org/type/FileHash.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "oneOf": [{"$ref": "#/components/schemas/fileHash"}], "description": "Тип TL: FileHash."}, "x-tl-type": "Vector<FileHash>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — Вы не можете вызвать этот метод в CDN DC.\n- 500 · `CDN_UPLOAD_TIMEOUT` — При повторной загрузке файла на CDN DC произошел тайм-аут на стороне сервера.\n- 400 · `FILE_TOKEN_INVALID` — Главный DC не принял `file_token` (e.g., срок действия токена истек). Продолжите загрузку файла с главного контроллера домена, используя upload.getFile.\n- 400 · `LOCATION_INVALID` — Указано неверное местоположение.\n- 400 · `REQUEST_TOKEN_INVALID` — Главный ДЦ не принял `request_token` от CDN ДЦ. Продолжите загрузку файла с главного контроллера домена, используя upload.getFile.\n- 400 · `RSA_DECRYPT_FAILED` — Внутренняя RSA расшифровка не удалась."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.reuploadCdnFile"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен файла"}, "request_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Запросить токен"}}, "additionalProperties": false, "required": ["file_token", "request_token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file_token` | `bytes` | Да | Токен файла |\n| `request_token` | `bytes` | Да | Запросить токен |"}, "x-telegram-rpc-errors": ["CDN_METHOD_INVALID", "CDN_UPLOAD_TIMEOUT", "FILE_TOKEN_INVALID", "LOCATION_INVALID", "REQUEST_TOKEN_INVALID", "RSA_DECRYPT_FAILED"], "x-browser-schema-id": "2603046056"}}, "/catalog/upload.getCdnFileHashes": {"post": {"operationId": "upload.getCdnFileHashes", "tags": ["Файлы"], "summary": "Получите SHA256 хэши для проверки загруженных CDN файлов.", "description": "Получите SHA256 хеши для проверки загруженных [CDN](https://core.telegram.org/cdn.md) файлов.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "upload.getCdnFileHashes", "x-tl-id": "2447130417", "x-tl-result": "Vector<FileHash>", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<FileHash>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[FileHash](https://core.telegram.org/type/FileHash.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "oneOf": [{"$ref": "#/components/schemas/fileHash"}], "description": "Тип TL: FileHash."}, "x-tl-type": "Vector<FileHash>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — Вы не можете вызвать этот метод в CDN DC.\n- 400 · `FILE_TOKEN_INVALID` — Главный DC не принял `file_token` (e.g., срок действия токена истек). Продолжите загрузку файла с главного контроллера домена, используя upload.getFile.\n- 400 · `RSA_DECRYPT_FAILED` — Внутренняя RSA расшифровка не удалась."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.getCdnFileHashes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Файл"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Смещение, с которого нужно начинать получать хэши", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["file_token", "offset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `file_token` | `bytes` | Да | Файл |\n| `offset` | `long` | Да | Смещение, с которого нужно начинать получать хэши |"}, "x-telegram-rpc-errors": ["CDN_METHOD_INVALID", "FILE_TOKEN_INVALID", "RSA_DECRYPT_FAILED"], "x-browser-schema-id": "2447130417"}}, "/catalog/upload.getFileHashes": {"post": {"operationId": "upload.getFileHashes", "tags": ["Файлы"], "summary": "Получите SHA256 хэши для проверки загруженных файлов.", "description": "Получите SHA256 хэши для проверки загруженных файлов.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "upload.getFileHashes", "x-tl-id": "2438371370", "x-tl-result": "Vector<FileHash>", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<FileHash>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[FileHash](https://core.telegram.org/type/FileHash.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "oneOf": [{"$ref": "#/components/schemas/fileHash"}], "description": "Тип TL: FileHash."}, "x-tl-type": "Vector<FileHash>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `LOCATION_INVALID` — Указано неверное местоположение."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/upload.getFileHashes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"location": {"type": "object", "x-tl-type": "InputFileLocation", "oneOf": [{"$ref": "#/components/schemas/inputFileLocation"}, {"$ref": "#/components/schemas/inputEncryptedFileLocation"}, {"$ref": "#/components/schemas/inputDocumentFileLocation"}, {"$ref": "#/components/schemas/inputSecureFileLocation"}, {"$ref": "#/components/schemas/inputTakeoutFileLocation"}, {"$ref": "#/components/schemas/inputPhotoFileLocation"}, {"$ref": "#/components/schemas/inputPhotoLegacyFileLocation"}, {"$ref": "#/components/schemas/inputPeerPhotoFileLocation"}, {"$ref": "#/components/schemas/inputStickerSetThumb"}, {"$ref": "#/components/schemas/inputGroupCallStream"}], "description": "Файл"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Смещение, из которого можно получить хэши файлов", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["location", "offset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `location` | `InputFileLocation` | Да | Файл |\n| `offset` | `long` | Да | Смещение, из которого можно получить хэши файлов |"}, "x-telegram-rpc-errors": ["LOCATION_INVALID"], "x-browser-schema-id": "2438371370"}}, "/catalog/help.getConfig": {"post": {"operationId": "help.getConfig", "tags": ["Конфигурация и справка"], "summary": "Возвращает текущую конфигурацию, включая конфигурацию центра обработки данных.", "description": "Возвращает текущую конфигурацию, включая конфигурацию центра обработки данных.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "help.getConfig", "x-tl-id": "3304659051", "x-tl-result": "Config", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Config`.\n\n[Конфигурация](https://core.telegram.org/type/Config.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Config", "oneOf": [{"$ref": "#/components/schemas/config"}], "description": "Тип TL: Config."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CONNECTION_API_ID_INVALID` — Указанный идентификатор API недействителен.\n- 400 · `CONNECTION_APP_VERSION_EMPTY` — Версия приложения пуста.\n- 400 · `CONNECTION_LAYER_INVALID` — Слой недействителен.\n- 400 · `DATA_INVALID` — Зашифрованные данные недействительны.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 403 · `USER_PRIVACY_RESTRICTED` — Настройки приватности пользователя не позволяют это сделать."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getConfig"}, "x-telegram-rpc-errors": ["CONNECTION_API_ID_INVALID", "CONNECTION_APP_VERSION_EMPTY", "CONNECTION_LAYER_INVALID", "DATA_INVALID", "MSG_ID_INVALID", "USERNAME_INVALID", "USER_PRIVACY_RESTRICTED"], "x-browser-schema-id": "3304659051"}}, "/catalog/help.getNearestDc": {"post": {"operationId": "help.getNearestDc", "tags": ["Конфигурация и справка"], "summary": "Возвращает информацию о ближайшем к пользователю дата-центре.", "description": "Возвращает информацию о ближайшем к пользователю дата-центре.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "help.getNearestDc", "x-tl-id": "531836966", "x-tl-result": "NearestDc", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `NearestDc`.\n\n[БлижайшийDc](https://core.telegram.org/type/NearestDc.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "NearestDc", "oneOf": [{"$ref": "#/components/schemas/nearestDc"}], "description": "Тип TL: NearestDc."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getNearestDc"}, "x-browser-schema-id": "531836966"}}, "/catalog/help.getAppUpdate": {"post": {"operationId": "help.getAppUpdate", "tags": ["Конфигурация и справка"], "summary": "Возвращает информацию о доступности обновлений для текущего приложения.", "description": "Возвращает информацию о доступности обновлений для текущего приложения.", "x-tl-method": "help.getAppUpdate", "x-tl-id": "1378703997", "x-tl-result": "help.AppUpdate", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.AppUpdate`.\n\n[help.AppUpdate](https://core.telegram.org/type/help.AppUpdate.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.AppUpdate", "oneOf": [{"$ref": "#/components/schemas/help.appUpdate"}, {"$ref": "#/components/schemas/help.noAppUpdate"}], "description": "Тип TL: help.AppUpdate."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getAppUpdate"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"source": {"type": "string", "x-tl-type": "string", "description": "Источник"}}, "additionalProperties": false, "required": ["source"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `source` | `string` | Да | Источник |"}, "x-browser-schema-id": "1378703997"}}, "/catalog/help.getInviteText": {"post": {"operationId": "help.getInviteText", "tags": ["Конфигурация и справка"], "summary": "Возвращает локализованный текст текстового сообщения с приглашением.", "description": "Возвращает локализованный текст текстового сообщения с приглашением.", "x-tl-method": "help.getInviteText", "x-tl-id": "1295590211", "x-tl-result": "help.InviteText", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.InviteText`.\n\n[help.InviteText](https://core.telegram.org/type/help.InviteText.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.InviteText", "oneOf": [{"$ref": "#/components/schemas/help.inviteText"}], "description": "Тип TL: help.InviteText."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getInviteText"}, "x-browser-schema-id": "1295590211"}}, "/catalog/help.getSupport": {"post": {"operationId": "help.getSupport", "tags": ["Конфигурация и справка"], "summary": "Возвращает пользователя службы поддержки для функции «задать вопрос».", "description": "Возвращает пользователя службы поддержки для функции «задать вопрос».", "x-tl-method": "help.getSupport", "x-tl-id": "2631862477", "x-tl-result": "help.Support", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.Support`.\n\n[help.Support](https://core.telegram.org/type/help.Support.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.Support", "oneOf": [{"$ref": "#/components/schemas/help.support"}], "description": "Тип TL: help.Support."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getSupport"}, "x-browser-schema-id": "2631862477"}}, "/catalog/help.setBotUpdatesStatus": {"post": {"operationId": "help.setBotUpdatesStatus", "tags": ["Конфигурация и справка"], "summary": "Сообщает серверу о количестве ожидающих обновлений бота, если они долгое время не обрабатывались; только для ботов", "description": "Сообщает серверу о количестве ожидающих обновлений бота, если они долгое время не обрабатывались; только для ботов\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "help.setBotUpdatesStatus", "x-tl-id": "3961704397", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.setBotUpdatesStatus"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"pending_updates_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество ожидающих обновлений"}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке, если оно присутствует"}}, "additionalProperties": false, "required": ["pending_updates_count", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `pending_updates_count` | `int` | Да | Количество ожидающих обновлений |\n| `message` | `string` | Да | Сообщение об ошибке, если оно присутствует |"}, "x-telegram-rpc-errors": ["USER_BOT_REQUIRED"], "x-browser-schema-id": "3961704397"}}, "/catalog/help.getCdnConfig": {"post": {"operationId": "help.getCdnConfig", "tags": ["Конфигурация и справка"], "summary": "Получите конфигурацию для загрузки файлов CDN.", "description": "Получите конфигурацию для [CDN](https://core.telegram.org/cdn.md) загрузки файлов.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "help.getCdnConfig", "x-tl-id": "1375900482", "x-tl-result": "CdnConfig", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `CdnConfig`.\n\n[CdnConfig](https://core.telegram.org/type/CdnConfig.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "CdnConfig", "oneOf": [{"$ref": "#/components/schemas/cdnConfig"}], "description": "Тип TL: CdnConfig."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getCdnConfig"}, "x-browser-schema-id": "1375900482"}}, "/catalog/help.getRecentMeUrls": {"post": {"operationId": "help.getRecentMeUrls", "tags": ["Конфигурация и справка"], "summary": "Получите недавно использованные ссылки `t.me`.", "description": "Получите недавно использованные ссылки `t.me`.\n\nПри установке официальных приложений с помощью кнопок «Скачать Telegram», присутствующих на страницах [t.me](https://t.me), после установки приложению передается параметр реферала.\nЕсли после загрузки приложения пользователь создает новую учетную запись (вместо входа в существующую), параметр реферала следует импортировать с помощью этого метода, который возвращает страницы [t.me](https://t.me), которые пользователь недавно открывал, до установки Telegram.", "x-tl-method": "help.getRecentMeUrls", "x-tl-id": "1036054804", "x-tl-result": "help.RecentMeUrls", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.RecentMeUrls`.\n\n[help.RecentMeUrls](https://core.telegram.org/type/help.RecentMeUrls.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.RecentMeUrls", "oneOf": [{"$ref": "#/components/schemas/help.recentMeUrls"}], "description": "Тип TL: help.RecentMeUrls."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getRecentMeUrls"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"referer": {"type": "string", "x-tl-type": "string", "description": "реферер"}}, "additionalProperties": false, "required": ["referer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `referer` | `string` | Да | реферер |"}, "x-browser-schema-id": "1036054804"}}, "/catalog/help.getTermsOfServiceUpdate": {"post": {"operationId": "help.getTermsOfServiceUpdate", "tags": ["Конфигурация и справка"], "summary": "Следите за обновлениями условий обслуживания Telegram.", "description": "Следите за обновлениями условий обслуживания Telegram.", "x-tl-method": "help.getTermsOfServiceUpdate", "x-tl-id": "749019089", "x-tl-result": "help.TermsOfServiceUpdate", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.TermsOfServiceUpdate`.\n\n[help.TermsOfServiceUpdate](https://core.telegram.org/type/help.TermsOfServiceUpdate.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.TermsOfServiceUpdate", "oneOf": [{"$ref": "#/components/schemas/help.termsOfServiceUpdateEmpty"}, {"$ref": "#/components/schemas/help.termsOfServiceUpdate"}], "description": "Тип TL: help.TermsOfServiceUpdate."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getTermsOfServiceUpdate"}, "x-browser-schema-id": "749019089"}}, "/catalog/help.acceptTermsOfService": {"post": {"operationId": "help.acceptTermsOfService", "tags": ["Конфигурация и справка"], "summary": "Примите новые условия обслуживания", "description": "Примите новые условия обслуживания\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "help.acceptTermsOfService", "x-tl-id": "4000511898", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DATA_JSON_INVALID` — Предоставленные данные JSON недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.acceptTermsOfService"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Идентификатор условий использования"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `DataJSON` | Да | Идентификатор условий использования |"}, "x-telegram-rpc-errors": ["DATA_JSON_INVALID"], "x-browser-schema-id": "4000511898"}}, "/catalog/help.getDeepLinkInfo": {"post": {"operationId": "help.getDeepLinkInfo", "tags": ["Конфигурация и справка"], "summary": "Получите информацию о неподдерживаемой глубокой ссылке. Дополнительную информацию см. здесь ».", "description": "Информацию о неподдерживаемой ссылке на контент см. [здесь для получения дополнительной информации »](https://core.telegram.org/api/links.md#unsupported-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "help.getDeepLinkInfo", "x-tl-id": "1072547679", "x-tl-result": "help.DeepLinkInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `help.DeepLinkInfo`.\n\n[help.DeepLinkInfo](https://core.telegram.org/type/help.DeepLinkInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.DeepLinkInfo", "oneOf": [{"$ref": "#/components/schemas/help.deepLinkInfoEmpty"}, {"$ref": "#/components/schemas/help.deepLinkInfo"}], "description": "Тип TL: help.DeepLinkInfo."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getDeepLinkInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"path": {"type": "string", "x-tl-type": "string", "description": "Компонент пути ссылки `tg:`"}}, "additionalProperties": false, "required": ["path"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `path` | `string` | Да | Компонент пути ссылки `tg:` |"}, "x-browser-schema-id": "1072547679"}}, "/catalog/help.getAppConfig": {"post": {"operationId": "help.getAppConfig", "tags": ["Конфигурация и справка"], "summary": "Получите конфигурацию для конкретного приложения. Дополнительную информацию о результате см. в конфигурации клиента.", "description": "Получите конфигурацию для конкретного приложения. Дополнительную информацию о результате см. в разделе [конфигурация клиента](https://core.telegram.org/api/config.md#client-configuration)].\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "help.getAppConfig", "x-tl-id": "1642330196", "x-tl-result": "help.AppConfig", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `help.AppConfig`.\n\n[help.AppConfig](https://core.telegram.org/type/help.AppConfig.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.AppConfig", "oneOf": [{"$ref": "#/components/schemas/help.appConfigNotModified"}, {"$ref": "#/components/schemas/help.appConfig"}], "description": "Тип TL: help.AppConfig."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getAppConfig"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1642330196"}}, "/catalog/help.saveAppLog": {"post": {"operationId": "help.saveAppLog", "tags": ["Конфигурация и справка"], "summary": "Сохраняет логи приложения на сервере.", "description": "Сохраняет логи приложения на сервере.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "help.saveAppLog", "x-tl-id": "1862465352", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.saveAppLog"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"events": {"type": "array", "items": {"type": "object", "x-tl-type": "InputAppEvent", "oneOf": [{"$ref": "#/components/schemas/inputAppEvent"}], "description": "Тип TL: InputAppEvent."}, "x-tl-type": "Vector<InputAppEvent>", "description": "Список входных событий"}}, "additionalProperties": false, "required": ["events"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `events` | `Vector<InputAppEvent>` | Да | Список входных событий |"}, "x-browser-schema-id": "1862465352"}}, "/catalog/help.getPassportConfig": {"post": {"operationId": "help.getPassportConfig", "tags": ["Конфигурация и справка"], "summary": "Получить конфигурацию паспорта", "description": "Получите конфигурацию [паспорт](https://core.telegram.org/passport.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "help.getPassportConfig", "x-tl-id": "3328290056", "x-tl-result": "help.PassportConfig", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `help.PassportConfig`.\n\n[help.PassportConfig](https://core.telegram.org/type/help.PassportConfig.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.PassportConfig", "oneOf": [{"$ref": "#/components/schemas/help.passportConfigNotModified"}, {"$ref": "#/components/schemas/help.passportConfig"}], "description": "Тип TL: help.PassportConfig."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getPassportConfig"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3328290056"}}, "/catalog/help.getSupportName": {"post": {"operationId": "help.getSupportName", "tags": ["Конфигурация и справка"], "summary": "Получить локализованное имя пользователя службы поддержки Telegram", "description": "Получить локализованное имя пользователя службы поддержки Telegram\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "help.getSupportName", "x-tl-id": "3546343212", "x-tl-result": "help.SupportName", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.SupportName`.\n\n[help.SupportName](https://core.telegram.org/type/help.SupportName.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.SupportName", "oneOf": [{"$ref": "#/components/schemas/help.supportName"}], "description": "Тип TL: help.SupportName."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `USER_INVALID` — Указан неверный пользователь."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getSupportName"}, "x-telegram-rpc-errors": ["USER_INVALID"], "x-browser-schema-id": "3546343212"}}, "/catalog/help.getUserInfo": {"post": {"operationId": "help.getUserInfo", "tags": ["Конфигурация и справка"], "summary": "Может использоваться только участниками TSF для получения внутренней информации.", "description": "Может использоваться только участниками TSF для получения внутренней информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "help.getUserInfo", "x-tl-id": "59377875", "x-tl-result": "help.UserInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.UserInfo`.\n\n[help.UserInfo](https://core.telegram.org/type/help.UserInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.UserInfo", "oneOf": [{"$ref": "#/components/schemas/help.userInfoEmpty"}, {"$ref": "#/components/schemas/help.userInfo"}], "description": "Тип TL: help.UserInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `USER_INVALID` — Указан неверный пользователь."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getUserInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя"}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя |"}, "x-telegram-rpc-errors": ["USER_INVALID"], "x-browser-schema-id": "59377875"}}, "/catalog/help.editUserInfo": {"post": {"operationId": "help.editUserInfo", "tags": ["Конфигурация и справка"], "summary": "Внутреннее использование", "description": "Внутреннее использование\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)", "x-tl-method": "help.editUserInfo", "x-tl-id": "1723407216", "x-tl-result": "help.UserInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"]], "responses": {"200": {"description": "Результат MTProto · `help.UserInfo`.\n\n[help.UserInfo](https://core.telegram.org/type/help.UserInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.UserInfo", "oneOf": [{"$ref": "#/components/schemas/help.userInfoEmpty"}, {"$ref": "#/components/schemas/help.userInfo"}], "description": "Тип TL: help.UserInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ENTITY_BOUNDS_INVALID` — Указанное [смещение или длина объекта](https://core.telegram.org/api/entities.md#entity-length) недопустимо. См. [здесь »](https://core.telegram.org/api/entities.md#entity-length) информацию о том, как правильно вычислить смещение/длину объекта.\n- 403 · `USER_INVALID` — Указан неверный пользователь."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.editUserInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь"}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)"}}, "additionalProperties": false, "required": ["user_id", "message", "entities"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Пользователь |\n| `message` | `string` | Да | Сообщение |\n| `entities` | `Vector<MessageEntity>` | Да | [Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md) |"}, "x-telegram-rpc-errors": ["ENTITY_BOUNDS_INVALID", "USER_INVALID"], "x-browser-schema-id": "1723407216"}}, "/catalog/help.getPromoData": {"post": {"operationId": "help.getPromoData", "tags": ["Конфигурация и справка"], "summary": "Возвращает набор полезных предложений и пиров, спонсируемых PSA/MTProxy, дополнительную информацию см. здесь ».", "description": "Возвращает набор полезных предложений и пиров, спонсируемых PSA/MTProxy, дополнительную информацию см. [здесь »](https://core.telegram.org/api/config.md#suggestions).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "help.getPromoData", "x-tl-id": "3231151137", "x-tl-result": "help.PromoData", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `help.PromoData`.\n\n[help.PromoData](https://core.telegram.org/type/help.PromoData.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.PromoData", "oneOf": [{"$ref": "#/components/schemas/help.promoDataEmpty"}, {"$ref": "#/components/schemas/help.promoData"}], "description": "Тип TL: help.PromoData."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getPromoData"}, "x-browser-schema-id": "3231151137"}}, "/catalog/help.hidePromoData": {"post": {"operationId": "help.hidePromoData", "tags": ["Конфигурация и справка"], "summary": "Скрыть информацию об объявлениях MTProxy/публичных услуг", "description": "Скрыть информацию об объявлениях MTProxy/публичных услуг", "x-tl-method": "help.hidePromoData", "x-tl-id": "505748629", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.hidePromoData"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, чтобы скрыть"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, чтобы скрыть |"}, "x-browser-schema-id": "505748629"}}, "/catalog/help.dismissSuggestion": {"post": {"operationId": "help.dismissSuggestion", "tags": ["Конфигурация и справка"], "summary": "Отклоните предложение, дополнительную информацию см. здесь».", "description": "Отклонить [предложение, дополнительную информацию см. здесь »](https://core.telegram.org/api/config.md#suggestions).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "help.dismissSuggestion", "x-tl-id": "4111317665", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.dismissSuggestion"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "В случае ожидающих предложений в [channels](https://core.telegram.org/constructor/channelFull.md), идентификатор канала."}, "suggestion": {"type": "string", "x-tl-type": "string", "description": "[Предложение, дополнительную информацию см. здесь »](https://core.telegram.org/api/config.md#suggestions)."}}, "additionalProperties": false, "required": ["peer", "suggestion"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | В случае ожидающих предложений в [channels](https://core.telegram.org/constructor/channelFull.md), идентификатор канала. |\n| `suggestion` | `string` | Да | [Предложение, дополнительную информацию см. здесь »](https://core.telegram.org/api/config.md#suggestions). |"}, "x-browser-schema-id": "4111317665"}}, "/catalog/help.getCountriesList": {"post": {"operationId": "help.getCountriesList", "tags": ["Конфигурация и справка"], "summary": "Получите имя, код ISO, локализованное имя и телефонные коды/шаблоны всех доступных стран.", "description": "Получите имя, код ISO, локализованное имя и телефонные коды/шаблоны всех доступных стран.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "help.getCountriesList", "x-tl-id": "1935116200", "x-tl-result": "help.CountriesList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `help.CountriesList`.\n\n[help.CountriesList](https://core.telegram.org/type/help.CountriesList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.CountriesList", "oneOf": [{"$ref": "#/components/schemas/help.countriesListNotModified"}, {"$ref": "#/components/schemas/help.countriesList"}], "description": "Тип TL: help.CountriesList."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getCountriesList"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка текущего пользователя"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["lang_code", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_code` | `string` | Да | Код языка текущего пользователя |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1935116200"}}, "/catalog/help.getPremiumPromo": {"post": {"operationId": "help.getPremiumPromo", "tags": ["Конфигурация и справка"], "summary": "Получите информацию о рекламной акции Telegram Premium", "description": "Получите информацию о рекламной акции Telegram Premium", "x-tl-method": "help.getPremiumPromo", "x-tl-id": "3088815060", "x-tl-result": "help.PremiumPromo", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `help.PremiumPromo`.\n\n[help.PremiumPromo](https://core.telegram.org/type/help.PremiumPromo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.PremiumPromo", "oneOf": [{"$ref": "#/components/schemas/help.premiumPromo"}], "description": "Тип TL: help.PremiumPromo."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getPremiumPromo"}, "x-browser-schema-id": "3088815060"}}, "/catalog/help.getPeerColors": {"post": {"operationId": "help.getPeerColors", "tags": ["Конфигурация и справка"], "summary": "Получите набор цветовых палитр акцентов, которые можно использовать для акцентирования сообщений.", "description": "Получите набор [палитр акцентных цветов »](https://core.telegram.org/api/colors.md), которые можно использовать для акцентирования сообщений.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "help.getPeerColors", "x-tl-id": "3665884207", "x-tl-result": "help.PeerColors", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "Результат MTProto · `help.PeerColors`.\n\n[help.PeerColors](https://core.telegram.org/type/help.PeerColors.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.PeerColors", "oneOf": [{"$ref": "#/components/schemas/help.peerColorsNotModified"}, {"$ref": "#/components/schemas/help.peerColors"}], "description": "Тип TL: help.PeerColors."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getPeerColors"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3665884207"}}, "/catalog/help.getPeerProfileColors": {"post": {"operationId": "help.getPeerProfileColors", "tags": ["Конфигурация и справка"], "summary": "Получите набор акцентных цветовых палитр», которые можно использовать в качестве фона страницы профиля.", "description": "Получите набор [палитр акцентных цветов »](https://core.telegram.org/api/colors.md), которые можно использовать в качестве фона страницы профиля.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "help.getPeerProfileColors", "x-tl-id": "2882513405", "x-tl-result": "help.PeerColors", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "Результат MTProto · `help.PeerColors`.\n\n[help.PeerColors](https://core.telegram.org/type/help.PeerColors.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.PeerColors", "oneOf": [{"$ref": "#/components/schemas/help.peerColorsNotModified"}, {"$ref": "#/components/schemas/help.peerColors"}], "description": "Тип TL: help.PeerColors."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getPeerProfileColors"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2882513405"}}, "/catalog/help.getTimezonesList": {"post": {"operationId": "help.getTimezonesList", "tags": ["Конфигурация и справка"], "summary": "Возвращает информацию о часовом поясе, которую можно использовать где-либо в API, например, для установки часов работы Telegram Business».", "description": "Возвращает информацию о часовом поясе, которую можно использовать в другом месте в API, например, для установки [Часы работы Telegram Business »](https://core.telegram.org/api/business.md#opening-hours).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "help.getTimezonesList", "x-tl-id": "1236468288", "x-tl-result": "help.TimezonesList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `help.TimezonesList`.\n\n[help.TimezonesList](https://core.telegram.org/type/help.TimezonesList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "help.TimezonesList", "oneOf": [{"$ref": "#/components/schemas/help.timezonesListNotModified"}, {"$ref": "#/components/schemas/help.timezonesList"}], "description": "Тип TL: help.TimezonesList."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/help.getTimezonesList"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1236468288"}}, "/catalog/channels.readHistory": {"post": {"operationId": "channels.readHistory", "tags": ["Каналы и супергруппы"], "summary": "Отметить историю канала/супергруппы как прочитанную", "description": "Отметить историю [канала/супергруппы](https://core.telegram.org/api/channel.md) как прочитанную\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.readHistory", "x-tl-id": "3423619383", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.readHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Канал/супергруппа](https://core.telegram.org/api/channel.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID сообщения, до которого сообщения должны быть помечены как прочитанные"}}, "additionalProperties": false, "required": ["channel", "max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Канал/супергруппа](https://core.telegram.org/api/channel.md) |\n| `max_id` | `int` | Да | ID сообщения, до которого сообщения должны быть помечены как прочитанные |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID"], "x-browser-schema-id": "3423619383"}}, "/catalog/channels.deleteMessages": {"post": {"operationId": "channels.deleteMessages", "tags": ["Каналы и супергруппы"], "summary": "Удаление сообщений в канале/супергруппе", "description": "Удалить сообщения в [канале/супергруппе](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.deleteMessages", "x-tl-id": "2227305806", "x-tl-result": "messages.AffectedMessages", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedMessages`.\n\n[messages.AffectedMessages](https://core.telegram.org/type/messages.AffectedMessages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedMessages", "oneOf": [{"$ref": "#/components/schemas/messages.affectedMessages"}], "description": "Тип TL: messages.AffectedMessages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 420 · `FROZEN_METHOD_INVALID` — Текущая учетная запись [заморожена](https://core.telegram.org/api/auth.md#frozen-accounts) и, следовательно, не может выполнить указанное действие.\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — Вы не можете удалить одно из сообщений, которые пытались удалить, скорее всего потому, что это служебное сообщение.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.deleteMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Канал/супергруппа](https://core.telegram.org/api/channel.md)"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы сообщений для удаления"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Канал/супергруппа](https://core.telegram.org/api/channel.md) |\n| `id` | `Vector<int>` | Да | Идентификаторы сообщений для удаления |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "FROZEN_METHOD_INVALID", "MESSAGE_DELETE_FORBIDDEN", "MSG_ID_INVALID"], "x-browser-schema-id": "2227305806"}}, "/catalog/channels.reportSpam": {"post": {"operationId": "channels.reportSpam", "tags": ["Каналы и супергруппы"], "summary": "Сообщает о некоторых сообщениях от пользователя в супергруппе как о спаме; требуются права администратора в супергруппе", "description": "Сообщает о некоторых сообщениях от пользователя в супергруппе как о спаме; требуются права администратора в супергруппе\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "channels.reportSpam", "x-tl-id": "4098523925", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.reportSpam"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Супергруппа"}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник, о сообщениях которого следует сообщить"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы спам-сообщений"}}, "additionalProperties": false, "required": ["channel", "participant", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Супергруппа |\n| `participant` | `InputPeer` | Да | Участник, о сообщениях которого следует сообщить |\n| `id` | `Vector<int>` | Да | Идентификаторы спам-сообщений |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "4098523925"}}, "/catalog/channels.getMessages": {"post": {"operationId": "channels.getMessages", "tags": ["Каналы и супергруппы"], "summary": "Получать сообщения канала/супергруппы", "description": "Получить [канал/супергруппу](https://core.telegram.org/api/channel.md) сообщений\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.getMessages", "x-tl-id": "2911672867", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — Текущая учетная запись [заморожена](https://core.telegram.org/api/auth.md#frozen-accounts) и не может получить доступ к указанному узлу.\n- 400 · `MESSAGE_IDS_EMPTY` — Идентификаторы сообщений не предоставлены.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа"}, "id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMessage", "oneOf": [{"$ref": "#/components/schemas/inputMessageID"}, {"$ref": "#/components/schemas/inputMessageReplyTo"}, {"$ref": "#/components/schemas/inputMessagePinned"}, {"$ref": "#/components/schemas/inputMessageCallbackQuery"}], "description": "Тип TL: InputMessage."}, "x-tl-type": "Vector<InputMessage>", "description": "Идентификаторы сообщений, которые нужно получить"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал/супергруппа |\n| `id` | `Vector<InputMessage>` | Да | Идентификаторы сообщений, которые нужно получить |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_NOT_MODIFIED", "FROZEN_PARTICIPANT_MISSING", "MESSAGE_IDS_EMPTY", "MSG_ID_INVALID", "USER_BANNED_IN_CHANNEL"], "x-browser-schema-id": "2911672867"}}, "/catalog/channels.getParticipants": {"post": {"operationId": "channels.getParticipants", "tags": ["Каналы и супергруппы"], "summary": "Получить участников супергруппы/канала", "description": "Получить участников [супергруппы/канала](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getParticipants", "x-tl-id": "2010044880", "x-tl-result": "channels.ChannelParticipants", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `channels.ChannelParticipants`.\n\n[channels.ChannelParticipants](https://core.telegram.org/type/channels.ChannelParticipants.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "channels.ChannelParticipants", "oneOf": [{"$ref": "#/components/schemas/channels.channelParticipants"}, {"$ref": "#/components/schemas/channels.channelParticipantsNotModified"}], "description": "Тип TL: channels.ChannelParticipants."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getParticipants"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}, "filter": {"type": "object", "x-tl-type": "ChannelParticipantsFilter", "oneOf": [{"$ref": "#/components/schemas/channelParticipantsRecent"}, {"$ref": "#/components/schemas/channelParticipantsAdmins"}, {"$ref": "#/components/schemas/channelParticipantsKicked"}, {"$ref": "#/components/schemas/channelParticipantsBots"}, {"$ref": "#/components/schemas/channelParticipantsBanned"}, {"$ref": "#/components/schemas/channelParticipantsSearch"}, {"$ref": "#/components/schemas/channelParticipantsContacts"}, {"$ref": "#/components/schemas/channelParticipantsMentions"}], "description": "Какие типы участников выбрать"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещение](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Лимит](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["channel", "filter", "offset", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал |\n| `filter` | `ChannelParticipantsFilter` | Да | Какие типы участников выбрать |\n| `offset` | `int` | Да | [Смещение](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | [Лимит](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | Да | [Хеш](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "MSG_ID_INVALID"], "x-browser-schema-id": "2010044880"}}, "/catalog/channels.getParticipant": {"post": {"operationId": "channels.getParticipant", "tags": ["Каналы и супергруппы"], "summary": "Получить информацию об участнике канала/супергруппы", "description": "Получить информацию об участнике [канала/супергруппы](https://core.telegram.org/api/channel.md)]\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getParticipant", "x-tl-id": "2695589062", "x-tl-result": "channels.ChannelParticipant", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `channels.ChannelParticipant`.\n\n[channels.ChannelParticipant](https://core.telegram.org/type/channels.ChannelParticipant.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "channels.ChannelParticipant", "oneOf": [{"$ref": "#/components/schemas/channels.channelParticipant"}], "description": "Тип TL: channels.ChannelParticipant."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PARTICIPANT_ID_INVALID` — Указанный идентификатор участника недействителен.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 400 · `USER_NOT_PARTICIPANT` — Вы не состоите в этой супергруппе/канале."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getParticipant"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа"}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник, о котором можно получить информацию"}}, "additionalProperties": false, "required": ["channel", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал/супергруппа |\n| `participant` | `InputPeer` | Да | Участник, о котором можно получить информацию |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "MSG_ID_INVALID", "PARTICIPANT_ID_INVALID", "USER_ID_INVALID", "USER_NOT_PARTICIPANT"], "x-browser-schema-id": "2695589062"}}, "/catalog/channels.getChannels": {"post": {"operationId": "channels.getChannels", "tags": ["Каналы и супергруппы"], "summary": "Получить информацию о каналах/супергруппах", "description": "Получить информацию о [каналах/супергруппах](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getChannels", "x-tl-id": "176122811", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getChannels"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}, "x-tl-type": "Vector<InputChannel>", "description": "Идентификаторы каналов/супергрупп, о которых нужно получить информацию"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputChannel>` | Да | Идентификаторы каналов/супергрупп, о которых нужно получить информацию |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "USER_BANNED_IN_CHANNEL"], "x-browser-schema-id": "176122811"}}, "/catalog/channels.getFullChannel": {"post": {"operationId": "channels.getFullChannel", "tags": ["Каналы и супергруппы"], "summary": "Получить подробные сведения о канале", "description": "Возвращает расширенные данные канала, супергруппы или гигагруппы.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getFullChannel", "x-tl-id": "141781513", "x-tl-result": "messages.ChatFull", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ChatFull`.\n\n[messages.ChatFull](https://core.telegram.org/type/messages.ChatFull.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ChatFull", "oneOf": [{"$ref": "#/components/schemas/messages.chatFull"}], "description": "Тип TL: messages.ChatFull."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHANNEL_PUBLIC_GROUP_NA` — канал/супергруппа недоступен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getFullChannel"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал или группа, сведения о которых нужно получить."}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал или группа, сведения о которых нужно получить. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHANNEL_PUBLIC_GROUP_NA", "CHAT_NOT_MODIFIED", "MSG_ID_INVALID"], "x-browser-schema-id": "141781513"}}, "/catalog/channels.createChannel": {"post": {"operationId": "channels.createChannel", "tags": ["Каналы и супергруппы"], "summary": "Создайте супергруппу/канал.", "description": "Создайте [супергруппу/канал](https://core.telegram.org/api/channel.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Nearby users&chats](https://core.telegram.org/api/nearby.md)", "x-tl-method": "channels.createChannel", "x-tl-id": "2432722695", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"], ["Nearby users&chats", "https://core.telegram.org/api/nearby.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ADDRESS_INVALID` — Указанный адрес геоточки недействителен.\n- 400 · `CHANNELS_ADMIN_LOCATED_TOO_MUCH` — Пользователь достиг лимита публичных геогрупп.\n- 400 · `CHANNELS_TOO_MUCH` — Вы присоединились к слишком большому количеству каналов/супергрупп.\n- 400 · `CHAT_ABOUT_TOO_LONG` — Болтать слишком долго.\n- 500 · `CHAT_INVALID` — Неверный чат.\n- 400 · `CHAT_TITLE_EMPTY` — Название чата не указано.\n- 400 · `TTL_PERIOD_INVALID` — Указанный период TTL недействителен.\n- 406 · `USER_RESTRICTED` — Вас сообщили о спаме, вы не можете создавать каналы и чаты."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.createChannel"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Создавать ли [канал](https://core.telegram.org/api/channel.md)"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Стоит ли создавать [супергруппу](https://core.telegram.org/api/channel.md)"}, "for_import": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Создается ли супергруппа для импорта сообщений из зарубежного чат-сервиса с помощью [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md)"}, "forum": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Стоит ли создавать [форум](https://core.telegram.org/api/forum.md)"}, "title": {"type": "string", "x-tl-type": "string", "description": "Название канала"}, "about": {"type": "string", "x-tl-type": "string", "description": "Описание канала"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "oneOf": [{"$ref": "#/components/schemas/inputGeoPointEmpty"}, {"$ref": "#/components/schemas/inputGeoPoint"}], "description": "Расположение геогруппы см. [здесь »](https://core.telegram.org/api/nearby.md) для получения дополнительной информации о геогруппах.", "x-tl-flag": "flags.2?InputGeoPoint"}, "address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Адрес геогруппы см. [здесь »](https://core.telegram.org/api/nearby.md) для получения дополнительной информации о геогруппах."}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int", "description": "Время жизни всех сообщений, которые будут отправлены в супергруппу: однажды message.date+message.ttl_period === time(), сообщение будет удалено на сервере и также должно быть удалено локально. Вы можете использовать [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md), чтобы изменить это значение позже."}}, "additionalProperties": false, "required": ["title", "about"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `broadcast` | `true` | Нет | Создавать ли [канал](https://core.telegram.org/api/channel.md) |\n| `megagroup` | `true` | Нет | Стоит ли создавать [супергруппу](https://core.telegram.org/api/channel.md) |\n| `for_import` | `true` | Нет | Создается ли супергруппа для импорта сообщений из зарубежного чат-сервиса с помощью [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) |\n| `forum` | `true` | Нет | Стоит ли создавать [форум](https://core.telegram.org/api/forum.md) |\n| `title` | `string` | Да | Название канала |\n| `about` | `string` | Да | Описание канала |\n| `geo_point` | `InputGeoPoint` | Нет | Расположение геогруппы см. [здесь »](https://core.telegram.org/api/nearby.md) для получения дополнительной информации о геогруппах. |\n| `address` | `string` | Нет | Адрес геогруппы см. [здесь »](https://core.telegram.org/api/nearby.md) для получения дополнительной информации о геогруппах. |\n| `ttl_period` | `int` | Нет | Время жизни всех сообщений, которые будут отправлены в супергруппу: однажды message.date+message.ttl_period === time(), сообщение будет удалено на сервере и также должно быть удалено локально. Вы можете использовать [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md), чтобы изменить это значение позже. |"}, "x-telegram-rpc-errors": ["ADDRESS_INVALID", "CHANNELS_ADMIN_LOCATED_TOO_MUCH", "CHANNELS_TOO_MUCH", "CHAT_ABOUT_TOO_LONG", "CHAT_INVALID", "CHAT_TITLE_EMPTY", "TTL_PERIOD_INVALID", "USER_RESTRICTED"], "x-browser-schema-id": "2432722695"}}, "/catalog/channels.editAdmin": {"post": {"operationId": "channels.editAdmin", "tags": ["Каналы и супергруппы"], "summary": "Измените права администратора пользователя в супергруппе/канале.", "description": "Измените права администратора пользователя в [супергруппе/канале](https://core.telegram.org/api/channel.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.editAdmin", "x-tl-id": "2593697128", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `ADMINS_TOO_MUCH` — Слишком много админов.\n- 400 · `ADMIN_RANK_EMOJI_NOT_ALLOWED` — Ранг администратора не может содержать смайлы.\n- 400 · `ADMIN_RANK_INVALID` — Указанный ранг администратора недействителен.\n- 400 · `BOTS_TOO_MUCH` — В этом чате/канале слишком много ботов.\n- 400 · `BOT_CHANNELS_NA` — Боты не могут редактировать права администратора.\n- 400 · `BOT_GROUPS_BLOCKED` — Этого бота нельзя добавлять в группы.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_INVITE_REQUIRED` — У вас нет на это прав.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 406 · `FRESH_CHANGE_ADMINS_FORBIDDEN` — Вы только что были избраны администратором, вы пока не можете добавлять или изменять других администраторов.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 403 · `RIGHT_FORBIDDEN` — Ваши права администратора не позволяют вам это сделать.\n- 400 · `USERS_TOO_MUCH` — Превышено максимальное количество пользователей (для создания чата, например).\n- 400 · `USER_BLOCKED` — Пользователь заблокирован.\n- 403 · `USER_CHANNELS_TOO_MUCH` — Один из пользователей, которых вы пытались добавить, уже состоит в слишком многих каналах/супергруппах.\n- 400 · `USER_CREATOR` — Для channels.editAdmin: вы пытались редактировать права администратора владельца, но вы не являетесь владельцем; для channels.leaveChannel: ты не можешь покинуть этот канал, потому что ты его создатель.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 400 · `USER_KICKED` — Этот пользователь был исключен из этой супергруппы/канала.\n- 403 · `USER_NOT_MUTUAL_CONTACT` — Указанный пользователь не является взаимным контактом.\n- 403 · `USER_PRIVACY_RESTRICTED` — Настройки приватности пользователя не позволяют это сделать.\n- 403 · `USER_RESTRICTED` — Вас сообщили о спаме, вы не можете создавать каналы и чаты."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.editAdmin"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Супергруппа/канал](https://core.telegram.org/api/channel.md)."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя, чьи права администратора следует изменить."}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "oneOf": [{"$ref": "#/components/schemas/chatAdminRights"}], "description": "Права администратора"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Указывает роль (ранг) админа в группе: просто произвольная строка. Если флаг не установлен, ранг остается неизменным."}}, "additionalProperties": false, "required": ["channel", "user_id", "admin_rights"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Супергруппа/канал](https://core.telegram.org/api/channel.md). |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя, чьи права администратора следует изменить. |\n| `admin_rights` | `ChatAdminRights` | Да | Права администратора |\n| `rank` | `string` | Нет | Указывает роль (ранг) админа в группе: просто произвольная строка. Если флаг не установлен, ранг остается неизменным. |"}, "x-telegram-rpc-errors": ["ADMINS_TOO_MUCH", "ADMIN_RANK_EMOJI_NOT_ALLOWED", "ADMIN_RANK_INVALID", "BOTS_TOO_MUCH", "BOT_CHANNELS_NA", "BOT_GROUPS_BLOCKED", "CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "CHAT_ADMIN_INVITE_REQUIRED", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "FRESH_CHANGE_ADMINS_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PEER_ID_INVALID", "RIGHT_FORBIDDEN", "USERS_TOO_MUCH", "USER_BLOCKED", "USER_CHANNELS_TOO_MUCH", "USER_CREATOR", "USER_ID_INVALID", "USER_KICKED", "USER_NOT_MUTUAL_CONTACT", "USER_PRIVACY_RESTRICTED", "USER_RESTRICTED"], "x-browser-schema-id": "2593697128"}}, "/catalog/channels.editTitle": {"post": {"operationId": "channels.editTitle", "tags": ["Каналы и супергруппы"], "summary": "Редактировать название канала/супергруппы", "description": "Отредактируйте название [канала/супергруппы](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.editTitle", "x-tl-id": "1450044624", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `CHAT_TITLE_EMPTY` — Название чата не указано.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.editTitle"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа"}, "title": {"type": "string", "x-tl-type": "string", "description": "Новое имя"}}, "additionalProperties": false, "required": ["channel", "title"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал/супергруппа |\n| `title` | `string` | Да | Новое имя |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_INVALID", "CHAT_NOT_MODIFIED", "CHAT_TITLE_EMPTY", "CHAT_WRITE_FORBIDDEN"], "x-browser-schema-id": "1450044624"}}, "/catalog/channels.editPhoto": {"post": {"operationId": "channels.editPhoto", "tags": ["Каналы и супергруппы"], "summary": "Сменить фото канала/супергруппы", "description": "Изменить фотографию [канала/супергруппы](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [File references](https://core.telegram.org/api/file-references.md)", "x-tl-method": "channels.editPhoto", "x-tl-id": "4046346185", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["File references", "https://core.telegram.org/api/file-references.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `FILE_PARTS_INVALID` — Недопустимое количество частей файла.\n- 400 · `FILE_REFERENCE_INVALID` — Указанная [ссылка на файл](https://core.telegram.org/api/file-references.md) недействительна.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Фотография слишком маленькая.\n- 400 · `PHOTO_EXT_INVALID` — Недопустимое расширение фотографии.\n- 400 · `PHOTO_FILE_MISSING` — Отсутствует файл с фотографией профиля.\n- 400 · `PHOTO_INVALID` — Фотография недействительна.\n- 400 · `STICKER_MIME_INVALID` — Указанный тип наклейки MIME недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.editPhoto"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа, фотографию которого необходимо отредактировать"}, "photo": {"type": "object", "x-tl-type": "InputChatPhoto", "oneOf": [{"$ref": "#/components/schemas/inputChatPhotoEmpty"}, {"$ref": "#/components/schemas/inputChatUploadedPhoto"}, {"$ref": "#/components/schemas/inputChatPhoto"}], "description": "Новое фото"}}, "additionalProperties": false, "required": ["channel", "photo"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал/супергруппа, фотографию которого необходимо отредактировать |\n| `photo` | `InputChatPhoto` | Да | Новое фото |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_INVALID", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "FILE_PARTS_INVALID", "FILE_REFERENCE_INVALID", "IMAGE_PROCESS_FAILED", "PEER_ID_INVALID", "PHOTO_CROP_SIZE_SMALL", "PHOTO_EXT_INVALID", "PHOTO_FILE_MISSING", "PHOTO_INVALID", "STICKER_MIME_INVALID"], "x-browser-schema-id": "4046346185"}}, "/catalog/channels.checkUsername": {"post": {"operationId": "channels.checkUsername", "tags": ["Каналы и супергруппы"], "summary": "Проверьте, свободно ли имя пользователя и может ли оно быть назначено каналу/супергруппе.", "description": "Проверьте, свободно ли имя пользователя и может ли оно быть назначено каналу/супергруппе.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.checkUsername", "x-tl-id": "283557164", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — Вы являетесь администратором слишком большого количества общедоступных каналов. Сделайте некоторые каналы частными, чтобы изменить имя пользователя этого канала.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_OCCUPIED` — Указанное имя пользователя уже занято.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — Указанное имя пользователя можно приобрести на https://fragment.com."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.checkUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Канал/супергруппа](https://core.telegram.org/api/channel.md), которому будет присвоено указанное имя пользователя."}, "username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя для проверки"}}, "additionalProperties": false, "required": ["channel", "username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Канал/супергруппа](https://core.telegram.org/api/channel.md), которому будет присвоено указанное имя пользователя. |\n| `username` | `string` | Да | Имя пользователя для проверки |"}, "x-telegram-rpc-errors": ["CHANNELS_ADMIN_PUBLIC_TOO_MUCH", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID", "USERNAME_INVALID", "USERNAME_OCCUPIED", "USERNAME_PURCHASE_AVAILABLE"], "x-browser-schema-id": "283557164"}}, "/catalog/channels.updateUsername": {"post": {"operationId": "channels.updateUsername", "tags": ["Каналы и супергруппы"], "summary": "Изменить или удалить имя пользователя супергруппы/канала", "description": "Изменить или удалить имя пользователя супергруппы/канала\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "channels.updateUsername", "x-tl-id": "890549214", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — Вы являетесь администратором слишком большого количества общедоступных каналов. Сделайте некоторые каналы частными, чтобы изменить имя пользователя этого канала.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_NOT_MODIFIED` — Имя пользователя не изменено.\n- 400 · `USERNAME_OCCUPIED` — Указанное имя пользователя уже занято.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — Указанное имя пользователя можно приобрести на https://fragment.com."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.updateUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}, "username": {"type": "string", "x-tl-type": "string", "description": "Новое имя пользователя. Передайте пустую строку, чтобы удалить имя пользователя."}}, "additionalProperties": false, "required": ["channel", "username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал |\n| `username` | `string` | Да | Новое имя пользователя. Передайте пустую строку, чтобы удалить имя пользователя. |"}, "x-telegram-rpc-errors": ["CHANNELS_ADMIN_PUBLIC_TOO_MUCH", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN", "USERNAME_INVALID", "USERNAME_NOT_MODIFIED", "USERNAME_OCCUPIED", "USERNAME_PURCHASE_AVAILABLE"], "x-browser-schema-id": "890549214"}}, "/catalog/channels.joinChannel": {"post": {"operationId": "channels.joinChannel", "tags": ["Каналы и супергруппы"], "summary": "Присоединяйтесь к каналу/супергруппе", "description": "Присоединяйтесь к каналу/супергруппе\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.joinChannel", "x-tl-id": "1097643276", "x-tl-result": "messages.ChatInviteJoinResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ChatInviteJoinResult`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.ChatInviteJoinResult", "oneOf": [{"$ref": "#/components/schemas/messages.chatInviteJoinResultOk"}, {"$ref": "#/components/schemas/messages.chatInviteJoinResultWebView"}], "description": "Тип TL: messages.ChatInviteJoinResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — Вы присоединились к слишком большому количеству каналов/супергрупп.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 420 · `FROZEN_METHOD_INVALID` — Текущая учетная запись [заморожена](https://core.telegram.org/api/auth.md#frozen-accounts) и, следовательно, не может выполнить указанное действие.\n- 400 · `INVITE_HASH_EMPTY` — Хэш приглашения пуст.\n- 406 · `INVITE_HASH_EXPIRED` — Срок действия ссылки для приглашения истек.\n- 400 · `INVITE_HASH_INVALID` — Неверный хеш приглашения.\n- 400 · `INVITE_REQUEST_SENT` — Вы успешно отправили запрос на присоединение к этому чату или каналу.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USERS_TOO_MUCH` — Превышено максимальное количество пользователей (для создания чата, например).\n- 400 · `USER_ALREADY_PARTICIPANT` — Пользователь уже в группе.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `USER_CHANNELS_TOO_MUCH` — Один из пользователей, которых вы пытались добавить, уже состоит в слишком многих каналах/супергруппах."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.joinChannel"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_news": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа, к которой можно присоединиться"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_news` | `true` | Нет | Значение типа TL `true`. |\n| `channel` | `InputChannel` | Да | Канал/супергруппа, к которой можно присоединиться |"}, "x-telegram-rpc-errors": ["CHANNELS_TOO_MUCH", "CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "CHAT_INVALID", "FROZEN_METHOD_INVALID", "INVITE_HASH_EMPTY", "INVITE_HASH_EXPIRED", "INVITE_HASH_INVALID", "INVITE_REQUEST_SENT", "MSG_ID_INVALID", "PEER_ID_INVALID", "USERS_TOO_MUCH", "USER_ALREADY_PARTICIPANT", "USER_BANNED_IN_CHANNEL", "USER_CHANNELS_TOO_MUCH"], "x-browser-schema-id": "1097643276"}}, "/catalog/channels.leaveChannel": {"post": {"operationId": "channels.leaveChannel", "tags": ["Каналы и супергруппы"], "summary": "Покинуть канал/супергруппу", "description": "Покинуть [канал/супергруппу](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.leaveChannel", "x-tl-id": "4164332181", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHANNEL_PUBLIC_GROUP_NA` — канал/супергруппа недоступен.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `USER_CREATOR` — Для channels.editAdmin: вы пытались редактировать права администратора владельца, но вы не являетесь владельцем; для channels.leaveChannel: ты не можешь покинуть этот канал, потому что ты его создатель.\n- 400 · `USER_NOT_PARTICIPANT` — Вы не состоите в этой супергруппе/канале."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.leaveChannel"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Канал/супергруппа](https://core.telegram.org/api/channel.md) выйти"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Канал/супергруппа](https://core.telegram.org/api/channel.md) выйти |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHANNEL_PUBLIC_GROUP_NA", "CHAT_INVALID", "MSG_ID_INVALID", "USER_BANNED_IN_CHANNEL", "USER_CREATOR", "USER_NOT_PARTICIPANT"], "x-browser-schema-id": "4164332181"}}, "/catalog/channels.inviteToChannel": {"post": {"operationId": "channels.inviteToChannel", "tags": ["Каналы и супергруппы"], "summary": "Пригласить пользователей в канал/супергруппу", "description": "Пригласить пользователей в канал/супергруппу\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.inviteToChannel", "x-tl-id": "3387112788", "x-tl-result": "messages.InvitedUsers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.InvitedUsers`.\n\n[messages.InvitedUsers](https://core.telegram.org/type/messages.InvitedUsers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.InvitedUsers", "oneOf": [{"$ref": "#/components/schemas/messages.invitedUsers"}], "description": "Тип TL: messages.InvitedUsers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOTS_TOO_MUCH` — В этом чате/канале слишком много ботов.\n- 400 · `BOT_GROUPS_BLOCKED` — Этого бота нельзя добавлять в группы.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_INVALID` — Неверный чат.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Не удалось добавить участников.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `USERS_TOO_MUCH` — Превышено максимальное количество пользователей (для создания чата, например).\n- 400 · `USER_BANNED_IN_CHANNEL` — Вам запрещено отправлять сообщения в супергруппы/каналы.\n- 400 · `USER_BLOCKED` — Пользователь заблокирован.\n- 400 · `USER_BOT` — Боты могут быть только админами в каналах.\n- 403 · `USER_CHANNELS_TOO_MUCH` — Один из пользователей, которых вы пытались добавить, уже состоит в слишком многих каналах/супергруппах.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 400 · `USER_KICKED` — Этот пользователь был исключен из этой супергруппы/канала.\n- 403 · `USER_NOT_MUTUAL_CONTACT` — Указанный пользователь не является взаимным контактом.\n- 403 · `USER_PRIVACY_RESTRICTED` — Настройки приватности пользователя не позволяют это сделать."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.inviteToChannel"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Пользователи, которых можно пригласить"}}, "additionalProperties": false, "required": ["channel", "users"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал/супергруппа |\n| `users` | `Vector<InputUser>` | Да | Пользователи, которых можно пригласить |"}, "x-telegram-rpc-errors": ["BOTS_TOO_MUCH", "BOT_GROUPS_BLOCKED", "CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_INVALID", "CHAT_MEMBER_ADD_FAILED", "CHAT_WRITE_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "USERS_TOO_MUCH", "USER_BANNED_IN_CHANNEL", "USER_BLOCKED", "USER_BOT", "USER_CHANNELS_TOO_MUCH", "USER_ID_INVALID", "USER_KICKED", "USER_NOT_MUTUAL_CONTACT", "USER_PRIVACY_RESTRICTED"], "x-browser-schema-id": "3387112788"}}, "/catalog/channels.deleteChannel": {"post": {"operationId": "channels.deleteChannel", "tags": ["Каналы и супергруппы"], "summary": "Удалить канал/супергруппу", "description": "Удалить [канал/супергруппу](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.deleteChannel", "x-tl-id": "3222347747", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 406 · `CHANNEL_TOO_LARGE` — Канал слишком велик для удаления; эта ошибка возникает при попытке удалить каналы с более чем 1000 участниками (возможны изменения).\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.deleteChannel"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Канал/супергруппа](https://core.telegram.org/api/channel.md) удалить"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Канал/супергруппа](https://core.telegram.org/api/channel.md) удалить |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHANNEL_TOO_LARGE", "CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "CHAT_WRITE_FORBIDDEN"], "x-browser-schema-id": "3222347747"}}, "/catalog/channels.exportMessageLink": {"post": {"operationId": "channels.exportMessageLink", "tags": ["Каналы и супергруппы"], "summary": "Получить ссылку и вставить информацию о сообщении в канал/супергруппу", "description": "Получите ссылку и вставьте информацию о сообщении в [канал/супергруппу](https://core.telegram.org/api/channel.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.exportMessageLink", "x-tl-id": "3862932971", "x-tl-result": "ExportedMessageLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `ExportedMessageLink`.\n\n[ExportedMessageLink](https://core.telegram.org/type/ExportedMessageLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedMessageLink", "oneOf": [{"$ref": "#/components/schemas/exportedMessageLink"}], "description": "Тип TL: ExportedMessageLink."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.exportMessageLink"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"grouped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включать ли другие сгруппированные медиафайлы (для альбомов)"}, "thread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Следует ли также включать идентификатор потока, если он доступен, внутри ссылки."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `grouped` | `true` | Нет | Включать ли другие сгруппированные медиафайлы (для альбомов) |\n| `thread` | `true` | Нет | Следует ли также включать идентификатор потока, если он доступен, внутри ссылки. |\n| `channel` | `InputChannel` | Да | Канал |\n| `id` | `int` | Да | Идентификатор сообщения |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MESSAGE_ID_INVALID", "MSG_ID_INVALID"], "x-browser-schema-id": "3862932971"}}, "/catalog/channels.toggleSignatures": {"post": {"operationId": "channels.toggleSignatures", "tags": ["Каналы и супергруппы"], "summary": "Включить/отключить подписи сообщений в каналах", "description": "Включить/отключить подписи сообщений в каналах\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "channels.toggleSignatures", "x-tl-id": "1099781276", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleSignatures"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"signatures_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, включает подписи сообщений."}, "profiles_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если этот параметр установлен, сообщения от администраторов каналов будут ссылаться на их профили, как и групповые сообщения: можно установить только в том случае, если установлен флаг `signatures_enabled`."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `signatures_enabled` | `true` | Нет | Если установлено, включает подписи сообщений. |\n| `profiles_enabled` | `true` | Нет | Если этот параметр установлен, сообщения от администраторов каналов будут ссылаться на их профили, как и групповые сообщения: можно установить только в том случае, если установлен флаг `signatures_enabled`. |\n| `channel` | `InputChannel` | Да | Канал |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "1099781276"}}, "/catalog/channels.getAdminedPublicChannels": {"post": {"operationId": "channels.getAdminedPublicChannels", "tags": ["Каналы и супергруппы"], "summary": "Получить каналы/супергруппы/геогруппы, в которых мы являемся администратором. Обычно вызывается, когда пользователь превышает лимит принадлежащих общедоступных каналов/супергрупп/геогрупп, и пользователю предоставляется возможность удалить один из своих каналов/супергрупп/геогрупп.", "description": "Получить [каналы/супергруппы/геогруппы](https://core.telegram.org/api/channel.md), в которых мы являемся администратором. Обычно вызывается, когда пользователь превышает [лимит](https://core.telegram.org/constructor/config.md) для принадлежащих ему общедоступных [каналов/супергрупп/геогрупп](https://core.telegram.org/api/channel.md)], и пользователю предоставляется возможность удалить один из своих каналов/супергрупп/геогрупп.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "channels.getAdminedPublicChannels", "x-tl-id": "4172297903", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_ADMIN_LOCATED_TOO_MUCH` — Пользователь достиг лимита публичных геогрупп.\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — Вы являетесь администратором слишком большого количества общедоступных каналов. Сделайте некоторые каналы частными, чтобы изменить имя пользователя этого канала."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getAdminedPublicChannels"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"by_location": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Получить геогруппы"}, "check_limit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлено и пользователь достиг предела принадлежащих общедоступных [каналов/супергрупп/геогрупп](https://core.telegram.org/api/channel.md)), вместо возврата списка каналов будет возвращена одна из указанных [ошибок](#possible-errors). Полезно проверить, действительно ли можно создать новый общедоступный канал, даже прежде чем просить пользователя ввести имя пользователя канала, которое будет использоваться в [channels.checkUsername](https://core.telegram.org/method/channels.checkUsername.md)/[channels.updateUsername](https://core.telegram.org/method/channels.updateUsername.md)."}, "for_personal": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Установите этот флаг, чтобы получать только полный список каналов, которые можно передать на [account.updatePersonalChannel](https://core.telegram.org/method/account.updatePersonalChannel.md), чтобы [отобразить их на странице нашего профиля](https://core.telegram.org/api/profile.md#personal-channel)."}, "for_community_peer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Значение типа TL `true`."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `by_location` | `true` | Нет | Получить геогруппы |\n| `check_limit` | `true` | Нет | Если установлено и пользователь достиг предела принадлежащих общедоступных [каналов/супергрупп/геогрупп](https://core.telegram.org/api/channel.md)), вместо возврата списка каналов будет возвращена одна из указанных [ошибок](#possible-errors). Полезно проверить, действительно ли можно создать новый общедоступный канал, даже прежде чем просить пользователя ввести имя пользователя канала, которое будет использоваться в [channels.checkUsername](https://core.telegram.org/method/channels.checkUsername.md)/[channels.updateUsername](https://core.telegram.org/method/channels.updateUsername.md). |\n| `for_personal` | `true` | Нет | Установите этот флаг, чтобы получать только полный список каналов, которые можно передать на [account.updatePersonalChannel](https://core.telegram.org/method/account.updatePersonalChannel.md), чтобы [отобразить их на странице нашего профиля](https://core.telegram.org/api/profile.md#personal-channel). |\n| `for_community_peer` | `true` | Нет | Значение типа TL `true`. |"}, "x-telegram-rpc-errors": ["CHANNELS_ADMIN_LOCATED_TOO_MUCH", "CHANNELS_ADMIN_PUBLIC_TOO_MUCH"], "x-browser-schema-id": "4172297903"}}, "/catalog/channels.editBanned": {"post": {"operationId": "channels.editBanned", "tags": ["Каналы и супергруппы"], "summary": "Заблокировать/разбанить/исключить пользователя в супергруппе/канале.", "description": "Заблокировать/разбанить/исключить пользователя в [супергруппе/канале](https://core.telegram.org/api/channel.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.editBanned", "x-tl-id": "2531708289", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `BANNED_RIGHTS_INVALID` — Вы указали неверные флаги в запрещенных правах.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PARTICIPANT_ID_INVALID` — Указанный идентификатор участника недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_ADMIN_INVALID` — Вы не админ.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.editBanned"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Супергруппа/канал](https://core.telegram.org/api/channel.md)."}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участника, которого нужно забанить"}, "banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "oneOf": [{"$ref": "#/components/schemas/chatBannedRights"}], "description": "Запрещенные права"}}, "additionalProperties": false, "required": ["channel", "participant", "banned_rights"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Супергруппа/канал](https://core.telegram.org/api/channel.md). |\n| `participant` | `InputPeer` | Да | Участника, которого нужно забанить |\n| `banned_rights` | `ChatBannedRights` | Да | Запрещенные права |"}, "x-telegram-rpc-errors": ["BANNED_RIGHTS_INVALID", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "INPUT_USER_DEACTIVATED", "MSG_ID_INVALID", "PARTICIPANT_ID_INVALID", "PEER_ID_INVALID", "USER_ADMIN_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "2531708289"}}, "/catalog/channels.getAdminLog": {"post": {"operationId": "channels.getAdminLog", "tags": ["Каналы и супергруппы"], "summary": "Получить журнал администратора канала/супергруппы", "description": "Получите журнал администратора [канала/супергруппы](https://core.telegram.org/api/channel.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getAdminLog", "x-tl-id": "870184064", "x-tl-result": "channels.AdminLogResults", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `channels.AdminLogResults`.\n\n[channels.AdminLogResults](https://core.telegram.org/type/channels.AdminLogResults.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "channels.AdminLogResults", "oneOf": [{"$ref": "#/components/schemas/channels.adminLogResults"}], "description": "Тип TL: channels.AdminLogResults."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getAdminLog"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}, "q": {"type": "string", "x-tl-type": "string", "description": "Поисковый запрос, может быть пустым"}, "events_filter": {"type": "object", "x-tl-type": "ChannelAdminLogEventsFilter", "oneOf": [{"$ref": "#/components/schemas/channelAdminLogEventsFilter"}], "description": "Фильтр событий", "x-tl-flag": "flags.0?ChannelAdminLogEventsFilter"}, "admins": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.1?Vector<InputUser>", "description": "Показывать события только от этих администраторов"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Максимальный идентификатор возвращаемого сообщения (см. [нумерация страниц](https://core.telegram.org/api/offsets.md))", "x-tl-type": "long"}, "min_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Минимальный идентификатор возвращаемого сообщения (см. [нумерация страниц](https://core.telegram.org/api/offsets.md))", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["channel", "q", "max_id", "min_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал |\n| `q` | `string` | Да | Поисковый запрос, может быть пустым |\n| `events_filter` | `ChannelAdminLogEventsFilter` | Нет | Фильтр событий |\n| `admins` | `Vector<InputUser>` | Нет | Показывать события только от этих администраторов |\n| `max_id` | `long` | Да | Максимальный идентификатор возвращаемого сообщения (см. [нумерация страниц](https://core.telegram.org/api/offsets.md)) |\n| `min_id` | `long` | Да | Минимальный идентификатор возвращаемого сообщения (см. [нумерация страниц](https://core.telegram.org/api/offsets.md)) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "MSG_ID_INVALID"], "x-browser-schema-id": "870184064"}}, "/catalog/channels.setStickers": {"post": {"operationId": "channels.setStickers", "tags": ["Каналы и супергруппы"], "summary": "Свяжите набор стикеров с супергруппой", "description": "Свяжите набор стикеров с супергруппой\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "channels.setStickers", "x-tl-id": "3935085817", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `PARTICIPANTS_TOO_FEW` — Недостаточно участников.\n- 406 · `STICKERSET_OWNER_ANONYMOUS` — Предоставленный набор стикеров нельзя установить как групповой набор стикеров, чтобы предотвратить деанонимизацию администратора."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.setStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Супергруппа"}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор наклеек для ассоциации"}}, "additionalProperties": false, "required": ["channel", "stickerset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Супергруппа |\n| `stickerset` | `InputStickerSet` | Да | Набор наклеек для ассоциации |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ID_INVALID", "PARTICIPANTS_TOO_FEW", "STICKERSET_OWNER_ANONYMOUS"], "x-browser-schema-id": "3935085817"}}, "/catalog/channels.readMessageContents": {"post": {"operationId": "channels.readMessageContents", "tags": ["Каналы и супергруппы"], "summary": "Пометить содержимое сообщения канала/супергруппы как прочитанное, выдав updateChannelReadMessagesContents.", "description": "Пометить содержимое сообщения [channel/supergroup](https://core.telegram.org/api/channel.md) как прочитанное, выдав сообщение [updateChannelReadMessagesContents](https://core.telegram.org/constructor/updateChannelReadMessagesContents.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.readMessageContents", "x-tl-id": "3937786936", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 406 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.readMessageContents"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Канал/супергруппа](https://core.telegram.org/api/channel.md)"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы сообщений, содержимое которых следует пометить как прочитанное"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Канал/супергруппа](https://core.telegram.org/api/channel.md) |\n| `id` | `Vector<int>` | Да | Идентификаторы сообщений, содержимое которых следует пометить как прочитанное |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID"], "x-browser-schema-id": "3937786936"}}, "/catalog/channels.deleteHistory": {"post": {"operationId": "channels.deleteHistory", "tags": ["Каналы и супергруппы"], "summary": "Удалить историю супергруппы", "description": "Удалить историю [супергруппы](https://core.telegram.org/api/channel.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.deleteHistory", "x-tl-id": "2611648071", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PARICIPANT_MISSING` — Текущего пользователя нет в канале.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHANNEL_TOO_BIG` — На этом канале слишком много участников (>1000) для удаления.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.deleteHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_everyone": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Должна ли история удаляться у всех"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Супергруппа](https://core.telegram.org/api/channel.md), чью историю необходимо удалить"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения **до которого** необходимо удалить историю"}}, "additionalProperties": false, "required": ["channel", "max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_everyone` | `true` | Нет | Должна ли история удаляться у всех |\n| `channel` | `InputChannel` | Да | [Супергруппа](https://core.telegram.org/api/channel.md), чью историю необходимо удалить |\n| `max_id` | `int` | Да | Идентификатор сообщения **до которого** необходимо удалить историю |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PARICIPANT_MISSING", "CHANNEL_PRIVATE", "CHANNEL_TOO_BIG", "CHAT_ADMIN_REQUIRED"], "x-browser-schema-id": "2611648071"}}, "/catalog/channels.togglePreHistoryHidden": {"post": {"operationId": "channels.togglePreHistoryHidden", "tags": ["Каналы и супергруппы"], "summary": "Скрыть/показать историю сообщений для новых пользователей канала/супергруппы", "description": "Скрыть/показать историю сообщений для новых пользователей канала/супергруппы\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.togglePreHistoryHidden", "x-tl-id": "3938171212", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_LINK_EXISTS` — Чат публичный, скрыть историю от новых пользователей нельзя.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `FORUM_ENABLED` — Вы не можете выполнить указанное действие, поскольку группа является [форумом](https://core.telegram.org/api/forum.md), отключите функциональность форума, чтобы продолжить."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.togglePreHistoryHidden"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Скрыть/показать"}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал/супергруппа |\n| `enabled` | `Bool` | Да | Скрыть/показать |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_LINK_EXISTS", "CHAT_NOT_MODIFIED", "FORUM_ENABLED"], "x-browser-schema-id": "3938171212"}}, "/catalog/channels.getLeftChannels": {"post": {"operationId": "channels.getLeftChannels", "tags": ["Каналы и супергруппы"], "summary": "Получите список каналов/супергрупп, которые мы покинули, требуется сеанс на вынос, см. здесь » для получения дополнительной информации.", "description": "Получите список [каналов/супергрупп](https://core.telegram.org/api/channel.md), которые мы покинули, требуется [сеанс с выносом, см. здесь » для получения дополнительной информации](https://core.telegram.org/api/takeout.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "channels.getLeftChannels", "x-tl-id": "2202135744", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TAKEOUT_INVALID` — Указанный идентификатор выноса недействителен.\n- 403 · `TAKEOUT_REQUIRED` — Сначала необходимо инициализировать сеанс [takeout](https://core.telegram.org/api/takeout.md), [подробнее см. здесь » ](https://core.telegram.org/api/takeout.md)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getLeftChannels"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offset` | `int` | Да | Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["TAKEOUT_INVALID", "TAKEOUT_REQUIRED"], "x-browser-schema-id": "2202135744"}}, "/catalog/channels.getGroupsForDiscussion": {"post": {"operationId": "channels.getGroupsForDiscussion", "tags": ["Каналы и супергруппы"], "summary": "Получите все группы, которые можно использовать в качестве дискуссионных групп.", "description": "Получите все группы, которые можно использовать в качестве [дискуссионных групп](https://core.telegram.org/api/discussion.md).\n\nВозвращено [базовые групповые чаты](https://core.telegram.org/api/channel.md#basic-groups) необходимо сначала обновить до [супергруппы](https://core.telegram.org/api/channel.md#supergroups), прежде чем их можно будет настроить в качестве дискуссионной группы.\nЧтобы установить возвращенную супергруппу в качестве группы обсуждения, сначала необходимо разрешить доступ к ее старым сообщениям с помощью [channels.togglePreHistoryHidden](https://core.telegram.org/method/channels.togglePreHistoryHidden.md)].\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getGroupsForDiscussion", "x-tl-id": "4124758904", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getGroupsForDiscussion"}, "x-browser-schema-id": "4124758904"}}, "/catalog/channels.setDiscussionGroup": {"post": {"operationId": "channels.setDiscussionGroup", "tags": ["Каналы и супергруппы"], "summary": "Свяжите группу с каналом в качестве группы обсуждения для этого канала.", "description": "Свяжите группу с каналом как [группа обсуждения](https://core.telegram.org/api/discussion.md) для этого канала\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "channels.setDiscussionGroup", "x-tl-id": "1079520178", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BROADCAST_ID_INVALID` — Неверный идентификатор трансляции.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `LINK_NOT_MODIFIED` — Ссылка на обсуждение не изменена.\n- 400 · `MEGAGROUP_ID_INVALID` — Неверный идентификатор супергруппы.\n- 400 · `MEGAGROUP_PREHISTORY_HIDDEN` — Группа со скрытой историей для новых участников не может быть назначена в качестве дискуссионной группы."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.setDiscussionGroup"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"broadcast": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}, "group": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Дискуссионная группа](https://core.telegram.org/api/discussion.md), чтобы присоединиться к каналу"}}, "additionalProperties": false, "required": ["broadcast", "group"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `broadcast` | `InputChannel` | Да | Канал |\n| `group` | `InputChannel` | Да | [Дискуссионная группа](https://core.telegram.org/api/discussion.md), чтобы присоединиться к каналу |"}, "x-telegram-rpc-errors": ["BROADCAST_ID_INVALID", "CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "LINK_NOT_MODIFIED", "MEGAGROUP_ID_INVALID", "MEGAGROUP_PREHISTORY_HIDDEN"], "x-browser-schema-id": "1079520178"}}, "/catalog/channels.editLocation": {"post": {"operationId": "channels.editLocation", "tags": ["Каналы и супергруппы"], "summary": "Измените местоположение геогруппы. Дополнительную информацию о геогруппах см. здесь ».", "description": "Для редактирования местоположения геогруппы см. [здесь »](https://core.telegram.org/api/nearby.md) дополнительную информацию о геогруппах.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Nearby users&chats](https://core.telegram.org/api/nearby.md)", "x-tl-method": "channels.editLocation", "x-tl-id": "1491484525", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Nearby users&chats", "https://core.telegram.org/api/nearby.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `MEGAGROUP_GEO_REQUIRED` — Этот метод можно вызвать только для геогруппы.\n- 400 · `MEGAGROUP_REQUIRED` — Этот метод можно использовать только в супергруппе."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.editLocation"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Геогруппа](https://core.telegram.org/api/channel.md)"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "oneOf": [{"$ref": "#/components/schemas/inputGeoPointEmpty"}, {"$ref": "#/components/schemas/inputGeoPoint"}], "description": "Новая геолокация"}, "address": {"type": "string", "x-tl-type": "string", "description": "Адресная строка"}}, "additionalProperties": false, "required": ["channel", "geo_point", "address"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Геогруппа](https://core.telegram.org/api/channel.md) |\n| `geo_point` | `InputGeoPoint` | Да | Новая геолокация |\n| `address` | `string` | Да | Адресная строка |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "MEGAGROUP_GEO_REQUIRED", "MEGAGROUP_REQUIRED"], "x-browser-schema-id": "1491484525"}}, "/catalog/channels.toggleSlowMode": {"post": {"operationId": "channels.toggleSlowMode", "tags": ["Каналы и супергруппы"], "summary": "Переключить медленный режим супергруппы: если он включен, пользователи смогут отправлять только одно сообщение каждые `seconds` секунд.", "description": "Переключить медленный режим супергруппы: если он включен, пользователи смогут отправлять только одно сообщение каждые `seconds` секунд.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.toggleSlowMode", "x-tl-id": "3990134512", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `SECONDS_INVALID` — Указана неверная продолжительность."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleSlowMode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Супергруппа](https://core.telegram.org/api/channel.md)"}, "seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Пользователи смогут отправлять только одно сообщение каждые `seconds` секунды, `0` чтобы отключить ограничение."}}, "additionalProperties": false, "required": ["channel", "seconds"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Супергруппа](https://core.telegram.org/api/channel.md) |\n| `seconds` | `int` | Да | Пользователи смогут отправлять только одно сообщение каждые `seconds` секунды, `0` чтобы отключить ограничение. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "SECONDS_INVALID"], "x-browser-schema-id": "3990134512"}}, "/catalog/channels.getInactiveChannels": {"post": {"operationId": "channels.getInactiveChannels", "tags": ["Каналы и супергруппы"], "summary": "Получить неактивные каналы и супергруппы", "description": "Получить неактивные каналы и супергруппы", "x-tl-method": "channels.getInactiveChannels", "x-tl-id": "300429806", "x-tl-result": "messages.InactiveChats", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.InactiveChats`.\n\n[messages.InactiveChats](https://core.telegram.org/type/messages.InactiveChats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.InactiveChats", "oneOf": [{"$ref": "#/components/schemas/messages.inactiveChats"}], "description": "Тип TL: messages.InactiveChats."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getInactiveChannels"}, "x-browser-schema-id": "300429806"}}, "/catalog/channels.convertToGigagroup": {"post": {"operationId": "channels.convertToGigagroup", "tags": ["Каналы и супергруппы"], "summary": "Преобразуйте супергруппу в гигагруппу по запросу канала.", "description": "Преобразуйте [супергруппу](https://core.telegram.org/api/channel.md) в [гигагруппу](https://core.telegram.org/api/channel.md) по запросу [предложения каналов](https://core.telegram.org/api/config.md#channel-suggestions).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.convertToGigagroup", "x-tl-id": "187239529", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_ID_INVALID` — Указанный идентификатор супергруппы недействителен.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `FORUM_ENABLED` — Вы не можете выполнить указанное действие, поскольку группа является [форумом](https://core.telegram.org/api/forum.md), отключите функциональность форума, чтобы продолжить.\n- 400 · `PARTICIPANTS_TOO_FEW` — Недостаточно участников."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.convertToGigagroup"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[супергруппа](https://core.telegram.org/api/channel.md) для преобразования"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [супергруппа](https://core.telegram.org/api/channel.md) для преобразования |"}, "x-telegram-rpc-errors": ["CHANNEL_ID_INVALID", "CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "FORUM_ENABLED", "PARTICIPANTS_TOO_FEW"], "x-browser-schema-id": "187239529"}}, "/catalog/channels.getSendAs": {"post": {"operationId": "channels.getSendAs", "tags": ["Каналы и супергруппы"], "summary": "Получает список одноранговых узлов, которые могут отображаться как отправитель в определенном контексте. С помощью `for_live_stories` возвращаются одноранговые узлы, которые могут создавать живые сообщения во время звонка».", "description": "Получает список одноранговых узлов, которые могут отображаться как отправитель в определенном контексте. При использовании `for_live_stories` возвращаются пиры, которые могут быть авторами [сообщений в режиме реального времени »](https://core.telegram.org/api/group-calls.md#in-call-messages).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "channels.getSendAs", "x-tl-id": "3884295231", "x-tl-result": "channels.SendAsPeers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `channels.SendAsPeers`.\n\n[channels.SendAsPeers](https://core.telegram.org/type/channels.SendAsPeers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "channels.SendAsPeers", "oneOf": [{"$ref": "#/components/schemas/channels.sendAsPeers"}], "description": "Тип TL: channels.SendAsPeers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getSendAs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_paid_reactions": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, извлекается список пиров, которые можно использовать для отправки [платных реакций](https://core.telegram.org/api/reactions.md#paid-reactions) на сообщения конкретного узла."}, "for_live_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Получите список коллег, которых можно передать [phone.sendGroupCallMessage](https://core.telegram.org/method/phone.sendGroupCallMessage.md).`send_as`, чтобы они прокомментировали или отреагировали в [живой истории »](https://core.telegram.org/api/group-calls.md#in-call-messages)."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Целевой узел; когда установлено `for_live_stories`, это узел, которому принадлежит активная история."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_paid_reactions` | `true` | Нет | Если установлено, извлекается список пиров, которые можно использовать для отправки [платных реакций](https://core.telegram.org/api/reactions.md#paid-reactions) на сообщения конкретного узла. |\n| `for_live_stories` | `true` | Нет | Получите список коллег, которых можно передать [phone.sendGroupCallMessage](https://core.telegram.org/method/phone.sendGroupCallMessage.md).`send_as`, чтобы они прокомментировали или отреагировали в [живой истории »](https://core.telegram.org/api/group-calls.md#in-call-messages). |\n| `peer` | `InputPeer` | Да | Целевой узел; когда установлено `for_live_stories`, это узел, которому принадлежит активная история. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3884295231"}}, "/catalog/channels.deleteParticipantHistory": {"post": {"operationId": "channels.deleteParticipantHistory", "tags": ["Каналы и супергруппы"], "summary": "Удалить все сообщения, отправленные конкретным участником данной супергруппы", "description": "Удалить все сообщения, отправленные конкретным участником данной супергруппы\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "channels.deleteParticipantHistory", "x-tl-id": "913655003", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.AffectedHistory`.\n\n[messages.AffectedHistory](https://core.telegram.org/type/messages.AffectedHistory.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.AffectedHistory", "oneOf": [{"$ref": "#/components/schemas/messages.affectedHistory"}], "description": "Тип TL: messages.AffectedHistory."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PARTICIPANT_ID_INVALID` — Указанный идентификатор участника недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.deleteParticipantHistory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Супергруппа"}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник, чьи сообщения следует удалить"}}, "additionalProperties": false, "required": ["channel", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Супергруппа |\n| `participant` | `InputPeer` | Да | Участник, чьи сообщения следует удалить |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "MSG_ID_INVALID", "PARTICIPANT_ID_INVALID"], "x-browser-schema-id": "913655003"}}, "/catalog/channels.toggleJoinToSend": {"post": {"operationId": "channels.toggleJoinToSend", "tags": ["Каналы и супергруппы"], "summary": "Укажите, должны ли все пользователи присоединяться к группе обсуждения, чтобы комментировать публикацию »", "description": "Установите, все ли пользователи [должны присоединяться к группе обсуждения, чтобы комментировать публикацию »](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "channels.toggleJoinToSend", "x-tl-id": "3838547328", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleJoinToSend"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Дискуссионная группа"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Переключить"}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Дискуссионная группа |\n| `enabled` | `Bool` | Да | Переключить |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "3838547328"}}, "/catalog/channels.toggleJoinRequest": {"post": {"operationId": "channels.toggleJoinRequest", "tags": ["Каналы и супергруппы"], "summary": "Установите, должны ли все пользователи запрашивать одобрение администратора для присоединения к группе».", "description": "Установите, должны ли все пользователи [запрашивать одобрение администратора для присоединения к группе»](https://core.telegram.org/api/invites.md#join-requests).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "channels.toggleJoinRequest", "x-tl-id": "248260120", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `CHAT_PUBLIC_REQUIRED` — Включить запросы на присоединение можно только в публичных группах."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleJoinRequest"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"apply_to_invites": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Группа"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Переключить"}, "guard_bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser.", "x-tl-flag": "flags.0?InputUser"}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `apply_to_invites` | `true` | Нет | Значение типа TL `true`. |\n| `channel` | `InputChannel` | Да | Группа |\n| `enabled` | `Bool` | Да | Переключить |\n| `guard_bot` | `InputUser` | Нет | Тип TL: InputUser. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "CHAT_PUBLIC_REQUIRED"], "x-browser-schema-id": "248260120"}}, "/catalog/channels.reorderUsernames": {"post": {"operationId": "channels.reorderUsernames", "tags": ["Каналы и супергруппы"], "summary": "Изменение порядка активных имен пользователей", "description": "Изменение порядка активных имен пользователей\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "channels.reorderUsernames", "x-tl-id": "3025988893", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.reorderUsernames"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Супергруппа или канал"}, "order": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Новый порядок активных имен пользователей. Все активные имена пользователей должны быть указаны."}}, "additionalProperties": false, "required": ["channel", "order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Супергруппа или канал |\n| `order` | `Vector<string>` | Да | Новый порядок активных имен пользователей. Все активные имена пользователей должны быть указаны. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "3025988893"}}, "/catalog/channels.toggleUsername": {"post": {"operationId": "channels.toggleUsername", "tags": ["Каналы и супергруппы"], "summary": "Активируйте или деактивируйте купленное имя пользователя fragment.com, связанное с принадлежащей нам супергруппой или каналом.", "description": "Активируйте или деактивируйте купленное [fragment.com](https://fragment.com) имя пользователя, связанное с [супергруппой или каналом](https://core.telegram.org/api/channel.md), которым мы владеем.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.toggleUsername", "x-tl-id": "1358053637", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `USERNAMES_ACTIVE_TOO_MUCH` — Достигнуто максимальное количество активных имен пользователей.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_NOT_MODIFIED` — Имя пользователя не изменено."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Супергруппа или канал](https://core.telegram.org/api/channel.md)"}, "username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя"}, "active": {"type": "boolean", "x-tl-type": "Bool", "description": "Активировать или деактивировать имя пользователя"}}, "additionalProperties": false, "required": ["channel", "username", "active"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | [Супергруппа или канал](https://core.telegram.org/api/channel.md) |\n| `username` | `string` | Да | Имя пользователя |\n| `active` | `Bool` | Да | Активировать или деактивировать имя пользователя |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CHAT_NOT_MODIFIED", "USERNAMES_ACTIVE_TOO_MUCH", "USERNAME_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "1358053637"}}, "/catalog/channels.deactivateAllUsernames": {"post": {"operationId": "channels.deactivateAllUsernames", "tags": ["Каналы и супергруппы"], "summary": "Отключить все купленные имена пользователей супергруппы или канала", "description": "Отключить все купленные имена пользователей супергруппы или канала\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "channels.deactivateAllUsernames", "x-tl-id": "170155475", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.deactivateAllUsernames"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Супергруппа или канал"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Супергруппа или канал |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "170155475"}}, "/catalog/channels.toggleForum": {"post": {"operationId": "channels.toggleForum", "tags": ["Каналы и супергруппы"], "summary": "Включите или отключите функциональность форума в супергруппе.", "description": "Включите или отключите [функциональность форума](https://core.telegram.org/api/forum.md) в супергруппе.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.toggleForum", "x-tl-id": "2727684948", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_DISCUSSION_UNALLOWED` — Вы не можете включить темы форума в дискуссионной группе, связанной с каналом.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleForum"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Идентификатор супергруппы"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Включить или отключить функциональность форума"}, "tabs": {"type": "boolean", "x-tl-type": "Bool", "description": "Если true, включается пользовательский интерфейс форума с вкладками, в противном случае — пользовательский интерфейс форума на основе списка."}, "sidebar": {"type": "boolean", "x-tl-type": "Bool", "description": "Значение типа TL `Bool`."}}, "additionalProperties": false, "required": ["channel", "enabled", "tabs", "sidebar"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Идентификатор супергруппы |\n| `enabled` | `Bool` | Да | Включить или отключить функциональность форума |\n| `tabs` | `Bool` | Да | Если true, включается пользовательский интерфейс форума с вкладками, в противном случае — пользовательский интерфейс форума на основе списка. |\n| `sidebar` | `Bool` | Да | Значение типа TL `Bool`. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_DISCUSSION_UNALLOWED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "2727684948"}}, "/catalog/channels.toggleAntiSpam": {"post": {"operationId": "channels.toggleAntiSpam", "tags": ["Каналы и супергруппы"], "summary": "Включите или отключите встроенную систему защиты от спама.", "description": "Включите или отключите [собственную систему защиты от спама](https://core.telegram.org/api/antispam.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Native antispam system](https://core.telegram.org/api/antispam.md)", "x-tl-method": "channels.toggleAntiSpam", "x-tl-id": "1760814315", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Native antispam system", "https://core.telegram.org/api/antispam.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleAntiSpam"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Идентификатор супергруппы. В указанной супергруппе должно быть не менее `telegram_antispam_group_size_min` членов, чтобы включить функцию защиты от спама, как указано в [параметрах конфигурации клиента](https://core.telegram.org/api/config.md#client-configuration)."}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Включите или отключите встроенную систему защиты от спама."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Идентификатор супергруппы. В указанной супергруппе должно быть не менее `telegram_antispam_group_size_min` членов, чтобы включить функцию защиты от спама, как указано в [параметрах конфигурации клиента](https://core.telegram.org/api/config.md#client-configuration). |\n| `enabled` | `Bool` | Да | Включите или отключите встроенную систему защиты от спама. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "1760814315"}}, "/catalog/channels.reportAntiSpamFalsePositive": {"post": {"operationId": "channels.reportAntiSpamFalsePositive", "tags": ["Каналы и супергруппы"], "summary": "Сообщить о ложном срабатывании встроенного антиспама", "description": "Сообщить о ложном срабатывании [родного антиспама](https://core.telegram.org/api/antispam.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Native antispam system](https://core.telegram.org/api/antispam.md)\n- [Admin log](https://core.telegram.org/api/recent-actions.md)", "x-tl-method": "channels.reportAntiSpamFalsePositive", "x-tl-id": "2823857811", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Native antispam system", "https://core.telegram.org/api/antispam.md"], ["Admin log", "https://core.telegram.org/api/recent-actions.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.reportAntiSpamFalsePositive"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Идентификатор супергруппы"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, ошибочно удаленного [собственной системой антиспама](https://core.telegram.org/api/antispam.md), взят из [журнала администратора](https://core.telegram.org/api/recent-actions.md)]"}}, "additionalProperties": false, "required": ["channel", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Идентификатор супергруппы |\n| `msg_id` | `int` | Да | Идентификатор сообщения, ошибочно удаленного [собственной системой антиспама](https://core.telegram.org/api/antispam.md), взят из [журнала администратора](https://core.telegram.org/api/recent-actions.md)] |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "2823857811"}}, "/catalog/channels.toggleParticipantsHidden": {"post": {"operationId": "channels.toggleParticipantsHidden", "tags": ["Каналы и супергруппы"], "summary": "Скрыть или отобразить список участников в супергруппе.", "description": "Скрыть или отобразить список участников в группе [супергруппа](https://core.telegram.org/api/channel.md).\n\nЧтобы использовать этот метод, в супергруппе должно быть не менее `hidden_members_group_size_min` участников, как указано в [параметрах конфигурации клиента »](https://core.telegram.org/api/config.md#client-configuration).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "channels.toggleParticipantsHidden", "x-tl-id": "1785624660", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `PARTICIPANTS_TOO_FEW` — Недостаточно участников."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleParticipantsHidden"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Идентификатор супергруппы"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Если true, список участников будет скрыт; в противном случае оно отобразится."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Идентификатор супергруппы |\n| `enabled` | `Bool` | Да | Если true, список участников будет скрыт; в противном случае оно отобразится. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "PARTICIPANTS_TOO_FEW"], "x-browser-schema-id": "1785624660"}}, "/catalog/channels.updateColor": {"post": {"operationId": "channels.updateColor", "tags": ["Каналы и супергруппы"], "summary": "Обновите цвет акцента и фоновые пользовательские смайлы » канала.", "description": "Обновите [акцентный цвет и фоновый собственный смайлик »](https://core.telegram.org/api/colors.md) канала.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Accent colors](https://core.telegram.org/api/colors.md)\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "channels.updateColor", "x-tl-id": "3635033713", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Accent colors", "https://core.telegram.org/api/colors.md"], ["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOOSTS_REQUIRED` — Указанный канал должен сначала быть [усилен его пользователями](https://core.telegram.org/api/boost.md), чтобы выполнить это действие.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.updateColor"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_profile": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Следует ли изменить шаблон эмодзи акцентного цвета на странице профиля; в противном случае цвет акцента и рисунок смайлов в сообщениях будут изменены.  Каналы могут изменять палитры как сообщений, так и профилей; супергруппы могут менять палитру профиля только после достижения [соответствующего уровня повышения](https://core.telegram.org/api/colors.md)."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал, цвет акцента которого следует изменить."}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "[Идентификатор цветовой палитры акцента »](https://core.telegram.org/api/colors.md) для использования (не RGB24, см. [здесь »](https://core.telegram.org/api/colors.md) для получения дополнительной информации); если не установлено, используется палитра по умолчанию."}, "background_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Пользовательский идентификатор смайлика, используемый в шаблоне акцентного цвета.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_profile` | `true` | Нет | Следует ли изменить шаблон эмодзи акцентного цвета на странице профиля; в противном случае цвет акцента и рисунок смайлов в сообщениях будут изменены.  Каналы могут изменять палитры как сообщений, так и профилей; супергруппы могут менять палитру профиля только после достижения [соответствующего уровня повышения](https://core.telegram.org/api/colors.md). |\n| `channel` | `InputChannel` | Да | Канал, цвет акцента которого следует изменить. |\n| `color` | `int` | Нет | [Идентификатор цветовой палитры акцента »](https://core.telegram.org/api/colors.md) для использования (не RGB24, см. [здесь »](https://core.telegram.org/api/colors.md) для получения дополнительной информации); если не установлено, используется палитра по умолчанию. |\n| `background_emoji_id` | `long` | Нет | Пользовательский идентификатор смайлика, используемый в шаблоне акцентного цвета. |"}, "x-telegram-rpc-errors": ["BOOSTS_REQUIRED", "CHANNEL_INVALID"], "x-browser-schema-id": "3635033713"}}, "/catalog/channels.toggleViewForumAsMessages": {"post": {"operationId": "channels.toggleViewForumAsMessages", "tags": ["Каналы и супергруппы"], "summary": "Пользователи также могут выбрать отображение сообщений из всех тем форума, как если бы они были отправлены в обычную группу, используя параметр «Просмотреть как сообщения» в локальном клиенте: этот параметр влияет только на текущую учетную запись и синхронизируется с другими сеансами входа в систему с использованием этого метода.", "description": "Пользователи также могут выбрать отображение сообщений из всех тем [форума](https://core.telegram.org/api/forum.md), как если бы они были отправлены в обычную группу, используя параметр «Просмотр как сообщения» в локальном клиенте: этот параметр влияет только на текущую учетную запись и синхронизируется с другими сеансами входа в систему с использованием этого метода.\n\nВызов этого метода обновит значение флага `view_forum_as_messages` [channelFull](https://core.telegram.org/constructor/channelFull.md) или [dialog](https://core.telegram.org/constructor/dialog.md)] и выдаст сообщение [updateChannelViewForumAsMessages](https://core.telegram.org/constructor/updateChannelViewForumAsMessages.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.toggleViewForumAsMessages", "x-tl-id": "2537077525", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleViewForumAsMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Форум"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Новое значение флага `view_forum_as_messages`."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Форум |\n| `enabled` | `Bool` | Да | Новое значение флага `view_forum_as_messages`. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "2537077525"}}, "/catalog/channels.getChannelRecommendations": {"post": {"operationId": "channels.getChannelRecommendations", "tags": ["Каналы и супергруппы"], "summary": "Получите список общедоступных каналов схожей тематики, выбранных на основе сходства их **баз подписчиков**.", "description": "Получите список общедоступных каналов схожей тематики, выбранных на основе сходства их **баз подписчиков**.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "channels.getChannelRecommendations", "x-tl-id": "631707458", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getChannelRecommendations"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Метод вернет каналы, относящиеся к переданному `channel`. Если этот параметр не установлен, метод будет возвращать каналы, связанные с каналами, к которым присоединился пользователь.", "x-tl-flag": "flags.0?InputChannel"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Нет | Метод вернет каналы, относящиеся к переданному `channel`. Если этот параметр не установлен, метод будет возвращать каналы, связанные с каналами, к которым присоединился пользователь. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "631707458"}}, "/catalog/channels.updateEmojiStatus": {"post": {"operationId": "channels.updateEmojiStatus", "tags": ["Каналы и супергруппы"], "summary": "Установите статус смайлика для канала или супергруппы.", "description": "Установите [статус смайлика](https://core.telegram.org/api/emoji-status.md) для канала или супергруппы.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "channels.updateEmojiStatus", "x-tl-id": "4040418984", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.updateEmojiStatus"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал/супергруппа должен иметь как минимум [channel_emoji_status_level_min](https://core.telegram.org/api/config.md#channel-emoji-status-level-min)/[group_emoji_status_level_min](https://core.telegram.org/api/config.md#group-emoji-status-level-min) повышения."}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "oneOf": [{"$ref": "#/components/schemas/emojiStatusEmpty"}, {"$ref": "#/components/schemas/emojiStatus"}, {"$ref": "#/components/schemas/emojiStatusCollectible"}, {"$ref": "#/components/schemas/inputEmojiStatusCollectible"}], "description": "[Статус эмодзи](https://core.telegram.org/api/emoji-status.md) для установки"}}, "additionalProperties": false, "required": ["channel", "emoji_status"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал/супергруппа должен иметь как минимум [channel_emoji_status_level_min](https://core.telegram.org/api/config.md#channel-emoji-status-level-min)/[group_emoji_status_level_min](https://core.telegram.org/api/config.md#group-emoji-status-level-min) повышения. |\n| `emoji_status` | `EmojiStatus` | Да | [Статус эмодзи](https://core.telegram.org/api/emoji-status.md) для установки |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "4040418984"}}, "/catalog/channels.setBoostsToUnblockRestrictions": {"post": {"operationId": "channels.setBoostsToUnblockRestrictions", "tags": ["Каналы и супергруппы"], "summary": "Администраторы с правами администратора Ban\\_users » могут разрешить пользователям, применяющим определенное количество ускорений » к группе, обходить медленный режим » и другие » ограничения супергруппы, см. здесь » для получения дополнительной информации.", "description": "Администраторы с [ban\\_users правами администратора»](https://core.telegram.org/constructor/chatAdminRights.md) могут разрешить пользователям, которые применяют определенное количество [booosts »](https://core.telegram.org/api/boost.md) к группе, обходить [медленный режим »](https://core.telegram.org/method/channels.toggleSlowMode.md) и [другие »](https://core.telegram.org/api/rights.md#default-rights) ограничения супергруппы, см. [здесь »](https://core.telegram.org/api/boost.md#bypass-slowmode-and-chat-restrictions) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Admin, banned, default rights](https://core.telegram.org/api/rights.md)", "x-tl-method": "channels.setBoostsToUnblockRestrictions", "x-tl-id": "2906234094", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Admin, banned, default rights", "https://core.telegram.org/api/rights.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.setBoostsToUnblockRestrictions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Супергруппа."}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество необходимых бустов (1-8, 0 для отключения)."}}, "additionalProperties": false, "required": ["channel", "boosts"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Супергруппа. |\n| `boosts` | `int` | Да | Количество необходимых бустов (1-8, 0 для отключения). |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "2906234094"}}, "/catalog/channels.setEmojiStickers": {"post": {"operationId": "channels.setEmojiStickers", "tags": ["Каналы и супергруппы"], "summary": "Установите собственный набор стикеров эмодзи для супергрупп. Можно использовать только после достижения как минимум уровня усиления, указанного в параметре конфигурации `group_emoji_stickers_level_min` ».", "description": "Установите [пользовательский набор стикеров с эмодзи](https://core.telegram.org/api/custom-emoji.md) для супергрупп. Можно использовать только после достижения как минимум [уровня повышения »](https://core.telegram.org/api/boost.md), указанного в параметре конфигурации [`group_emoji_stickers_level_min` »](https://core.telegram.org/api/config.md#group-emoji-stickers-level-min).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "channels.setEmojiStickers", "x-tl-id": "1020866743", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.setEmojiStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Супергруппа"}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Пользовательский набор стикеров эмодзи, который можно связать с супергруппой."}}, "additionalProperties": false, "required": ["channel", "stickerset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Супергруппа |\n| `stickerset` | `InputStickerSet` | Да | Пользовательский набор стикеров эмодзи, который можно связать с супергруппой. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "1020866743"}}, "/catalog/channels.restrictSponsoredMessages": {"post": {"operationId": "channels.restrictSponsoredMessages", "tags": ["Каналы и супергруппы"], "summary": "Отключить рекламу на указанном канале для всех пользователей.", "description": "Отключить рекламу на указанном канале для всех пользователей.\n\nДоступно только после достижения как минимум [уровня повышения »](https://core.telegram.org/api/boost.md), указанного в параметре конфигурации [`channel_restrict_sponsored_level_min` »](https://core.telegram.org/api/config.md#channel-restrict-sponsored-level-min).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "channels.restrictSponsoredMessages", "x-tl-id": "2598966553", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.restrictSponsoredMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал."}, "restricted": {"type": "boolean", "x-tl-type": "Bool", "description": "Следует ли отключить или повторно включить рекламу."}}, "additionalProperties": false, "required": ["channel", "restricted"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал. |\n| `restricted` | `Bool` | Да | Следует ли отключить или повторно включить рекламу. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "2598966553"}}, "/catalog/channels.searchPosts": {"post": {"operationId": "channels.searchPosts", "tags": ["Каналы и супергруппы"], "summary": "Глобальный поиск сообщений из общедоступных каналов » (*включая* те, участниками которых мы не являемся), содержащих либо определенный хэштег, либо *или* полнотекстовый запрос.", "description": "Глобальный поиск сообщений из общедоступных [каналов »](https://core.telegram.org/api/channel.md) (*включая* те, участниками которых мы не являемся), содержащих либо определенный хэштег, *или* полнотекстовый запрос.\n\nДолжен быть установлен ровно один из `query` и `hashtag`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Search and filters](https://core.telegram.org/api/search.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.searchPosts", "x-tl-id": "4072993357", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Search and filters", "https://core.telegram.org/api/search.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Messages`.\n\n[messages.Messages](https://core.telegram.org/type/messages.Messages.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Messages", "oneOf": [{"$ref": "#/components/schemas/messages.messages"}, {"$ref": "#/components/schemas/messages.messagesSlice"}, {"$ref": "#/components/schemas/messages.channelMessages"}, {"$ref": "#/components/schemas/messages.messagesNotModified"}], "description": "Тип TL: messages.Messages."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 420 · `FROZEN_METHOD_INVALID` — Текущая учетная запись [заморожена](https://core.telegram.org/api/auth.md#frozen-accounts) и, следовательно, не может выполнить указанное действие.\n- 400 · `OFFSET_PEER_ID_INVALID` — Указанный узел смещения недействителен.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.searchPosts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hashtag": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Хэштег для поиска без символа `#`."}, "query": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Полнотекстовый запрос: каждый пользователь имеет ограниченное количество бесплатных слотов полнотекстового поиска, после чего требуется оплата, см. [здесь »](https://core.telegram.org/api/search.md#posts-tab) дополнительную информацию о полном потоке."}, "offset_rate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Первоначально 0, затем устанавливается параметр [`next_rate` messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) или, если он отсутствует, `date` последнего возвращенного сообщения."}, "offset_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для полнотекстового поиска сообщений (`query`) допускается оплата указанного количества звезд за поиск. Дополнительную информацию о полном потоке см. [здесь »](https://core.telegram.org/api/search.md#posts-tab).", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}}, "additionalProperties": false, "required": ["offset_rate", "offset_peer", "offset_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hashtag` | `string` | Нет | Хэштег для поиска без символа `#`. |\n| `query` | `string` | Нет | Полнотекстовый запрос: каждый пользователь имеет ограниченное количество бесплатных слотов полнотекстового поиска, после чего требуется оплата, см. [здесь »](https://core.telegram.org/api/search.md#posts-tab) дополнительную информацию о полном потоке. |\n| `offset_rate` | `int` | Да | Первоначально 0, затем устанавливается параметр [`next_rate` messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) или, если он отсутствует, `date` последнего возвращенного сообщения. |\n| `offset_peer` | `InputPeer` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |\n| `allow_paid_stars` | `long` | Нет | Для полнотекстового поиска сообщений (`query`) допускается оплата указанного количества звезд за поиск. Дополнительную информацию о полном потоке см. [здесь »](https://core.telegram.org/api/search.md#posts-tab). |"}, "x-telegram-rpc-errors": ["FROZEN_METHOD_INVALID", "OFFSET_PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "4072993357"}}, "/catalog/channels.updatePaidMessagesPrice": {"post": {"operationId": "channels.updatePaidMessagesPrice", "tags": ["Каналы и супергруппы"], "summary": "Включить или отключить платные сообщения » в этой супергруппе или монофоруме.", "description": "Включите или отключите [платные сообщения»](https://core.telegram.org/api/paid-messages.md) в этой [супергруппе](https://core.telegram.org/api/channel.md) или [монофорум](https://core.telegram.org/api/monoforum.md).\n\nТакже используется для [включения или отключения монофорумов, т. е. прямых сообщений в канале](https://core.telegram.org/api/monoforum.md).\n\nОбратите внимание, что передача идентификатора самого монофорума в `channel` вернет ошибку `CHANNEL_MONOFORUM_UNSUPPORTED`: вместо этого передайте идентификатор связанного канала для редактирования настроек связанного монофорума.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)", "x-tl-method": "channels.updatePaidMessagesPrice", "x-tl-id": "1259483771", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 400 · `CHAT_NOT_MODIFIED` — В информацию чата не было внесено никаких изменений, поскольку переданная вами новая информация идентична текущей.\n- 400 · `STARS_AMOUNT_INVALID` — Указанная сумма в звездах недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.updatePaidMessagesPrice"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"broadcast_messages_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Используется только для каналов, включает или отключает связанные [monoforum, также известные как прямые сообщения](https://core.telegram.org/api/monoforum.md)."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Передайте идентификатор супергруппы для супергрупп и идентификатор [канала](https://core.telegram.org/api/channel.md), чтобы изменить настройки в соответствующем монофоруме."}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Указывает необходимую сумму в [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователи должны заплатить за отправку сообщений в супергруппу или монофорум.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["channel", "send_paid_messages_stars"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `broadcast_messages_allowed` | `true` | Нет | Используется только для каналов, включает или отключает связанные [monoforum, также известные как прямые сообщения](https://core.telegram.org/api/monoforum.md). |\n| `channel` | `InputChannel` | Да | Передайте идентификатор супергруппы для супергрупп и идентификатор [канала](https://core.telegram.org/api/channel.md), чтобы изменить настройки в соответствующем монофоруме. |\n| `send_paid_messages_stars` | `long` | Да | Указывает необходимую сумму в [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователи должны заплатить за отправку сообщений в супергруппу или монофорум. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_MONOFORUM_UNSUPPORTED", "CHAT_NOT_MODIFIED", "STARS_AMOUNT_INVALID"], "x-browser-schema-id": "1259483771"}}, "/catalog/channels.toggleAutotranslation": {"post": {"operationId": "channels.toggleAutotranslation", "tags": ["Каналы и супергруппы"], "summary": "Включите автоперевод в канале для всех пользователей: дополнительную информацию см. здесь ».", "description": "Включите автоперевод в канале для всех пользователей: дополнительную информацию см. [здесь »](https://core.telegram.org/api/translation.md#autotranslation-for-channels).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message translation](https://core.telegram.org/api/translation.md)", "x-tl-method": "channels.toggleAutotranslation", "x-tl-id": "377471137", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message translation", "https://core.telegram.org/api/translation.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.toggleAutotranslation"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал, на котором включается автоперевод."}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Включить или отключить автоперевод."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал, на котором включается автоперевод. |\n| `enabled` | `Bool` | Да | Включить или отключить автоперевод. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "377471137"}}, "/catalog/channels.getMessageAuthor": {"post": {"operationId": "channels.getMessageAuthor", "tags": ["Каналы и супергруппы"], "summary": "Может вызываться только администраторами монофорума, не являющимися ботами», получает исходного отправителя сообщения, отправленного другими администраторами монофорума на монофорум, от имени канала, связанного с монофорумом.", "description": "Может вызываться только администраторами [monoforum »](https://core.telegram.org/api/monoforum.md), не являющимися ботами, получает исходного отправителя сообщения, отправленного другими администраторами монофорума на монофорум, от имени канала, связанного с монофорумом.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "channels.getMessageAuthor", "x-tl-id": "3974275302", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "Результат MTProto · `User`.\n\n[Пользователь](https://core.telegram.org/type/User.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.getMessageAuthor"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "ID монофорума."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, отправленного администратором монофорума."}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | ID монофорума. |\n| `id` | `int` | Да | Идентификатор сообщения, отправленного администратором монофорума. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "3974275302"}}, "/catalog/channels.checkSearchPostsFlood": {"post": {"operationId": "channels.checkSearchPostsFlood", "tags": ["Каналы и супергруппы"], "summary": "Проверьте, требует ли оплата указанный глобальный поиск публикаций.", "description": "Проверьте, требует ли указанный [глобальный поиск сообщений »](https://core.telegram.org/api/search.md#posts-tab) оплату.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Search and filters](https://core.telegram.org/api/search.md)", "x-tl-method": "channels.checkSearchPostsFlood", "x-tl-id": "576090389", "x-tl-result": "SearchPostsFlood", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Search and filters", "https://core.telegram.org/api/search.md"]], "responses": {"200": {"description": "Результат MTProto · `SearchPostsFlood`.\n\n[Поиск сообщенийФлуд](https://core.telegram.org/type/SearchPostsFlood.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "SearchPostsFlood", "oneOf": [{"$ref": "#/components/schemas/searchPostsFlood"}], "description": "Тип TL: SearchPostsFlood."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.checkSearchPostsFlood"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"query": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Запрос."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query` | `string` | Нет | Запрос. |"}, "x-browser-schema-id": "576090389"}}, "/catalog/channels.setMainProfileTab": {"post": {"operationId": "channels.setMainProfileTab", "tags": ["Каналы и супергруппы"], "summary": "Изменяет вкладку основного профиля канала. Дополнительную информацию см. здесь ».", "description": "Изменяет вкладку основного профиля канала. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/profile.md#tabs).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "channels.setMainProfileTab", "x-tl-id": "897842353", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/channels.setMainProfileTab"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал."}, "tab": {"type": "object", "x-tl-type": "ProfileTab", "oneOf": [{"$ref": "#/components/schemas/profileTabPosts"}, {"$ref": "#/components/schemas/profileTabGifts"}, {"$ref": "#/components/schemas/profileTabMedia"}, {"$ref": "#/components/schemas/profileTabFiles"}, {"$ref": "#/components/schemas/profileTabMusic"}, {"$ref": "#/components/schemas/profileTabVoice"}, {"$ref": "#/components/schemas/profileTabLinks"}, {"$ref": "#/components/schemas/profileTabGifs"}], "description": "Вкладка, которую нужно сделать основной."}}, "additionalProperties": false, "required": ["channel", "tab"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Канал. |\n| `tab` | `ProfileTab` | Да | Вкладка, которую нужно сделать основной. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "897842353"}}, "/catalog/channels.editChannelNews": {"post": {"operationId": "channels.editChannelNews", "tags": ["Каналы и супергруппы"], "summary": "channels.editChannelNews", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "channels.editChannelNews", "x-tl-id": "3607427461", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}, "news": {"type": "boolean", "x-tl-type": "Bool", "description": "Значение типа TL `Bool`."}}, "additionalProperties": false, "required": ["channel", "news"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Тип TL: InputChannel. |\n| `news` | `Bool` | Да | Значение типа TL `Bool`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3607427461"}}, "/catalog/bots.sendCustomRequest": {"post": {"operationId": "bots.sendCustomRequest", "tags": ["Боты"], "summary": "Отправляет индивидуальный запрос; только для ботов", "description": "Отправляет индивидуальный запрос; только для ботов\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "bots.sendCustomRequest", "x-tl-id": "2854709741", "x-tl-result": "DataJSON", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `DataJSON`.\n\n[ДанныеJSON](https://core.telegram.org/type/DataJSON.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Тип TL: DataJSON."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DATA_JSON_INVALID` — Предоставленные данные JSON недействительны.\n- 400 · `METHOD_INVALID` — Указанный метод недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.sendCustomRequest"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"custom_method": {"type": "string", "x-tl-type": "string", "description": "Имя метода"}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "JSON-сериализованные параметры метода"}}, "additionalProperties": false, "required": ["custom_method", "params"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `custom_method` | `string` | Да | Имя метода |\n| `params` | `DataJSON` | Да | JSON-сериализованные параметры метода |"}, "x-telegram-rpc-errors": ["DATA_JSON_INVALID", "METHOD_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "2854709741"}}, "/catalog/bots.answerWebhookJSONQuery": {"post": {"operationId": "bots.answerWebhookJSONQuery", "tags": ["Боты"], "summary": "Отвечает на пользовательский запрос; только для ботов", "description": "Отвечает на пользовательский запрос; только для ботов\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "bots.answerWebhookJSONQuery", "x-tl-id": "3860938573", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DATA_JSON_INVALID` — Предоставленные данные JSON недействительны.\n- 400 · `QUERY_ID_INVALID` — Неверный идентификатор запроса.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.answerWebhookJSONQuery"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользовательского запроса", "x-tl-type": "long"}, "data": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "JSON-сериализованный ответ на запрос"}}, "additionalProperties": false, "required": ["query_id", "data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query_id` | `long` | Да | Идентификатор пользовательского запроса |\n| `data` | `DataJSON` | Да | JSON-сериализованный ответ на запрос |"}, "x-telegram-rpc-errors": ["DATA_JSON_INVALID", "QUERY_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3860938573"}}, "/catalog/bots.setBotCommands": {"post": {"operationId": "bots.setBotCommands", "tags": ["Боты"], "summary": "Установить список команд бота", "description": "Установить список команд бота\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "bots.setBotCommands", "x-tl-id": "85399130", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_COMMAND_DESCRIPTION_INVALID` — Указанное описание команды неверно.\n- 400 · `BOT_COMMAND_INVALID` — Указанная команда недействительна.\n- 400 · `LANG_CODE_INVALID` — Указанный код языка недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.setBotCommands"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"scope": {"type": "object", "x-tl-type": "BotCommandScope", "oneOf": [{"$ref": "#/components/schemas/botCommandScopeDefault"}, {"$ref": "#/components/schemas/botCommandScopeUsers"}, {"$ref": "#/components/schemas/botCommandScopeChats"}, {"$ref": "#/components/schemas/botCommandScopeChatAdmins"}, {"$ref": "#/components/schemas/botCommandScopePeer"}, {"$ref": "#/components/schemas/botCommandScopePeerAdmins"}, {"$ref": "#/components/schemas/botCommandScopePeerUser"}], "description": "Область действия команды"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка"}, "commands": {"type": "array", "items": {"type": "object", "x-tl-type": "BotCommand", "oneOf": [{"$ref": "#/components/schemas/botCommand"}], "description": "Тип TL: BotCommand."}, "x-tl-type": "Vector<BotCommand>", "description": "Команды бота"}}, "additionalProperties": false, "required": ["scope", "lang_code", "commands"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `scope` | `BotCommandScope` | Да | Область действия команды |\n| `lang_code` | `string` | Да | Код языка |\n| `commands` | `Vector<BotCommand>` | Да | Команды бота |"}, "x-telegram-rpc-errors": ["BOT_COMMAND_DESCRIPTION_INVALID", "BOT_COMMAND_INVALID", "LANG_CODE_INVALID", "PEER_ID_INVALID", "USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "85399130"}}, "/catalog/bots.resetBotCommands": {"post": {"operationId": "bots.resetBotCommands", "tags": ["Боты"], "summary": "Очистить команды бота для указанной области действия бота и кода языка.", "description": "Очистить команды бота для указанной области действия бота и кода языка.\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "bots.resetBotCommands", "x-tl-id": "1032708345", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `LANG_CODE_INVALID` — Указанный код языка недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.resetBotCommands"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"scope": {"type": "object", "x-tl-type": "BotCommandScope", "oneOf": [{"$ref": "#/components/schemas/botCommandScopeDefault"}, {"$ref": "#/components/schemas/botCommandScopeUsers"}, {"$ref": "#/components/schemas/botCommandScopeChats"}, {"$ref": "#/components/schemas/botCommandScopeChatAdmins"}, {"$ref": "#/components/schemas/botCommandScopePeer"}, {"$ref": "#/components/schemas/botCommandScopePeerAdmins"}, {"$ref": "#/components/schemas/botCommandScopePeerUser"}], "description": "Область действия команды"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка"}}, "additionalProperties": false, "required": ["scope", "lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `scope` | `BotCommandScope` | Да | Область действия команды |\n| `lang_code` | `string` | Да | Код языка |"}, "x-telegram-rpc-errors": ["LANG_CODE_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "1032708345"}}, "/catalog/bots.getBotCommands": {"post": {"operationId": "bots.getBotCommands", "tags": ["Боты"], "summary": "Получить список команд бота для указанной области действия бота и кода языка.", "description": "Получить список команд бота для указанной области действия бота и кода языка.\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "bots.getBotCommands", "x-tl-id": "3813412310", "x-tl-result": "Vector<BotCommand>", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<BotCommand>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[BotCommand](https://core.telegram.org/type/BotCommand.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "BotCommand", "oneOf": [{"$ref": "#/components/schemas/botCommand"}], "description": "Тип TL: BotCommand."}, "x-tl-type": "Vector<BotCommand>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getBotCommands"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"scope": {"type": "object", "x-tl-type": "BotCommandScope", "oneOf": [{"$ref": "#/components/schemas/botCommandScopeDefault"}, {"$ref": "#/components/schemas/botCommandScopeUsers"}, {"$ref": "#/components/schemas/botCommandScopeChats"}, {"$ref": "#/components/schemas/botCommandScopeChatAdmins"}, {"$ref": "#/components/schemas/botCommandScopePeer"}, {"$ref": "#/components/schemas/botCommandScopePeerAdmins"}, {"$ref": "#/components/schemas/botCommandScopePeerUser"}], "description": "Область действия команды"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка"}}, "additionalProperties": false, "required": ["scope", "lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `scope` | `BotCommandScope` | Да | Область действия команды |\n| `lang_code` | `string` | Да | Код языка |"}, "x-telegram-rpc-errors": ["USER_BOT_REQUIRED"], "x-browser-schema-id": "3813412310"}}, "/catalog/bots.setBotMenuButton": {"post": {"operationId": "bots.setBotMenuButton", "tags": ["Боты"], "summary": "Устанавливает действие кнопки меню » для данного пользователя или для всех пользователей.", "description": "Устанавливает [действие кнопки меню »](https://core.telegram.org/api/bots/menu.md) для данного пользователя или для всех пользователей.\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Bot menu button](https://core.telegram.org/api/bots/menu.md)", "x-tl-method": "bots.setBotMenuButton", "x-tl-id": "1157944655", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Bot menu button", "https://core.telegram.org/api/bots/menu.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUTTON_INVALID` — Указанная кнопка недействительна.\n- 400 · `BUTTON_TEXT_INVALID` — Указанный текст кнопки недействителен.\n- 400 · `BUTTON_URL_INVALID` — Кнопка URL недействительна.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.setBotMenuButton"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя"}, "button": {"type": "object", "x-tl-type": "BotMenuButton", "oneOf": [{"$ref": "#/components/schemas/botMenuButtonDefault"}, {"$ref": "#/components/schemas/botMenuButtonCommands"}, {"$ref": "#/components/schemas/botMenuButton"}], "description": "Действие кнопки меню бота"}}, "additionalProperties": false, "required": ["user_id", "button"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя |\n| `button` | `BotMenuButton` | Да | Действие кнопки меню бота |"}, "x-telegram-rpc-errors": ["BUTTON_INVALID", "BUTTON_TEXT_INVALID", "BUTTON_URL_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "1157944655"}}, "/catalog/bots.getBotMenuButton": {"post": {"operationId": "bots.getBotMenuButton", "tags": ["Боты"], "summary": "Получает действие кнопки меню для данного пользователя или для всех пользователей, предварительно заданное с помощью bots.setBotMenuButton; пользователи могут увидеть эту информацию в конструкторе botInfo.", "description": "Получает действие кнопки меню для данного пользователя или для всех пользователей, ранее заданное с помощью [bots.setBotMenuButton](https://core.telegram.org/method/bots.setBotMenuButton.md); пользователи могут увидеть эту информацию в конструкторе [botInfo](https://core.telegram.org/constructor/botInfo.md).\n\n**Кто может вызвать метод** · Только боты Telegram.", "x-tl-method": "bots.getBotMenuButton", "x-tl-id": "2623597352", "x-tl-result": "BotMenuButton", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `BotMenuButton`.\n\n[BotMenuButton](https://core.telegram.org/type/BotMenuButton.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BotMenuButton", "oneOf": [{"$ref": "#/components/schemas/botMenuButtonDefault"}, {"$ref": "#/components/schemas/botMenuButtonCommands"}, {"$ref": "#/components/schemas/botMenuButton"}], "description": "Тип TL: BotMenuButton."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getBotMenuButton"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя или пустое значение для кнопки меню по умолчанию."}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя или пустое значение для кнопки меню по умолчанию. |"}, "x-telegram-rpc-errors": ["USER_BOT_REQUIRED"], "x-browser-schema-id": "2623597352"}}, "/catalog/bots.setBotBroadcastDefaultAdminRights": {"post": {"operationId": "bots.setBotBroadcastDefaultAdminRights", "tags": ["Боты"], "summary": "Установите предлагаемые по умолчанию права администратора для ботов, добавляемых в качестве администраторов на каналы. Дополнительную информацию о том, как с ними обращаться, см. здесь ».", "description": "Установите [предлагаемые права администратора по умолчанию](https://core.telegram.org/api/rights.md#suggested-bot-rights) для ботов, добавляемых в качестве администраторов на каналы, см. [здесь дополнительную информацию о том, как с ними обращаться»](https://core.telegram.org/api/rights.md#suggested-bot-rights).\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Admin, banned, default rights](https://core.telegram.org/api/rights.md)", "x-tl-method": "bots.setBotBroadcastDefaultAdminRights", "x-tl-id": "2021942497", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Admin, banned, default rights", "https://core.telegram.org/api/rights.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `RIGHTS_NOT_MODIFIED` — Новые права администратора равны старым правам, изменений не было.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.setBotBroadcastDefaultAdminRights"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "oneOf": [{"$ref": "#/components/schemas/chatAdminRights"}], "description": "Права администратора"}}, "additionalProperties": false, "required": ["admin_rights"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `admin_rights` | `ChatAdminRights` | Да | Права администратора |"}, "x-telegram-rpc-errors": ["RIGHTS_NOT_MODIFIED", "USER_BOT_REQUIRED"], "x-browser-schema-id": "2021942497"}}, "/catalog/bots.setBotGroupDefaultAdminRights": {"post": {"operationId": "bots.setBotGroupDefaultAdminRights", "tags": ["Боты"], "summary": "Установите предлагаемые по умолчанию права администратора для ботов, добавляемых в качестве администраторов в группы. Дополнительную информацию о том, как с ними обращаться, см. здесь ».", "description": "Установите [предлагаемые права администратора](https://core.telegram.org/api/rights.md#suggested-bot-rights) по умолчанию для ботов, добавляемых в качестве администраторов в группы, см. [здесь дополнительную информацию о том, как с ними обращаться»](https://core.telegram.org/api/rights.md#suggested-bot-rights).\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Admin, banned, default rights](https://core.telegram.org/api/rights.md)", "x-tl-method": "bots.setBotGroupDefaultAdminRights", "x-tl-id": "2455685610", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Admin, banned, default rights", "https://core.telegram.org/api/rights.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `RIGHTS_NOT_MODIFIED` — Новые права администратора равны старым правам, изменений не было.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.setBotGroupDefaultAdminRights"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "oneOf": [{"$ref": "#/components/schemas/chatAdminRights"}], "description": "Права администратора"}}, "additionalProperties": false, "required": ["admin_rights"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `admin_rights` | `ChatAdminRights` | Да | Права администратора |"}, "x-telegram-rpc-errors": ["RIGHTS_NOT_MODIFIED", "USER_BOT_REQUIRED"], "x-browser-schema-id": "2455685610"}}, "/catalog/bots.setBotInfo": {"post": {"operationId": "bots.setBotInfo", "tags": ["Боты"], "summary": "Установите локализованное имя, текст и описание бота (или текущей учетной записи, если вызывается ботом).", "description": "Установите локализованное имя, текст и описание бота (или текущей учетной записи, если вызывается ботом).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "bots.setBotInfo", "x-tl-id": "282013987", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `USER_BOT_INVALID` — Учетные записи пользователей должны предоставить параметр метода `bot` при вызове этого метода. Если такого параметра метода нет, этот метод может быть вызван только учетными записями ботов."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.setBotInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Если вызывается пользователем, **должен** содержать узел нашего бота.", "x-tl-flag": "flags.2?InputUser"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка. Если он оставлен пустым, обновите резервную копию текста и описания."}, "name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Новое имя бота"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Новое о тексте"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Новое описание"}}, "additionalProperties": false, "required": ["lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Нет | Если вызывается пользователем, **должен** содержать узел нашего бота. |\n| `lang_code` | `string` | Да | Код языка. Если он оставлен пустым, обновите резервную копию текста и описания. |\n| `name` | `string` | Нет | Новое имя бота |\n| `about` | `string` | Нет | Новое о тексте |\n| `description` | `string` | Нет | Новое описание |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USER_BOT_INVALID"], "x-browser-schema-id": "282013987"}}, "/catalog/bots.getBotInfo": {"post": {"operationId": "bots.getBotInfo", "tags": ["Боты"], "summary": "Получите локализованное имя, текст и описание бота (или текущего аккаунта, если его вызывает бот).", "description": "Получите локализованное имя, текст и описание бота (или текущего аккаунта, если его вызывает бот).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "bots.getBotInfo", "x-tl-id": "3705214205", "x-tl-result": "bots.BotInfo", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `bots.BotInfo`.\n\n[bots.BotInfo](https://core.telegram.org/type/bots.BotInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "bots.BotInfo", "oneOf": [{"$ref": "#/components/schemas/bots.botInfo"}], "description": "Тип TL: bots.BotInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `LANG_CODE_INVALID` — Указанный код языка недействителен.\n- 400 · `USER_BOT_INVALID` — Учетные записи пользователей должны предоставить параметр метода `bot` при вызове этого метода. Если такого параметра метода нет, этот метод может быть вызван только учетными записями ботов."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getBotInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Если вызывается пользователем, **должен** содержать узел нашего бота.", "x-tl-flag": "flags.0?InputUser"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка, если оставить его пустым, этот метод вернет запасной вариант текста и описания."}}, "additionalProperties": false, "required": ["lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Нет | Если вызывается пользователем, **должен** содержать узел нашего бота. |\n| `lang_code` | `string` | Да | Код языка, если оставить его пустым, этот метод вернет запасной вариант текста и описания. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "LANG_CODE_INVALID", "USER_BOT_INVALID"], "x-browser-schema-id": "3705214205"}}, "/catalog/bots.reorderUsernames": {"post": {"operationId": "bots.reorderUsernames", "tags": ["Боты"], "summary": "Измените порядок имен пользователей, связанных с принадлежащим нам ботом.", "description": "Измените порядок имен пользователей, связанных с принадлежащим нам ботом.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "bots.reorderUsernames", "x-tl-id": "2533994946", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `USERNAME_NOT_MODIFIED` — Имя пользователя не изменено."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.reorderUsernames"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот"}, "order": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Новый порядок активных имен пользователей. Все активные имена пользователей должны быть указаны."}}, "additionalProperties": false, "required": ["bot", "order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот |\n| `order` | `Vector<string>` | Да | Новый порядок активных имен пользователей. Все активные имена пользователей должны быть указаны. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "2533994946"}}, "/catalog/bots.toggleUsername": {"post": {"operationId": "bots.toggleUsername", "tags": ["Боты"], "summary": "Активируйте или деактивируйте купленное имя пользователя fragment.com, связанное с принадлежащим нам ботом.", "description": "Активируйте или деактивируйте купленное [fragment.com](https://fragment.com) имя пользователя, связанное с принадлежащим нам ботом.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "bots.toggleUsername", "x-tl-id": "87861619", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `USERNAME_NOT_MODIFIED` — Имя пользователя не изменено."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.toggleUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот"}, "username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя"}, "active": {"type": "boolean", "x-tl-type": "Bool", "description": "Активировать или деактивировать его"}}, "additionalProperties": false, "required": ["bot", "username", "active"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот |\n| `username` | `string` | Да | Имя пользователя |\n| `active` | `Bool` | Да | Активировать или деактивировать его |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "87861619"}}, "/catalog/bots.canSendMessage": {"post": {"operationId": "bots.canSendMessage", "tags": ["Боты"], "summary": "Проверьте, может ли указанный бот отправлять нам сообщения", "description": "Проверьте, может ли указанный бот отправлять нам сообщения\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "bots.canSendMessage", "x-tl-id": "324662502", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.canSendMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "324662502"}}, "/catalog/bots.allowSendMessage": {"post": {"operationId": "bots.allowSendMessage", "tags": ["Боты"], "summary": "Разрешить указанному боту отправлять нам сообщения", "description": "Разрешить указанному боту отправлять нам сообщения\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "bots.allowSendMessage", "x-tl-id": "4046644207", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.allowSendMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "4046644207"}}, "/catalog/bots.invokeWebViewCustomMethod": {"post": {"operationId": "bots.invokeWebViewCustomMethod", "tags": ["Боты"], "summary": "Отправьте пользовательский запрос из приложения мини-бота, инициируемый событием web\\_app\\_invoke\\_custom\\_method ».", "description": "Отправьте специальный запрос из [мини-бот-приложения](https://core.telegram.org/api/bots/webapps.md), инициируемый событием [web\\_app\\_invoke\\_custom\\_method »](https://core.telegram.org/api/web-events.md#web-app-invoke-custom-method).\n\nОтвет должен быть отправлен с использованием события [custom\\_method\\_invoked](https://core.telegram.org/api/bots/webapps.md#custom-method-invoked), [см. здесь »](https://core.telegram.org/api/web-events.md#web-app-invoke-custom-method) для получения дополнительной информации о потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Web events](https://core.telegram.org/api/web-events.md)", "x-tl-method": "bots.invokeWebViewCustomMethod", "x-tl-id": "142591463", "x-tl-result": "DataJSON", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Web events", "https://core.telegram.org/api/web-events.md"]], "responses": {"200": {"description": "Результат MTProto · `DataJSON`.\n\n[ДанныеJSON](https://core.telegram.org/type/DataJSON.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Тип TL: DataJSON."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `DATA_JSON_INVALID` — Предоставленные данные JSON недействительны.\n- 400 · `METHOD_INVALID` — Указанный метод недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.invokeWebViewCustomMethod"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор бота, связанного с [приложением мини-бота](https://core.telegram.org/api/bots/webapps.md)"}, "custom_method": {"type": "string", "x-tl-type": "string", "description": "Идентификатор пользовательского метода для вызова"}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Параметры метода"}}, "additionalProperties": false, "required": ["bot", "custom_method", "params"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Идентификатор бота, связанного с [приложением мини-бота](https://core.telegram.org/api/bots/webapps.md) |\n| `custom_method` | `string` | Да | Идентификатор пользовательского метода для вызова |\n| `params` | `DataJSON` | Да | Параметры метода |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "DATA_JSON_INVALID", "METHOD_INVALID"], "x-browser-schema-id": "142591463"}}, "/catalog/bots.getPopularAppBots": {"post": {"operationId": "bots.getPopularAppBots", "tags": ["Боты"], "summary": "Загрузите популярные основные мини-приложения для использования на вкладке приложений глобального поиска ».", "description": "Загрузите популярные [Основные мини-приложения](https://core.telegram.org/api/bots/webapps.md#main-mini-apps), которые будут использоваться на вкладке [приложения глобального поиска»](https://core.telegram.org/api/search.md#apps-tab).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Search and filters](https://core.telegram.org/api/search.md)", "x-tl-method": "bots.getPopularAppBots", "x-tl-id": "3260088722", "x-tl-result": "bots.PopularAppBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Search and filters", "https://core.telegram.org/api/search.md"]], "responses": {"200": {"description": "Результат MTProto · `bots.PopularAppBots`.\n\n[bots.PopularAppBots](https://core.telegram.org/type/bots.PopularAppBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "bots.PopularAppBots", "oneOf": [{"$ref": "#/components/schemas/bots.popularAppBots"}], "description": "Тип TL: bots.PopularAppBots."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getPopularAppBots"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для [пагинации](https://core.telegram.org/api/offsets.md), изначально пустая строка, затем повторно используйте `next_offset`, возвращенную предыдущим запросом."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offset` | `string` | Да | Смещение для [пагинации](https://core.telegram.org/api/offsets.md), изначально пустая строка, затем повторно используйте `next_offset`, возвращенную предыдущим запросом. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "3260088722"}}, "/catalog/bots.addPreviewMedia": {"post": {"operationId": "bots.addPreviewMedia", "tags": ["Боты"], "summary": "Добавьте предварительный просмотр основного мини-приложения. Дополнительную информацию см. здесь ».", "description": "Добавьте [предварительный просмотр основного мини-приложения, дополнительную информацию см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).\n\nЭтот метод могут использовать только владельцы ботов с настроенным главным мини-приложением. Дополнительную информацию о том, как проверить, можете ли вы вызвать этот метод, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.addPreviewMedia", "x-tl-id": "397326170", "x-tl-result": "BotPreviewMedia", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `BotPreviewMedia`.\n\n[BotPreviewMedia](https://core.telegram.org/type/BotPreviewMedia.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BotPreviewMedia", "oneOf": [{"$ref": "#/components/schemas/botPreviewMedia"}], "description": "Тип TL: BotPreviewMedia."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.addPreviewMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит главное мини-приложение."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 код языка, указывающий локализацию добавляемого предварительного просмотра."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Превью фото/видео, загруженное с помощью [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md)."}}, "additionalProperties": false, "required": ["bot", "lang_code", "media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит главное мини-приложение. |\n| `lang_code` | `string` | Да | ISO 639-1 код языка, указывающий локализацию добавляемого предварительного просмотра. |\n| `media` | `InputMedia` | Да | Превью фото/видео, загруженное с помощью [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md). |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "397326170"}}, "/catalog/bots.editPreviewMedia": {"post": {"operationId": "bots.editPreviewMedia", "tags": ["Боты"], "summary": "Отредактируйте предварительный просмотр основного мини-приложения. Дополнительную информацию см. здесь ».", "description": "Отредактируйте [предварительный просмотр основного мини-приложения, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) для получения дополнительной информации.\n\nЭтот метод могут использовать только владельцы ботов с настроенным главным мини-приложением. Дополнительную информацию о том, как проверить, можете ли вы вызвать этот метод, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.editPreviewMedia", "x-tl-id": "2233819247", "x-tl-result": "BotPreviewMedia", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `BotPreviewMedia`.\n\n[BotPreviewMedia](https://core.telegram.org/type/BotPreviewMedia.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BotPreviewMedia", "oneOf": [{"$ref": "#/components/schemas/botPreviewMedia"}], "description": "Тип TL: BotPreviewMedia."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.editPreviewMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит главное мини-приложение."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 код языка, указывающий локализацию предварительного просмотра для редактирования."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Предварительный просмотр фото/видео для замены, предварительно полученный, как указано [здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews)."}, "new_media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Новое превью фото/видео, загруженное с помощью [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md)."}}, "additionalProperties": false, "required": ["bot", "lang_code", "media", "new_media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит главное мини-приложение. |\n| `lang_code` | `string` | Да | ISO 639-1 код языка, указывающий локализацию предварительного просмотра для редактирования. |\n| `media` | `InputMedia` | Да | Предварительный просмотр фото/видео для замены, предварительно полученный, как указано [здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews). |\n| `new_media` | `InputMedia` | Да | Новое превью фото/видео, загруженное с помощью [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md). |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "2233819247"}}, "/catalog/bots.deletePreviewMedia": {"post": {"operationId": "bots.deletePreviewMedia", "tags": ["Боты"], "summary": "Удалите предварительный просмотр основного мини-приложения. Дополнительную информацию см. здесь ».", "description": "Удалите [предварительный просмотр основного мини-приложения, дополнительную информацию см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).\n\nЭтот метод могут использовать только владельцы ботов с настроенным главным мини-приложением. Дополнительную информацию о том, как проверить, можете ли вы вызвать этот метод, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.deletePreviewMedia", "x-tl-id": "755054003", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.deletePreviewMedia"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит главное мини-приложение."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 код языка, указывающий локализацию предварительного просмотра, которую нужно удалить."}, "media": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Тип TL: InputMedia."}, "x-tl-type": "Vector<InputMedia>", "description": "Предварительный просмотр фото/видео, который нужно удалить, предварительно полученный, как указано [здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews)."}}, "additionalProperties": false, "required": ["bot", "lang_code", "media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит главное мини-приложение. |\n| `lang_code` | `string` | Да | ISO 639-1 код языка, указывающий локализацию предварительного просмотра, которую нужно удалить. |\n| `media` | `Vector<InputMedia>` | Да | Предварительный просмотр фото/видео, который нужно удалить, предварительно полученный, как указано [здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews). |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "755054003"}}, "/catalog/bots.reorderPreviewMedias": {"post": {"operationId": "bots.reorderPreviewMedias", "tags": ["Боты"], "summary": "Измените порядок предварительного просмотра главного мини-приложения. Дополнительную информацию см. здесь ».", "description": "Измените порядок [превью основных мини-приложений, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) для получения дополнительной информации.\n\nЭтот метод могут использовать только владельцы ботов с настроенным главным мини-приложением. Дополнительную информацию о том, как проверить, можете ли вы вызвать этот метод, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.reorderPreviewMedias", "x-tl-id": "3056071594", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.reorderPreviewMedias"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит главное мини-приложение."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 код языка, указывающий локализацию превью для изменения порядка."}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Тип TL: InputMedia."}, "x-tl-type": "Vector<InputMedia>", "description": "Новый порядок превью."}}, "additionalProperties": false, "required": ["bot", "lang_code", "order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит главное мини-приложение. |\n| `lang_code` | `string` | Да | ISO 639-1 код языка, указывающий локализацию превью для изменения порядка. |\n| `order` | `Vector<InputMedia>` | Да | Новый порядок превью. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "3056071594"}}, "/catalog/bots.getPreviewInfo": {"post": {"operationId": "bots.getPreviewInfo", "tags": ["Боты"], "summary": "Только для владельцев ботов. Получите информацию о предварительном просмотре основного мини-приложения. Дополнительную информацию см. здесь ».", "description": "Только для владельцев ботов. Получите [основную информацию о предварительном просмотре мини-приложения, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) для получения дополнительной информации.\n\nПримечание: технически невладельцы также могут вызывать этот метод, но он всегда будет вести себя точно так же, как [bots.getPreviewMedias](https://core.telegram.org/method/bots.getPreviewMedias.md), возвращая только предварительные просмотры для текущего языка и пустой массив `lang_codes`, независимо от переданного `lang_code`, поэтому используйте [bots.getPreviewMedias](https://core.telegram.org/method/bots.getPreviewMedias.md) только в том случае, если вы не являетесь владельцем `bot`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.getPreviewInfo", "x-tl-id": "1111143341", "x-tl-result": "bots.PreviewInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `bots.PreviewInfo`.\n\n[bots.PreviewInfo](https://core.telegram.org/type/bots.PreviewInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "bots.PreviewInfo", "oneOf": [{"$ref": "#/components/schemas/bots.previewInfo"}], "description": "Тип TL: bots.PreviewInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getPreviewInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит главное мини-приложение."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Получите предварительный просмотр для указанного кода языка ISO 639-1."}}, "additionalProperties": false, "required": ["bot", "lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит главное мини-приложение. |\n| `lang_code` | `string` | Да | Получите предварительный просмотр для указанного кода языка ISO 639-1. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1111143341"}}, "/catalog/bots.getPreviewMedias": {"post": {"operationId": "bots.getPreviewMedias", "tags": ["Боты"], "summary": "Загрузите предварительный просмотр основных мини-приложений. Дополнительную информацию см. здесь ».", "description": "Получите [превью основных мини-приложений, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.getPreviewMedias", "x-tl-id": "2728745293", "x-tl-result": "Vector<BotPreviewMedia>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<BotPreviewMedia>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)<[BotPreviewMedia](https://core.telegram.org/type/BotPreviewMedia.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "BotPreviewMedia", "oneOf": [{"$ref": "#/components/schemas/botPreviewMedia"}], "description": "Тип TL: BotPreviewMedia."}, "x-tl-type": "Vector<BotPreviewMedia>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getPreviewMedias"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит главное мини-приложение."}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит главное мини-приложение. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "2728745293"}}, "/catalog/bots.updateUserEmojiStatus": {"post": {"operationId": "bots.updateUserEmojiStatus", "tags": ["Боты"], "summary": "Изменить статус смайлика пользователя (вызывается ботами, дополнительную информацию о полном процессе см. здесь »).", "description": "Изменение статуса смайлика пользователя (вызывается ботами, см. [здесь »](https://core.telegram.org/api/emoji-status.md#setting-an-emoji-status-from-a-bot) дополнительную информацию о полном процессе)\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "bots.updateUserEmojiStatus", "x-tl-id": "3986632901", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 403 · `USER_PERMISSION_DENIED` — Пользователь не предоставил или не отменил доступ бота для изменения своего статуса смайлика с помощью [bots.toggleUserEmojiStatusPermission](https://core.telegram.org/method/bots.toggleUserEmojiStatusPermission.md)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.updateUserEmojiStatus"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, статус эмодзи которого необходимо изменить"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "oneOf": [{"$ref": "#/components/schemas/emojiStatusEmpty"}, {"$ref": "#/components/schemas/emojiStatus"}, {"$ref": "#/components/schemas/emojiStatusCollectible"}, {"$ref": "#/components/schemas/inputEmojiStatusCollectible"}], "description": "Статус смайлика"}}, "additionalProperties": false, "required": ["user_id", "emoji_status"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Пользователь, статус эмодзи которого необходимо изменить |\n| `emoji_status` | `EmojiStatus` | Да | Статус смайлика |"}, "x-telegram-rpc-errors": ["USER_BOT_REQUIRED", "USER_ID_INVALID", "USER_PERMISSION_DENIED"], "x-browser-schema-id": "3986632901"}}, "/catalog/bots.toggleUserEmojiStatusPermission": {"post": {"operationId": "bots.toggleUserEmojiStatusPermission", "tags": ["Боты"], "summary": "Разрешить или запретить боту изменять статус наших смайлов »", "description": "Разрешить или запретить боту [изменять статус наших смайлов»](https://core.telegram.org/api/emoji-status.md#setting-an-emoji-status-from-a-bot)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "bots.toggleUserEmojiStatusPermission", "x-tl-id": "115237778", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.toggleUserEmojiStatusPermission"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Разрешить или запретить боту изменять наш статус смайликов."}}, "additionalProperties": false, "required": ["bot", "enabled"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот |\n| `enabled` | `Bool` | Да | Разрешить или запретить боту изменять наш статус смайликов. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "115237778"}}, "/catalog/bots.checkDownloadFileParams": {"post": {"operationId": "bots.checkDownloadFileParams", "tags": ["Боты"], "summary": "Проверьте, может ли мини-приложение запросить загрузку определенного файла: вызывается при обработке событий web\\_app\\_request\\_file\\_download »", "description": "Проверьте, может ли [мини-приложение](https://core.telegram.org/api/bots/webapps.md) запросить загрузку определенного файла: вызывается при обработке событий [web\\_app\\_request\\_file\\_download »](https://core.telegram.org/api/web-events.md#web-app-request-file-download)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Web events](https://core.telegram.org/api/web-events.md)", "x-tl-method": "bots.checkDownloadFileParams", "x-tl-id": "1342666121", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Web events", "https://core.telegram.org/api/web-events.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.checkDownloadFileParams"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит [мини-приложение](https://core.telegram.org/api/bots/webapps.md), запросившее загрузку."}, "file_name": {"type": "string", "x-tl-type": "string", "description": "`filename` из [web_app_request_file_download события »](https://core.telegram.org/api/web-events.md#web-app-request-file-download)"}, "url": {"type": "string", "x-tl-type": "string", "description": "`url` из [web_app_request_file_download события »](https://core.telegram.org/api/web-events.md#web-app-request-file-download)"}}, "additionalProperties": false, "required": ["bot", "file_name", "url"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит [мини-приложение](https://core.telegram.org/api/bots/webapps.md), запросившее загрузку. |\n| `file_name` | `string` | Да | `filename` из [web_app_request_file_download события »](https://core.telegram.org/api/web-events.md#web-app-request-file-download) |\n| `url` | `string` | Да | `url` из [web_app_request_file_download события »](https://core.telegram.org/api/web-events.md#web-app-request-file-download) |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1342666121"}}, "/catalog/bots.getAdminedBots": {"post": {"operationId": "bots.getAdminedBots", "tags": ["Боты"], "summary": "Получить список ботов, принадлежащих текущему пользователю", "description": "Получить список ботов, принадлежащих текущему пользователю", "x-tl-method": "bots.getAdminedBots", "x-tl-id": "2960203139", "x-tl-result": "Vector<User>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<User>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Пользователь](https://core.telegram.org/type/User.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getAdminedBots"}, "x-browser-schema-id": "2960203139"}}, "/catalog/bots.updateStarRefProgram": {"post": {"operationId": "bots.updateStarRefProgram", "tags": ["Боты"], "summary": "Создайте, отредактируйте или удалите партнерскую программу нашего бота.", "description": "Создайте, отредактируйте или удалите [партнерскую программу](https://core.telegram.org/api/bots/referrals.md) бота, которым мы владеем.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "bots.updateStarRefProgram", "x-tl-id": "2005621427", "x-tl-result": "StarRefProgram", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "Результат MTProto · `StarRefProgram`.\n\n[StarRefProgram](https://core.telegram.org/type/StarRefProgram.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StarRefProgram", "oneOf": [{"$ref": "#/components/schemas/starRefProgram"}], "description": "Тип TL: StarRefProgram."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `STARREF_AWAITING_END` — Предыдущая реферальная программа была прекращена менее 24 часов назад: дальнейшие изменения можно внести после даты, указанной в userFull.starref_program.end_date.\n- 400 · `STARREF_PERMILLE_INVALID` — Указанное commission_permille неверно: минимальное и максимальное значения этого параметра содержатся в параметрах конфигурации клиента [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) и [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille).\n- 400 · `STARREF_PERMILLE_TOO_LOW` — Указанное commission_permille слишком низкое: минимальное и максимальное значения этого параметра содержатся в параметрах конфигурации клиента [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) и [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.updateStarRefProgram"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот"}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ставка комиссии за промилль: она указывает долю Telegram Stars, полученную партнерами за каждую транзакцию, совершенную пользователями, которых они пригласили внутри бота.     Минимальное и максимальное значения этого параметра содержатся в параметрах конфигурации клиента [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) и [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille)].    Можно `0` прекратить партнерскую программу.   И продолжительность, и комиссию можно повысить только после создания программы: чтобы их снизить, необходимо сначала закрыть программу и создать новую."}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Указывает срок действия партнерской программы; если не установлено, срок годности отсутствует."}}, "additionalProperties": false, "required": ["bot", "commission_permille"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот |\n| `commission_permille` | `int` | Да | Ставка комиссии за промилль: она указывает долю Telegram Stars, полученную партнерами за каждую транзакцию, совершенную пользователями, которых они пригласили внутри бота.     Минимальное и максимальное значения этого параметра содержатся в параметрах конфигурации клиента [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) и [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille)].    Можно `0` прекратить партнерскую программу.   И продолжительность, и комиссию можно повысить только после создания программы: чтобы их снизить, необходимо сначала закрыть программу и создать новую. |\n| `duration_months` | `int` | Нет | Указывает срок действия партнерской программы; если не установлено, срок годности отсутствует. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "STARREF_AWAITING_END", "STARREF_PERMILLE_INVALID", "STARREF_PERMILLE_TOO_LOW"], "x-browser-schema-id": "2005621427"}}, "/catalog/bots.setCustomVerification": {"post": {"operationId": "bots.setCustomVerification", "tags": ["Боты"], "summary": "Верифицируйте пользователя или общайтесь от имени организации».", "description": "Подтвердить пользователя или пообщаться [от имени организации»](https://core.telegram.org/api/bots/verification.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Third-party verification](https://core.telegram.org/api/bots/verification.md)", "x-tl-method": "bots.setCustomVerification", "x-tl-id": "4103366487", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Third-party verification", "https://core.telegram.org/api/bots/verification.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 403 · `BOT_VERIFIER_FORBIDDEN` — Этот бот не может назначать [значки проверки](https://core.telegram.org/api/bots/verification.md).\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.setCustomVerification"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлено, добавляет проверку; в противном случае удаляет проверку."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Должен **не** быть установлен, если он вызывается ботом, **должен** быть установлен на идентификатор принадлежащего бота, если он вызывается пользователем.", "x-tl-flag": "flags.0?InputUser"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел для проверки"}, "custom_description": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Пользовательское описание для проверки, ограничение длины этого поля UTF-8 содержится в [bot_verification_description_length_limit »](https://core.telegram.org/api/config.md#bot-verification-description-length-limit).  Если не установлено, в качестве описания будет использоваться `Was verified by organization \"organization_name\"`.", "x-tl-flag": "flags.2?TextWithEntities"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `enabled` | `true` | Нет | Если установлено, добавляет проверку; в противном случае удаляет проверку. |\n| `bot` | `InputUser` | Нет | Должен **не** быть установлен, если он вызывается ботом, **должен** быть установлен на идентификатор принадлежащего бота, если он вызывается пользователем. |\n| `peer` | `InputPeer` | Да | Узел для проверки |\n| `custom_description` | `TextWithEntities` | Нет | Пользовательское описание для проверки, ограничение длины этого поля UTF-8 содержится в [bot_verification_description_length_limit »](https://core.telegram.org/api/config.md#bot-verification-description-length-limit).  Если не установлено, в качестве описания будет использоваться `Was verified by organization \"organization_name\"`. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "BOT_VERIFIER_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "4103366487"}}, "/catalog/bots.getBotRecommendations": {"post": {"operationId": "bots.getBotRecommendations", "tags": ["Боты"], "summary": "Получите список ботов схожей тематики, выбранных на основе сходства их баз подписчиков. Дополнительную информацию см. здесь ».", "description": "Получите список ботов схожей тематики, выбранных на основе сходства их баз подписчиков, см. [здесь »](https://core.telegram.org/api/recommend.md) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Similar channels and bots](https://core.telegram.org/api/recommend.md)", "x-tl-method": "bots.getBotRecommendations", "x-tl-id": "2713126933", "x-tl-result": "users.Users", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Similar channels and bots", "https://core.telegram.org/api/recommend.md"]], "responses": {"200": {"description": "Результат MTProto · `users.Users`.\n\n[users.Users](https://core.telegram.org/type/users.Users.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "users.Users", "oneOf": [{"$ref": "#/components/schemas/users.users"}, {"$ref": "#/components/schemas/users.usersSlice"}], "description": "Тип TL: users.Users."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getBotRecommendations"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Метод вернет ботов, связанных с переданным ботом."}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Метод вернет ботов, связанных с переданным ботом. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "2713126933"}}, "/catalog/bots.checkUsername": {"post": {"operationId": "bots.checkUsername", "tags": ["Боты"], "summary": "Проверьте, доступно ли имя пользователя и допустимо ли оно для использования при создании управляемого бота».", "description": "Проверьте, доступно ли имя пользователя и допустимо ли оно для использования при [создании управляемого бота»](https://core.telegram.org/api/bots/managed-bots.md#creating-a-managed-bot).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.checkUsername", "x-tl-id": "3819719777", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_OCCUPIED` — Указанное имя пользователя уже занято.\n- 400 · `USERNAME_SUFFIX_MISSING` — В переданном имени пользователя отсутствует необходимый суффикс `bot`."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.checkUsername"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"additional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя для проверки; разрешены только буквы, цифры и символы подчеркивания, они должны заканчиваться на `bot`, а полное имя пользователя должно состоять из 5–32 символов."}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `additional` | `true` | Нет | Значение типа TL `true`. |\n| `username` | `string` | Да | Имя пользователя для проверки; разрешены только буквы, цифры и символы подчеркивания, они должны заканчиваться на `bot`, а полное имя пользователя должно состоять из 5–32 символов. |"}, "x-telegram-rpc-errors": ["USERNAME_INVALID", "USERNAME_OCCUPIED", "USERNAME_SUFFIX_MISSING"], "x-browser-schema-id": "3819719777"}}, "/catalog/bots.createBot": {"post": {"operationId": "bots.createBot", "tags": ["Боты"], "summary": "Создать управляемого бота», принадлежащего текущему пользователю и управляемого указанным ботом-менеджером.", "description": "Создайте [управляемый бот »](https://core.telegram.org/api/bots/managed-bots.md#creating-a-managed-bot), принадлежащий текущему пользователю и управляемый указанным ботом-менеджером.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "bots.createBot", "x-tl-id": "3853614891", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `User`.\n\n[Пользователь](https://core.telegram.org/type/User.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_CREATE_LIMIT_EXCEEDED` — текущий пользователь уже владеет максимально допустимым количеством принадлежащих ему ботов, как указано в [`bots_create_limit_default` »](https://core.telegram.org/api/config.md#bots-create-limit-default) и [`bots_create_limit_premium` »](https://core.telegram.org/api/config.md#bots-create-limit-premium); если у текущего пользователя нет Telegram Premium, обновление до Premium позволит ему создавать больше ботов.\n- 400 · `MANAGER_INVALID` — Указанный бот-менеджер недействителен.\n- 400 · `MANAGER_PERMISSION_MISSING` — У указанного бота-менеджера не установлен флаг [user](https://core.telegram.org/constructor/user.md).`bot_can_manage_bots`.\n- 400 · `NAME_INVALID` — Указанное имя бота неверно.\n- 400 · `USERNAME_INVALID` — Указанное имя пользователя недействительно.\n- 400 · `USERNAME_OCCUPIED` — Указанное имя пользователя уже занято.\n- 400 · `USERNAME_SUFFIX_MISSING` — В переданном имени пользователя отсутствует необходимый суффикс `bot`."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.createBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"via_deeplink": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Устанавливается только в том случае, если приглашение на создание было открыто по [глубинной ссылке на запрос на создание управляемого бота »](https://core.telegram.org/api/links.md#managed-bot-creation-request-links)"}, "name": {"type": "string", "x-tl-type": "string", "description": "Отображаемое имя бота, 1–64 символа."}, "username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя для бота, подтвержденное [bots.checkUsername](https://core.telegram.org/method/bots.checkUsername.md)"}, "manager_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот-менеджер, который будет управлять созданным ботом; должен быть установлен флаг [user](https://core.telegram.org/constructor/user.md).`bot_can_manage_bots`"}}, "additionalProperties": false, "required": ["name", "username", "manager_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `via_deeplink` | `true` | Нет | Устанавливается только в том случае, если приглашение на создание было открыто по [глубинной ссылке на запрос на создание управляемого бота »](https://core.telegram.org/api/links.md#managed-bot-creation-request-links) |\n| `name` | `string` | Да | Отображаемое имя бота, 1–64 символа. |\n| `username` | `string` | Да | Имя пользователя для бота, подтвержденное [bots.checkUsername](https://core.telegram.org/method/bots.checkUsername.md) |\n| `manager_id` | `InputUser` | Да | Бот-менеджер, который будет управлять созданным ботом; должен быть установлен флаг [user](https://core.telegram.org/constructor/user.md).`bot_can_manage_bots` |"}, "x-telegram-rpc-errors": ["BOT_CREATE_LIMIT_EXCEEDED", "MANAGER_INVALID", "MANAGER_PERMISSION_MISSING", "NAME_INVALID", "USERNAME_INVALID", "USERNAME_OCCUPIED", "USERNAME_SUFFIX_MISSING"], "x-browser-schema-id": "3853614891"}}, "/catalog/bots.exportBotToken": {"post": {"operationId": "bots.exportBotToken", "tags": ["Боты"], "summary": "Экспортировать токен управляемого бота »; может быть вызван только ботом-менеджером.", "description": "Экспортируйте токен бота [управляемого бота »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot); может быть вызван только ботом-менеджером.\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.exportBotToken", "x-tl-id": "3171785195", "x-tl-result": "bots.ExportedBotToken", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `bots.ExportedBotToken`.\n\n[bots.ExportedBotToken](https://core.telegram.org/type/bots.ExportedBotToken.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "bots.ExportedBotToken", "oneOf": [{"$ref": "#/components/schemas/bots.exportedBotToken"}], "description": "Тип TL: bots.ExportedBotToken."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.exportBotToken"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Управляемый бот для экспорта токена"}, "revoke": {"type": "boolean", "x-tl-type": "Bool", "description": "Если [boolTrue](https://core.telegram.org/constructor/boolTrue.md), отмените текущий токен и создайте новый."}}, "additionalProperties": false, "required": ["bot", "revoke"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Управляемый бот для экспорта токена |\n| `revoke` | `Bool` | Да | Если [boolTrue](https://core.telegram.org/constructor/boolTrue.md), отмените текущий токен и создайте новый. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3171785195"}}, "/catalog/bots.requestWebViewButton": {"post": {"operationId": "bots.requestWebViewButton", "tags": ["Боты"], "summary": "Боты могут использовать этот метод для подготовки кнопки запроса узла для мини-приложения. Дополнительную информацию см. здесь ».", "description": "Боты могут использовать этот метод для подготовки кнопки запроса однорангового узла для [Мини-приложения](https://core.telegram.org/api/bots/webapps.md), дополнительную информацию см. в [здесь »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps).\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Bot buttons](https://core.telegram.org/api/bots/buttons.md)", "x-tl-method": "bots.requestWebViewButton", "x-tl-id": "832742238", "x-tl-result": "bots.RequestedButton", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Bot buttons", "https://core.telegram.org/api/bots/buttons.md"]], "responses": {"200": {"description": "Результат MTProto · `bots.RequestedButton`.\n\n[bots.RequestedButton](https://core.telegram.org/type/bots.RequestedButton.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "bots.RequestedButton", "oneOf": [{"$ref": "#/components/schemas/bots.requestedButton"}], "description": "Тип TL: bots.RequestedButton."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUTTON_INVALID` — Указанная кнопка недействительна.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.requestWebViewButton"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, который будет использовать подготовленную кнопку в мини-приложении."}, "button": {"type": "object", "x-tl-type": "KeyboardButton", "oneOf": [{"$ref": "#/components/schemas/keyboardButton"}], "description": "Кнопка для подготовки, [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.md) любого [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md)"}}, "additionalProperties": false, "required": ["user_id", "button"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Пользователь, который будет использовать подготовленную кнопку в мини-приложении. |\n| `button` | `KeyboardButton` | Да | Кнопка для подготовки, [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.md) любого [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md) |"}, "x-telegram-rpc-errors": ["BUTTON_INVALID", "USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "832742238"}}, "/catalog/bots.getRequestedWebViewButton": {"post": {"operationId": "bots.getRequestedWebViewButton", "tags": ["Боты"], "summary": "Получите кнопку запроса однорангового узла, подготовленную ботом для мини-приложения с bots.requestWebViewButton, вызываемую, когда мини-приложение генерирует событие `web_app_request_chat`, см. здесь » для получения дополнительной информации.", "description": "Получите кнопку запроса однорангового узла, подготовленную ботом для [Мини-приложения](https://core.telegram.org/api/bots/webapps.md) с [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md), вызываемого, когда Мини-приложение генерирует событие [`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat), см. [здесь »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Bot buttons](https://core.telegram.org/api/bots/buttons.md)", "x-tl-method": "bots.getRequestedWebViewButton", "x-tl-id": "3206920179", "x-tl-result": "KeyboardButton", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Web events", "https://core.telegram.org/api/web-events.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Bot buttons", "https://core.telegram.org/api/bots/buttons.md"]], "responses": {"200": {"description": "Результат MTProto · `KeyboardButton`.\n\n[Кнопка клавиатуры](https://core.telegram.org/type/KeyboardButton.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "KeyboardButton", "oneOf": [{"$ref": "#/components/schemas/keyboardButton"}], "description": "Тип TL: KeyboardButton."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_ID_INVALID` — Указанный идентификатор бота недействителен.\n- 400 · `WEBAPP_REQ_ID_INVALID` — Указанное webapp_req_id неверно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getRequestedWebViewButton"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, которому принадлежит мини-приложение"}, "webapp_req_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор запроса мини-приложения, взятый из события `req_id` [`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat)]."}}, "additionalProperties": false, "required": ["bot", "webapp_req_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Бот, которому принадлежит мини-приложение |\n| `webapp_req_id` | `string` | Да | Идентификатор запроса мини-приложения, взятый из события `req_id` [`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat)]. |"}, "x-telegram-rpc-errors": ["BOT_ID_INVALID", "WEBAPP_REQ_ID_INVALID"], "x-browser-schema-id": "3206920179"}}, "/catalog/bots.getAccessSettings": {"post": {"operationId": "bots.getAccessSettings", "tags": ["Боты"], "summary": "Получить настройки ограничения доступа » управляемого бота; может быть вызван только ботом-менеджером.", "description": "Получите [настройки ограничения доступа»](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot) управляемого бота; может быть вызван только ботом-менеджером.\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.getAccessSettings", "x-tl-id": "557339555", "x-tl-result": "bots.AccessSettings", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `bots.AccessSettings`.\n\n[bots.AccessSettings](https://core.telegram.org/type/bots.AccessSettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "bots.AccessSettings", "oneOf": [{"$ref": "#/components/schemas/bots.accessSettings"}], "description": "Тип TL: bots.AccessSettings."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.getAccessSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Управляемый бот, настройки доступа которого необходимо получить."}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Управляемый бот, настройки доступа которого необходимо получить. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "557339555"}}, "/catalog/bots.editAccessSettings": {"post": {"operationId": "bots.editAccessSettings", "tags": ["Боты"], "summary": "Редактировать настройки ограничения доступа » управляемого бота; может быть вызван только ботом-менеджером.", "description": "Отредактируйте [настройки ограничения доступа »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot) управляемого бота; может быть вызван только ботом-менеджером.\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.editAccessSettings", "x-tl-id": "830553304", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOT_INVALID` — Это не валидный бот.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/bots.editAccessSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"restricted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, доступ к управляемому боту ограничивается только владельцем и пользователями в `add_users`."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Управляемый бот, настройки доступа которого можно редактировать."}, "add_users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.1?Vector<InputUser>", "description": "Дополнительные пользователи (максимум 10, исключая владельца), которым разрешен доступ к управляемому боту, если установлено `restricted`."}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `restricted` | `true` | Нет | Если установлено, доступ к управляемому боту ограничивается только владельцем и пользователями в `add_users`. |\n| `bot` | `InputUser` | Да | Управляемый бот, настройки доступа которого можно редактировать. |\n| `add_users` | `Vector<InputUser>` | Нет | Дополнительные пользователи (максимум 10, исключая владельца), которым разрешен доступ к управляемому боту, если установлено `restricted`. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "830553304"}}, "/catalog/bots.setJoinChatResults": {"post": {"operationId": "bots.setJoinChatResults", "tags": ["Боты"], "summary": "bots.setJoinChatResults", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.setJoinChatResults", "x-tl-id": "3877259280", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "result": {"type": "object", "x-tl-type": "JoinChatBotResult", "oneOf": [{"$ref": "#/components/schemas/joinChatBotResultApproved"}, {"$ref": "#/components/schemas/joinChatBotResultDeclined"}, {"$ref": "#/components/schemas/joinChatBotResultQueued"}, {"$ref": "#/components/schemas/joinChatBotResultWebView"}], "description": "Тип TL: JoinChatBotResult."}}, "additionalProperties": false, "required": ["query_id", "result"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `query_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `result` | `JoinChatBotResult` | Да | Тип TL: JoinChatBotResult. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3877259280"}}, "/catalog/bots.addUsername": {"post": {"operationId": "bots.addUsername", "tags": ["Боты"], "summary": "bots.addUsername", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.addUsername", "x-tl-id": "889307274", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "username": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["bot", "username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Тип TL: InputUser. |\n| `username` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "889307274"}}, "/catalog/bots.removeUsername": {"post": {"operationId": "bots.removeUsername", "tags": ["Боты"], "summary": "bots.removeUsername", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.removeUsername", "x-tl-id": "3338933373", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "username": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["bot", "username"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Тип TL: InputUser. |\n| `username` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3338933373"}}, "/catalog/bots.setBotSettings": {"post": {"operationId": "bots.setBotSettings", "tags": ["Боты"], "summary": "bots.setBotSettings", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.setBotSettings", "x-tl-id": "2093007050", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `User`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Тип TL: User."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser.", "x-tl-flag": "flags.0?InputUser"}, "inline_mode": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool", "description": "Значение типа TL `Bool`."}, "inline_placeholder": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Значение типа TL `string`."}, "inline_geo": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool", "description": "Значение типа TL `Bool`."}, "inline_feedback": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int", "description": "Значение типа TL `int`."}, "nochats": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.5?Bool", "description": "Значение типа TL `Bool`."}, "chat_history": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.6?Bool", "description": "Значение типа TL `Bool`."}, "business": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.7?Bool", "description": "Значение типа TL `Bool`."}, "can_manage_bots": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.8?Bool", "description": "Значение типа TL `Bool`."}, "guestchat": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.9?Bool", "description": "Значение типа TL `Bool`."}, "guard": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.10?Bool", "description": "Значение типа TL `Bool`."}, "forum_view": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.11?Bool", "description": "Значение типа TL `Bool`."}, "forum_can_manage_topics": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.12?Bool", "description": "Значение типа TL `Bool`."}, "forum_sidebar": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.13?Bool", "description": "Значение типа TL `Bool`."}, "bot_to_bot_communication_mode": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.14?Bool", "description": "Значение типа TL `Bool`."}, "callback_mode": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.15?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Нет | Тип TL: InputUser. |\n| `inline_mode` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `inline_placeholder` | `string` | Нет | Значение типа TL `string`. |\n| `inline_geo` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `inline_feedback` | `int` | Нет | Значение типа TL `int`. |\n| `nochats` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `chat_history` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `business` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `can_manage_bots` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `guestchat` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `guard` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `forum_view` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `forum_can_manage_topics` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `forum_sidebar` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `bot_to_bot_communication_mode` | `Bool` | Нет | Значение типа TL `Bool`. |\n| `callback_mode` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2093007050"}}, "/catalog/bots.getProfileWidgetQueryAnswer": {"post": {"operationId": "bots.getProfileWidgetQueryAnswer", "tags": ["Боты"], "summary": "bots.getProfileWidgetQueryAnswer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.getProfileWidgetQueryAnswer", "x-tl-id": "2239004788", "x-tl-result": "messages.BotWidgetQueryAnswer", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.BotWidgetQueryAnswer`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotWidgetQueryAnswer", "oneOf": [{"$ref": "#/components/schemas/messages.botWidgetQueryAnswer"}], "description": "Тип TL: messages.BotWidgetQueryAnswer."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "oneOf": [{"$ref": "#/components/schemas/widgetQueryTypeData"}, {"$ref": "#/components/schemas/widgetQueryTypeSignData"}, {"$ref": "#/components/schemas/widgetQueryTypeSentTransaction"}], "description": "Тип TL: WidgetQueryType."}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["bot", "query_type", "data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Тип TL: InputUser. |\n| `query_type` | `WidgetQueryType` | Да | Тип TL: WidgetQueryType. |\n| `data` | `bytes` | Да | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2239004788"}}, "/catalog/bots.editProfileWidgetData": {"post": {"operationId": "bots.editProfileWidgetData", "tags": ["Боты"], "summary": "bots.editProfileWidgetData", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.editProfileWidgetData", "x-tl-id": "905942386", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Значение типа TL `int`."}, "public_data": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["public_data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `cache_time` | `int` | Нет | Значение типа TL `int`. |\n| `public_data` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "905942386"}}, "/catalog/bots.editProfileWidgetChatData": {"post": {"operationId": "bots.editProfileWidgetChatData", "tags": ["Боты"], "summary": "bots.editProfileWidgetChatData", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.editProfileWidgetChatData", "x-tl-id": "4240581465", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "chat_data": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["user_id", "chat_data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Тип TL: InputUser. |\n| `chat_data` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4240581465"}}, "/catalog/bots.getProfileWidgetPublicData": {"post": {"operationId": "bots.getProfileWidgetPublicData", "tags": ["Боты"], "summary": "bots.getProfileWidgetPublicData", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "bots.getProfileWidgetPublicData", "x-tl-id": "1923143539", "x-tl-result": "messages.WidgetPublicData", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.WidgetPublicData`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.WidgetPublicData", "oneOf": [{"$ref": "#/components/schemas/messages.widgetPublicDataNotModified"}, {"$ref": "#/components/schemas/messages.widgetPublicData"}], "description": "Тип TL: messages.WidgetPublicData."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["bot", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | Да | Тип TL: InputUser. |\n| `hash` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1923143539"}}, "/catalog/payments.getPaymentForm": {"post": {"operationId": "payments.getPaymentForm", "tags": ["Платежи"], "summary": "Получить форму оплаты", "description": "Получить форму оплаты\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)", "x-tl-method": "payments.getPaymentForm", "x-tl-id": "924093883", "x-tl-result": "payments.PaymentForm", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.PaymentForm`.\n\n[payments.PaymentForm](https://core.telegram.org/type/payments.PaymentForm.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.PaymentForm", "oneOf": [{"$ref": "#/components/schemas/payments.paymentForm"}, {"$ref": "#/components/schemas/payments.paymentFormStars"}, {"$ref": "#/components/schemas/payments.paymentFormStarGift"}], "description": "Тип TL: payments.PaymentForm."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `API_GIFT_RESTRICTED_UPDATE_APP` — Обновите приложение, чтобы получить доступ к подарку API.\n- 400 · `BOOST_PEER_INVALID` — Указанное `boost_peer` неверно.\n- 403 · `BOT_ACCESS_FORBIDDEN` — Указанный метод *может* использоваться через [бизнес-соединение](https://core.telegram.org/api/bots/connected-business-bots.md) для некоторых операций, но указанный запрос предпринял попытку выполнения операции, которая не разрешена через бизнес-соединение.\n- 400 · `BOT_INVOICE_INVALID` — Указанный счет-фактура недействителен.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `GIFT_MONTHS_INVALID` — Значение, переданное через invoice.inputInvoicePremiumGiftStars.месяцев, недействительно.\n- 400 · `GIFT_STARS_INVALID` — Указанное количество звезд неверно.\n- 400 · `INVOICE_INVALID` — Указанный счет-фактура недействителен.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `MESSAGE_TOO_LONG` — Предоставленное сообщение слишком длинное.\n- 400 · `MONTH_INVALID` — Число месяцев, указанное в inputInvoicePremiumGiftStars.months, неверно.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `NO_PAYMENT_NEEDED` — Обновление/перенос указанного подарка уже оплачен или бесплатен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PREMIUM_PURPOSE_INVALID` — Указанное значение InputStorePaymentPurpose недопустимо.\n- 400 · `SLUG_INVALID` — Указанный ярлык счета-фактуры недействителен.\n- 400 · `STARGIFT_ALREADY_CONVERTED` — Указанный звездный подарок уже конвертирован в Звезды.\n- 400 · `STARGIFT_ALREADY_REFUNDED` — Указанный звездный подарок уже возвращен.\n- 400 · `STARGIFT_ALREADY_UPGRADED` — Указанный подарок уже повышен до коллекционного подарка.\n- 406 · `STARGIFT_EXPORT_IN_PROGRESS` — Выполняется экспорт подарка, подробное и локализованное описание ошибки будет отправлено через [updateServiceNotification, как указано здесь »](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен.\n- 400 · `STARGIFT_MESSAGE_INVALID` — Указанное inputInvoiceStarGift.message неверно.\n- 400 · `STARGIFT_NOT_FOUND` — Указанный подарок не найден.\n- 400 · `STARGIFT_NOT_OWNER` — Вы не являетесь владельцем подарка, который пытаетесь передать.\n- 400 · `STARGIFT_NOT_UNIQUE` — Неколлекционный подарок передать нельзя.\n- 400 · `STARGIFT_OWNER_INVALID` — Нельзя передать или продать подарок, принадлежащий другому пользователю.\n- 400 · `STARGIFT_PEER_INVALID` — Указанное inputSavedStarGiftChat.peer неверно.\n- 400 · `STARGIFT_RESELL_CURRENCY_NOT_ALLOWED` — Вы не можете купить подарок за указанную валюту (i.e. пытаетесь оплатить в Stars подарки TON).\n- 400 · `STARGIFT_RESELL_TOO_EARLY_%d` — Вы сможете перепродать этот подарок через %d секунд.\n- 400 · `STARGIFT_SLUG_INVALID` — Указанный подарочный сертификат недействителен.\n- 400 · `STARGIFT_TRANSFER_TOO_EARLY_%d` — Вы пока не можете передать этот подарок, подождите %d секунд.\n- 400 · `STARGIFT_UPGRADE_UNAVAILABLE` — Полученный подарок можно улучшить до коллекционного подарка только в том случае, если установлен флаг [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`can_upgrade`.\n- 406 · `STARS_FORM_AMOUNT_MISMATCH` — Сумма формы изменилась, пожалуйста, получите новую форму, используя [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm.md), и перезапустите процесс.\n- 400 · `TO_ID_INVALID` — Указанное `to_id` переданного inputInvoiceStarGiftResale или inputInvoiceStarGiftTransfer недопустимо.\n- 400 · `UNTIL_DATE_INVALID` — Недействительно до указанной даты.\n- 403 · `USER_DISALLOWED_STARGIFTS` — Пользователь-получатель настроил ограничения на категории звездных подарков, которые он готов принять (уникальные, ограниченные или неограниченные): отправитель попытался получить форму оплаты подарка, который попадает в категорию, которую получатель заблокировал."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getPaymentForm"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"invoice": {"type": "object", "x-tl-type": "InputInvoice", "oneOf": [{"$ref": "#/components/schemas/inputInvoiceMessage"}, {"$ref": "#/components/schemas/inputInvoiceSlug"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftCode"}, {"$ref": "#/components/schemas/inputInvoiceStars"}, {"$ref": "#/components/schemas/inputInvoiceChatInviteSubscription"}, {"$ref": "#/components/schemas/inputInvoiceStarGift"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftUpgrade"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftTransfer"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftStars"}, {"$ref": "#/components/schemas/inputInvoiceBusinessBotTransferStars"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftResale"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftPrepaidUpgrade"}, {"$ref": "#/components/schemas/inputInvoicePremiumAuthCode"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftDropOriginalDetails"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftAuctionBid"}], "description": "Счет"}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.0?DataJSON"}}, "additionalProperties": false, "required": ["invoice"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `invoice` | `InputInvoice` | Да | Счет |\n| `theme_params` | `DataJSON` | Нет | [Параметры темы »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |"}, "x-telegram-rpc-errors": ["API_GIFT_RESTRICTED_UPDATE_APP", "BOOST_PEER_INVALID", "BOT_ACCESS_FORBIDDEN", "BOT_INVOICE_INVALID", "BUSINESS_CONNECTION_INVALID", "GIFT_MONTHS_INVALID", "GIFT_STARS_INVALID", "INVOICE_INVALID", "MESSAGE_ID_INVALID", "MESSAGE_TOO_LONG", "MONTH_INVALID", "MSG_ID_INVALID", "NO_PAYMENT_NEEDED", "PEER_ID_INVALID", "PREMIUM_PURPOSE_INVALID", "SLUG_INVALID", "STARGIFT_ALREADY_CONVERTED", "STARGIFT_ALREADY_REFUNDED", "STARGIFT_ALREADY_UPGRADED", "STARGIFT_EXPORT_IN_PROGRESS", "STARGIFT_INVALID", "STARGIFT_MESSAGE_INVALID", "STARGIFT_NOT_FOUND", "STARGIFT_NOT_OWNER", "STARGIFT_NOT_UNIQUE", "STARGIFT_OWNER_INVALID", "STARGIFT_PEER_INVALID", "STARGIFT_RESELL_CURRENCY_NOT_ALLOWED", "STARGIFT_RESELL_TOO_EARLY_%d", "STARGIFT_SLUG_INVALID", "STARGIFT_TRANSFER_TOO_EARLY_%d", "STARGIFT_UPGRADE_UNAVAILABLE", "STARS_FORM_AMOUNT_MISMATCH", "TO_ID_INVALID", "UNTIL_DATE_INVALID", "USER_DISALLOWED_STARGIFTS"], "x-browser-schema-id": "924093883"}}, "/catalog/payments.getPaymentReceipt": {"post": {"operationId": "payments.getPaymentReceipt", "tags": ["Платежи"], "summary": "Получить квитанцию об оплате", "description": "Получить квитанцию об оплате\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.getPaymentReceipt", "x-tl-id": "611897804", "x-tl-result": "payments.PaymentReceipt", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.PaymentReceipt`.\n\n[payments.PaymentReceipt](https://core.telegram.org/type/payments.PaymentReceipt.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.PaymentReceipt", "oneOf": [{"$ref": "#/components/schemas/payments.paymentReceipt"}, {"$ref": "#/components/schemas/payments.paymentReceiptStars"}], "description": "Тип TL: payments.PaymentReceipt."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getPaymentReceipt"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, которому была отправлена квитанция об оплате"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения о получении"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, которому была отправлена квитанция об оплате |\n| `msg_id` | `int` | Да | Идентификатор сообщения о получении |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID"], "x-browser-schema-id": "611897804"}}, "/catalog/payments.validateRequestedInfo": {"post": {"operationId": "payments.validateRequestedInfo", "tags": ["Платежи"], "summary": "Отправьте запрошенную информацию о заказе для проверки", "description": "Отправьте запрошенную информацию о заказе для проверки\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.validateRequestedInfo", "x-tl-id": "3066622251", "x-tl-result": "payments.ValidatedRequestedInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.ValidatedRequestedInfo`.\n\n[payments.ValidatedRequestedInfo](https://core.telegram.org/type/payments.ValidatedRequestedInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ValidatedRequestedInfo", "oneOf": [{"$ref": "#/components/schemas/payments.validatedRequestedInfo"}], "description": "Тип TL: payments.ValidatedRequestedInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.validateRequestedInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"save": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Сохраните информацию о заказе, чтобы повторно использовать ее для будущих заказов."}, "invoice": {"type": "object", "x-tl-type": "InputInvoice", "oneOf": [{"$ref": "#/components/schemas/inputInvoiceMessage"}, {"$ref": "#/components/schemas/inputInvoiceSlug"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftCode"}, {"$ref": "#/components/schemas/inputInvoiceStars"}, {"$ref": "#/components/schemas/inputInvoiceChatInviteSubscription"}, {"$ref": "#/components/schemas/inputInvoiceStarGift"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftUpgrade"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftTransfer"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftStars"}, {"$ref": "#/components/schemas/inputInvoiceBusinessBotTransferStars"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftResale"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftPrepaidUpgrade"}, {"$ref": "#/components/schemas/inputInvoicePremiumAuthCode"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftDropOriginalDetails"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftAuctionBid"}], "description": "Счет"}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "oneOf": [{"$ref": "#/components/schemas/paymentRequestedInfo"}], "description": "Запрошенная информация о заказе"}}, "additionalProperties": false, "required": ["invoice", "info"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `save` | `true` | Нет | Сохраните информацию о заказе, чтобы повторно использовать ее для будущих заказов. |\n| `invoice` | `InputInvoice` | Да | Счет |\n| `info` | `PaymentRequestedInfo` | Да | Запрошенная информация о заказе |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3066622251"}}, "/catalog/payments.sendPaymentForm": {"post": {"operationId": "payments.sendPaymentForm", "tags": ["Платежи"], "summary": "Отправить составленную платежную форму", "description": "Отправить составленную платежную форму\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.sendPaymentForm", "x-tl-id": "755192367", "x-tl-result": "payments.PaymentResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.PaymentResult`.\n\n[payments.PaymentResult](https://core.telegram.org/type/payments.PaymentResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.PaymentResult", "oneOf": [{"$ref": "#/components/schemas/payments.paymentResult"}, {"$ref": "#/components/schemas/payments.paymentVerificationNeeded"}], "description": "Тип TL: payments.PaymentResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FORM_UNSUPPORTED` — Пожалуйста, обновите свой клиент.\n- 400 · `INVOICE_INVALID` — Указанный счет-фактура недействителен.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PAYMENT_CREDENTIALS_INVALID` — Указанные платежные реквизиты недействительны.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TMP_PASSWORD_INVALID` — Пройденное tmp_password недействительно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.sendPaymentForm"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор формы", "x-tl-type": "long"}, "invoice": {"type": "object", "x-tl-type": "InputInvoice", "oneOf": [{"$ref": "#/components/schemas/inputInvoiceMessage"}, {"$ref": "#/components/schemas/inputInvoiceSlug"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftCode"}, {"$ref": "#/components/schemas/inputInvoiceStars"}, {"$ref": "#/components/schemas/inputInvoiceChatInviteSubscription"}, {"$ref": "#/components/schemas/inputInvoiceStarGift"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftUpgrade"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftTransfer"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftStars"}, {"$ref": "#/components/schemas/inputInvoiceBusinessBotTransferStars"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftResale"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftPrepaidUpgrade"}, {"$ref": "#/components/schemas/inputInvoicePremiumAuthCode"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftDropOriginalDetails"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftAuctionBid"}], "description": "Счет"}, "requested_info_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Идентификатор сохраненного и подтвержденного [информация о заказе](https://core.telegram.org/constructor/payments.validatedRequestedInfo.md)"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Идентификатор выбранного варианта доставки"}, "credentials": {"type": "object", "x-tl-type": "InputPaymentCredentials", "oneOf": [{"$ref": "#/components/schemas/inputPaymentCredentialsSaved"}, {"$ref": "#/components/schemas/inputPaymentCredentials"}, {"$ref": "#/components/schemas/inputPaymentCredentialsApplePay"}, {"$ref": "#/components/schemas/inputPaymentCredentialsGooglePay"}], "description": "Платежные данные"}, "tip_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Совет: используйте наименьшие единицы валюты (целые, а не плавающие/двойные). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}}, "additionalProperties": false, "required": ["form_id", "invoice", "credentials"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `form_id` | `long` | Да | Идентификатор формы |\n| `invoice` | `InputInvoice` | Да | Счет |\n| `requested_info_id` | `string` | Нет | Идентификатор сохраненного и подтвержденного [информация о заказе](https://core.telegram.org/constructor/payments.validatedRequestedInfo.md) |\n| `shipping_option_id` | `string` | Нет | Идентификатор выбранного варианта доставки |\n| `credentials` | `InputPaymentCredentials` | Да | Платежные данные |\n| `tip_amount` | `long` | Нет | Совет: используйте наименьшие единицы валюты (целые, а не плавающие/двойные). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют). |"}, "x-telegram-rpc-errors": ["FORM_UNSUPPORTED", "INVOICE_INVALID", "MESSAGE_ID_INVALID", "PAYMENT_CREDENTIALS_INVALID", "PEER_ID_INVALID", "TMP_PASSWORD_INVALID"], "x-browser-schema-id": "755192367"}}, "/catalog/payments.getSavedInfo": {"post": {"operationId": "payments.getSavedInfo", "tags": ["Платежи"], "summary": "Получить сохраненную платежную информацию", "description": "Получить сохраненную платежную информацию", "x-tl-method": "payments.getSavedInfo", "x-tl-id": "578650699", "x-tl-result": "payments.SavedInfo", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.SavedInfo`.\n\n[payments.SavedInfo](https://core.telegram.org/type/payments.SavedInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.SavedInfo", "oneOf": [{"$ref": "#/components/schemas/payments.savedInfo"}], "description": "Тип TL: payments.SavedInfo."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getSavedInfo"}, "x-browser-schema-id": "578650699"}}, "/catalog/payments.clearSavedInfo": {"post": {"operationId": "payments.clearSavedInfo", "tags": ["Платежи"], "summary": "Очистить сохраненную платежную информацию", "description": "Очистить сохраненную платежную информацию", "x-tl-method": "payments.clearSavedInfo", "x-tl-id": "3627905217", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.clearSavedInfo"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"credentials": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалить сохраненные платежные данные"}, "info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Очистить последние настройки заказа, сохраненные пользователем"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `credentials` | `true` | Нет | Удалить сохраненные платежные данные |\n| `info` | `true` | Нет | Очистить последние настройки заказа, сохраненные пользователем |"}, "x-browser-schema-id": "3627905217"}}, "/catalog/payments.getBankCardData": {"post": {"operationId": "payments.getBankCardData", "tags": ["Платежи"], "summary": "Получить информацию о кредитной карте", "description": "Получить информацию о кредитной карте\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.getBankCardData", "x-tl-id": "779736953", "x-tl-result": "payments.BankCardData", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.BankCardData`.\n\n[payments.BankCardData](https://core.telegram.org/type/payments.BankCardData.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.BankCardData", "oneOf": [{"$ref": "#/components/schemas/payments.bankCardData"}], "description": "Тип TL: payments.BankCardData."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BANK_CARD_NUMBER_INVALID` — Указанный номер карты недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getBankCardData"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"number": {"type": "string", "x-tl-type": "string", "description": "Номер кредитной карты"}}, "additionalProperties": false, "required": ["number"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `number` | `string` | Да | Номер кредитной карты |"}, "x-telegram-rpc-errors": ["BANK_CARD_NUMBER_INVALID"], "x-browser-schema-id": "779736953"}}, "/catalog/payments.exportInvoice": {"post": {"operationId": "payments.exportInvoice", "tags": ["Платежи"], "summary": "Создать глубокую ссылку на счет-фактуру", "description": "Создайте [глубокую ссылку на счет-фактуру](https://core.telegram.org/api/links.md#invoice-links)\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.exportInvoice", "x-tl-id": "261206117", "x-tl-result": "payments.ExportedInvoice", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.ExportedInvoice`.\n\n[payments.ExportedInvoice](https://core.telegram.org/type/payments.ExportedInvoice.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ExportedInvoice", "oneOf": [{"$ref": "#/components/schemas/payments.exportedInvoice"}], "description": "Тип TL: payments.ExportedInvoice."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `CURRENCY_TOTAL_AMOUNT_INVALID` — Сумма всех цен недействительна.\n- 400 · `INVOICE_PAYLOAD_INVALID` — Указанная полезная нагрузка счета недействительна.\n- 400 · `MEDIA_INVALID` — Недействительный носитель.\n- 400 · `PAYMENT_PROVIDER_INVALID` — Указанный платежный провайдер недействителен.\n- 400 · `STARS_INVOICE_INVALID` — Указанный счет Telegram Star недействителен.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `WEBDOCUMENT_MIME_INVALID` — Указан неверный тип mime веб-документа.\n- 400 · `WEBDOCUMENT_URL_EMPTY` — Переданный веб-документ URL пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.exportInvoice"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"invoice_media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Счет"}}, "additionalProperties": false, "required": ["invoice_media"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `invoice_media` | `InputMedia` | Да | Счет |"}, "x-telegram-rpc-errors": ["BUSINESS_CONNECTION_INVALID", "CURRENCY_TOTAL_AMOUNT_INVALID", "INVOICE_PAYLOAD_INVALID", "MEDIA_INVALID", "PAYMENT_PROVIDER_INVALID", "STARS_INVOICE_INVALID", "USER_BOT_REQUIRED", "WEBDOCUMENT_MIME_INVALID", "WEBDOCUMENT_URL_EMPTY"], "x-browser-schema-id": "261206117"}}, "/catalog/payments.assignAppStoreTransaction": {"post": {"operationId": "payments.assignAppStoreTransaction", "tags": ["Платежи"], "summary": "Информирует сервер о покупке, совершенной через App Store: только для официальных приложений.", "description": "Информирует сервер о покупке, совершенной через App Store: только для официальных приложений.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.assignAppStoreTransaction", "x-tl-id": "2163045501", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INPUT_PURPOSE_INVALID` — Указанное назначение платежа неверно.\n- 400 · `RECEIPT_EMPTY` — Указанный чек пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.assignAppStoreTransaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"receipt": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Квитанция"}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "oneOf": [{"$ref": "#/components/schemas/inputStorePaymentPremiumSubscription"}, {"$ref": "#/components/schemas/inputStorePaymentGiftPremium"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiftCode"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentStarsTopup"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGift"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentAuthCode"}], "description": "Назначение платежа"}}, "additionalProperties": false, "required": ["receipt", "purpose"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `receipt` | `bytes` | Да | Квитанция |\n| `purpose` | `InputStorePaymentPurpose` | Да | Назначение платежа |"}, "x-telegram-rpc-errors": ["INPUT_PURPOSE_INVALID", "RECEIPT_EMPTY"], "x-browser-schema-id": "2163045501"}}, "/catalog/payments.assignPlayMarketTransaction": {"post": {"operationId": "payments.assignPlayMarketTransaction", "tags": ["Платежи"], "summary": "Информирует сервер о покупке, совершенной через Play Store: только для официальных приложений.", "description": "Информирует сервер о покупке, совершенной через Play Store: только для официальных приложений.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.assignPlayMarketTransaction", "x-tl-id": "3757920467", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `DATA_JSON_INVALID` — Предоставленные данные JSON недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.assignPlayMarketTransaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"receipt": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Квитанция"}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "oneOf": [{"$ref": "#/components/schemas/inputStorePaymentPremiumSubscription"}, {"$ref": "#/components/schemas/inputStorePaymentGiftPremium"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiftCode"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentStarsTopup"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGift"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentAuthCode"}], "description": "Назначение платежа"}}, "additionalProperties": false, "required": ["receipt", "purpose"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `receipt` | `DataJSON` | Да | Квитанция |\n| `purpose` | `InputStorePaymentPurpose` | Да | Назначение платежа |"}, "x-telegram-rpc-errors": ["DATA_JSON_INVALID"], "x-browser-schema-id": "3757920467"}}, "/catalog/payments.getPremiumGiftCodeOptions": {"post": {"operationId": "payments.getPremiumGiftCodeOptions", "tags": ["Платежи"], "summary": "Получите список вариантов бесплатных/подарочных кодов Telegram Premium.", "description": "Получите список Telegram Premium [код подарка/подарка »](https://core.telegram.org/api/giveaways.md) вариантов.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.getPremiumGiftCodeOptions", "x-tl-id": "660060756", "x-tl-result": "Vector<PremiumGiftCodeOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<PremiumGiftCodeOption>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[PremiumGiftCodeOption](https://core.telegram.org/type/PremiumGiftCodeOption.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "PremiumGiftCodeOption", "oneOf": [{"$ref": "#/components/schemas/premiumGiftCodeOption"}], "description": "Тип TL: PremiumGiftCodeOption."}, "x-tl-type": "Vector<PremiumGiftCodeOption>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getPremiumGiftCodeOptions"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"boost_peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал, на котором начнется розыгрыш", "x-tl-flag": "flags.0?InputPeer"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `boost_peer` | `InputPeer` | Нет | Канал, на котором начнется розыгрыш |"}, "x-browser-schema-id": "660060756"}}, "/catalog/payments.checkGiftCode": {"post": {"operationId": "payments.checkGiftCode", "tags": ["Платежи"], "summary": "Получить информацию о подарочном коде Telegram Premium »", "description": "Получите информацию о [подарочном коде Telegram Premium »](https://core.telegram.org/api/giveaways.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.checkGiftCode", "x-tl-id": "2387719361", "x-tl-result": "payments.CheckedGiftCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.CheckedGiftCode`.\n\n[payments.CheckedGiftCode](https://core.telegram.org/type/payments.CheckedGiftCode.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.CheckedGiftCode", "oneOf": [{"$ref": "#/components/schemas/payments.checkedGiftCode"}], "description": "Тип TL: payments.CheckedGiftCode."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GIFT_SLUG_EXPIRED` — Срок действия указанного подарочного сертификата истек.\n- 400 · `GIFT_SLUG_INVALID` — Указанный пул недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.checkGiftCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Подарочный код для проверки"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Подарочный код для проверки |"}, "x-telegram-rpc-errors": ["GIFT_SLUG_EXPIRED", "GIFT_SLUG_INVALID"], "x-browser-schema-id": "2387719361"}}, "/catalog/payments.applyGiftCode": {"post": {"operationId": "payments.applyGiftCode", "tags": ["Платежи"], "summary": "Применить подарочный код Telegram Premium »", "description": "Примените [подарочный код Telegram Premium »](https://core.telegram.org/api/giveaways.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.applyGiftCode", "x-tl-id": "4142032980", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GIFT_SLUG_EXPIRED` — Срок действия указанного подарочного сертификата истек.\n- 400 · `GIFT_SLUG_INVALID` — Указанный пул недействителен.\n- 420 · `PREMIUM_SUB_ACTIVE_UNTIL_%d` — У вас уже есть активная премиум-подписка до unixtime %d ."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.applyGiftCode"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Код для применения"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Код для применения |"}, "x-telegram-rpc-errors": ["GIFT_SLUG_EXPIRED", "GIFT_SLUG_INVALID", "PREMIUM_SUB_ACTIVE_UNTIL_%d"], "x-browser-schema-id": "4142032980"}}, "/catalog/payments.getGiveawayInfo": {"post": {"operationId": "payments.getGiveawayInfo", "tags": ["Платежи"], "summary": "Получить информацию о розыгрыше Telegram Premium».", "description": "Получите информацию о [розыгрыше Telegram Premium»](https://core.telegram.org/api/giveaways.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.getGiveawayInfo", "x-tl-id": "4095972389", "x-tl-result": "payments.GiveawayInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.GiveawayInfo`.\n\n[payments.GiveawayInfo](https://core.telegram.org/type/payments.GiveawayInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.GiveawayInfo", "oneOf": [{"$ref": "#/components/schemas/payments.giveawayInfo"}, {"$ref": "#/components/schemas/payments.giveawayInfoResults"}], "description": "Тип TL: payments.GiveawayInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getGiveawayInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, на котором была опубликована раздача."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения службы [messageActionGiveawayLaunch](https://core.telegram.org/constructor/messageActionGiveawayLaunch.md)]"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узел, на котором была опубликована раздача. |\n| `msg_id` | `int` | Да | Идентификатор сообщения службы [messageActionGiveawayLaunch](https://core.telegram.org/constructor/messageActionGiveawayLaunch.md)] |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4095972389"}}, "/catalog/payments.launchPrepaidGiveaway": {"post": {"operationId": "payments.launchPrepaidGiveaway", "tags": ["Платежи"], "summary": "Запускаем предоплаченную раздачу».", "description": "Запустите [предоплаченную раздачу »](https://core.telegram.org/api/giveaways.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.launchPrepaidGiveaway", "x-tl-id": "1609928480", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.launchPrepaidGiveaway"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, где запустить раздачу."}, "giveaway_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор предоплаченной раздачи.", "x-tl-type": "long"}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "oneOf": [{"$ref": "#/components/schemas/inputStorePaymentPremiumSubscription"}, {"$ref": "#/components/schemas/inputStorePaymentGiftPremium"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiftCode"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentStarsTopup"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGift"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentAuthCode"}], "description": "Параметры раздачи"}}, "additionalProperties": false, "required": ["peer", "giveaway_id", "purpose"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир, где запустить раздачу. |\n| `giveaway_id` | `long` | Да | Идентификатор предоплаченной раздачи. |\n| `purpose` | `InputStorePaymentPurpose` | Да | Параметры раздачи |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1609928480"}}, "/catalog/payments.getStarsTopupOptions": {"post": {"operationId": "payments.getStarsTopupOptions", "tags": ["Платежи"], "summary": "Получить список вариантов пополнения Telegram Stars » в виде конструкторов starsTopupOption.", "description": "Получите список [вариантов пополнения Telegram Stars »](https://core.telegram.org/api/stars.md#buying-or-gifting-stars) в виде конструкторов [starsTopupOption](https://core.telegram.org/constructor/starsTopupOption.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsTopupOptions", "x-tl-id": "3222194131", "x-tl-result": "Vector<StarsTopupOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<StarsTopupOption>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[StarsTopupOption](https://core.telegram.org/type/StarsTopupOption.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsTopupOption", "oneOf": [{"$ref": "#/components/schemas/starsTopupOption"}], "description": "Тип TL: StarsTopupOption."}, "x-tl-type": "Vector<StarsTopupOption>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsTopupOptions"}, "x-browser-schema-id": "3222194131"}}, "/catalog/payments.getStarsStatus": {"post": {"operationId": "payments.getStarsStatus", "tags": ["Платежи"], "summary": "Получите текущий баланс Telegram Stars текущего аккаунта (с помощью Peer=inputPeerSelf) или баланс Stars бота или канала, указанного в `peer`.", "description": "Получите текущий баланс Telegram Stars](https://core.telegram.org/api/stars.md) текущего аккаунта (с помощью Peer=[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)) или баланс звезд бота или канала, указанного в `peer`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.getStarsStatus", "x-tl-id": "1319744447", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarsStatus`.\n\n[payments.StarsStatus](https://core.telegram.org/type/payments.StarsStatus.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarsStatus", "oneOf": [{"$ref": "#/components/schemas/payments.starsStatus"}], "description": "Тип TL: payments.StarsStatus."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `BOT_ACCESS_FORBIDDEN` — Указанный метод *может* использоваться через [бизнес-соединение](https://core.telegram.org/api/bots/connected-business-bots.md) для некоторых операций, но указанный запрос предпринял попытку выполнения операции, которая не разрешена через бизнес-соединение.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsStatus"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, возвращает баланс дохода от канала/рекламы в нанограммах."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Одноранговый узел, из которого можно получить баланс."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `ton` | `true` | Нет | Если установлено, возвращает баланс дохода от канала/рекламы в нанограммах. |\n| `peer` | `InputPeer` | Да | Одноранговый узел, из которого можно получить баланс. |"}, "x-telegram-rpc-errors": ["BOT_ACCESS_FORBIDDEN", "BUSINESS_CONNECTION_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1319744447"}}, "/catalog/payments.getStarsTransactions": {"post": {"operationId": "payments.getStarsTransactions", "tags": ["Платежи"], "summary": "Получите транзакции Telegram Stars.", "description": "Получить [Транзакции Telegram Stars](https://core.telegram.org/api/stars.md#balance-and-transaction-history).\n\nФлаги `inbound` и `outbound` являются взаимоисключающими: если ни один из двух не установлен, извлекаются как входящие, так и исходящие транзакции.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "payments.getStarsTransactions", "x-tl-id": "1775912279", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarsStatus`.\n\n[payments.StarsStatus](https://core.telegram.org/type/payments.StarsStatus.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarsStatus", "oneOf": [{"$ref": "#/components/schemas/payments.starsStatus"}], "description": "Тип TL: payments.StarsStatus."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SUBSCRIPTION_ID_INVALID` — Указанное subscription_id неверно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsTransactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"inbound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, извлекаются только входящие транзакции."}, "outbound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлено, извлекаются только исходящие транзакции."}, "ascending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Возвращайте транзакции в порядке возрастания по дате (вместо убывания по дате)."}, "ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Если установлено, вместо этого возвращается транзакции дохода от канала/рекламы в нанограммах."}, "subscription_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Если установлено, извлекаются только транзакции для указанной [подписки Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions)."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Получите историю транзакций узла ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) или нашего бота)."}, "offset": {"type": "string", "x-tl-type": "string", "description": "[Смещение для нумерации страниц, полученное из возвращенного `next_offset`, изначально пустой строки »](https://core.telegram.org/api/offsets.md)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `inbound` | `true` | Нет | Если установлено, извлекаются только входящие транзакции. |\n| `outbound` | `true` | Нет | Если установлено, извлекаются только исходящие транзакции. |\n| `ascending` | `true` | Нет | Возвращайте транзакции в порядке возрастания по дате (вместо убывания по дате). |\n| `ton` | `true` | Нет | Если установлено, вместо этого возвращается транзакции дохода от канала/рекламы в нанограммах. |\n| `subscription_id` | `string` | Нет | Если установлено, извлекаются только транзакции для указанной [подписки Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions). |\n| `peer` | `InputPeer` | Да | Получите историю транзакций узла ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) или нашего бота). |\n| `offset` | `string` | Да | [Смещение для нумерации страниц, полученное из возвращенного `next_offset`, изначально пустой строки »](https://core.telegram.org/api/offsets.md). |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID", "SUBSCRIPTION_ID_INVALID"], "x-browser-schema-id": "1775912279"}}, "/catalog/payments.sendStarsForm": {"post": {"operationId": "payments.sendStarsForm", "tags": ["Платежи"], "summary": "Совершите оплату с помощью Telegram Stars, дополнительную информацию см. здесь ».", "description": "Произведите платеж с помощью [Telegram Stars, дополнительную информацию см. здесь »](https://core.telegram.org/api/stars.md#using-stars).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)", "x-tl-method": "payments.sendStarsForm", "x-tl-id": "2040056084", "x-tl-result": "payments.PaymentResult", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.PaymentResult`.\n\n[payments.PaymentResult](https://core.telegram.org/type/payments.PaymentResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.PaymentResult", "oneOf": [{"$ref": "#/components/schemas/payments.paymentResult"}, {"$ref": "#/components/schemas/payments.paymentVerificationNeeded"}], "description": "Тип TL: payments.PaymentResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 406 · `API_GIFT_RESTRICTED_UPDATE_APP` — Обновите приложение, чтобы получить доступ к подарку API.\n- 400 · `BALANCE_TOO_LOW` — Транзакция не может быть завершена, поскольку текущий баланс [Telegram Stars](https://core.telegram.org/api/stars.md) слишком низкий.\n- 403 · `BOT_ACCESS_FORBIDDEN` — Указанный метод *может* использоваться через [бизнес-соединение](https://core.telegram.org/api/bots/connected-business-bots.md) для некоторых операций, но указанный запрос предпринял попытку выполнения операции, которая не разрешена через бизнес-соединение.\n- 400 · `BOT_INVOICE_INVALID` — Указанный счет-фактура недействителен.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `FORM_EXPIRED` — Форма была создана более 10 минут назад, срок ее действия истек. Создайте ее заново, используя [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm.md), и передайте новый `form_id`.\n- 400 · `FORM_ID_EMPTY` — Указанный идентификатор формы пуст.\n- 400 · `FORM_SUBMIT_DUPLICATE` — Такая же форма оплаты уже была отправлена.  .\n- 400 · `FORM_UNSUPPORTED` — Пожалуйста, обновите свой клиент.\n- 400 · `GIFT_STARS_INVALID` — Указанное количество звезд неверно.\n- 400 · `MEDIA_ALREADY_PAID` — Вы уже заплатили за указанный носитель.\n- 400 · `MONTH_INVALID` — Число месяцев, указанное в inputInvoicePremiumGiftStars.months, неверно.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 406 · `PRECHECKOUT_FAILED` — предварительная проверка не удалась, подробное и локализованное описание ошибки будет отправлено через [updateServiceNotification, как указано здесь »](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 400 · `PURPOSE_INVALID` — Указано неверное назначение платежа.\n- 400 · `STARGIFT_ALREADY_UPGRADED` — Указанный подарок уже повышен до коллекционного подарка.\n- 400 · `STARGIFT_NOT_FOUND` — Указанный подарок не найден.\n- 400 · `STARGIFT_OWNER_INVALID` — Нельзя передать или продать подарок, принадлежащий другому пользователю.\n- 400 · `STARGIFT_SLUG_INVALID` — Указанный подарочный сертификат недействителен.\n- 400 · `STARGIFT_USAGE_LIMITED` — Подарок распродан.\n- 400 · `STARGIFT_USER_USAGE_LIMITED` — Вы достигли лимита starGift.limited_per_user, вы больше не можете покупать подарки этого типа.\n- 406 · `STARS_FORM_AMOUNT_MISMATCH` — Сумма формы изменилась, пожалуйста, получите новую форму, используя [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm.md), и перезапустите процесс.\n- 400 · `TO_ID_INVALID` — Указанное `to_id` переданного inputInvoiceStarGiftResale или inputInvoiceStarGiftTransfer недопустимо.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.sendStarsForm"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор платежной формы", "x-tl-type": "long"}, "invoice": {"type": "object", "x-tl-type": "InputInvoice", "oneOf": [{"$ref": "#/components/schemas/inputInvoiceMessage"}, {"$ref": "#/components/schemas/inputInvoiceSlug"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftCode"}, {"$ref": "#/components/schemas/inputInvoiceStars"}, {"$ref": "#/components/schemas/inputInvoiceChatInviteSubscription"}, {"$ref": "#/components/schemas/inputInvoiceStarGift"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftUpgrade"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftTransfer"}, {"$ref": "#/components/schemas/inputInvoicePremiumGiftStars"}, {"$ref": "#/components/schemas/inputInvoiceBusinessBotTransferStars"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftResale"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftPrepaidUpgrade"}, {"$ref": "#/components/schemas/inputInvoicePremiumAuthCode"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftDropOriginalDetails"}, {"$ref": "#/components/schemas/inputInvoiceStarGiftAuctionBid"}], "description": "Счет"}}, "additionalProperties": false, "required": ["form_id", "invoice"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `form_id` | `long` | Да | Идентификатор платежной формы |\n| `invoice` | `InputInvoice` | Да | Счет |"}, "x-telegram-rpc-errors": ["API_GIFT_RESTRICTED_UPDATE_APP", "BALANCE_TOO_LOW", "BOT_ACCESS_FORBIDDEN", "BOT_INVOICE_INVALID", "BUSINESS_CONNECTION_INVALID", "FORM_EXPIRED", "FORM_ID_EMPTY", "FORM_SUBMIT_DUPLICATE", "FORM_UNSUPPORTED", "GIFT_STARS_INVALID", "MEDIA_ALREADY_PAID", "MONTH_INVALID", "PEER_ID_INVALID", "PRECHECKOUT_FAILED", "PURPOSE_INVALID", "STARGIFT_ALREADY_UPGRADED", "STARGIFT_NOT_FOUND", "STARGIFT_OWNER_INVALID", "STARGIFT_SLUG_INVALID", "STARGIFT_USAGE_LIMITED", "STARGIFT_USER_USAGE_LIMITED", "STARS_FORM_AMOUNT_MISMATCH", "TO_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "2040056084"}}, "/catalog/payments.refundStarsCharge": {"post": {"operationId": "payments.refundStarsCharge", "tags": ["Платежи"], "summary": "Возврат транзакции Telegram Stars. Дополнительную информацию см. здесь ».", "description": "Возврат денег за транзакцию [Telegram Stars](https://core.telegram.org/api/stars.md), дополнительную информацию см. [здесь »](https://core.telegram.org/api/payments.md#6-refunds).\n\n**Кто может вызвать метод** · Только боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Payments API](https://core.telegram.org/api/payments.md)", "x-tl-method": "payments.refundStarsCharge", "x-tl-id": "632196938", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Payments API", "https://core.telegram.org/api/payments.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHARGE_ALREADY_REFUNDED` — Деньги по транзакции уже возвращены.\n- 400 · `CHARGE_ID_EMPTY` — Указанное charge_id пусто.\n- 400 · `USER_BOT_REQUIRED` — Этот метод может вызвать только бот.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.refundStarsCharge"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь должен вернуть деньги."}, "charge_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор транзакции."}}, "additionalProperties": false, "required": ["user_id", "charge_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Да | Пользователь должен вернуть деньги. |\n| `charge_id` | `string` | Да | Идентификатор транзакции. |"}, "x-telegram-rpc-errors": ["CHARGE_ALREADY_REFUNDED", "CHARGE_ID_EMPTY", "USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "632196938"}}, "/catalog/payments.getStarsRevenueStats": {"post": {"operationId": "payments.getStarsRevenueStats", "tags": ["Платежи"], "summary": "Получите статистику доходов Telegram Star».", "description": "Получите [статистику доходов Telegram Star»](https://core.telegram.org/api/stars.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsRevenueStats", "x-tl-id": "3642751702", "x-tl-result": "payments.StarsRevenueStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarsRevenueStats`.\n\n[payments.StarsRevenueStats](https://core.telegram.org/type/payments.StarsRevenueStats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarsRevenueStats", "oneOf": [{"$ref": "#/components/schemas/payments.starsRevenueStats"}], "description": "Тип TL: payments.StarsRevenueStats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsRevenueStats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить ли темную тему для цветов графика"}, "ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлено, извлекается статистика доходов от рекламы канала/бота в TON."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Получить статистику по указанному боту, каналу или себе ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md))."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dark` | `true` | Нет | Включить ли темную тему для цветов графика |\n| `ton` | `true` | Нет | Если установлено, извлекается статистика доходов от рекламы канала/бота в TON. |\n| `peer` | `InputPeer` | Да | Получить статистику по указанному боту, каналу или себе ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)). |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "PEER_ID_INVALID"], "x-browser-schema-id": "3642751702"}}, "/catalog/payments.getStarsRevenueWithdrawalUrl": {"post": {"operationId": "payments.getStarsRevenueWithdrawalUrl", "tags": ["Платежи"], "summary": "Вывод средств со звездного баланса канала или бота».", "description": "Вывести средства с канала или бота [звездный баланс»](https://core.telegram.org/api/stars.md#withdrawing-revenue).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsRevenueWithdrawalUrl", "x-tl-id": "607378578", "x-tl-result": "payments.StarsRevenueWithdrawalUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarsRevenueWithdrawalUrl`.\n\n[payments.StarsRevenueWithdrawalUrl](https://core.telegram.org/type/payments.StarsRevenueWithdrawalUrl.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarsRevenueWithdrawalUrl", "oneOf": [{"$ref": "#/components/schemas/payments.starsRevenueWithdrawalUrl"}], "description": "Тип TL: payments.StarsRevenueWithdrawalUrl."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен.\n- 400 · `PASSWORD_MISSING` — Перед выполнением этой операции необходимо [включить 2FA](https://core.telegram.org/api/srp.md).\n- 400 · `PASSWORD_TOO_FRESH_%d` — Пароль был изменен менее 24 часов назад, повторите попытку через %d секунд.\n- 400 · `SESSION_TOO_FRESH_%d` — Этот сеанс был создан менее 24 часов назад, повторите попытку через %d секунд."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsRevenueWithdrawalUrl"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, снимает доход от канала/рекламы в TON."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал или бот, с которого можно вывести средства."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество звезд или нанограмм для вывода.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Пароль 2FA см. [здесь »](https://core.telegram.org/api/srp.md#using-the-2fa-password) для получения дополнительной информации."}}, "additionalProperties": false, "required": ["peer", "password"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `ton` | `true` | Нет | Если установлено, снимает доход от канала/рекламы в TON. |\n| `peer` | `InputPeer` | Да | Канал или бот, с которого можно вывести средства. |\n| `amount` | `long` | Нет | Количество звезд или нанограмм для вывода. |\n| `password` | `InputCheckPasswordSRP` | Да | Пароль 2FA см. [здесь »](https://core.telegram.org/api/srp.md#using-the-2fa-password) для получения дополнительной информации. |"}, "x-telegram-rpc-errors": ["PASSWORD_HASH_INVALID", "PASSWORD_MISSING", "PASSWORD_TOO_FRESH_%d", "SESSION_TOO_FRESH_%d"], "x-browser-schema-id": "607378578"}}, "/catalog/payments.getStarsRevenueAdsAccountUrl": {"post": {"operationId": "payments.getStarsRevenueAdsAccountUrl", "tags": ["Платежи"], "summary": "Возвращает URL для учетной записи рекламной платформы Telegram, которую можно использовать для настройки рекламы для канала/бота в `peer`, оплачиваемой с помощью Telegram Stars, принадлежащей указанному `peer`, см. здесь » для получения дополнительной информации.", "description": "Возвращает URL для учетной записи рекламной платформы Telegram, которую можно использовать для настройки рекламы для канала/бота в `peer`, оплачиваемой с использованием Telegram Stars, принадлежащей указанному `peer`, дополнительную информацию см. [здесь »](https://core.telegram.org/api/stars.md#paying-for-ads).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsRevenueAdsAccountUrl", "x-tl-id": "3520589765", "x-tl-result": "payments.StarsRevenueAdsAccountUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarsRevenueAdsAccountUrl`.\n\n[payments.StarsRevenueAdsAccountUrl](https://core.telegram.org/type/payments.StarsRevenueAdsAccountUrl.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarsRevenueAdsAccountUrl", "oneOf": [{"$ref": "#/components/schemas/payments.starsRevenueAdsAccountUrl"}], "description": "Тип TL: payments.StarsRevenueAdsAccountUrl."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsRevenueAdsAccountUrl"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал или бот, владеющий звездами."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Канал или бот, владеющий звездами. |"}, "x-telegram-rpc-errors": ["CHAT_WRITE_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "3520589765"}}, "/catalog/payments.getStarsTransactionsByID": {"post": {"operationId": "payments.getStarsTransactionsByID", "tags": ["Платежи"], "summary": "Получайте информацию о транзакциях Telegram Star, используя определенные идентификаторы транзакций.", "description": "Получите информацию о [транзакциях Telegram Star »](https://core.telegram.org/api/stars.md#balance-and-transaction-history), используя определенные идентификаторы транзакций.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsTransactionsByID", "x-tl-id": "768218808", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarsStatus`.\n\n[payments.StarsStatus](https://core.telegram.org/type/payments.StarsStatus.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarsStatus", "oneOf": [{"$ref": "#/components/schemas/payments.starsStatus"}], "description": "Тип TL: payments.StarsStatus."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `TRANSACTION_ID_INVALID` — Указанный идентификатор транзакции недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsTransactionsByID"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, возвращает транзакции дохода от рекламы канала/бота в нанограммах."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал или бот."}, "id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputStarsTransaction", "oneOf": [{"$ref": "#/components/schemas/inputStarsTransaction"}], "description": "Тип TL: InputStarsTransaction."}, "x-tl-type": "Vector<InputStarsTransaction>", "description": "Идентификаторы транзакций."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `ton` | `true` | Нет | Если установлено, возвращает транзакции дохода от рекламы канала/бота в нанограммах. |\n| `peer` | `InputPeer` | Да | Канал или бот. |\n| `id` | `Vector<InputStarsTransaction>` | Да | Идентификаторы транзакций. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "TRANSACTION_ID_INVALID"], "x-browser-schema-id": "768218808"}}, "/catalog/payments.getStarsGiftOptions": {"post": {"operationId": "payments.getStarsGiftOptions", "tags": ["Платежи"], "summary": "Получите список вариантов подарков Telegram Stars » в качестве конструкторов starsGiftOption.", "description": "Получите список [вариантов подарков Telegram Stars »](https://core.telegram.org/api/stars.md#buying-or-gifting-stars) в качестве конструкторов [starsGiftOption](https://core.telegram.org/constructor/starsGiftOption.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "payments.getStarsGiftOptions", "x-tl-id": "3553192904", "x-tl-result": "Vector<StarsGiftOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<StarsGiftOption>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[StarsGiftOption](https://core.telegram.org/type/StarsGiftOption.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsGiftOption", "oneOf": [{"$ref": "#/components/schemas/starsGiftOption"}], "description": "Тип TL: StarsGiftOption."}, "x-tl-type": "Vector<StarsGiftOption>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `USER_GIFT_UNAVAILABLE` — Подарки недоступны в текущем регионе ([stars_gifts_enabled](https://core.telegram.org/api/config.md#stars-gifts-enabled) равно false).\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsGiftOptions"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Получатель подарка (по желанию).", "x-tl-flag": "flags.0?InputUser"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | Нет | Получатель подарка (по желанию). |"}, "x-telegram-rpc-errors": ["INPUT_USER_DEACTIVATED", "USER_GIFT_UNAVAILABLE", "USER_ID_INVALID"], "x-browser-schema-id": "3553192904"}}, "/catalog/payments.getStarsSubscriptions": {"post": {"operationId": "payments.getStarsSubscriptions", "tags": ["Платежи"], "summary": "Получить список активных, истекших или отмененных подписок Telegram Star».", "description": "Получите список активных, истекших или отмененных подписок [Telegram Star»](https://core.telegram.org/api/invites.md#paid-invite-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "payments.getStarsSubscriptions", "x-tl-id": "52761285", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarsStatus`.\n\n[payments.StarsStatus](https://core.telegram.org/type/payments.StarsStatus.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarsStatus", "oneOf": [{"$ref": "#/components/schemas/payments.starsStatus"}], "description": "Тип TL: payments.StarsStatus."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsSubscriptions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"missing_balance": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Возвращать ли только подписки, срок действия которых истек из-за чрезмерно низкого баланса Telegram Star."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Всегда передавайте [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц взято из [payments.starsStatus](https://core.telegram.org/constructor/payments.starsStatus.md).`subscriptions_next_offset`."}}, "additionalProperties": false, "required": ["peer", "offset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `missing_balance` | `true` | Нет | Возвращать ли только подписки, срок действия которых истек из-за чрезмерно низкого баланса Telegram Star. |\n| `peer` | `InputPeer` | Да | Всегда передавайте [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md). |\n| `offset` | `string` | Да | Смещение для нумерации страниц взято из [payments.starsStatus](https://core.telegram.org/constructor/payments.starsStatus.md).`subscriptions_next_offset`. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "52761285"}}, "/catalog/payments.changeStarsSubscription": {"post": {"operationId": "payments.changeStarsSubscription", "tags": ["Платежи"], "summary": "Активировать или деактивировать подписку Telegram Star».", "description": "Активируйте или деактивируйте [подписку Telegram Star»](https://core.telegram.org/api/invites.md#paid-invite-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "payments.changeStarsSubscription", "x-tl-id": "3346466936", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.changeStarsSubscription"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Всегда передавайте [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)."}, "subscription_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор подписки."}, "canceled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Отменить или повторно активировать подписку."}}, "additionalProperties": false, "required": ["peer", "subscription_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Всегда передавайте [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md). |\n| `subscription_id` | `string` | Да | Идентификатор подписки. |\n| `canceled` | `Bool` | Нет | Отменить или повторно активировать подписку. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3346466936"}}, "/catalog/payments.fulfillStarsSubscription": {"post": {"operationId": "payments.fulfillStarsSubscription", "tags": ["Платежи"], "summary": "Повторно присоединитесь к частному каналу, связанному с активной подпиской Telegram Star».", "description": "Повторно присоединитесь к частному каналу, связанному с активной [подпиской Telegram Star»](https://core.telegram.org/api/invites.md#paid-invite-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "payments.fulfillStarsSubscription", "x-tl-id": "3428576179", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.fulfillStarsSubscription"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Всегда передавайте [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)."}, "subscription_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор подписки."}}, "additionalProperties": false, "required": ["peer", "subscription_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Всегда передавайте [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md). |\n| `subscription_id` | `string` | Да | Идентификатор подписки. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3428576179"}}, "/catalog/payments.getStarsGiveawayOptions": {"post": {"operationId": "payments.getStarsGiveawayOptions", "tags": ["Платежи"], "summary": "Получите список вариантов раздачи звезд».", "description": "Получите список [вариантов раздачи звезд»](https://core.telegram.org/api/giveaways.md#star-giveaways).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.getStarsGiveawayOptions", "x-tl-id": "3172924734", "x-tl-result": "Vector<StarsGiveawayOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<StarsGiveawayOption>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[StarsGiveawayOption](https://core.telegram.org/type/StarsGiveawayOption.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsGiveawayOption", "oneOf": [{"$ref": "#/components/schemas/starsGiveawayOption"}], "description": "Тип TL: StarsGiveawayOption."}, "x-tl-type": "Vector<StarsGiveawayOption>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarsGiveawayOptions"}, "x-browser-schema-id": "3172924734"}}, "/catalog/payments.getStarGifts": {"post": {"operationId": "payments.getStarGifts", "tags": ["Платежи"], "summary": "Получить список доступных подарков можно здесь » для получения дополнительной информации.", "description": "Получите список доступных [подарков, см. здесь »](https://core.telegram.org/api/gifts.md) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGifts", "x-tl-id": "3293984144", "x-tl-result": "payments.StarGifts", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGifts`.\n\n[payments.StarGifts](https://core.telegram.org/type/payments.StarGifts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGifts", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftsNotModified"}, {"$ref": "#/components/schemas/payments.starGifts"}], "description": "Тип TL: payments.StarGifts."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGifts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). Хэш можно сгенерировать локально, используя `id`s возвращенной или сохраненной наклейки [starGift](https://core.telegram.org/constructor/starGift.md)s."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `int` | Да | [Хеш, используемый для кэширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). Хэш можно сгенерировать локально, используя `id`s возвращенной или сохраненной наклейки [starGift](https://core.telegram.org/constructor/starGift.md)s. |"}, "x-browser-schema-id": "3293984144"}}, "/catalog/payments.saveStarGift": {"post": {"operationId": "payments.saveStarGift", "tags": ["Платежи"], "summary": "Отображение или удаление полученного или размещенного подарка » из нашего профиля.", "description": "Отобразите или удалите [полученный или размещенный подарок »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) из нашего профиля.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.saveStarGift", "x-tl-id": "707422588", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `SAVED_ID_EMPTY` — Пройденное inputSavedStarGiftChat.saved_id пусто.\n- 400 · `STARGIFT_OBJECT_INVALID` — Указанный объект звездного подарка недействителен.\n- 400 · `STARGIFT_OWNER_INVALID` — Нельзя передать или продать подарок, принадлежащий другому пользователю.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.saveStarGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"unsave": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, скрывает подарок из нашего профиля."}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Подарок для отображения или удаления. [Размещенный коллекционный подарок »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) может быть использован его хозяином или владельцем."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `unsave` | `true` | Нет | Если установлено, скрывает подарок из нашего профиля. |\n| `stargift` | `InputSavedStarGift` | Да | Подарок для отображения или удаления. [Размещенный коллекционный подарок »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) может быть использован его хозяином или владельцем. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "SAVED_ID_EMPTY", "STARGIFT_OBJECT_INVALID", "STARGIFT_OWNER_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "707422588"}}, "/catalog/payments.convertStarGift": {"post": {"operationId": "payments.convertStarGift", "tags": ["Платежи"], "summary": "Конвертировать полученный подарок » в Telegram Stars: это навсегда уничтожит подарок, превратив его в starGift.`convert_stars` Telegram Stars, добавляемые на баланс пользователя.", "description": "Конвертируйте [полученный подарок»](https://core.telegram.org/api/gifts.md) в Telegram Stars: это навсегда уничтожит подарок, преобразуя его в [starGift](https://core.telegram.org/constructor/starGift.md).`convert_stars` [Telegram Stars](https://core.telegram.org/api/stars.md), добавленный на баланс пользователя.\n\nОбратите внимание, что [starGift](https://core.telegram.org/constructor/starGift.md).`convert_stars` будет меньше, чем цена покупки ([starGift](https://core.telegram.org/constructor/starGift.md).`stars`) подарка, если он изначально был куплен с помощью Telegram Stars, купленного давно.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.convertStarGift", "x-tl-id": "1958676331", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `SAVED_ID_EMPTY` — Пройденное inputSavedStarGiftChat.saved_id пусто.\n- 400 · `STARGIFT_PEER_INVALID` — Указанное inputSavedStarGiftChat.peer неверно.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.convertStarGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Подарок для преобразования."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | Да | Подарок для преобразования. |"}, "x-telegram-rpc-errors": ["BUSINESS_CONNECTION_INVALID", "MESSAGE_ID_INVALID", "SAVED_ID_EMPTY", "STARGIFT_PEER_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "1958676331"}}, "/catalog/payments.botCancelStarsSubscription": {"post": {"operationId": "payments.botCancelStarsSubscription", "tags": ["Платежи"], "summary": "Отменить подписку на бота", "description": "Отменить [подписку на бота](https://core.telegram.org/api/subscriptions.md#bot-subscriptions)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)", "x-tl-method": "payments.botCancelStarsSubscription", "x-tl-id": "1845102114", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHARGE_ID_INVALID` — Указанное charge_id неверно.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.botCancelStarsSubscription"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"restore": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если **не** установлено, отключает автоматическое продление подписок и не позволяет пользователю повторно активировать подписку по истечении текущего периода: подписка, отмененная ботом, будет иметь установлен флаг [starsSubscription](https://core.telegram.org/constructor/starsSubscription.md).`bot_canceled`.   Бот может частично отменить эту операцию, установив этот флаг: это позволит пользователю повторно активировать подписку."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Идентификатор пользователя, подписка которого должна быть (не)отменена"}, "charge_id": {"type": "string", "x-tl-type": "string", "description": "`provider_charge_id` из служебного сообщения [messageActionPaymentSentMe](https://core.telegram.org/constructor/messageActionPaymentSentMe.md), отправленного боту для первого платежа по подписке."}}, "additionalProperties": false, "required": ["user_id", "charge_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `restore` | `true` | Нет | Если **не** установлено, отключает автоматическое продление подписок и не позволяет пользователю повторно активировать подписку по истечении текущего периода: подписка, отмененная ботом, будет иметь установлен флаг [starsSubscription](https://core.telegram.org/constructor/starsSubscription.md).`bot_canceled`.   Бот может частично отменить эту операцию, установив этот флаг: это позволит пользователю повторно активировать подписку. |\n| `user_id` | `InputUser` | Да | Идентификатор пользователя, подписка которого должна быть (не)отменена |\n| `charge_id` | `string` | Да | `provider_charge_id` из служебного сообщения [messageActionPaymentSentMe](https://core.telegram.org/constructor/messageActionPaymentSentMe.md), отправленного боту для первого платежа по подписке. |"}, "x-telegram-rpc-errors": ["CHARGE_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "1845102114"}}, "/catalog/payments.getConnectedStarRefBots": {"post": {"operationId": "payments.getConnectedStarRefBots", "tags": ["Платежи"], "summary": "Получить все связи, которые мы создали для определенного узла.", "description": "Получить все связи, которые мы создали для определенного узла.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "payments.getConnectedStarRefBots", "x-tl-id": "1483318611", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.ConnectedStarRefBots`.\n\n[payments.ConnectedStarRefBots](https://core.telegram.org/type/payments.ConnectedStarRefBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ConnectedStarRefBots", "oneOf": [{"$ref": "#/components/schemas/payments.connectedStarRefBots"}], "description": "Тип TL: payments.ConnectedStarRefBots."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getConnectedStarRefBots"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Аффилированный партнер"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "Если установлено, возвращает только результаты старше указанного unixtime."}, "offset_link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md), взятое из последнего возвращенного [connectedBotStarRef](https://core.telegram.org/constructor/connectedBotStarRef.md).`url` (изначально пусто)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Аффилированный партнер |\n| `offset_date` | `int` | Нет | Если установлено, возвращает только результаты старше указанного unixtime. |\n| `offset_link` | `string` | Нет | Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md), взятое из последнего возвращенного [connectedBotStarRef](https://core.telegram.org/constructor/connectedBotStarRef.md).`url` (изначально пусто) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "1483318611"}}, "/catalog/payments.getConnectedStarRefBot": {"post": {"operationId": "payments.getConnectedStarRefBot", "tags": ["Платежи"], "summary": "Получить информацию о конкретной принадлежности бота »", "description": "Получить информацию о конкретной [принадлежности бота »](https://core.telegram.org/api/bots/referrals.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.getConnectedStarRefBot", "x-tl-id": "3084490992", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.ConnectedStarRefBots`.\n\n[payments.ConnectedStarRefBots](https://core.telegram.org/type/payments.ConnectedStarRefBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ConnectedStarRefBots", "oneOf": [{"$ref": "#/components/schemas/payments.connectedStarRefBots"}], "description": "Тип TL: payments.ConnectedStarRefBots."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getConnectedStarRefBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Аффилированный партнер"}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, предлагающий партнерскую программу"}}, "additionalProperties": false, "required": ["peer", "bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Аффилированный партнер |\n| `bot` | `InputUser` | Да | Бот, предлагающий партнерскую программу |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3084490992"}}, "/catalog/payments.getSuggestedStarRefBots": {"post": {"operationId": "payments.getSuggestedStarRefBots", "tags": ["Платежи"], "summary": "Получите список предлагаемых мини-приложений с доступными партнерскими программами.", "description": "Получите список предлагаемых [мини-приложений](https://core.telegram.org/api/bots/webapps.md) с доступными [партнерскими программами](https://core.telegram.org/api/bots/referrals.md)]\n\n`order_by_revenue` и `order_by_date` являются взаимоисключающими: если ни один из них не установлен, результаты сортируются по прибыльности.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.getSuggestedStarRefBots", "x-tl-id": "225134839", "x-tl-result": "payments.SuggestedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.SuggestedStarRefBots`.\n\n[payments.SuggestedStarRefBots](https://core.telegram.org/type/payments.SuggestedStarRefBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.SuggestedStarRefBots", "oneOf": [{"$ref": "#/components/schemas/payments.suggestedStarRefBots"}], "description": "Тип TL: payments.SuggestedStarRefBots."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getSuggestedStarRefBots"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"order_by_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, заказы будут зависеть от ожидаемого дохода."}, "order_by_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлено, заказы отображаются по дате создания партнерской программы."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, который станет партнером: звездные комиссии будут переведены на звездный баланс этого партнера."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц, взятое из [payments.suggestedStarRefBots](https://core.telegram.org/constructor/payments.suggestedStarRefBots.md).`next_offset`, изначально пустое."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `order_by_revenue` | `true` | Нет | Если установлено, заказы будут зависеть от ожидаемого дохода. |\n| `order_by_date` | `true` | Нет | Если установлено, заказы отображаются по дате создания партнерской программы. |\n| `peer` | `InputPeer` | Да | Пир, который станет партнером: звездные комиссии будут переведены на звездный баланс этого партнера. |\n| `offset` | `string` | Да | Смещение для нумерации страниц, взятое из [payments.suggestedStarRefBots](https://core.telegram.org/constructor/payments.suggestedStarRefBots.md).`next_offset`, изначально пустое. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "225134839"}}, "/catalog/payments.connectStarRefBot": {"post": {"operationId": "payments.connectStarRefBot", "tags": ["Платежи"], "summary": "Присоединяйтесь к партнерской программе бота и становитесь партнером »", "description": "Присоединяйтесь к [партнерской программе бота, становитесь партнером »](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.connectStarRefBot", "x-tl-id": "2127901834", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.ConnectedStarRefBots`.\n\n[payments.ConnectedStarRefBots](https://core.telegram.org/type/payments.ConnectedStarRefBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ConnectedStarRefBots", "oneOf": [{"$ref": "#/components/schemas/payments.connectedStarRefBots"}], "description": "Тип TL: payments.ConnectedStarRefBots."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.connectStarRefBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, который станет партнером: звездные комиссии будут переведены на звездный баланс этого партнера."}, "bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Бот, предлагающий партнерскую программу"}}, "additionalProperties": false, "required": ["peer", "bot"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир, который станет партнером: звездные комиссии будут переведены на звездный баланс этого партнера. |\n| `bot` | `InputUser` | Да | Бот, предлагающий партнерскую программу |"}, "x-browser-schema-id": "2127901834"}}, "/catalog/payments.editConnectedStarRefBot": {"post": {"operationId": "payments.editConnectedStarRefBot", "tags": ["Платежи"], "summary": "Выйти из партнёрской программы бота »", "description": "Выйти из [партнерской программы» бота »](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.editConnectedStarRefBot", "x-tl-id": "3841762467", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.ConnectedStarRefBots`.\n\n[payments.ConnectedStarRefBots](https://core.telegram.org/type/payments.ConnectedStarRefBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ConnectedStarRefBots", "oneOf": [{"$ref": "#/components/schemas/payments.connectedStarRefBots"}], "description": "Тип TL: payments.ConnectedStarRefBots."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARREF_HASH_REVOKED` — Указанная партнерская ссылка уже отозвана."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.editConnectedStarRefBot"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, выходит из партнерской программы бота."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер, который был аффилирован"}, "link": {"type": "string", "x-tl-type": "string", "description": "Партнерская ссылка, которую нужно отозвать"}}, "additionalProperties": false, "required": ["peer", "link"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `revoked` | `true` | Нет | Если установлено, выходит из партнерской программы бота. |\n| `peer` | `InputPeer` | Да | Партнер, который был аффилирован |\n| `link` | `string` | Да | Партнерская ссылка, которую нужно отозвать |"}, "x-telegram-rpc-errors": ["STARREF_HASH_REVOKED"], "x-browser-schema-id": "3841762467"}}, "/catalog/payments.getStarGiftUpgradePreview": {"post": {"operationId": "payments.getStarGiftUpgradePreview", "tags": ["Платежи"], "summary": "Получите предварительный просмотр возможных атрибутов (выбранных случайно), которые подарок » может получить после улучшения его до коллекционного подарка », см. здесь » для получения дополнительной информации.", "description": "Получите предварительный просмотр возможных атрибутов (выбранных случайно), которые [подарок »](https://core.telegram.org/api/gifts.md) может получить после улучшения его до [коллекционного подарка »](https://core.telegram.org/api/gifts.md#collectible-gifts), см. [здесь »](https://core.telegram.org/api/gifts.md#collectible-gifts) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftUpgradePreview", "x-tl-id": "2627386545", "x-tl-result": "payments.StarGiftUpgradePreview", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftUpgradePreview`.\n\n[payments.StarGiftUpgradePreview](https://core.telegram.org/type/payments.StarGiftUpgradePreview.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftUpgradePreview", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftUpgradePreview"}], "description": "Тип TL: payments.StarGiftUpgradePreview."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен.\n- 400 · `STARGIFT_UPGRADE_UNAVAILABLE` — Полученный подарок можно улучшить до коллекционного подарка только в том случае, если установлен флаг [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`can_upgrade`."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGiftUpgradePreview"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Подарок для обновления.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | Да | Подарок для обновления. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID", "STARGIFT_UPGRADE_UNAVAILABLE"], "x-browser-schema-id": "2627386545"}}, "/catalog/payments.upgradeStarGift": {"post": {"operationId": "payments.upgradeStarGift", "tags": ["Платежи"], "summary": "Улучшить подарок до коллекционного подарка: можно использовать только в том случае, если обновление уже было оплачено отправителем подарка; см. здесь » для получения дополнительной информации о полном потоке (включая другой поток, который можно использовать в случае, если отправитель подарка не оплатил обновление).", "description": "Обновите [подарок](https://core.telegram.org/api/gifts.md) до [коллекционного подарка](https://core.telegram.org/api/gifts.md#collectible-gifts)]: можно использовать только в том случае, если обновление уже было оплачено отправителем подарка; см. [здесь »](https://core.telegram.org/api/gifts.md#upgrade-a-gift-to-a-collectible-gift) дополнительную информацию о полном потоке (включая другой поток, который можно использовать в случае, если отправитель подарка не оплатил обновление).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.upgradeStarGift", "x-tl-id": "2933318901", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PAYMENT_REQUIRED` — Для этого действия требуется оплата, дополнительную информацию см. [здесь »](https://core.telegram.org/api/gifts.md).\n- 400 · `SAVED_ID_EMPTY` — Пройденное inputSavedStarGiftChat.saved_id пусто.\n- 400 · `STARGIFT_ALREADY_CONVERTED` — Указанный звездный подарок уже конвертирован в Звезды.\n- 400 · `STARGIFT_ALREADY_UPGRADED` — Указанный подарок уже повышен до коллекционного подарка.\n- 400 · `STARGIFT_UPGRADE_UNAVAILABLE` — Полученный подарок можно улучшить до коллекционного подарка только в том случае, если установлен флаг [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`can_upgrade`."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.upgradeStarGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"keep_original_details": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Установите этот флаг, чтобы сохранить исходный текст подарка, отправителя и получателя в обновленном подарке в качестве атрибута [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md)."}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Подарок для обновления"}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `keep_original_details` | `true` | Нет | Установите этот флаг, чтобы сохранить исходный текст подарка, отправителя и получателя в обновленном подарке в качестве атрибута [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md). |\n| `stargift` | `InputSavedStarGift` | Да | Подарок для обновления |"}, "x-telegram-rpc-errors": ["BUSINESS_CONNECTION_INVALID", "MESSAGE_ID_INVALID", "PAYMENT_REQUIRED", "SAVED_ID_EMPTY", "STARGIFT_ALREADY_CONVERTED", "STARGIFT_ALREADY_UPGRADED", "STARGIFT_UPGRADE_UNAVAILABLE"], "x-browser-schema-id": "2933318901"}}, "/catalog/payments.transferStarGift": {"post": {"operationId": "payments.transferStarGift", "tags": ["Платежи"], "summary": "Передача коллекционного подарка другому пользователю или каналу: можно использовать только в том случае, если передача бесплатна (i.e. messageActionStarGiftUnique.`transfer_stars` не установлено); см. здесь » для получения дополнительной информации о полном потоке (включая другой поток, который можно использовать в случае, если передача не бесплатна).", "description": "Передача [коллекционного подарка](https://core.telegram.org/api/gifts.md#collectible-gifts) другому пользователю или каналу: можно использовать только в том случае, если передача бесплатна (i.e. [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md).`transfer_stars` не установлено); см. [здесь »](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts) дополнительную информацию о полном потоке (включая другой поток, который можно использовать в случае, если передача не бесплатна).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.transferStarGift", "x-tl-id": "2132285290", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PAYMENT_REQUIRED` — Для этого действия требуется оплата, дополнительную информацию см. [здесь »](https://core.telegram.org/api/gifts.md).\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SAVED_ID_EMPTY` — Пройденное inputSavedStarGiftChat.saved_id пусто.\n- 400 · `STARGIFT_NOT_FOUND` — Указанный подарок не найден.\n- 400 · `STARGIFT_NOT_OWNER` — Вы не являетесь владельцем подарка, который пытаетесь передать.\n- 400 · `STARGIFT_NOT_UNIQUE` — Неколлекционный подарок передать нельзя.\n- 400 · `STARGIFT_OWNER_INVALID` — Нельзя передать или продать подарок, принадлежащий другому пользователю.\n- 400 · `STARGIFT_PEER_INVALID` — Указанное inputSavedStarGiftChat.peer неверно.\n- 400 · `STARGIFT_TRANSFER_TOO_EARLY_%d` — Вы пока не можете передать этот подарок, подождите %d секунд."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.transferStarGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Подарок для передачи."}, "to_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел назначения."}}, "additionalProperties": false, "required": ["stargift", "to_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | Да | Подарок для передачи. |\n| `to_id` | `InputPeer` | Да | Узел назначения. |"}, "x-telegram-rpc-errors": ["BUSINESS_CONNECTION_INVALID", "MESSAGE_ID_INVALID", "PAYMENT_REQUIRED", "PEER_ID_INVALID", "SAVED_ID_EMPTY", "STARGIFT_NOT_FOUND", "STARGIFT_NOT_OWNER", "STARGIFT_NOT_UNIQUE", "STARGIFT_OWNER_INVALID", "STARGIFT_PEER_INVALID", "STARGIFT_TRANSFER_TOO_EARLY_%d"], "x-browser-schema-id": "2132285290"}}, "/catalog/payments.getUniqueStarGift": {"post": {"operationId": "payments.getUniqueStarGift", "tags": ["Платежи"], "summary": "Получите информацию о коллекционном подарке » с помощью слизняка, полученного по ссылке на коллекционный подарок ».", "description": "Получите информацию о [коллекционном подарке»](https://core.telegram.org/api/gifts.md#collectible-gifts), используя слизень, полученный по [ссылка на коллекционный подарок»](https://core.telegram.org/api/links.md#collectible-gift-link).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "payments.getUniqueStarGift", "x-tl-id": "2711047538", "x-tl-result": "payments.UniqueStarGift", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.UniqueStarGift`.\n\n[payments.UniqueStarGift](https://core.telegram.org/type/payments.UniqueStarGift.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.UniqueStarGift", "oneOf": [{"$ref": "#/components/schemas/payments.uniqueStarGift"}], "description": "Тип TL: payments.UniqueStarGift."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_SLUG_INVALID` — Указанный подарочный сертификат недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getUniqueStarGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Слизняк."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Слизняк. |"}, "x-telegram-rpc-errors": ["STARGIFT_SLUG_INVALID"], "x-browser-schema-id": "2711047538"}}, "/catalog/payments.getSavedStarGifts": {"post": {"operationId": "payments.getSavedStarGifts", "tags": ["Платежи"], "summary": "Получите полный список подарков, принадлежащих, полученных или размещенных коллегами.", "description": "Получите полный список [подарков »](https://core.telegram.org/api/gifts.md#list-all-received-gifts), принадлежащих, полученных или [размещенных »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) одним из участников.\n\nОбратите внимание: в отличие от того, что следует из названия, этот метод можно использовать для получения в профиль как «сохраненных», так и «несохраненных» подарков (то есть как закрепленных, так и не закрепленных подарков) в зависимости от переданных флагов.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.getSavedStarGifts", "x-tl-id": "2736383337", "x-tl-result": "payments.SavedStarGifts", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.SavedStarGifts`.\n\n[payments.SavedStarGifts](https://core.telegram.org/type/payments.SavedStarGifts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.SavedStarGifts", "oneOf": [{"$ref": "#/components/schemas/payments.savedStarGifts"}], "description": "Тип TL: payments.SavedStarGifts."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `COLLECTION_ID_INVALID` — Указанный идентификатор коллекции недействителен.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getSavedStarGifts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"exclude_unsaved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Исключите подарки, не закрепленные в профиле."}, "exclude_saved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Исключить подарки, закрепленные в профиле."}, "exclude_unlimited": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Исключите подарки, у которых не установлен флаг [starGift](https://core.telegram.org/constructor/starGift.md).`limited`."}, "exclude_unique": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Исключить [коллекционные подарки »](https://core.telegram.org/api/gifts.md#collectible-gifts)."}, "sort_by_value": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Если установлено, подарки сортируются по цене, а не по дате получения."}, "exclude_upgradable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Исключите подарки, которые можно [обновить до коллекционных подарков»](https://core.telegram.org/api/gifts.md#collectible-gifts)."}, "exclude_unupgradable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "Исключите подарки, которые нельзя [обновить до коллекционных подарков»](https://core.telegram.org/api/gifts.md#collectible-gifts)."}, "peer_color_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true", "description": "Если установлено, возвращаются только [коллекционные подарки](https://core.telegram.org/api/gifts.md#collectible-gifts), палитру которых можно использовать в качестве [коллекционной палитры сообщений»](https://core.telegram.org/api/colors.md#collectible-message-palettes)."}, "exclude_hosted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true", "description": "Если установлено, исключается [размещенные коллекционные подарки »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), возвращаются только подарки, принадлежащие или полученные `peer`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Извлекайте только подарки, принадлежащие, полученные или [размещенные »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) указанным узлом, например: пользователь с помощью Peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md); канал с Peer=[inputPeerChannel](https://core.telegram.org/constructor/inputPeerChannel.md); [подключенный бизнес-пользователь»](https://core.telegram.org/api/bots/connected-business-bots.md) (при выполнении метода в качестве бота через бизнес-соединение) с одноранговым соединением=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md)."}, "collection_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int", "description": "Возвращает подарки только в пределах указанной [коллекции»](https://core.telegram.org/api/gifts.md#gift-collections)."}, "offset": {"type": "string", "x-tl-type": "string", "description": "[Смещение для нумерации страниц](https://core.telegram.org/api/offsets.md)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `exclude_unsaved` | `true` | Нет | Исключите подарки, не закрепленные в профиле. |\n| `exclude_saved` | `true` | Нет | Исключить подарки, закрепленные в профиле. |\n| `exclude_unlimited` | `true` | Нет | Исключите подарки, у которых не установлен флаг [starGift](https://core.telegram.org/constructor/starGift.md).`limited`. |\n| `exclude_unique` | `true` | Нет | Исключить [коллекционные подарки »](https://core.telegram.org/api/gifts.md#collectible-gifts). |\n| `sort_by_value` | `true` | Нет | Если установлено, подарки сортируются по цене, а не по дате получения. |\n| `exclude_upgradable` | `true` | Нет | Исключите подарки, которые можно [обновить до коллекционных подарков»](https://core.telegram.org/api/gifts.md#collectible-gifts). |\n| `exclude_unupgradable` | `true` | Нет | Исключите подарки, которые нельзя [обновить до коллекционных подарков»](https://core.telegram.org/api/gifts.md#collectible-gifts). |\n| `peer_color_available` | `true` | Нет | Если установлено, возвращаются только [коллекционные подарки](https://core.telegram.org/api/gifts.md#collectible-gifts), палитру которых можно использовать в качестве [коллекционной палитры сообщений»](https://core.telegram.org/api/colors.md#collectible-message-palettes). |\n| `exclude_hosted` | `true` | Нет | Если установлено, исключается [размещенные коллекционные подарки »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), возвращаются только подарки, принадлежащие или полученные `peer`. |\n| `peer` | `InputPeer` | Да | Извлекайте только подарки, принадлежащие, полученные или [размещенные »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) указанным узлом, например: пользователь с помощью Peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md); канал с Peer=[inputPeerChannel](https://core.telegram.org/constructor/inputPeerChannel.md); [подключенный бизнес-пользователь»](https://core.telegram.org/api/bots/connected-business-bots.md) (при выполнении метода в качестве бота через бизнес-соединение) с одноранговым соединением=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md). |\n| `collection_id` | `int` | Нет | Возвращает подарки только в пределах указанной [коллекции»](https://core.telegram.org/api/gifts.md#gift-collections). |\n| `offset` | `string` | Да | [Смещение для нумерации страниц](https://core.telegram.org/api/offsets.md). |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["BUSINESS_CONNECTION_INVALID", "COLLECTION_ID_INVALID", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "2736383337"}}, "/catalog/payments.getSavedStarGift": {"post": {"operationId": "payments.getSavedStarGift", "tags": ["Платежи"], "summary": "Получите информацию о конкретных подарках, принадлежащих партнеру, которого мы контролируем.", "description": "Получите информацию о конкретных [подарках](https://core.telegram.org/api/gifts.md), принадлежащих партнеру, который мы контролируем.\n\nОбратите внимание: в отличие от того, что следует из названия, этот метод можно использовать для получения как «сохраненных», так и «несохраненных» подарков (то есть подарков, закрепленных и не закрепленных в профиле).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getSavedStarGift", "x-tl-id": "3025510662", "x-tl-result": "payments.SavedStarGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.SavedStarGifts`.\n\n[payments.SavedStarGifts](https://core.telegram.org/type/payments.SavedStarGifts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.SavedStarGifts", "oneOf": [{"$ref": "#/components/schemas/payments.savedStarGifts"}], "description": "Тип TL: payments.SavedStarGifts."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SAVED_ID_EMPTY` — Пройденное inputSavedStarGiftChat.saved_id пусто.\n- 400 · `STARGIFT_OWNER_INVALID` — Нельзя передать или продать подарок, принадлежащий другому пользователю.\n- 400 · `STARGIFT_SLUG_INVALID` — Указанный подарочный сертификат недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getSavedStarGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stargift": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "Список подарков, о которых можно получить информацию."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stargift` | `Vector<InputSavedStarGift>` | Да | Список подарков, о которых можно получить информацию. |"}, "x-telegram-rpc-errors": ["SAVED_ID_EMPTY", "STARGIFT_OWNER_INVALID", "STARGIFT_SLUG_INVALID"], "x-browser-schema-id": "3025510662"}}, "/catalog/payments.getStarGiftWithdrawalUrl": {"post": {"operationId": "payments.getStarGiftWithdrawalUrl", "tags": ["Платежи"], "summary": "Превратите коллекционный подарок » в NFT на блокчейне TON.", "description": "Преобразуйте [коллекционный подарок»](https://core.telegram.org/api/gifts.md) в NFT в блокчейне TON.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftWithdrawalUrl", "x-tl-id": "3368714619", "x-tl-result": "payments.StarGiftWithdrawalUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftWithdrawalUrl`.\n\n[payments.StarGiftWithdrawalUrl](https://core.telegram.org/type/payments.StarGiftWithdrawalUrl.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftWithdrawalUrl", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftWithdrawalUrl"}], "description": "Тип TL: payments.StarGiftWithdrawalUrl."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — Указанный хеш пароля недействителен.\n- 400 · `PASSWORD_TOO_FRESH_%d` — Пароль был изменен менее 24 часов назад, повторите попытку через %d секунд.\n- 400 · `SESSION_TOO_FRESH_%d` — Этот сеанс был создан менее 24 часов назад, повторите попытку через %d секунд."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGiftWithdrawalUrl"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Коллекционный подарок на экспорт."}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["stargift", "tmp_password"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | Да | Коллекционный подарок на экспорт. |\n| `tmp_password` | `bytes` | Да | Значение типа TL `bytes`. |"}, "x-telegram-rpc-errors": ["PASSWORD_HASH_INVALID", "PASSWORD_TOO_FRESH_%d", "SESSION_TOO_FRESH_%d"], "x-browser-schema-id": "3368714619"}}, "/catalog/payments.toggleChatStarGiftNotifications": {"post": {"operationId": "payments.toggleChatStarGiftNotifications", "tags": ["Платежи"], "summary": "Включает или отключает получение уведомлений каждый раз, когда подарок » получен указанным каналом, может быть вызван только администраторами с правами администратора `post_messages`.", "description": "Включает или отключает получение уведомлений каждый раз, когда указанный канал получает [подарок »](https://core.telegram.org/api/gifts.md), может быть вызван только администраторами с `post_messages` [правами администратора](https://core.telegram.org/constructor/chatAdminRights.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.toggleChatStarGiftNotifications", "x-tl-id": "1626009505", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.toggleChatStarGiftNotifications"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить или отключить получение уведомлений в виде служебных сообщений [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md) и [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)] из канала."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал, для которого получать или не получать уведомления."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `enabled` | `true` | Нет | Включить или отключить получение уведомлений в виде служебных сообщений [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md) и [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)] из канала. |\n| `peer` | `InputPeer` | Да | Канал, для которого получать или не получать уведомления. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1626009505"}}, "/catalog/payments.toggleStarGiftsPinnedToTop": {"post": {"operationId": "payments.toggleStarGiftsPinnedToTop", "tags": ["Платежи"], "summary": "Закрепите полученный подарок поверх профиля пользователя или принадлежащих ему каналов с помощью payments.toggleStarGiftsPinnedToTop.", "description": "Закрепите полученный подарок поверх профиля пользователя или принадлежащих ему каналов с помощью [payments.toggleStarGiftsPinnedToTop](https://core.telegram.org/method/payments.toggleStarGiftsPinnedToTop.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.toggleStarGiftsPinnedToTop", "x-tl-id": "353626032", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.toggleStarGiftsPinnedToTop"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Сверстник, куда прикрепить подарок."}, "stargift": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "Подарок, который можно прикрепить."}}, "additionalProperties": false, "required": ["peer", "stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Сверстник, куда прикрепить подарок. |\n| `stargift` | `Vector<InputSavedStarGift>` | Да | Подарок, который можно прикрепить. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "353626032"}}, "/catalog/payments.canPurchaseStore": {"post": {"operationId": "payments.canPurchaseStore", "tags": ["Платежи"], "summary": "Проверяет, возможна ли покупка. Необходимо позвонить перед покупкой в ​​магазине, только официальные приложения.", "description": "Проверяет, возможна ли покупка. Необходимо позвонить перед покупкой в ​​магазине, только официальные приложения.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "payments.canPurchaseStore", "x-tl-id": "1339842215", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INPUT_PURPOSE_INVALID` — Указанное назначение платежа неверно.\n- 406 · `PREMIUM_CURRENTLY_UNAVAILABLE` — В настоящее время вы не можете приобрести Премиум-подписку."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.canPurchaseStore"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "oneOf": [{"$ref": "#/components/schemas/inputStorePaymentPremiumSubscription"}, {"$ref": "#/components/schemas/inputStorePaymentGiftPremium"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiftCode"}, {"$ref": "#/components/schemas/inputStorePaymentPremiumGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentStarsTopup"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGift"}, {"$ref": "#/components/schemas/inputStorePaymentStarsGiveaway"}, {"$ref": "#/components/schemas/inputStorePaymentAuthCode"}], "description": "Назначение платежа."}}, "additionalProperties": false, "required": ["purpose"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `purpose` | `InputStorePaymentPurpose` | Да | Назначение платежа. |"}, "x-telegram-rpc-errors": ["INPUT_PURPOSE_INVALID", "PREMIUM_CURRENTLY_UNAVAILABLE"], "x-browser-schema-id": "1339842215"}}, "/catalog/payments.getResaleStarGifts": {"post": {"operationId": "payments.getResaleStarGifts", "tags": ["Платежи"], "summary": "Приобретите коллекционные подарки определенного типа, которые в настоящее время продаются, см. здесь » для получения дополнительной информации.", "description": "Приобретите [коллекционные подарки](https://core.telegram.org/api/gifts.md#collectible-gifts) определенного типа, которые в настоящее время продаются, см. [здесь »](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) дополнительную информацию.\n\n`sort_by_price` и `sort_by_num` являются взаимоисключающими, если ни один из них не установлен, результаты сортируются по unixtime (по убыванию), когда их цена перепродажи в последний раз менялась.\n\nСм. [здесь »](https://core.telegram.org/api/gifts.md#sending-gifts) подробную документацию по этому методу.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "payments.getResaleStarGifts", "x-tl-id": "2053087798", "x-tl-result": "payments.ResaleStarGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.ResaleStarGifts`.\n\n[payments.ResaleStarGifts](https://core.telegram.org/type/payments.ResaleStarGifts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ResaleStarGifts", "oneOf": [{"$ref": "#/components/schemas/payments.resaleStarGifts"}], "description": "Тип TL: payments.ResaleStarGifts."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_ATTRIBUTE_INVALID` — Один из указанных атрибутов звездного подарка недействителен.\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getResaleStarGifts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"sort_by_price": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Сортировка подарков по цене (по возрастанию)."}, "sort_by_num": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Сортировка подарков по номеру (по возрастанию)."}, "for_craft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Возвращайте только коллекционные подарки, которые можно купить и использовать для [создания »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts); Сделайте каждый возвращенный подарок [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`craft_chance_permille`] вкладом в успех создания."}, "stars_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Возвращайте только те подарки, которые можно купить с помощью [Stars](https://core.telegram.org/api/stars.md)."}, "ton_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Значение типа TL `true`."}, "fragment_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Значение типа TL `true`."}, "attributes_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Если был выполнен предыдущий вызов метода и было установлено [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash`, передайте его сюда, чтобы избежать возврата каких-либо результатов, если они не изменились.  В противном случае установите этот флаг и передайте `0`, чтобы вернуть [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` и [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes`, **эти два поля не будут установлены**, если этот флаг не установлен.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Обязательный идентификатор базового подарка, из которого был улучшен коллекционный подарок.", "x-tl-type": "long"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttributeId", "oneOf": [{"$ref": "#/components/schemas/starGiftAttributeIdModel"}, {"$ref": "#/components/schemas/starGiftAttributeIdPattern"}, {"$ref": "#/components/schemas/starGiftAttributeIdBackdrop"}], "description": "Тип TL: StarGiftAttributeId."}, "x-tl-type": "Vector<StarGiftAttributeId>", "x-tl-flag": "flags.3?Vector<StarGiftAttributeId>", "description": "При желании отфильтруйте подарки по указанным атрибутам. Если атрибуты определенного типа не указаны, разрешены все атрибуты этого типа."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц. Если не равна пустой строке, [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`counters` не будет установлено, чтобы избежать возврата счетчиков каждый раз при выборке новой страницы."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["gift_id", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sort_by_price` | `true` | Нет | Сортировка подарков по цене (по возрастанию). |\n| `sort_by_num` | `true` | Нет | Сортировка подарков по номеру (по возрастанию). |\n| `for_craft` | `true` | Нет | Возвращайте только коллекционные подарки, которые можно купить и использовать для [создания »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts); Сделайте каждый возвращенный подарок [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`craft_chance_permille`] вкладом в успех создания. |\n| `stars_only` | `true` | Нет | Возвращайте только те подарки, которые можно купить с помощью [Stars](https://core.telegram.org/api/stars.md). |\n| `ton_only` | `true` | Нет | Значение типа TL `true`. |\n| `fragment_only` | `true` | Нет | Значение типа TL `true`. |\n| `attributes_hash` | `long` | Нет | Если был выполнен предыдущий вызов метода и было установлено [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash`, передайте его сюда, чтобы избежать возврата каких-либо результатов, если они не изменились.  В противном случае установите этот флаг и передайте `0`, чтобы вернуть [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` и [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes`, **эти два поля не будут установлены**, если этот флаг не установлен. |\n| `gift_id` | `long` | Да | Обязательный идентификатор базового подарка, из которого был улучшен коллекционный подарок. |\n| `attributes` | `Vector<StarGiftAttributeId>` | Нет | При желании отфильтруйте подарки по указанным атрибутам. Если атрибуты определенного типа не указаны, разрешены все атрибуты этого типа. |\n| `offset` | `string` | Да | Смещение для нумерации страниц. Если не равна пустой строке, [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`counters` не будет установлено, чтобы избежать возврата счетчиков каждый раз при выборке новой страницы. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["STARGIFT_ATTRIBUTE_INVALID", "STARGIFT_INVALID"], "x-browser-schema-id": "2053087798"}}, "/catalog/payments.updateStarGiftPrice": {"post": {"operationId": "payments.updateStarGiftPrice", "tags": ["Платежи"], "summary": "Коллекционный подарок, который у нас есть » можно выставить на продажу на рынке подарков » этим методом, см. здесь » для получения дополнительной информации.", "description": "[Коллекционный подарок, который у нас есть»](https://core.telegram.org/api/gifts.md#collectible-gifts), можно выставить на продажу на [рынке подарков»](https://telegram.org/blog/gift-marketplace-and-more) с помощью этого метода, см. [здесь »](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) для получения дополнительной информации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.updateStarGiftPrice", "x-tl-id": "3988679883", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SAVED_ID_EMPTY` — Пройденное inputSavedStarGiftChat.saved_id пусто.\n- 400 · `STARGIFT_NOT_FOUND` — Указанный подарок не найден."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.updateStarGiftPrice"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Подарок для перепродажи."}, "resell_amount": {"type": "object", "x-tl-type": "StarsAmount", "oneOf": [{"$ref": "#/components/schemas/starsAmount"}, {"$ref": "#/components/schemas/starsTonAmount"}], "description": "Цена перепродажи подарка."}}, "additionalProperties": false, "required": ["stargift", "resell_amount"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | Да | Подарок для перепродажи. |\n| `resell_amount` | `StarsAmount` | Да | Цена перепродажи подарка. |"}, "x-telegram-rpc-errors": ["SAVED_ID_EMPTY", "STARGIFT_NOT_FOUND"], "x-browser-schema-id": "3988679883"}}, "/catalog/payments.createStarGiftCollection": {"post": {"operationId": "payments.createStarGiftCollection", "tags": ["Платежи"], "summary": "Создайте звездную коллекцию подарков».", "description": "Создайте [звездную коллекцию подарков»](https://core.telegram.org/api/gifts.md#gift-collections).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.createStarGiftCollection", "x-tl-id": "524947079", "x-tl-result": "StarGiftCollection", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `StarGiftCollection`.\n\n[StarGiftCollection](https://core.telegram.org/type/StarGiftCollection.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StarGiftCollection", "oneOf": [{"$ref": "#/components/schemas/starGiftCollection"}], "description": "Тип TL: StarGiftCollection."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.createStarGiftCollection"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где создавать коллекцию."}, "title": {"type": "string", "x-tl-type": "string", "description": "Название сборника."}, "stargift": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "Подарки добавлены в коллекцию."}}, "additionalProperties": false, "required": ["peer", "title", "stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где создавать коллекцию. |\n| `title` | `string` | Да | Название сборника. |\n| `stargift` | `Vector<InputSavedStarGift>` | Да | Подарки добавлены в коллекцию. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "524947079"}}, "/catalog/payments.updateStarGiftCollection": {"post": {"operationId": "payments.updateStarGiftCollection", "tags": ["Платежи"], "summary": "Добавьте или удалите подарки из звездной коллекции подарков», или переименуйте коллекцию.", "description": "Добавьте или удалите подарки из [звездной коллекции подарков»](https://core.telegram.org/api/gifts.md#gift-collections) или переименуйте коллекцию.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.updateStarGiftCollection", "x-tl-id": "1339932391", "x-tl-result": "StarGiftCollection", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `StarGiftCollection`.\n\n[StarGiftCollection](https://core.telegram.org/type/StarGiftCollection.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StarGiftCollection", "oneOf": [{"$ref": "#/components/schemas/starGiftCollection"}], "description": "Тип TL: StarGiftCollection."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.updateStarGiftCollection"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, которому принадлежит коллекция."}, "collection_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор коллекции."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Название коллекции, чтобы переименовать коллекцию."}, "delete_stargift": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "x-tl-flag": "flags.1?Vector<InputSavedStarGift>", "description": "Может содержать список подарков, которые можно удалить из коллекции."}, "add_stargift": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "x-tl-flag": "flags.2?Vector<InputSavedStarGift>", "description": "Может содержать список подарков для добавления в коллекцию."}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "x-tl-flag": "flags.3?Vector<InputSavedStarGift>", "description": "Может содержать новый подарочный заказ."}}, "additionalProperties": false, "required": ["peer", "collection_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, которому принадлежит коллекция. |\n| `collection_id` | `int` | Да | Идентификатор коллекции. |\n| `title` | `string` | Нет | Название коллекции, чтобы переименовать коллекцию. |\n| `delete_stargift` | `Vector<InputSavedStarGift>` | Нет | Может содержать список подарков, которые можно удалить из коллекции. |\n| `add_stargift` | `Vector<InputSavedStarGift>` | Нет | Может содержать список подарков для добавления в коллекцию. |\n| `order` | `Vector<InputSavedStarGift>` | Нет | Может содержать новый подарочный заказ. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1339932391"}}, "/catalog/payments.reorderStarGiftCollections": {"post": {"operationId": "payments.reorderStarGiftCollections", "tags": ["Платежи"], "summary": "Измените порядок звездных коллекций подарков » в профиле партнера.", "description": "Измените порядок [коллекций звездных подарков»](https://core.telegram.org/api/gifts.md#gift-collections) в профиле партнера, принадлежащего ему.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.reorderStarGiftCollections", "x-tl-id": "3274372300", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.reorderStarGiftCollections"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Принадлежащий одноранговый узел."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Новое инкассовое поручение."}}, "additionalProperties": false, "required": ["peer", "order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Принадлежащий одноранговый узел. |\n| `order` | `Vector<int>` | Да | Новое инкассовое поручение. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3274372300"}}, "/catalog/payments.deleteStarGiftCollection": {"post": {"operationId": "payments.deleteStarGiftCollection", "tags": ["Платежи"], "summary": "Удалить звездную коллекцию подарков».", "description": "Удалить [звездную коллекцию подарков »](https://core.telegram.org/api/gifts.md#gift-collections).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.deleteStarGiftCollection", "x-tl-id": "2908113128", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.deleteStarGiftCollection"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, которому принадлежит коллекция."}, "collection_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор коллекции."}}, "additionalProperties": false, "required": ["peer", "collection_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, которому принадлежит коллекция. |\n| `collection_id` | `int` | Да | Идентификатор коллекции. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2908113128"}}, "/catalog/payments.getStarGiftCollections": {"post": {"operationId": "payments.getStarGiftCollections", "tags": ["Платежи"], "summary": "Собирает все звездные коллекции подарков » сверстника.", "description": "Собирает все [коллекции звездных подарков»](https://core.telegram.org/api/gifts.md#gift-collections) сверстника.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftCollections", "x-tl-id": "2551943645", "x-tl-result": "payments.StarGiftCollections", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftCollections`.\n\n[payments.StarGiftCollections](https://core.telegram.org/type/payments.StarGiftCollections.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftCollections", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftCollectionsNotModified"}, {"$ref": "#/components/schemas/payments.starGiftCollections"}], "description": "Тип TL: payments.StarGiftCollections."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGiftCollections"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш ([генерируется, как указано здесь »](https://core.telegram.org/api/offsets.md#hash-generation)) с использованием поля [starGiftCollection](https://core.telegram.org/constructor/starGiftCollection.md).`hash` (**не** поля `collection_id`) всех коллекций, возвращенных предыдущим вызовом метода, чтобы избежать повторной выборки результата, если он не изменился.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр. |\n| `hash` | `long` | Да | Хэш ([генерируется, как указано здесь »](https://core.telegram.org/api/offsets.md#hash-generation)) с использованием поля [starGiftCollection](https://core.telegram.org/constructor/starGiftCollection.md).`hash` (**не** поля `collection_id`) всех коллекций, возвращенных предыдущим вызовом метода, чтобы избежать повторной выборки результата, если он не изменился. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2551943645"}}, "/catalog/payments.getUniqueStarGiftValueInfo": {"post": {"operationId": "payments.getUniqueStarGiftValueInfo", "tags": ["Платежи"], "summary": "Получите информацию о стоимости коллекционного подарка».", "description": "Получите информацию о стоимости [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getUniqueStarGiftValueInfo", "x-tl-id": "1130737515", "x-tl-result": "payments.UniqueStarGiftValueInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.UniqueStarGiftValueInfo`.\n\n[payments.UniqueStarGiftValueInfo](https://core.telegram.org/type/payments.UniqueStarGiftValueInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.UniqueStarGiftValueInfo", "oneOf": [{"$ref": "#/components/schemas/payments.uniqueStarGiftValueInfo"}], "description": "Тип TL: payments.UniqueStarGiftValueInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_SLUG_INVALID` — Указанный подарочный сертификат недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getUniqueStarGiftValueInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "`slug` из [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md)."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | `slug` из [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md). |"}, "x-telegram-rpc-errors": ["STARGIFT_SLUG_INVALID"], "x-browser-schema-id": "1130737515"}}, "/catalog/payments.checkCanSendGift": {"post": {"operationId": "payments.checkCanSendGift", "tags": ["Платежи"], "summary": "Проверьте, можно ли отправить указанный подарок »", "description": "Проверьте, можно ли отправить указанный [подарок »](https://core.telegram.org/api/gifts.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.checkCanSendGift", "x-tl-id": "3234131401", "x-tl-result": "payments.CheckCanSendGiftResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.CheckCanSendGiftResult`.\n\n[payments.CheckCanSendGiftResult](https://core.telegram.org/type/payments.CheckCanSendGiftResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.CheckCanSendGiftResult", "oneOf": [{"$ref": "#/components/schemas/payments.checkCanSendGiftResultOk"}, {"$ref": "#/components/schemas/payments.checkCanSendGiftResultFail"}], "description": "Тип TL: payments.CheckCanSendGiftResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.checkCanSendGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Подарочный идентификатор.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | Да | Подарочный идентификатор. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "3234131401"}}, "/catalog/payments.getStarGiftAuctionState": {"post": {"operationId": "payments.getStarGiftAuctionState", "tags": ["Платежи"], "summary": "Возвращает информацию об аукционе коллекционных подарков»; также подписывается на обновления аукциона, см. здесь » для получения дополнительной информации о полном потоке.", "description": "Возвращает информацию об [аукционе коллекционных подарков»](https://core.telegram.org/api/auctions.md); также подписывает пользователя на обновления аукциона, см. [здесь »](https://core.telegram.org/api/auctions.md) дополнительную информацию о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Collectible gift auctions](https://core.telegram.org/api/auctions.md)", "x-tl-method": "payments.getStarGiftAuctionState", "x-tl-id": "1553986774", "x-tl-result": "payments.StarGiftAuctionState", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Collectible gift auctions", "https://core.telegram.org/api/auctions.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftAuctionState`.\n\n[payments.StarGiftAuctionState](https://core.telegram.org/type/payments.StarGiftAuctionState.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftAuctionState", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftAuctionState"}], "description": "Тип TL: payments.StarGiftAuctionState."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGiftAuctionState"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"auction": {"type": "object", "x-tl-type": "InputStarGiftAuction", "oneOf": [{"$ref": "#/components/schemas/inputStarGiftAuction"}, {"$ref": "#/components/schemas/inputStarGiftAuctionSlug"}], "description": "Либо идентификатор подарка, связанного с аукционом, либо [ссылка на глубокую ссылку аукциона »](https://core.telegram.org/api/links.md#auction-links)."}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Первоначально `0`, затем устанавливается возвращаемое значение [starGiftAuctionState](https://core.telegram.org/constructor/starGiftAuctionState.md).`version`], чтобы избежать повторной выборки результатов, если они не изменились."}}, "additionalProperties": false, "required": ["auction", "version"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `auction` | `InputStarGiftAuction` | Да | Либо идентификатор подарка, связанного с аукционом, либо [ссылка на глубокую ссылку аукциона »](https://core.telegram.org/api/links.md#auction-links). |\n| `version` | `int` | Да | Первоначально `0`, затем устанавливается возвращаемое значение [starGiftAuctionState](https://core.telegram.org/constructor/starGiftAuctionState.md).`version`], чтобы избежать повторной выборки результатов, если они не изменились. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "1553986774"}}, "/catalog/payments.getStarGiftAuctionAcquiredGifts": {"post": {"operationId": "payments.getStarGiftAuctionAcquiredGifts", "tags": ["Платежи"], "summary": "Извлекает все подарки, которые текущий пользователь выиграл на аукционе.", "description": "Извлекает все подарки, которые текущий пользователь выиграл на [аукционе](https://core.telegram.org/api/auctions.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Collectible gift auctions](https://core.telegram.org/api/auctions.md)", "x-tl-method": "payments.getStarGiftAuctionAcquiredGifts", "x-tl-id": "1805831148", "x-tl-result": "payments.StarGiftAuctionAcquiredGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Collectible gift auctions", "https://core.telegram.org/api/auctions.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftAuctionAcquiredGifts`.\n\n[payments.StarGiftAuctionAcquiredGifts](https://core.telegram.org/type/payments.StarGiftAuctionAcquiredGifts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftAuctionAcquiredGifts", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftAuctionAcquiredGifts"}], "description": "Тип TL: payments.StarGiftAuctionAcquiredGifts."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGiftAuctionAcquiredGifts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор подарка, связанный с аукционом.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | Да | Идентификатор подарка, связанный с аукционом. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "1805831148"}}, "/catalog/payments.getStarGiftActiveAuctions": {"post": {"operationId": "payments.getStarGiftActiveAuctions", "tags": ["Платежи"], "summary": "Выбирает все активные в настоящий момент аукционы подарков, на которых **пользователь когда-либо делал ставки** (включая аукционы, где пользователь был перебит, а его ставка была возвращена), пока аукцион еще не закончился.", "description": "Выбирает все активные на данный момент [аукционы подарков](https://core.telegram.org/api/auctions.md) **пользователь когда-либо делал ставки** (включая аукционы, где пользователь был перебит, а его ставка была возвращена), пока аукцион еще не закончился.\n\nЭтот метод в основном используется для отображения значка аукциона в списке чата сразу при запуске приложения, не дожидаясь поступления обновлений [updateStarGiftAuctionState](https://core.telegram.org/constructor/updateStarGiftAuctionState.md)] в реальном времени: клиент вызывает его, чтобы узнать, в каких аукционах участвует пользователь, и заранее показать значок.\n\nЧтобы вместо этого получить полное состояние одного аукциона, подписаться на его обновления в реальном времени и отобразить подробный пользовательский интерфейс аукциона (обычно, когда пользователь открывает определенный аукцион), используйте [payments.getStarGiftAuctionState](https://core.telegram.org/method/payments.getStarGiftAuctionState.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Collectible gift auctions](https://core.telegram.org/api/auctions.md)", "x-tl-method": "payments.getStarGiftActiveAuctions", "x-tl-id": "2781892941", "x-tl-result": "payments.StarGiftActiveAuctions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Collectible gift auctions", "https://core.telegram.org/api/auctions.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftActiveAuctions`.\n\n[payments.StarGiftActiveAuctions](https://core.telegram.org/type/payments.StarGiftActiveAuctions.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftActiveAuctions", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftActiveAuctionsNotModified"}, {"$ref": "#/components/schemas/payments.starGiftActiveAuctions"}], "description": "Тип TL: payments.StarGiftActiveAuctions."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGiftActiveAuctions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш сгенерирован [как указано здесь »](https://core.telegram.org/api/auctions.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | Хэш сгенерирован [как указано здесь »](https://core.telegram.org/api/auctions.md) |"}, "x-browser-schema-id": "2781892941"}}, "/catalog/payments.resolveStarGiftOffer": {"post": {"operationId": "payments.resolveStarGiftOffer", "tags": ["Платежи"], "summary": "Примите или отклоните ранее полученное предложение о покупке коллекционного подарка», полную информацию см. здесь ».", "description": "Примите или отклоните ранее полученное [предложение о покупке коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers), полный текст см. [здесь »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.resolveStarGiftOffer", "x-tl-id": "3922622492", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.resolveStarGiftOffer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"decline": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, предложение отклоняется; в противном случае принимает это."}, "offer_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор служебного сообщения [messageActionStarGiftPurchaseOffer](https://core.telegram.org/constructor/messageActionStarGiftPurchaseOffer.md), описывающего предложение, в соответствии с которым необходимо действовать."}}, "additionalProperties": false, "required": ["offer_msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `decline` | `true` | Нет | Если установлено, предложение отклоняется; в противном случае принимает это. |\n| `offer_msg_id` | `int` | Да | Идентификатор служебного сообщения [messageActionStarGiftPurchaseOffer](https://core.telegram.org/constructor/messageActionStarGiftPurchaseOffer.md), описывающего предложение, в соответствии с которым необходимо действовать. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID"], "x-browser-schema-id": "3922622492"}}, "/catalog/payments.sendStarGiftOffer": {"post": {"operationId": "payments.sendStarGiftOffer", "tags": ["Платежи"], "summary": "Отправьте предложение о покупке коллекционного подарка», полный текст смотрите здесь.", "description": "Отправьте предложение о покупке [коллекционного подарка »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers), полный текст см. [здесь »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.sendStarGiftOffer", "x-tl-id": "2411227969", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INPUT_STARS_AMOUNT_INVALID` — Указанная сумма предложения в звездах недействительна, см. [здесь »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) допустимый диапазон.\n- 400 · `INPUT_STARS_NANOS_INVALID` — Указанная сумма предложения в нанотоннах недействительна, см. [здесь »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) допустимый диапазон.\n- 400 · `INVOICE_INVALID` — Указанный счет-фактура недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `RESELL_STARS_TOO_FEW` — Предложенная цена слишком низкая.\n- 400 · `RESELL_STARS_TOO_MUCH` — Предложенная цена слишком высока.\n- 400 · `STARGIFT_OFFER_INVALID` — Указанная сумма предложения недействительна.\n- 400 · `STARGIFT_OFFER_NOT_ALLOWED` — Вы не можете отправить предложение о покупке этого подарка.\n- 400 · `STARGIFT_SLUG_INVALID` — Указанный подарочный сертификат недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.sendStarGiftOffer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Владелец коллекционного подарка: равен [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`owner_id`."}, "slug": {"type": "string", "x-tl-type": "string", "description": "Идентификатор коллекционного подарка: равен [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`."}, "price": {"type": "object", "x-tl-type": "StarsAmount", "oneOf": [{"$ref": "#/components/schemas/starsAmount"}, {"$ref": "#/components/schemas/starsTonAmount"}], "description": "Цена предложения в звездах или TON."}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность предложения в секундах: должна быть одной из `21600`, `43200`, `86400`, `129600`, `172800` или `259200`; также может быть `120` в тестовом режиме."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный 64-битный идентификатор, используемый во избежание повторной отправки одного и того же предложения в случае проблем с сетью. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Если на узле назначения включены [платные сообщения»](https://core.telegram.org/api/paid-messages.md), указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь-отправитель согласился заплатить за отправку предложения (в дополнение к сумме самого предложения, содержащейся в `price`).", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["peer", "slug", "price", "duration", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Владелец коллекционного подарка: равен [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`owner_id`. |\n| `slug` | `string` | Да | Идентификатор коллекционного подарка: равен [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`. |\n| `price` | `StarsAmount` | Да | Цена предложения в звездах или TON. |\n| `duration` | `int` | Да | Продолжительность предложения в секундах: должна быть одной из `21600`, `43200`, `86400`, `129600`, `172800` или `259200`; также может быть `120` в тестовом режиме. |\n| `random_id` | `long` | Да | Случайный 64-битный идентификатор, используемый во избежание повторной отправки одного и того же предложения в случае проблем с сетью. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `allow_paid_stars` | `long` | Нет | Если на узле назначения включены [платные сообщения»](https://core.telegram.org/api/paid-messages.md), указывается сумма [Telegram Stars](https://core.telegram.org/api/stars.md), которую пользователь-отправитель согласился заплатить за отправку предложения (в дополнение к сумме самого предложения, содержащейся в `price`). |"}, "x-telegram-rpc-errors": ["INPUT_STARS_AMOUNT_INVALID", "INPUT_STARS_NANOS_INVALID", "INVOICE_INVALID", "PEER_ID_INVALID", "RESELL_STARS_TOO_FEW", "RESELL_STARS_TOO_MUCH", "STARGIFT_OFFER_INVALID", "STARGIFT_OFFER_NOT_ALLOWED", "STARGIFT_SLUG_INVALID"], "x-browser-schema-id": "2411227969"}}, "/catalog/payments.getStarGiftUpgradeAttributes": {"post": {"operationId": "payments.getStarGiftUpgradeAttributes", "tags": ["Платежи"], "summary": "Получает **полный** список только коллекционных атрибутов, которые могут появиться для типа подарка после его повышения до коллекционного подарка».", "description": "Получает **полный** список только коллекционных атрибутов, которые могут появиться для типа подарка после его повышения до [коллекционный подарок »](https://core.telegram.org/api/gifts.md#collectible-gifts).\n\nРезультат также может включать конструкторы [starGiftAttributeModel](https://core.telegram.org/constructor/starGiftAttributeModel.md) с установленным флагом `crafted`: эти модели зарезервированы для [создания »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts) и должны быть отфильтрованы при обычном предварительном просмотре обновлений (и наоборот).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftUpgradeAttributes", "x-tl-id": "1828948824", "x-tl-result": "payments.StarGiftUpgradeAttributes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftUpgradeAttributes`.\n\n[payments.StarGiftUpgradeAttributes](https://core.telegram.org/type/payments.StarGiftUpgradeAttributes.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftUpgradeAttributes", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftUpgradeAttributes"}], "description": "Тип TL: payments.StarGiftUpgradeAttributes."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getStarGiftUpgradeAttributes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Неколлекционный базовый подарочный идентификатор от [starGift](https://core.telegram.org/constructor/starGift.md).`id`", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | Да | Неколлекционный базовый подарочный идентификатор от [starGift](https://core.telegram.org/constructor/starGift.md).`id` |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "1828948824"}}, "/catalog/payments.getCraftStarGifts": {"post": {"operationId": "payments.getCraftStarGifts", "tags": ["Платежи"], "summary": "Получите коллекционные подарки » определенного типа, которые можно использовать для изготовления предметов ».", "description": "Получите собственные [коллекционные подарки »](https://core.telegram.org/api/gifts.md#collectible-gifts) определенного типа, которые можно использовать для [создания »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getCraftStarGifts", "x-tl-id": "4245019904", "x-tl-result": "payments.SavedStarGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `payments.SavedStarGifts`.\n\n[payments.SavedStarGifts](https://core.telegram.org/type/payments.SavedStarGifts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.SavedStarGifts", "oneOf": [{"$ref": "#/components/schemas/payments.savedStarGifts"}], "description": "Тип TL: payments.SavedStarGifts."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STARGIFT_INVALID` — Переданный подарок недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.getCraftStarGifts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор базового типа подарка, равный [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`gift_id` первого выбранного подарка.", "x-tl-type": "long"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["gift_id", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | Да | Идентификатор базового типа подарка, равный [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`gift_id` первого выбранного подарка. |\n| `offset` | `string` | Да | Смещение для нумерации страниц. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "4245019904"}}, "/catalog/payments.craftStarGift": {"post": {"operationId": "payments.craftStarGift", "tags": ["Платежи"], "summary": "Создайте новый коллекционный подарок, объединив от 1 до 4 имеющихся у вас коллекционных подарков одного и того же базового типа подарка.", "description": "Создайте новый [коллекционный подарок»](https://core.telegram.org/api/gifts.md#collectible-gifts), объединив от 1 до 4 имеющихся у вас коллекционных подарков одного и того же базового типа подарка.\n\nВсе переданные подарки должны иметь одинаковую [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`gift_id`, должны быть пригодны для крафта и не должны блокироваться будущей временной меткой `can_craft_at`.\n\nПервый переданный подарок не должен [находиться в блокчейне TON](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.craftStarGift", "x-tl-id": "2969135183", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SAVED_ID_EMPTY` — Пройденное inputSavedStarGiftChat.saved_id пусто."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/payments.craftStarGift"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stargift": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "От 1 до 4 коллекционных подарков одного типа, которые можно использовать для [создания »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts). Идентификатор первого подарка используется повторно, если создание прошло успешно."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stargift` | `Vector<InputSavedStarGift>` | Да | От 1 до 4 коллекционных подарков одного типа, которые можно использовать для [создания »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts). Идентификатор первого подарка используется повторно, если создание прошло успешно. |"}, "x-telegram-rpc-errors": ["SAVED_ID_EMPTY"], "x-browser-schema-id": "2969135183"}}, "/catalog/payments.getCurrencyRates": {"post": {"operationId": "payments.getCurrencyRates", "tags": ["Платежи"], "summary": "payments.getCurrencyRates", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.getCurrencyRates", "x-tl-id": "3545859048", "x-tl-result": "payments.CurrencyRates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.CurrencyRates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.CurrencyRates", "oneOf": [{"$ref": "#/components/schemas/payments.currencyRates"}], "description": "Тип TL: payments.CurrencyRates."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3545859048"}}, "/catalog/payments.getOnrampProviders": {"post": {"operationId": "payments.getOnrampProviders", "tags": ["Платежи"], "summary": "payments.getOnrampProviders", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.getOnrampProviders", "x-tl-id": "1061028060", "x-tl-result": "Vector<OnrampProviderInfo>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<OnrampProviderInfo>`.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "OnrampProviderInfo", "oneOf": [{"$ref": "#/components/schemas/onrampProviderInfo"}], "description": "Тип TL: OnrampProviderInfo."}, "x-tl-type": "Vector<OnrampProviderInfo>"}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"crypto_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `crypto_currency` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1061028060"}}, "/catalog/payments.getOnrampBaseCurrencies": {"post": {"operationId": "payments.getOnrampBaseCurrencies", "tags": ["Платежи"], "summary": "payments.getOnrampBaseCurrencies", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.getOnrampBaseCurrencies", "x-tl-id": "478932467", "x-tl-result": "Vector<string>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<string>`.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"provider": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "crypto_currency": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["provider", "crypto_currency"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `provider` | `string` | Да | Значение типа TL `string`. |\n| `crypto_currency` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "478932467"}}, "/catalog/payments.getOnrampAvailability": {"post": {"operationId": "payments.getOnrampAvailability", "tags": ["Платежи"], "summary": "payments.getOnrampAvailability", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.getOnrampAvailability", "x-tl-id": "784505169", "x-tl-result": "OnrampAvailability", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `OnrampAvailability`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "OnrampAvailability", "oneOf": [{"$ref": "#/components/schemas/onrampAvailability"}], "description": "Тип TL: OnrampAvailability."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"provider": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "crypto_currency": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "base_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["provider", "crypto_currency"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `provider` | `string` | Да | Значение типа TL `string`. |\n| `crypto_currency` | `string` | Да | Значение типа TL `string`. |\n| `base_currency` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "784505169"}}, "/catalog/payments.getOnrampLimits": {"post": {"operationId": "payments.getOnrampLimits", "tags": ["Платежи"], "summary": "payments.getOnrampLimits", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.getOnrampLimits", "x-tl-id": "2162708989", "x-tl-result": "OnrampLimits", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `OnrampLimits`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "OnrampLimits", "oneOf": [{"$ref": "#/components/schemas/onrampLimits"}], "description": "Тип TL: OnrampLimits."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"provider": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "crypto_currency": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "base_currency": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "payment_method": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["provider", "crypto_currency", "base_currency"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `provider` | `string` | Да | Значение типа TL `string`. |\n| `crypto_currency` | `string` | Да | Значение типа TL `string`. |\n| `base_currency` | `string` | Да | Значение типа TL `string`. |\n| `payment_method` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2162708989"}}, "/catalog/payments.getOnrampQuote": {"post": {"operationId": "payments.getOnrampQuote", "tags": ["Платежи"], "summary": "payments.getOnrampQuote", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.getOnrampQuote", "x-tl-id": "3764798970", "x-tl-result": "OnrampQuote", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `OnrampQuote`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "OnrampQuote", "oneOf": [{"$ref": "#/components/schemas/onrampQuote"}], "description": "Тип TL: OnrampQuote."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"provider": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "crypto_currency": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "base_currency": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "base_amount": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "crypto_amount": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Значение типа TL `string`."}, "payment_method": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["provider", "crypto_currency", "base_currency"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `provider` | `string` | Да | Значение типа TL `string`. |\n| `crypto_currency` | `string` | Да | Значение типа TL `string`. |\n| `base_currency` | `string` | Да | Значение типа TL `string`. |\n| `base_amount` | `string` | Нет | Значение типа TL `string`. |\n| `crypto_amount` | `string` | Нет | Значение типа TL `string`. |\n| `payment_method` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3764798970"}}, "/catalog/payments.createOnrampSession": {"post": {"operationId": "payments.createOnrampSession", "tags": ["Платежи"], "summary": "payments.createOnrampSession", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.createOnrampSession", "x-tl-id": "2719579382", "x-tl-result": "OnrampSession", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `OnrampSession`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "OnrampSession", "oneOf": [{"$ref": "#/components/schemas/onrampSession"}], "description": "Тип TL: OnrampSession."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"provider": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "crypto_currency": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "address": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "payment_method": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "base_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Значение типа TL `string`."}, "base_amount": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Значение типа TL `string`."}, "memo": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Значение типа TL `string`."}, "theme": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string", "description": "Значение типа TL `string`."}, "success_return_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string", "description": "Значение типа TL `string`."}, "fail_return_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string", "description": "Значение типа TL `string`."}, "crypto_amount": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.7?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["provider", "crypto_currency", "address"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `provider` | `string` | Да | Значение типа TL `string`. |\n| `crypto_currency` | `string` | Да | Значение типа TL `string`. |\n| `address` | `string` | Да | Значение типа TL `string`. |\n| `payment_method` | `string` | Нет | Значение типа TL `string`. |\n| `base_currency` | `string` | Нет | Значение типа TL `string`. |\n| `base_amount` | `string` | Нет | Значение типа TL `string`. |\n| `memo` | `string` | Нет | Значение типа TL `string`. |\n| `theme` | `string` | Нет | Значение типа TL `string`. |\n| `success_return_url` | `string` | Нет | Значение типа TL `string`. |\n| `fail_return_url` | `string` | Нет | Значение типа TL `string`. |\n| `crypto_amount` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2719579382"}}, "/catalog/payments.withdrawStarGift": {"post": {"operationId": "payments.withdrawStarGift", "tags": ["Платежи"], "summary": "payments.withdrawStarGift", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.withdrawStarGift", "x-tl-id": "3961532590", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"keep_on_profile": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["stargift", "tmp_password"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `keep_on_profile` | `true` | Нет | Значение типа TL `true`. |\n| `stargift` | `InputSavedStarGift` | Да | Тип TL: InputSavedStarGift. |\n| `tmp_password` | `bytes` | Да | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3961532590"}}, "/catalog/payments.depositStarGift": {"post": {"operationId": "payments.depositStarGift", "tags": ["Платежи"], "summary": "payments.depositStarGift", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.depositStarGift", "x-tl-id": "3231902367", "x-tl-result": "payments.StarGiftDepositPayload", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftDepositPayload`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftDepositPayload", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftDepositPayload"}], "description": "Тип TL: payments.StarGiftDepositPayload."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hide_sender": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "slug": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["peer", "slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hide_sender` | `true` | Нет | Значение типа TL `true`. |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `slug` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3231902367"}}, "/catalog/payments.displayStarGift": {"post": {"operationId": "payments.displayStarGift", "tags": ["Платежи"], "summary": "payments.displayStarGift", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.displayStarGift", "x-tl-id": "1252389118", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer.", "x-tl-flag": "flags.0?InputPeer"}, "slug": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Нет | Тип TL: InputPeer. |\n| `slug` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1252389118"}}, "/catalog/payments.deleteStarGift": {"post": {"operationId": "payments.deleteStarGift", "tags": ["Платежи"], "summary": "payments.deleteStarGift", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.deleteStarGift", "x-tl-id": "1020983466", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "Тип TL: InputSavedStarGift."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | Да | Тип TL: InputSavedStarGift. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1020983466"}}, "/catalog/payments.withdrawStarsRevenueToWallet": {"post": {"operationId": "payments.withdrawStarsRevenueToWallet", "tags": ["Платежи"], "summary": "payments.withdrawStarsRevenueToWallet", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.withdrawStarsRevenueToWallet", "x-tl-id": "1461184265", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["peer", "tmp_password"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `ton` | `true` | Нет | Значение типа TL `true`. |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `amount` | `long` | Нет | 64-битное целое в десятичной записи. |\n| `tmp_password` | `bytes` | Да | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1461184265"}}, "/catalog/payments.buyStarGiftOnchain": {"post": {"operationId": "payments.buyStarGiftOnchain", "tags": ["Платежи"], "summary": "payments.buyStarGiftOnchain", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.buyStarGiftOnchain", "x-tl-id": "1551278953", "x-tl-result": "payments.StarGiftOnchainSalePayload", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftOnchainSalePayload`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftOnchainSalePayload", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftOnchainSalePayload"}, {"$ref": "#/components/schemas/payments.starGiftOnchainFixedSalePayload"}], "description": "Тип TL: payments.StarGiftOnchainSalePayload."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"show_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Значение типа TL `true`."}, "slug": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "expected_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer.", "x-tl-flag": "flags.0?InputPeer"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}}, "additionalProperties": false, "required": ["slug", "expected_amount"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `show_name` | `true` | Нет | Значение типа TL `true`. |\n| `slug` | `string` | Да | Значение типа TL `string`. |\n| `expected_amount` | `long` | Да | 64-битное целое в десятичной записи. |\n| `peer` | `InputPeer` | Нет | Тип TL: InputPeer. |\n| `message` | `TextWithEntities` | Нет | Тип TL: TextWithEntities. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1551278953"}}, "/catalog/payments.updateStarGiftOnchainPrice": {"post": {"operationId": "payments.updateStarGiftOnchainPrice", "tags": ["Платежи"], "summary": "payments.updateStarGiftOnchainPrice", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.updateStarGiftOnchainPrice", "x-tl-id": "3259032527", "x-tl-result": "payments.StarGiftOnchainSalePayload", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftOnchainSalePayload`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftOnchainSalePayload", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftOnchainSalePayload"}, {"$ref": "#/components/schemas/payments.starGiftOnchainFixedSalePayload"}], "description": "Тип TL: payments.StarGiftOnchainSalePayload."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["slug", "amount"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Значение типа TL `string`. |\n| `amount` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3259032527"}}, "/catalog/payments.cancelStarGiftOnchainSale": {"post": {"operationId": "payments.cancelStarGiftOnchainSale", "tags": ["Платежи"], "summary": "payments.cancelStarGiftOnchainSale", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.cancelStarGiftOnchainSale", "x-tl-id": "2723105082", "x-tl-result": "payments.StarGiftOnchainSalePayload", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftOnchainSalePayload`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftOnchainSalePayload", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftOnchainSalePayload"}, {"$ref": "#/components/schemas/payments.starGiftOnchainFixedSalePayload"}], "description": "Тип TL: payments.StarGiftOnchainSalePayload."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2723105082"}}, "/catalog/payments.sendStarGiftOnchainOffer": {"post": {"operationId": "payments.sendStarGiftOnchainOffer", "tags": ["Платежи"], "summary": "payments.sendStarGiftOnchainOffer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.sendStarGiftOnchainOffer", "x-tl-id": "3044905022", "x-tl-result": "payments.StarGiftOnchainOfferTx", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftOnchainOfferTx`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTx", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftOnchainOfferTx"}], "description": "Тип TL: payments.StarGiftOnchainOfferTx."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["slug", "amount", "duration", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | Значение типа TL `string`. |\n| `amount` | `long` | Да | 64-битное целое в десятичной записи. |\n| `duration` | `int` | Да | Значение типа TL `int`. |\n| `random_id` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3044905022"}}, "/catalog/payments.acceptStarGiftOnchainOffer": {"post": {"operationId": "payments.acceptStarGiftOnchainOffer", "tags": ["Платежи"], "summary": "payments.acceptStarGiftOnchainOffer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.acceptStarGiftOnchainOffer", "x-tl-id": "4223311582", "x-tl-result": "payments.StarGiftOnchainOfferTx", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftOnchainOfferTx`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTx", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftOnchainOfferTx"}], "description": "Тип TL: payments.StarGiftOnchainOfferTx."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offer_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["offer_msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offer_msg_id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4223311582"}}, "/catalog/payments.declineStarGiftOnchainOffer": {"post": {"operationId": "payments.declineStarGiftOnchainOffer", "tags": ["Платежи"], "summary": "payments.declineStarGiftOnchainOffer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.declineStarGiftOnchainOffer", "x-tl-id": "1511098022", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offer_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["offer_msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offer_msg_id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1511098022"}}, "/catalog/payments.cancelStarGiftOnchainOffer": {"post": {"operationId": "payments.cancelStarGiftOnchainOffer", "tags": ["Платежи"], "summary": "payments.cancelStarGiftOnchainOffer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.cancelStarGiftOnchainOffer", "x-tl-id": "470989500", "x-tl-result": "payments.StarGiftOnchainOfferTx", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.StarGiftOnchainOfferTx`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTx", "oneOf": [{"$ref": "#/components/schemas/payments.starGiftOnchainOfferTx"}], "description": "Тип TL: payments.StarGiftOnchainOfferTx."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offer_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["offer_msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offer_msg_id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "470989500"}}, "/catalog/payments.getResaleStarGiftsMerged": {"post": {"operationId": "payments.getResaleStarGiftsMerged", "tags": ["Платежи"], "summary": "payments.getResaleStarGiftsMerged", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "payments.getResaleStarGiftsMerged", "x-tl-id": "1831727789", "x-tl-result": "payments.ResaleStarGifts", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `payments.ResaleStarGifts`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ResaleStarGifts", "oneOf": [{"$ref": "#/components/schemas/payments.resaleStarGifts"}], "description": "Тип TL: payments.ResaleStarGifts."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"sort_by_price": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "sort_by_num": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Значение типа TL `true`."}, "sort_desc": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Значение типа TL `true`."}, "stars_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Значение типа TL `true`."}, "ton_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Значение типа TL `true`."}, "attributes_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "gift_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Значение типа TL `Vector<long>`."}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttributeId", "oneOf": [{"$ref": "#/components/schemas/starGiftAttributeIdModel"}, {"$ref": "#/components/schemas/starGiftAttributeIdPattern"}, {"$ref": "#/components/schemas/starGiftAttributeIdBackdrop"}], "description": "Тип TL: StarGiftAttributeId."}, "x-tl-type": "Vector<StarGiftAttributeId>", "x-tl-flag": "flags.3?Vector<StarGiftAttributeId>", "description": "Значение типа TL `Vector<StarGiftAttributeId>`."}, "query": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.7?string", "description": "Значение типа TL `string`."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["gift_ids", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sort_by_price` | `true` | Нет | Значение типа TL `true`. |\n| `sort_by_num` | `true` | Нет | Значение типа TL `true`. |\n| `sort_desc` | `true` | Нет | Значение типа TL `true`. |\n| `stars_only` | `true` | Нет | Значение типа TL `true`. |\n| `ton_only` | `true` | Нет | Значение типа TL `true`. |\n| `attributes_hash` | `long` | Нет | 64-битное целое в десятичной записи. |\n| `gift_ids` | `Vector<long>` | Да | Значение типа TL `Vector<long>`. |\n| `attributes` | `Vector<StarGiftAttributeId>` | Нет | Значение типа TL `Vector<StarGiftAttributeId>`. |\n| `query` | `string` | Нет | Значение типа TL `string`. |\n| `offset` | `string` | Да | Значение типа TL `string`. |\n| `limit` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1831727789"}}, "/catalog/stickers.createStickerSet": {"post": {"operationId": "stickers.createStickerSet", "tags": ["Стикеры"], "summary": "Создайте набор стикеров.", "description": "Создайте набор стикеров.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "stickers.createStickerSet", "x-tl-id": "2418125671", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PACK_SHORT_NAME_INVALID` — Недопустимое краткое имя пакета.\n- 400 · `PACK_SHORT_NAME_OCCUPIED` — Стикерпак с таким названием уже существует.\n- 400 · `PACK_TITLE_INVALID` — Неверное название стикерпака.\n- 400 · `PACK_TYPE_INVALID` — Маски и флажки эмодзи являются взаимоисключающими.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STICKERS_EMPTY` — Наклейки не предусмотрено.\n- 400 · `STICKER_EMOJI_INVALID` — Недопустимый смайлик-стикер.\n- 400 · `STICKER_FILE_INVALID` — Неверный файл стикера.\n- 400 · `STICKER_GIF_DIMENSIONS` — Указанный видеостикер имеет недопустимые размеры.\n- 400 · `STICKER_PNG_DIMENSIONS` — Недопустимые размеры стикера в формате PNG.\n- 400 · `STICKER_PNG_NOPNG` — Одна из указанных наклеек не является допустимым файлом PNG.\n- 400 · `STICKER_TGS_NODOC` — Анимированную наклейку необходимо отправить как документ.\n- 400 · `STICKER_TGS_NOTGS` — Предоставлена неверная наклейка TGS.\n- 400 · `STICKER_THUMB_PNG_NOPNG` — Предоставлен неправильный файл миниатюр набора наклеек, ожидается PNG / WEBP.\n- 400 · `STICKER_THUMB_TGS_NOTGS` — Предоставлен неверный файл миниатюр набора стикеров TGS.\n- 400 · `STICKER_VIDEO_BIG` — Указанная видеостикер слишком велика.\n- 400 · `STICKER_VIDEO_NODOC` — Видеонаклейку необходимо отправить как документ.\n- 400 · `STICKER_VIDEO_NOWEBM` — Указанный видеостикер не в формате webm.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.createStickerSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Является ли это набором наклеек с маской?"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Является ли это [собственным набором стикеров emoji](https://core.telegram.org/api/custom-emoji.md)."}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Должен ли цвет пользовательских смайлов TGS, содержащихся в этом наборе, быть изменен на цвет текста при использовании в сообщениях, на цвет акцента, если он используется в качестве статуса смайлика, на белый цвет на фотографиях в чате или на другой подходящий цвет в зависимости от контекста. Только для пользовательских наборов стикеров Emoji."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Владелец набора стикеров"}, "title": {"type": "string", "x-tl-type": "string", "description": "Название набора стикеров, символы `1-64`"}, "short_name": {"type": "string", "x-tl-type": "string", "description": "Краткое название набора стикеров, которое будет использоваться в [глубинных ссылках на стикеры »](https://core.telegram.org/api/links.md#stickerset-links). Может содержать только английские буквы, цифры и символы подчеркивания. Должен начинаться с буквы, не может содержать последовательных символов подчеркивания и **при вызове бота** должен заканчиваться на `\"_by_<bot_username>\"`. `<bot_username>` не чувствителен к регистру. 1-64 символов."}, "thumb": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Миниатюра", "x-tl-flag": "flags.2?InputDocument"}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputStickerSetItem", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetItem"}], "description": "Тип TL: InputStickerSetItem."}, "x-tl-type": "Vector<InputStickerSetItem>", "description": "Наклейки"}, "software": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Используется при [импорте стикеров с помощью SDK импорта стикеров](https://core.telegram.org/import-stickers.md), указывает имя программного обеспечения, создавшего стикеры."}}, "additionalProperties": false, "required": ["user_id", "title", "short_name", "stickers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `masks` | `true` | Нет | Является ли это набором наклеек с маской? |\n| `emojis` | `true` | Нет | Является ли это [собственным набором стикеров emoji](https://core.telegram.org/api/custom-emoji.md). |\n| `text_color` | `true` | Нет | Должен ли цвет пользовательских смайлов TGS, содержащихся в этом наборе, быть изменен на цвет текста при использовании в сообщениях, на цвет акцента, если он используется в качестве статуса смайлика, на белый цвет на фотографиях в чате или на другой подходящий цвет в зависимости от контекста. Только для пользовательских наборов стикеров Emoji. |\n| `user_id` | `InputUser` | Да | Владелец набора стикеров |\n| `title` | `string` | Да | Название набора стикеров, символы `1-64` |\n| `short_name` | `string` | Да | Краткое название набора стикеров, которое будет использоваться в [глубинных ссылках на стикеры »](https://core.telegram.org/api/links.md#stickerset-links). Может содержать только английские буквы, цифры и символы подчеркивания. Должен начинаться с буквы, не может содержать последовательных символов подчеркивания и **при вызове бота** должен заканчиваться на `\"_by_<bot_username>\"`. `<bot_username>` не чувствителен к регистру. 1-64 символов. |\n| `thumb` | `InputDocument` | Нет | Миниатюра |\n| `stickers` | `Vector<InputStickerSetItem>` | Да | Наклейки |\n| `software` | `string` | Нет | Используется при [импорте стикеров с помощью SDK импорта стикеров](https://core.telegram.org/import-stickers.md), указывает имя программного обеспечения, создавшего стикеры. |"}, "x-telegram-rpc-errors": ["PACK_SHORT_NAME_INVALID", "PACK_SHORT_NAME_OCCUPIED", "PACK_TITLE_INVALID", "PACK_TYPE_INVALID", "PEER_ID_INVALID", "STICKERS_EMPTY", "STICKER_EMOJI_INVALID", "STICKER_FILE_INVALID", "STICKER_GIF_DIMENSIONS", "STICKER_PNG_DIMENSIONS", "STICKER_PNG_NOPNG", "STICKER_TGS_NODOC", "STICKER_TGS_NOTGS", "STICKER_THUMB_PNG_NOPNG", "STICKER_THUMB_TGS_NOTGS", "STICKER_VIDEO_BIG", "STICKER_VIDEO_NODOC", "STICKER_VIDEO_NOWEBM", "USER_ID_INVALID"], "x-browser-schema-id": "2418125671"}}, "/catalog/stickers.removeStickerFromSet": {"post": {"operationId": "stickers.removeStickerFromSet", "tags": ["Стикеры"], "summary": "Удалите наклейку из набора, в котором она находится. Набор стикеров должен быть создан текущим пользователем/ботом.", "description": "Удалите наклейку из набора, в котором она находится. Набор стикеров должен быть создан текущим пользователем/ботом.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "stickers.removeStickerFromSet", "x-tl-id": "4151709521", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKER_INVALID` — Предоставленная наклейка недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.removeStickerFromSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"sticker": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Наклейка, которую нужно удалить"}}, "additionalProperties": false, "required": ["sticker"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | Да | Наклейка, которую нужно удалить |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "4151709521"}}, "/catalog/stickers.changeStickerPosition": {"post": {"operationId": "stickers.changeStickerPosition", "tags": ["Стикеры"], "summary": "Изменяет абсолютное положение наклейки в наборе, к которому она принадлежит. Набор стикеров должен быть создан текущим пользователем/ботом.", "description": "Изменяет абсолютное положение наклейки в наборе, к которому она принадлежит. Набор стикеров должен быть создан текущим пользователем/ботом.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "stickers.changeStickerPosition", "x-tl-id": "4290172106", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKER_INVALID` — Предоставленная наклейка недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.changeStickerPosition"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"sticker": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Наклейка"}, "position": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новое положение наклейки, отсчет от нуля"}}, "additionalProperties": false, "required": ["sticker", "position"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | Да | Наклейка |\n| `position` | `int` | Да | Новое положение наклейки, отсчет от нуля |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "4290172106"}}, "/catalog/stickers.addStickerToSet": {"post": {"operationId": "stickers.addStickerToSet", "tags": ["Стикеры"], "summary": "Добавьте наклейку в набор стикеров. Набор стикеров должен быть создан текущим пользователем/ботом.", "description": "Добавьте наклейку в набор стикеров. Набор стикеров должен быть создан текущим пользователем/ботом.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "stickers.addStickerToSet", "x-tl-id": "2253651646", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKERPACK_STICKERS_TOO_MUCH` — В этом стикерпаке слишком много стикеров, добавить больше нельзя.\n- 406 · `STICKERSET_INVALID` — Указанный набор наклеек недействителен.\n- 400 · `STICKERS_TOO_MUCH` — В этом стикерпаке слишком много стикеров, добавить больше невозможно.\n- 400 · `STICKER_PNG_NOPNG` — Одна из указанных наклеек не является допустимым файлом PNG.\n- 400 · `STICKER_TGS_NOTGS` — Предоставлена неверная наклейка TGS."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.addStickerToSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор стикеров"}, "sticker": {"type": "object", "x-tl-type": "InputStickerSetItem", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetItem"}], "description": "Наклейка"}}, "additionalProperties": false, "required": ["stickerset", "sticker"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | Да | Набор стикеров |\n| `sticker` | `InputStickerSetItem` | Да | Наклейка |"}, "x-telegram-rpc-errors": ["STICKERPACK_STICKERS_TOO_MUCH", "STICKERSET_INVALID", "STICKERS_TOO_MUCH", "STICKER_PNG_NOPNG", "STICKER_TGS_NOTGS"], "x-browser-schema-id": "2253651646"}}, "/catalog/stickers.setStickerSetThumb": {"post": {"operationId": "stickers.setStickerSetThumb", "tags": ["Стикеры"], "summary": "Установить миниатюру набора стикеров", "description": "Установить миниатюру набора стикеров\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "stickers.setStickerSetThumb", "x-tl-id": "2808763282", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKERSET_INVALID` — Указанный набор наклеек недействителен.\n- 400 · `STICKER_THUMB_PNG_NOPNG` — Предоставлен неправильный файл миниатюр набора наклеек, ожидается PNG / WEBP.\n- 400 · `STICKER_THUMB_TGS_NOTGS` — Предоставлен неверный файл миниатюр набора стикеров TGS."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.setStickerSetThumb"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор наклеек"}, "thumb": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Миниатюра (только для обычных наборов стикеров, а не для пользовательских наборов стикеров с эмодзи).", "x-tl-flag": "flags.0?InputDocument"}, "thumb_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Только для [пользовательских наборов стикеров эмодзи](https://core.telegram.org/api/custom-emoji.md), идентификатор пользовательского смайлика, присутствующего в наборе, для использования в качестве миниатюры; передайте 0, чтобы вернуться к первому пользовательскому эмодзи из набора.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "additionalProperties": false, "required": ["stickerset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | Да | Набор наклеек |\n| `thumb` | `InputDocument` | Нет | Миниатюра (только для обычных наборов стикеров, а не для пользовательских наборов стикеров с эмодзи). |\n| `thumb_document_id` | `long` | Нет | Только для [пользовательских наборов стикеров эмодзи](https://core.telegram.org/api/custom-emoji.md), идентификатор пользовательского смайлика, присутствующего в наборе, для использования в качестве миниатюры; передайте 0, чтобы вернуться к первому пользовательскому эмодзи из набора. |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID", "STICKER_THUMB_PNG_NOPNG", "STICKER_THUMB_TGS_NOTGS"], "x-browser-schema-id": "2808763282"}}, "/catalog/stickers.checkShortName": {"post": {"operationId": "stickers.checkShortName", "tags": ["Стикеры"], "summary": "Проверьте, доступно ли данное короткое имя", "description": "Проверьте, доступно ли данное короткое имя\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "stickers.checkShortName", "x-tl-id": "676017721", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SHORT_NAME_INVALID` — Указанное короткое имя неверно.\n- 400 · `SHORT_NAME_OCCUPIED` — Указанное короткое имя уже используется."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.checkShortName"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"short_name": {"type": "string", "x-tl-type": "string", "description": "Короткое имя"}}, "additionalProperties": false, "required": ["short_name"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `short_name` | `string` | Да | Короткое имя |"}, "x-telegram-rpc-errors": ["SHORT_NAME_INVALID", "SHORT_NAME_OCCUPIED"], "x-browser-schema-id": "676017721"}}, "/catalog/stickers.suggestShortName": {"post": {"operationId": "stickers.suggestShortName", "tags": ["Стикеры"], "summary": "Предлагает короткое имя для данного названия стикерпака.", "description": "Предлагает короткое имя для данного названия стикерпака.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "stickers.suggestShortName", "x-tl-id": "1303364867", "x-tl-result": "stickers.SuggestedShortName", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `stickers.SuggestedShortName`.\n\n[stickers.SuggestedShortName](https://core.telegram.org/type/stickers.SuggestedShortName.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stickers.SuggestedShortName", "oneOf": [{"$ref": "#/components/schemas/stickers.suggestedShortName"}], "description": "Тип TL: stickers.SuggestedShortName."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `TITLE_INVALID` — Указанное название стикерпака недействительно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.suggestShortName"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"title": {"type": "string", "x-tl-type": "string", "description": "Название набора стикеров"}}, "additionalProperties": false, "required": ["title"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `title` | `string` | Да | Название набора стикеров |"}, "x-telegram-rpc-errors": ["TITLE_INVALID"], "x-browser-schema-id": "1303364867"}}, "/catalog/stickers.changeSticker": {"post": {"operationId": "stickers.changeSticker", "tags": ["Стикеры"], "summary": "Обновите ключевые слова, смайлы или координаты маски стикера.", "description": "Обновите ключевые слова, смайлы или [координаты маски](https://core.telegram.org/api/stickers.md#mask-stickers) стикера.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)", "x-tl-method": "stickers.changeSticker", "x-tl-id": "4115889852", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKER_INVALID` — Предоставленная наклейка недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.changeSticker"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"sticker": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Наклейка"}, "emoji": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Если установлено, обновляется список смайлов, связанный со стикером."}, "mask_coords": {"type": "object", "x-tl-type": "MaskCoords", "oneOf": [{"$ref": "#/components/schemas/maskCoords"}], "description": "Если установлено, обновляются [координаты маски](https://core.telegram.org/api/stickers.md#mask-stickers)", "x-tl-flag": "flags.1?MaskCoords"}, "keywords": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Если установлено, обновляются ключевые слова стикера (разделенные запятыми). Невозможно предоставить наклейки для масок."}}, "additionalProperties": false, "required": ["sticker"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | Да | Наклейка |\n| `emoji` | `string` | Нет | Если установлено, обновляется список смайлов, связанный со стикером. |\n| `mask_coords` | `MaskCoords` | Нет | Если установлено, обновляются [координаты маски](https://core.telegram.org/api/stickers.md#mask-stickers) |\n| `keywords` | `string` | Нет | Если установлено, обновляются ключевые слова стикера (разделенные запятыми). Невозможно предоставить наклейки для масок. |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "4115889852"}}, "/catalog/stickers.renameStickerSet": {"post": {"operationId": "stickers.renameStickerSet", "tags": ["Стикеры"], "summary": "Переименовывает набор стикеров.", "description": "Переименовывает набор стикеров.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "stickers.renameStickerSet", "x-tl-id": "306912256", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKERSET_INVALID` — Указанный набор наклеек недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.renameStickerSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор стикеров для переименования"}, "title": {"type": "string", "x-tl-type": "string", "description": "Новое название набора стикеров"}}, "additionalProperties": false, "required": ["stickerset", "title"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | Да | Набор стикеров для переименования |\n| `title` | `string` | Да | Новое название набора стикеров |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "306912256"}}, "/catalog/stickers.deleteStickerSet": {"post": {"operationId": "stickers.deleteStickerSet", "tags": ["Стикеры"], "summary": "Удаляет созданный нами набор стикеров.", "description": "Удаляет созданный нами набор стикеров.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "stickers.deleteStickerSet", "x-tl-id": "2272281492", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKERSET_INVALID` — Указанный набор наклеек недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.deleteStickerSet"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetEmpty"}, {"$ref": "#/components/schemas/inputStickerSetID"}, {"$ref": "#/components/schemas/inputStickerSetShortName"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmoji"}, {"$ref": "#/components/schemas/inputStickerSetDice"}, {"$ref": "#/components/schemas/inputStickerSetAnimatedEmojiAnimations"}, {"$ref": "#/components/schemas/inputStickerSetPremiumGifts"}, {"$ref": "#/components/schemas/inputStickerSetEmojiGenericAnimations"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetEmojiDefaultTopicIcons"}, {"$ref": "#/components/schemas/inputStickerSetEmojiChannelDefaultStatuses"}, {"$ref": "#/components/schemas/inputStickerSetTonGifts"}], "description": "Набор стикеров для удаления"}}, "additionalProperties": false, "required": ["stickerset"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | Да | Набор стикеров для удаления |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "2272281492"}}, "/catalog/stickers.replaceSticker": {"post": {"operationId": "stickers.replaceSticker", "tags": ["Стикеры"], "summary": "Заменить наклейку в наборе стикеров».", "description": "Замените наклейку в [наборе наклеек »](https://core.telegram.org/api/stickers.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)", "x-tl-method": "stickers.replaceSticker", "x-tl-id": "1184253338", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.StickerSet`.\n\n[messages.StickerSet](https://core.telegram.org/type/messages.StickerSet.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.StickerSet", "oneOf": [{"$ref": "#/components/schemas/messages.stickerSet"}, {"$ref": "#/components/schemas/messages.stickerSetNotModified"}], "description": "Тип TL: messages.StickerSet."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `STICKER_INVALID` — Предоставленная наклейка недействительна."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stickers.replaceSticker"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"sticker": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Старый документ-наклейка."}, "new_sticker": {"type": "object", "x-tl-type": "InputStickerSetItem", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetItem"}], "description": "Новая наклейка."}}, "additionalProperties": false, "required": ["sticker", "new_sticker"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | Да | Старый документ-наклейка. |\n| `new_sticker` | `InputStickerSetItem` | Да | Новая наклейка. |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "1184253338"}}, "/catalog/phone.getCallConfig": {"post": {"operationId": "phone.getCallConfig", "tags": ["Звонки"], "summary": "DEPRECATED: Получите конфигурацию телефонного звонка, которая будет передана в общую конфигурацию libtgvoip (устаревшая).", "description": "DEPRECATED: Получите конфигурацию телефонного звонка, которая будет передана в общую конфигурацию libtgvoip (устаревшая).", "x-tl-method": "phone.getCallConfig", "x-tl-id": "1430593449", "x-tl-result": "DataJSON", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `DataJSON`.\n\n[ДанныеJSON](https://core.telegram.org/type/DataJSON.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Тип TL: DataJSON."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getCallConfig"}, "x-browser-schema-id": "1430593449"}}, "/catalog/phone.requestCall": {"post": {"operationId": "phone.requestCall", "tags": ["Звонки"], "summary": "Начните телефонный звонок в Telegram, см. здесь » для получения дополнительной информации о полном потоке.", "description": "Начните телефонный звонок в Telegram, см. [здесь »](https://core.telegram.org/api/calls.md#one-to-one-calls) дополнительную информацию о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [End-to-End Encrypted Voice Calls](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.requestCall", "x-tl-id": "1124046573", "x-tl-result": "phone.PhoneCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["End-to-End Encrypted Voice Calls", "https://core.telegram.org/api/end-to-end/voice-calls.md"], ["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.PhoneCall`.\n\n[phone.PhoneCall](https://core.telegram.org/type/phone.PhoneCall.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.PhoneCall", "oneOf": [{"$ref": "#/components/schemas/phone.phoneCall"}], "description": "Тип TL: phone.PhoneCall."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_PROTOCOL_FLAGS_INVALID` — Неверные флаги протокола вызова.\n- 400 · `CALL_PROTOCOL_LAYER_INVALID` — Указанный диапазон версий уровня протокола недействителен.\n- 400 · `INPUT_USER_DEACTIVATED` — Указанный пользователь удален.\n- 400 · `PARTICIPANT_VERSION_OUTDATED` — Другой участник не использует актуальный клиент Telegram с поддержкой звонков.\n- 500 · `RANDOM_ID_DUPLICATE` — Вы указали случайный идентификатор, который уже использовался.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 403 · `USER_IS_BLOCKED` — Вы были заблокированы этим пользователем.\n- 403 · `USER_PRIVACY_RESTRICTED` — Настройки приватности пользователя не позволяют это сделать."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.requestCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Стоит ли начинать видеозвонок"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Адресат телефонного звонка"}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Случайный идентификатор, чтобы избежать повторной отправки одного и того же объекта. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}, "g_a_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Параметр для обмена ключами шифрования E2E »](https://core.telegram.org/api/end-to-end/voice-calls.md)"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "oneOf": [{"$ref": "#/components/schemas/phoneCallProtocol"}], "description": "Настройки телефонного звонка"}}, "additionalProperties": false, "required": ["user_id", "random_id", "g_a_hash", "protocol"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `video` | `true` | Нет | Стоит ли начинать видеозвонок |\n| `user_id` | `InputUser` | Да | Адресат телефонного звонка |\n| `random_id` | `int` | Да | Случайный идентификатор, чтобы избежать повторной отправки одного и того же объекта. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `g_a_hash` | `bytes` | Да | [Параметр для обмена ключами шифрования E2E »](https://core.telegram.org/api/end-to-end/voice-calls.md) |\n| `protocol` | `PhoneCallProtocol` | Да | Настройки телефонного звонка |"}, "x-telegram-rpc-errors": ["CALL_PROTOCOL_FLAGS_INVALID", "CALL_PROTOCOL_LAYER_INVALID", "INPUT_USER_DEACTIVATED", "PARTICIPANT_VERSION_OUTDATED", "RANDOM_ID_DUPLICATE", "USER_ID_INVALID", "USER_IS_BLOCKED", "USER_PRIVACY_RESTRICTED"], "x-browser-schema-id": "1124046573"}}, "/catalog/phone.acceptCall": {"post": {"operationId": "phone.acceptCall", "tags": ["Звонки"], "summary": "Примите входящий вызов, см. здесь » для получения дополнительной информации о полном потоке.", "description": "Примите входящий вызов, см. [здесь »](https://core.telegram.org/api/calls.md#one-to-one-calls) дополнительную информацию о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [End-to-End Encrypted Voice Calls](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.acceptCall", "x-tl-id": "1003664544", "x-tl-result": "phone.PhoneCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["End-to-End Encrypted Voice Calls", "https://core.telegram.org/api/end-to-end/voice-calls.md"], ["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.PhoneCall`.\n\n[phone.PhoneCall](https://core.telegram.org/type/phone.PhoneCall.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.PhoneCall", "oneOf": [{"$ref": "#/components/schemas/phone.phoneCall"}], "description": "Тип TL: phone.PhoneCall."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_ALREADY_ACCEPTED` — Вызов уже принят.\n- 400 · `CALL_ALREADY_DECLINED` — Вызов уже отклонен.\n- 500 · `CALL_OCCUPY_FAILED` — Не удалось выполнить вызов, поскольку пользователь уже совершает другой вызов.\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен.\n- 406 · `CALL_PROTOCOL_COMPAT_LAYER_INVALID` — Другая сторона вызова не поддерживает ни один из протоколов VoIP, поддерживаемых локальным клиентом, как указано в полях `protocol.layer` и `protocol.library_versions`.\n- 400 · `CALL_PROTOCOL_FLAGS_INVALID` — Неверные флаги протокола вызова.\n- 400 · `CALL_PROTOCOL_LAYER_INVALID` — Указанный диапазон версий уровня протокола недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.acceptCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Призыв принять"}, "g_b": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Параметр для обмена ключами шифрования E2E »](https://core.telegram.org/api/end-to-end/voice-calls.md)"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "oneOf": [{"$ref": "#/components/schemas/phoneCallProtocol"}], "description": "Настройки телефонного звонка"}}, "additionalProperties": false, "required": ["peer", "g_b", "protocol"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | Да | Призыв принять |\n| `g_b` | `bytes` | Да | [Параметр для обмена ключами шифрования E2E »](https://core.telegram.org/api/end-to-end/voice-calls.md) |\n| `protocol` | `PhoneCallProtocol` | Да | Настройки телефонного звонка |"}, "x-telegram-rpc-errors": ["CALL_ALREADY_ACCEPTED", "CALL_ALREADY_DECLINED", "CALL_OCCUPY_FAILED", "CALL_PEER_INVALID", "CALL_PROTOCOL_COMPAT_LAYER_INVALID", "CALL_PROTOCOL_FLAGS_INVALID", "CALL_PROTOCOL_LAYER_INVALID"], "x-browser-schema-id": "1003664544"}}, "/catalog/phone.confirmCall": {"post": {"operationId": "phone.confirmCall", "tags": ["Звонки"], "summary": "Полный обмен ключами шифрования телефонного звонка E2E», см. здесь » для получения дополнительной информации о полном процессе.", "description": "[Завершить телефонный звонок E2E обмен ключами шифрования »](https://core.telegram.org/api/end-to-end/voice-calls.md), см. [здесь »](https://core.telegram.org/api/calls.md#one-to-one-calls) дополнительную информацию о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [End-to-End Encrypted Voice Calls](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.confirmCall", "x-tl-id": "788404002", "x-tl-result": "phone.PhoneCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["End-to-End Encrypted Voice Calls", "https://core.telegram.org/api/end-to-end/voice-calls.md"], ["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.PhoneCall`.\n\n[phone.PhoneCall](https://core.telegram.org/type/phone.PhoneCall.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.PhoneCall", "oneOf": [{"$ref": "#/components/schemas/phone.phoneCall"}], "description": "Тип TL: phone.PhoneCall."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_ALREADY_DECLINED` — Вызов уже отклонен.\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.confirmCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Телефонный звонок"}, "g_a": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Параметр для обмена ключами шифрования E2E »](https://core.telegram.org/api/end-to-end/voice-calls.md)"}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "Ключевой отпечаток", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "oneOf": [{"$ref": "#/components/schemas/phoneCallProtocol"}], "description": "Настройки телефонного звонка"}}, "additionalProperties": false, "required": ["peer", "g_a", "key_fingerprint", "protocol"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | Да | Телефонный звонок |\n| `g_a` | `bytes` | Да | [Параметр для обмена ключами шифрования E2E »](https://core.telegram.org/api/end-to-end/voice-calls.md) |\n| `key_fingerprint` | `long` | Да | Ключевой отпечаток |\n| `protocol` | `PhoneCallProtocol` | Да | Настройки телефонного звонка |"}, "x-telegram-rpc-errors": ["CALL_ALREADY_DECLINED", "CALL_PEER_INVALID"], "x-browser-schema-id": "788404002"}}, "/catalog/phone.receivedCall": {"post": {"operationId": "phone.receivedCall", "tags": ["Звонки"], "summary": "Необязательно: уведомите сервер о том, что пользователь в настоящее время занят вызовом: это автоматически отклонит все входящие телефонные вызовы до тех пор, пока текущий телефонный вызов не будет завершен. Дополнительную информацию о полном потоке см. здесь ».", "description": "Необязательно: уведомите сервер о том, что пользователь в данный момент занят вызовом: это автоматически отклонит все входящие телефонные вызовы до тех пор, пока текущий телефонный вызов не будет завершен, см. [здесь »](https://core.telegram.org/api/calls.md#one-to-one-calls) для получения дополнительной информации о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.receivedCall", "x-tl-id": "399855457", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_ALREADY_DECLINED` — Вызов уже отклонен.\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.receivedCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Телефонный звонок, в котором мы сейчас находимся"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | Да | Телефонный звонок, в котором мы сейчас находимся |"}, "x-telegram-rpc-errors": ["CALL_ALREADY_DECLINED", "CALL_PEER_INVALID"], "x-browser-schema-id": "399855457"}}, "/catalog/phone.discardCall": {"post": {"operationId": "phone.discardCall", "tags": ["Звонки"], "summary": "Отклонить или завершить текущий вызов. Дополнительную информацию о полном потоке см. здесь ».", "description": "Отклонить или завершить текущий вызов см. [здесь »](https://core.telegram.org/api/calls.md#one-to-one-calls) для получения дополнительной информации о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.discardCall", "x-tl-id": "2999697856", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_ALREADY_ACCEPTED` — Вызов уже принят.\n- 500 · `CALL_OCCUPY_FAILED` — Не удалось выполнить вызов, поскольку пользователь уже совершает другой вызов.\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.discardCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Видеозвонок ли это"}, "peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Телефонный звонок"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность звонка"}, "reason": {"type": "object", "x-tl-type": "PhoneCallDiscardReason", "oneOf": [{"$ref": "#/components/schemas/phoneCallDiscardReasonMissed"}, {"$ref": "#/components/schemas/phoneCallDiscardReasonDisconnect"}, {"$ref": "#/components/schemas/phoneCallDiscardReasonHangup"}, {"$ref": "#/components/schemas/phoneCallDiscardReasonBusy"}, {"$ref": "#/components/schemas/phoneCallDiscardReasonMigrateConferenceCall"}], "description": "Почему звонок был сброшен"}, "connection_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Предпочитаемый идентификатор реле libtgvoip", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "duration", "reason", "connection_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `video` | `true` | Нет | Видеозвонок ли это |\n| `peer` | `InputPhoneCall` | Да | Телефонный звонок |\n| `duration` | `int` | Да | Продолжительность звонка |\n| `reason` | `PhoneCallDiscardReason` | Да | Почему звонок был сброшен |\n| `connection_id` | `long` | Да | Предпочитаемый идентификатор реле libtgvoip |"}, "x-telegram-rpc-errors": ["CALL_ALREADY_ACCEPTED", "CALL_OCCUPY_FAILED", "CALL_PEER_INVALID"], "x-browser-schema-id": "2999697856"}}, "/catalog/phone.setCallRating": {"post": {"operationId": "phone.setCallRating", "tags": ["Звонки"], "summary": "Оценить вызов, возвращает информацию о рейтинговом сообщении, отправленном официальному боту VoIP. Дополнительную информацию о полном потоке см. здесь ».", "description": "Оценить вызов, возвращает информацию о рейтинговом сообщении, отправленном официальному боту VoIP. Дополнительную информацию о полном потоке см. [здесь »](https://core.telegram.org/api/calls.md#call-rating).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.setCallRating", "x-tl-id": "1508562471", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.setCallRating"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_initiative": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если пользователь решил по собственной инициативе оценить вызов, необходимо установить NOT, если оценка была запрошена сервером с помощью [phoneCallDiscarded](https://core.telegram.org/constructor/phoneCallDiscarded.md).`need_rating`."}, "peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Призыв оценить"}, "rating": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Рейтинг в `1-5` звездах"}, "comment": {"type": "string", "x-tl-type": "string", "description": "Дополнительный комментарий с проблемными хэштегами см. [здесь »](https://core.telegram.org/api/calls.md#call-rating) для получения дополнительной информации о полном потоке."}}, "additionalProperties": false, "required": ["peer", "rating", "comment"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `user_initiative` | `true` | Нет | Если пользователь решил по собственной инициативе оценить вызов, необходимо установить NOT, если оценка была запрошена сервером с помощью [phoneCallDiscarded](https://core.telegram.org/constructor/phoneCallDiscarded.md).`need_rating`. |\n| `peer` | `InputPhoneCall` | Да | Призыв оценить |\n| `rating` | `int` | Да | Рейтинг в `1-5` звездах |\n| `comment` | `string` | Да | Дополнительный комментарий с проблемными хэштегами см. [здесь »](https://core.telegram.org/api/calls.md#call-rating) для получения дополнительной информации о полном потоке. |"}, "x-telegram-rpc-errors": ["CALL_PEER_INVALID"], "x-browser-schema-id": "1508562471"}}, "/catalog/phone.saveCallDebug": {"post": {"operationId": "phone.saveCallDebug", "tags": ["Звонки"], "summary": "Отправьте данные отладки телефонного звонка на сервер.", "description": "Отправьте [телефонный звонок](https://core.telegram.org/api/calls.md#call-debug) отладочные данные на сервер.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.saveCallDebug", "x-tl-id": "662363518", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен.\n- 400 · `DATA_JSON_INVALID` — Предоставленные данные JSON недействительны."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.saveCallDebug"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Телефонный звонок"}, "debug": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Статистика отладки, полученная от tgcalls"}}, "additionalProperties": false, "required": ["peer", "debug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | Да | Телефонный звонок |\n| `debug` | `DataJSON` | Да | Статистика отладки, полученная от tgcalls |"}, "x-telegram-rpc-errors": ["CALL_PEER_INVALID", "DATA_JSON_INVALID"], "x-browser-schema-id": "662363518"}}, "/catalog/phone.sendSignalingData": {"post": {"operationId": "phone.sendSignalingData", "tags": ["Звонки"], "summary": "Отправка данных сигнализации VoIP для текущего телефонного звонка.", "description": "Отправьте VoIP [сигнальные данные](https://core.telegram.org/api/calls.md#signaling-data) для текущего телефонного звонка.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.sendSignalingData", "x-tl-id": "4286223235", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_NOT_ACTIVE` — Указанный вызов не активен.\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.sendSignalingData"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Телефонный звонок"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Сигнальная полезная нагрузка"}}, "additionalProperties": false, "required": ["peer", "data"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | Да | Телефонный звонок |\n| `data` | `bytes` | Да | Сигнальная полезная нагрузка |"}, "x-telegram-rpc-errors": ["CALL_NOT_ACTIVE", "CALL_PEER_INVALID"], "x-browser-schema-id": "4286223235"}}, "/catalog/phone.createGroupCall": {"post": {"operationId": "phone.createGroupCall", "tags": ["Звонки"], "summary": "Создайте видеочат или прямую трансляцию. Подробную информацию см. здесь ».", "description": "Создайте видеочат или прямую трансляцию, полную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "phone.createGroupCall", "x-tl-id": "1221445336", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `CREATE_CALL_FAILED` — Произошла ошибка при создании звонка.\n- 400 · `GROUPCALL_ALREADY_DISCARDED` — Групповой вызов уже сброшен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SCHEDULE_DATE_INVALID` — Указана неверная дата расписания."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.createGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Создайте вызов в [RTMP режиме прямой трансляции »](https://core.telegram.org/api/group-calls.md#stream-mode), где один внешний стример публикует все аудио и видео."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Свяжите групповой вызов или прямую трансляцию с предоставленной [группой/супергруппой/каналом](https://core.telegram.org/api/channel.md)"}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Уникальный идентификатор сообщения клиента, необходимый для предотвращения создания повторяющихся групповых вызовов. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Название вызова, если оно не установлено, по умолчанию используется имя группы/канала."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Дата расписания, минимум на 10 секунд и максимум на 8 дней в будущем; вызов по-прежнему необходимо запускать вручную с помощью [phone.startScheduledGroupCall](https://core.telegram.org/method/phone.startScheduledGroupCall.md)"}}, "additionalProperties": false, "required": ["peer", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `rtmp_stream` | `true` | Нет | Создайте вызов в [RTMP режиме прямой трансляции »](https://core.telegram.org/api/group-calls.md#stream-mode), где один внешний стример публикует все аудио и видео. |\n| `peer` | `InputPeer` | Да | Свяжите групповой вызов или прямую трансляцию с предоставленной [группой/супергруппой/каналом](https://core.telegram.org/api/channel.md) |\n| `random_id` | `int` | Да | Уникальный идентификатор сообщения клиента, необходимый для предотвращения создания повторяющихся групповых вызовов. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `title` | `string` | Нет | Название вызова, если оно не установлено, по умолчанию используется имя группы/канала. |\n| `schedule_date` | `int` | Нет | Дата расписания, минимум на 10 секунд и максимум на 8 дней в будущем; вызов по-прежнему необходимо запускать вручную с помощью [phone.startScheduledGroupCall](https://core.telegram.org/method/phone.startScheduledGroupCall.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED", "CREATE_CALL_FAILED", "GROUPCALL_ALREADY_DISCARDED", "PEER_ID_INVALID", "SCHEDULE_DATE_INVALID"], "x-browser-schema-id": "1221445336"}}, "/catalog/phone.joinGroupCall": {"post": {"operationId": "phone.joinGroupCall", "tags": ["Звонки"], "summary": "Присоединяйтесь к любому типу группового вызова». Для конференц-связи дополнительно требуется поток присоединения E2E».", "description": "Присоединяйтесь к любому [тип группового вызова »](https://core.telegram.org/api/group-calls.md#group-call-types). Для конференц-связи дополнительно требуется [E2E поток присоединения »](https://core.telegram.org/api/end-to-end/group-calls.md#joining-a-call).\n\nПоле `params` должно содержать полезную нагрузку соединения, созданную локальным механизмом группового вызова tgcalls. Он содержит случайный ненулевой звук `ssrc`, ICE `ufrag` и `pwd`, DTLS `fingerprints`, а при публикации видео — `ssrc-groups`.\n\nНапример, полезная нагрузка соединения без опубликованного видео имеет следующую форму:\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)\n- [Deep links](https://core.telegram.org/api/links.md)\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.joinGroupCall", "x-tl-id": "2411016279", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"], ["Deep links", "https://core.telegram.org/api/links.md"], ["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 403 · `CHAT_WRITE_FORBIDDEN` — В этом чате нельзя писать.\n- 400 · `DATA_JSON_INVALID` — Предоставленные данные JSON недействительны.\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `GROUPCALL_SSRC_DUPLICATE_MUCH` — приложению необходимо повторить попытку присоединения к групповому вызову с новым значением SSRC.\n- 400 · `JOIN_AS_PEER_INVALID` — Указанный узел нельзя использовать для присоединения к групповому вызову.\n- 400 · `PUBLIC_KEY_INVALID` — Указанный открытый ключ e2e недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.joinGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Присоединиться без звука; требуется для слушателей живых историй и зрителей в режиме RTMP"}, "video_stopped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Присоединяйтесь с отключенным видео; требуется для слушателей живых историй и зрителей в режиме RTMP"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой призыв присоединиться"}, "join_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Присоединитесь к групповому звонку, представившись указанным пользователем/каналом; этот узел также используется в качестве автора сообщений в обычных видеочатах/прямых трансляциях. Только видеочаты/прямые трансляции могут использовать другого узла; это поле должно быть равно [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) при присоединении к [живым историям »](https://core.telegram.org/api/group-calls.md#live-stories) или [конференц-связи »](https://core.telegram.org/api/group-calls.md#conference-calls)."}, "invite_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Хэш приглашения из [ссылки для приглашения »](https://core.telegram.org/api/links.md#video-chat-livestream-links), если он предоставлен, позволяет выступать в прямой трансляции или групповом звонке с отключенным звуком (только [видеочаты/прямые трансляции »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams), не могут использоваться [живые истории »](https://core.telegram.org/api/group-calls.md#live-stories) или [конференц-связь »](https://core.telegram.org/api/group-calls.md#conference-calls))."}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "int256", "x-tl-flag": "flags.3?int256", "description": "Только для [конференц-связи »](https://core.telegram.org/api/group-calls.md#conference-calls) — ваш открытый ключ."}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.3?bytes", "description": "[Блок основной цепочки, который добавляет присоединяющегося пользователя »](https://core.telegram.org/api/end-to-end/group-calls.md#joining-a-call), только для [конференц-связи »](https://core.telegram.org/api/group-calls.md#conference-calls)."}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Присоединяйтесь к полезной нагрузке, созданной локальным механизмом группового вызова tgcalls, как описано выше."}}, "additionalProperties": false, "required": ["call", "join_as", "params"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `muted` | `true` | Нет | Присоединиться без звука; требуется для слушателей живых историй и зрителей в режиме RTMP |\n| `video_stopped` | `true` | Нет | Присоединяйтесь с отключенным видео; требуется для слушателей живых историй и зрителей в режиме RTMP |\n| `call` | `InputGroupCall` | Да | Групповой призыв присоединиться |\n| `join_as` | `InputPeer` | Да | Присоединитесь к групповому звонку, представившись указанным пользователем/каналом; этот узел также используется в качестве автора сообщений в обычных видеочатах/прямых трансляциях. Только видеочаты/прямые трансляции могут использовать другого узла; это поле должно быть равно [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) при присоединении к [живым историям »](https://core.telegram.org/api/group-calls.md#live-stories) или [конференц-связи »](https://core.telegram.org/api/group-calls.md#conference-calls). |\n| `invite_hash` | `string` | Нет | Хэш приглашения из [ссылки для приглашения »](https://core.telegram.org/api/links.md#video-chat-livestream-links), если он предоставлен, позволяет выступать в прямой трансляции или групповом звонке с отключенным звуком (только [видеочаты/прямые трансляции »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams), не могут использоваться [живые истории »](https://core.telegram.org/api/group-calls.md#live-stories) или [конференц-связь »](https://core.telegram.org/api/group-calls.md#conference-calls)). |\n| `public_key` | `int256` | Нет | Только для [конференц-связи »](https://core.telegram.org/api/group-calls.md#conference-calls) — ваш открытый ключ. |\n| `block` | `bytes` | Нет | [Блок основной цепочки, который добавляет присоединяющегося пользователя »](https://core.telegram.org/api/end-to-end/group-calls.md#joining-a-call), только для [конференц-связи »](https://core.telegram.org/api/group-calls.md#conference-calls). |\n| `params` | `DataJSON` | Да | Присоединяйтесь к полезной нагрузке, созданной локальным механизмом группового вызова tgcalls, как описано выше. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "CHAT_WRITE_FORBIDDEN", "DATA_JSON_INVALID", "GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID", "GROUPCALL_SSRC_DUPLICATE_MUCH", "JOIN_AS_PEER_INVALID", "PUBLIC_KEY_INVALID"], "x-browser-schema-id": "2411016279"}}, "/catalog/phone.leaveGroupCall": {"post": {"operationId": "phone.leaveGroupCall", "tags": ["Звонки"], "summary": "Выйти из группового звонка, не завершая его для других участников. Этот метод можно использовать со всеми типами групповых вызовов, дополнительную информацию см. здесь ».", "description": "Выйти из группового звонка, не завершая его для других участников. Этот метод можно использовать со всеми типами групповых вызовов, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.leaveGroupCall", "x-tl-id": "1342404601", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.leaveGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой призыв уйти"}, "source": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор источника основного потока групповых вызовов"}}, "additionalProperties": false, "required": ["call", "source"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой призыв уйти |\n| `source` | `int` | Да | Идентификатор источника основного потока групповых вызовов |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "1342404601"}}, "/catalog/phone.inviteToGroupCall": {"post": {"operationId": "phone.inviteToGroupCall", "tags": ["Звонки"], "summary": "Пригласить группу пользователей в видеочат/прямую трансляцию»; не может использоваться для живых историй» или конференц-связи».", "description": "Пригласите группу пользователей в [видеочат/прямую трансляцию »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams); нельзя использовать для [живых историй »](https://core.telegram.org/api/group-calls.md#live-stories) или [конференций »](https://core.telegram.org/api/group-calls.md#conference-calls).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.inviteToGroupCall", "x-tl-id": "2067345760", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `CHAT_TYPE_INVALID` — Указанный тип пользователя недействителен.\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `INVITE_FORBIDDEN_WITH_JOINAS` — Если пользователь анонимно присоединился к групповому вызову в качестве канала, он не может пригласить других пользователей к групповому вызову, поскольку это приведет к деанонимизации, поскольку приглашение будет отправлено с использованием исходного идентификатора пользователя, а не анонимного идентификатора канала.\n- 400 · `USER_ALREADY_INVITED` — Вы уже пригласили этого пользователя.\n- 403 · `USER_NOT_PARTICIPANT` — Вы не являетесь участником этой супергруппы/канала."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.inviteToGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "[Видеочат/прямая трансляция »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams)"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Пользователи, которых нужно пригласить."}}, "additionalProperties": false, "required": ["call", "users"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | [Видеочат/прямая трансляция »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) |\n| `users` | `Vector<InputUser>` | Да | Пользователи, которых нужно пригласить. |"}, "x-telegram-rpc-errors": ["CHAT_TYPE_INVALID", "GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID", "INVITE_FORBIDDEN_WITH_JOINAS", "USER_ALREADY_INVITED", "USER_NOT_PARTICIPANT"], "x-browser-schema-id": "2067345760"}}, "/catalog/phone.discardGroupCall": {"post": {"operationId": "phone.discardGroupCall", "tags": ["Звонки"], "summary": "Завершите групповой вызов, закрыв комнату для всех участников. Этот метод можно использовать со всеми типами групповых вызовов, дополнительную информацию см. здесь ».", "description": "Завершите групповой вызов, закрыв комнату для всех участников. Этот метод можно использовать со всеми типами групповых вызовов, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.discardGroupCall", "x-tl-id": "2054648117", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_ALREADY_DISCARDED` — Групповой вызов уже сброшен.\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.discardGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой вызов о прекращении"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой вызов о прекращении |"}, "x-telegram-rpc-errors": ["GROUPCALL_ALREADY_DISCARDED", "GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID"], "x-browser-schema-id": "2054648117"}}, "/catalog/phone.toggleGroupCallSettings": {"post": {"operationId": "phone.toggleGroupCallSettings", "tags": ["Звонки"], "summary": "Измените настройки группового вызова. Каждая настройка поддерживает разные типы групповых вызовов. Дополнительную информацию см. здесь ».", "description": "Измените настройки группового вызова. Каждая настройка поддерживает разные типы групповых вызовов, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.toggleGroupCallSettings", "x-tl-id": "2537788146", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `GROUPCALL_CHANGE_FORBIDDEN` — Вы не можете изменить эту настройку группового вызова.\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `GROUPCALL_NOT_MODIFIED` — Настройки группового вызова не менялись."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.toggleGroupCallSettings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"reset_invite_hash": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Сделать недействительными существующие ссылки для приглашений в видеочаты, прямые трансляции и конференции."}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой вызов, настройки которого следует изменить"}, "join_muted": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Должен ли по умолчанию отключаться звук для пользователей, присоединяющихся к видеочату или прямой трансляции, отличным от RTMP"}, "messages_enabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "Включите или отключите наложение сообщений во время звонка в видеочатах/прямых трансляциях, конференциях и живых историях, в том числе в режиме RTMP"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Установите минимальное пожертвование Telegram Stars, требуемое от пользователей, не являющихся владельцем живой истории, для каждого комментария; владелец всегда может оставлять комментарии без пожертвований, а `0` позволяет всем бесплатно оставлять комментарии.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `reset_invite_hash` | `true` | Нет | Сделать недействительными существующие ссылки для приглашений в видеочаты, прямые трансляции и конференции. |\n| `call` | `InputGroupCall` | Да | Групповой вызов, настройки которого следует изменить |\n| `join_muted` | `Bool` | Нет | Должен ли по умолчанию отключаться звук для пользователей, присоединяющихся к видеочату или прямой трансляции, отличным от RTMP |\n| `messages_enabled` | `Bool` | Нет | Включите или отключите наложение сообщений во время звонка в видеочатах/прямых трансляциях, конференциях и живых историях, в том числе в режиме RTMP |\n| `send_paid_messages_stars` | `long` | Нет | Установите минимальное пожертвование Telegram Stars, требуемое от пользователей, не являющихся владельцем живой истории, для каждого комментария; владелец всегда может оставлять комментарии без пожертвований, а `0` позволяет всем бесплатно оставлять комментарии. |"}, "x-telegram-rpc-errors": ["GROUPCALL_CHANGE_FORBIDDEN", "GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID", "GROUPCALL_NOT_MODIFIED"], "x-browser-schema-id": "2537788146"}}, "/catalog/phone.getGroupCall": {"post": {"operationId": "phone.getGroupCall", "tags": ["Звонки"], "summary": "Получите информацию о групповом звонке и его участниках.", "description": "Получите информацию о [групповом звонке](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call) и его участниках.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCall", "x-tl-id": "68699611", "x-tl-result": "phone.GroupCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.GroupCall`.\n\n[phone.GroupCall](https://core.telegram.org/type/phone.GroupCall.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.GroupCall", "oneOf": [{"$ref": "#/components/schemas/phone.groupCall"}], "description": "Тип TL: phone.GroupCall."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой вызов любого типа для получения"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество участников, возвращаемых в этом вызове (0, чтобы вернуть сумму, определенную сервером).  Если количество возвращенных участников меньше, чем [groupCall](https://core.telegram.org/constructor/groupCall.md).`participants_count`, разбивайте по страницам оставшихся участников, используя [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), передавая на `offset` [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md).`participants_next_offset`, возвращенное этим вызовом.  Этот параметр ведет себя иначе, чем `limit` из [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call)."}}, "additionalProperties": false, "required": ["call", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой вызов любого типа для получения |\n| `limit` | `int` | Да | Максимальное количество участников, возвращаемых в этом вызове (0, чтобы вернуть сумму, определенную сервером).  Если количество возвращенных участников меньше, чем [groupCall](https://core.telegram.org/constructor/groupCall.md).`participants_count`, разбивайте по страницам оставшихся участников, используя [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), передавая на `offset` [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md).`participants_next_offset`, возвращенное этим вызовом.  Этот параметр ведет себя иначе, чем `limit` из [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call). |"}, "x-telegram-rpc-errors": ["GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID"], "x-browser-schema-id": "68699611"}}, "/catalog/phone.getGroupParticipants": {"post": {"operationId": "phone.getGroupParticipants", "tags": ["Звонки"], "summary": "Получите участников группового звонка.", "description": "Получите [групповой звонок](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call) участников.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupParticipants", "x-tl-id": "3310934187", "x-tl-result": "phone.GroupParticipants", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.GroupParticipants`.\n\n[phone.GroupParticipants](https://core.telegram.org/type/phone.GroupParticipants.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.GroupParticipants", "oneOf": [{"$ref": "#/components/schemas/phone.groupParticipants"}], "description": "Тип TL: phone.GroupParticipants."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getGroupParticipants"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой вызов, участников которого следует вызвать"}, "ids": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Если указано, будет получена информация об участниках группы об указанных узлах."}, "sources": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Если указано, будет получена информация об участниках группы с указанными идентификаторами источников WebRTC."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для результатов, взятое из поля `next_offset` [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) или поля `participants_next_offset` [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md)), изначально это пустая строка.  Примечание. Если больше нет доступных результатов, вызов метода вернет пустое `next_offset`; таким образом, избегайте предоставления `next_offset`, возвращаемого в [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md), если он пуст, чтобы избежать бесконечного цикла."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["call", "ids", "sources", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой вызов, участников которого следует вызвать |\n| `ids` | `Vector<InputPeer>` | Да | Если указано, будет получена информация об участниках группы об указанных узлах. |\n| `sources` | `Vector<int>` | Да | Если указано, будет получена информация об участниках группы с указанными идентификаторами источников WebRTC. |\n| `offset` | `string` | Да | Смещение для результатов, взятое из поля `next_offset` [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) или поля `participants_next_offset` [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md)), изначально это пустая строка.  Примечание. Если больше нет доступных результатов, вызов метода вернет пустое `next_offset`; таким образом, избегайте предоставления `next_offset`, возвращаемого в [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md), если он пуст, чтобы избежать бесконечного цикла. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "3310934187"}}, "/catalog/phone.checkGroupCall": {"post": {"operationId": "phone.checkGroupCall", "tags": ["Звонки"], "summary": "Проверьте, какой из указанных идентификаторов источника сервер все еще распознает как присоединенный к групповому вызову. Этот метод можно использовать со всеми типами групповых вызовов, дополнительную информацию см. здесь ».", "description": "Проверьте, какой из указанных идентификаторов источника сервер все еще распознает как присоединенный к групповому вызову. Этот метод можно использовать со всеми типами групповых вызовов, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#maintaining-group-call-connections).\n\nПосле присоединения к основному соединению с [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md) периодически передавайте этому методу его ненулевой идентификатор SSRC/source. Если подключение к презентации также активно, включите отдельный источник, зарегистрированный с помощью [phone.joinGroupCallPresentation](https://core.telegram.org/method/phone.joinGroupCallPresentation.md).\n\nМетод возвращает подмножество предоставленных источников, которые все еще объединены. Отсутствие источника означает, что соответствующее соединение необходимо создать заново и присоединиться к нему снова; он не указывает, передаются ли в данный момент медиа-пакеты. Если метод возвращает `GROUPCALL_JOIN_MISSING`, необходимо повторно подключиться к основному соединению.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.checkGroupCall", "x-tl-id": "3046963575", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<int>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[int](https://core.telegram.org/type/int.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `GROUPCALL_JOIN_MISSING` — Вы не присоединились к групповому вызову."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.checkGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой вызов, соединения WebRTC которого следует проверить"}, "sources": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Ненулевые SSRC/идентификаторы источника основного и презентационного соединений вызывающего абонента."}}, "additionalProperties": false, "required": ["call", "sources"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой вызов, соединения WebRTC которого следует проверить |\n| `sources` | `Vector<int>` | Да | Ненулевые SSRC/идентификаторы источника основного и презентационного соединений вызывающего абонента. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "GROUPCALL_JOIN_MISSING"], "x-browser-schema-id": "3046963575"}}, "/catalog/phone.toggleGroupCallRecord": {"post": {"operationId": "phone.toggleGroupCallRecord", "tags": ["Звонки"], "summary": "Начните или остановите запись видеочата/прямой трансляции. Дополнительную информацию см. здесь ». Записанные аудио и видео потоки будут автоматически отправлены в Сохраненные сообщения (чат с самим собой).", "description": "Начните или остановите запись видеочата/прямой трансляции. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams). Записанные аудио и видео потоки будут автоматически отправлены в Сохраненные сообщения (чат с самим собой).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.toggleGroupCallRecord", "x-tl-id": "4045981448", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `GROUPCALL_NOT_MODIFIED` — Настройки группового вызова не менялись."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.toggleGroupCallRecord"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"start": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Начать или остановить запись"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Записывать ли также видеопотоки"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Видеочат/прямая трансляция для записи"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Название записи"}, "video_portrait": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "Если запись видеопотока включена, следует ли записывать в портретном или альбомном режиме"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `start` | `true` | Нет | Начать или остановить запись |\n| `video` | `true` | Нет | Записывать ли также видеопотоки |\n| `call` | `InputGroupCall` | Да | Видеочат/прямая трансляция для записи |\n| `title` | `string` | Нет | Название записи |\n| `video_portrait` | `Bool` | Нет | Если запись видеопотока включена, следует ли записывать в портретном или альбомном режиме |"}, "x-telegram-rpc-errors": ["GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID", "GROUPCALL_NOT_MODIFIED"], "x-browser-schema-id": "4045981448"}}, "/catalog/phone.editGroupCallParticipant": {"post": {"operationId": "phone.editGroupCallParticipant", "tags": ["Звонки"], "summary": "Редактировать информацию об участнике видеочата/прямой трансляции или конференции, не относящейся к RTMP. Поле `raise_hand` поддерживается только в видеочатах/прямых трансляциях, дополнительную информацию см. здесь ».", "description": "Редактировать информацию об участнике видеочата/прямой трансляции или конференции, не относящейся к RTMP. Поле `raise_hand` поддерживается только в видеочатах/прямых трансляциях, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call).\n\nПримечание. Параметры [flags](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields).N?[Bool](https://core.telegram.org/type/Bool.md) могут иметь три возможных значения:\n\n- Если [TL flag](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields) не установлен, предыдущее значение не будет изменено.\n- Если [TL flag](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields) установлен и содержит [boolTrue](https://core.telegram.org/constructor/boolTrue.md), предыдущее значение будет перезаписано на `true`.\n- Если [TL flag](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields) установлен и содержит [boolFalse](https://core.telegram.org/constructor/boolFalse.md), предыдущее значение будет перезаписано на `false`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.editGroupCallParticipant", "x-tl-id": "2770811583", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `PARTICIPANT_JOIN_MISSING` — Попытка включить презентацию, когда пользователь не присоединился к видеочату с помощью [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md).\n- 400 · `RAISE_HAND_FORBIDDEN` — Нельзя поднять руку.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен.\n- 400 · `USER_VOLUME_INVALID` — Указанный том пользователя недействителен.\n- 400 · `VIDEO_PAUSE_FORBIDDEN` — Нельзя поставить видеопоток на паузу.\n- 400 · `VIDEO_STOP_FORBIDDEN` — Остановить видеопоток нельзя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.editGroupCallParticipant"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Видеочат, прямая трансляция или конференция, не относящиеся к RTMP"}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник группового звонка (также может быть сам пользователь)"}, "muted": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Изменить состояние отключения звука участника; разрешение участнику, у которого принудительно отключен звук, самостоятельно включить звук, не приводит к немедленному включению звука"}, "volume": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Новый том, между `1` и `20000`; `10000` представляет 100%. Без прав модерации изменение громкости другого участника влияет только на локальное воспроизведение."}, "raise_hand": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "Поднять или опустить руку; поддерживается только в видеочатах/прямых трансляциях"}, "video_stopped": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool", "description": "Запустить или остановить видеопоток текущего пользователя"}, "video_paused": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.4?Bool", "description": "Приостановить или возобновить видеопоток текущего пользователя."}, "presentation_paused": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.5?Bool", "description": "Приостановить или возобновить поток презентации текущего пользователя"}}, "additionalProperties": false, "required": ["call", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Видеочат, прямая трансляция или конференция, не относящиеся к RTMP |\n| `participant` | `InputPeer` | Да | Участник группового звонка (также может быть сам пользователь) |\n| `muted` | `Bool` | Нет | Изменить состояние отключения звука участника; разрешение участнику, у которого принудительно отключен звук, самостоятельно включить звук, не приводит к немедленному включению звука |\n| `volume` | `int` | Нет | Новый том, между `1` и `20000`; `10000` представляет 100%. Без прав модерации изменение громкости другого участника влияет только на локальное воспроизведение. |\n| `raise_hand` | `Bool` | Нет | Поднять или опустить руку; поддерживается только в видеочатах/прямых трансляциях |\n| `video_stopped` | `Bool` | Нет | Запустить или остановить видеопоток текущего пользователя |\n| `video_paused` | `Bool` | Нет | Приостановить или возобновить видеопоток текущего пользователя. |\n| `presentation_paused` | `Bool` | Нет | Приостановить или возобновить поток презентации текущего пользователя |"}, "x-telegram-rpc-errors": ["GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID", "PARTICIPANT_JOIN_MISSING", "RAISE_HAND_FORBIDDEN", "USER_ID_INVALID", "USER_VOLUME_INVALID", "VIDEO_PAUSE_FORBIDDEN", "VIDEO_STOP_FORBIDDEN"], "x-browser-schema-id": "2770811583"}}, "/catalog/phone.editGroupCallTitle": {"post": {"operationId": "phone.editGroupCallTitle", "tags": ["Звонки"], "summary": "Отредактируйте название видеочата или прямой трансляции. Этот метод нельзя использовать с живыми историями или конференциями. Дополнительную информацию см. здесь ».", "description": "Отредактируйте название видеочата или прямой трансляции. Этот метод нельзя использовать с живыми историями или конференциями, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.editGroupCallTitle", "x-tl-id": "480685066", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.editGroupCallTitle"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Видеочат или прямая трансляция, название которой следует изменить."}, "title": {"type": "string", "x-tl-type": "string", "description": "Новое название"}}, "additionalProperties": false, "required": ["call", "title"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Видеочат или прямая трансляция, название которой следует изменить. |\n| `title` | `string` | Да | Новое название |"}, "x-telegram-rpc-errors": ["GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID"], "x-browser-schema-id": "480685066"}}, "/catalog/phone.getGroupCallJoinAs": {"post": {"operationId": "phone.getGroupCallJoinAs", "tags": ["Звонки"], "summary": "Получите список пиров, которых можно использовать для присоединения к видеочату или прямой трансляции, представив себя как конкретного пользователя/канала.", "description": "Получите список коллег, которых можно использовать для присоединения к [видеочату или прямой трансляции »](https://core.telegram.org/api/group-calls.md#joining-a-group-call-on-behalf-of-owned-channels), представляя себя как конкретного пользователя/канала.\n\nЭтот метод нельзя использовать для живых историй или конференц-звонков. Чтобы прокомментировать или отреагировать в живой истории от имени другого узла, используйте [channels.getSendAs](https://core.telegram.org/method/channels.getSendAs.md) с установленным `for_live_stories` и передайте один из возвращенных узлов в [phone.sendGroupCallMessage](https://core.telegram.org/method/phone.sendGroupCallMessage.md).`send_as`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallJoinAs", "x-tl-id": "4017889594", "x-tl-result": "phone.JoinAsPeers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.JoinAsPeers`.\n\n[phone.JoinAsPeers](https://core.telegram.org/type/phone.JoinAsPeers.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.JoinAsPeers", "oneOf": [{"$ref": "#/components/schemas/phone.joinAsPeers"}], "description": "Тип TL: phone.JoinAsPeers."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getGroupCallJoinAs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Основная группа, супергруппа или канал, к видеочату/прямой трансляции которого мы пытаемся присоединиться; не может ориентироваться на живую историю."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Основная группа, супергруппа или канал, к видеочату/прямой трансляции которого мы пытаемся присоединиться; не может ориентироваться на живую историю. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4017889594"}}, "/catalog/phone.exportGroupCallInvite": {"post": {"operationId": "phone.exportGroupCallInvite", "tags": ["Звонки"], "summary": "Получите ссылку-приглашение для публичного видеочата/прямой трансляции».", "description": "Получите ссылку для приглашения на общедоступный [видеочат/прямую трансляцию »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\nУчастники или подписчики, не являющиеся администраторами, могут экспортировать ссылку с опущенным `can_self_unmute`. Только администраторы групповых вызовов могут установить `can_self_unmute` для экспорта ссылки, позволяющей пользователям говорить.\n\nНевозможно использовать для видеочатов/прямых трансляций, связанных с частными группами/каналами, [конференц-связью »](https://core.telegram.org/api/group-calls.md#conference-calls) или [живыми историями »](https://core.telegram.org/api/group-calls.md#live-stories).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.exportGroupCallInvite", "x-tl-id": "3869926527", "x-tl-result": "phone.ExportedGroupCallInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.ExportedGroupCallInvite`.\n\n[phone.ExportedGroupCallInvite](https://core.telegram.org/type/phone.ExportedGroupCallInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.ExportedGroupCallInvite", "oneOf": [{"$ref": "#/components/schemas/phone.exportedGroupCallInvite"}], "description": "Тип TL: phone.ExportedGroupCallInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 403 · `PUBLIC_CHANNEL_MISSING` — Экспортировать ссылки приглашения на групповой вызов можно только для общедоступных чатов или каналов."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.exportGroupCallInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"can_self_unmute": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Для общедоступных видеочатов/прямых трансляций только администраторы групповых вызовов: разрешите пользователям, которые присоединяются по этой ссылке, говорить без явного запроса разрешения, например, поднимая руку."}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Публикация [видеочат/прямая трансляция »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams)"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `can_self_unmute` | `true` | Нет | Для общедоступных видеочатов/прямых трансляций только администраторы групповых вызовов: разрешите пользователям, которые присоединяются по этой ссылке, говорить без явного запроса разрешения, например, поднимая руку. |\n| `call` | `InputGroupCall` | Да | Публикация [видеочат/прямая трансляция »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "PUBLIC_CHANNEL_MISSING"], "x-browser-schema-id": "3869926527"}}, "/catalog/phone.toggleGroupCallStartSubscription": {"post": {"operationId": "phone.toggleGroupCallStartSubscription", "tags": ["Звонки"], "summary": "Подпишитесь или отмените подписку на запланированный групповой звонок.", "description": "Подписаться или отказаться от подписки на запланированный [групповой звонок](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.toggleGroupCallStartSubscription", "x-tl-id": "563885286", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `GROUPCALL_ALREADY_STARTED` — Групповой звонок уже начался, вы можете присоединиться напрямую, используя [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md).\n- 403 · `GROUPCALL_FORBIDDEN` — Указанный групповой вызов не может быть использован в данном контексте.\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.toggleGroupCallStartSubscription"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Запланированный видеочат/прямая трансляция, которая еще не началась"}, "subscribed": {"type": "boolean", "x-tl-type": "Bool", "description": "Получать ли сообщение служебного уведомления при начале вызова"}}, "additionalProperties": false, "required": ["call", "subscribed"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Запланированный видеочат/прямая трансляция, которая еще не началась |\n| `subscribed` | `Bool` | Да | Получать ли сообщение служебного уведомления при начале вызова |"}, "x-telegram-rpc-errors": ["GROUPCALL_ALREADY_STARTED", "GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID"], "x-browser-schema-id": "563885286"}}, "/catalog/phone.startScheduledGroupCall": {"post": {"operationId": "phone.startScheduledGroupCall", "tags": ["Звонки"], "summary": "Начните запланированный групповой звонок.", "description": "Начните запланированный [групповой звонок](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.startScheduledGroupCall", "x-tl-id": "1451287362", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `GROUPCALL_ALREADY_STARTED` — Групповой звонок уже начался, вы можете присоединиться напрямую, используя [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md).\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.startScheduledGroupCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Запланированный видеочат/прямая трансляция начнется до или после запланированной даты."}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Запланированный видеочат/прямая трансляция начнется до или после запланированной даты. |"}, "x-telegram-rpc-errors": ["GROUPCALL_ALREADY_STARTED", "GROUPCALL_INVALID"], "x-browser-schema-id": "1451287362"}}, "/catalog/phone.saveDefaultGroupCallJoinAs": {"post": {"operationId": "phone.saveDefaultGroupCallJoinAs", "tags": ["Звонки"], "summary": "Установите одноранговый узел по умолчанию, используемый для присоединения к видеочату/прямой трансляции, » связанный с определенным диалогом.", "description": "Установите одноранговый узел по умолчанию, используемый для присоединения к [видеочату/прямой трансляции »](https://core.telegram.org/api/group-calls.md#joining-a-group-call-on-behalf-of-owned-channels), связанному с определенным диалогом.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.saveDefaultGroupCallJoinAs", "x-tl-id": "1465786252", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `JOIN_AS_PEER_INVALID` — Указанный узел нельзя использовать для присоединения к групповому вызову.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.saveDefaultGroupCallJoinAs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Базовая группа, супергруппа или канал, для которого необходимо изменить настройки видеочата/прямой трансляции."}, "join_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Подходящий одноранговый узел для использования по умолчанию при присоединении к видеочатам/прямым трансляциям диалога, выбранный из [phone.getGroupCallJoinAs](https://core.telegram.org/method/phone.getGroupCallJoinAs.md)"}}, "additionalProperties": false, "required": ["peer", "join_as"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Базовая группа, супергруппа или канал, для которого необходимо изменить настройки видеочата/прямой трансляции. |\n| `join_as` | `InputPeer` | Да | Подходящий одноранговый узел для использования по умолчанию при присоединении к видеочатам/прямым трансляциям диалога, выбранный из [phone.getGroupCallJoinAs](https://core.telegram.org/method/phone.getGroupCallJoinAs.md) |"}, "x-telegram-rpc-errors": ["JOIN_AS_PEER_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1465786252"}}, "/catalog/phone.joinGroupCallPresentation": {"post": {"operationId": "phone.joinGroupCallPresentation", "tags": ["Звонки"], "summary": "Начните демонстрацию экрана в видеочате, прямой трансляции или конференции, отличной от RTMP. Презентации не поддерживаются в живых историях или видеочатах/прямых трансляциях в режиме RTMP. Дополнительную информацию см. здесь ».", "description": "Начните демонстрацию экрана в видеочате, прямой трансляции или конференции, отличной от RTMP. Презентации не поддерживаются в живых историях или видеочатах/прямых трансляциях в режиме RTMP, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#presentations).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.joinGroupCallPresentation", "x-tl-id": "3421137860", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 403 · `PARTICIPANT_JOIN_MISSING` — Попытка включить презентацию, когда пользователь не присоединился к видеочату с помощью [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md)."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.joinGroupCallPresentation"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Присоединился к видеочату/прямой трансляции или конференции, отличной от RTMP, чтобы начать презентацию"}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Присоединение полезных данных, созданных отдельным локальным экземпляром механизма вызовов для презентации."}}, "additionalProperties": false, "required": ["call", "params"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Присоединился к видеочату/прямой трансляции или конференции, отличной от RTMP, чтобы начать презентацию |\n| `params` | `DataJSON` | Да | Присоединение полезных данных, созданных отдельным локальным экземпляром механизма вызовов для презентации. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "PARTICIPANT_JOIN_MISSING"], "x-browser-schema-id": "3421137860"}}, "/catalog/phone.leaveGroupCallPresentation": {"post": {"operationId": "phone.leaveGroupCallPresentation", "tags": ["Звонки"], "summary": "Остановите демонстрацию экрана в видеочате, прямой трансляции или конференции, отличной от RTMP. Презентации не поддерживаются в живых историях или видеочатах/прямых трансляциях в режиме RTMP. Дополнительную информацию см. здесь ».", "description": "Остановите демонстрацию экрана в видеочате, прямой трансляции или конференции, отличной от RTMP. Презентации не поддерживаются в живых историях или видеочатах/прямых трансляциях в режиме RTMP, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#presentations).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.leaveGroupCallPresentation", "x-tl-id": "475058500", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.leaveGroupCallPresentation"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой вызов, соединение с презентацией которого должно быть остановлено"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой вызов, соединение с презентацией которого должно быть остановлено |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "475058500"}}, "/catalog/phone.getGroupCallStreamChannels": {"post": {"operationId": "phone.getGroupCallStreamChannels", "tags": ["Звонки"], "summary": "Получите доступные потоковые каналы и текущую временную метку воспроизведения видеочата в режиме RTMP, прямой трансляции или прямой трансляции. Полный текст см. здесь ».", "description": "Получите доступные потоковые каналы и текущую временную метку воспроизведения видеочата в режиме RTMP, прямой трансляции или прямой трансляции. Полный текст см. [здесь »](https://core.telegram.org/api/group-calls.md#rtmp-mode).\nПеред вызовом этого метода необходимо присоединиться к групповому вызову. Отправьте запрос на медиа-DC, указанный в [groupCall](https://core.telegram.org/constructor/groupCall.md).`stream_dc_id`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallStreamChannels", "x-tl-id": "447879488", "x-tl-result": "phone.GroupCallStreamChannels", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.GroupCallStreamChannels`.\n\n[phone.GroupCallStreamChannels](https://core.telegram.org/type/phone.GroupCallStreamChannels.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.GroupCallStreamChannels", "oneOf": [{"$ref": "#/components/schemas/phone.groupCallStreamChannels"}], "description": "Тип TL: phone.GroupCallStreamChannels."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `GROUPCALL_JOIN_MISSING` — Вы не присоединились к групповому вызову."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getGroupCallStreamChannels"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "RTMP-режим видеочата, прямая трансляция или живая история"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | RTMP-режим видеочата, прямая трансляция или живая история |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "GROUPCALL_JOIN_MISSING"], "x-browser-schema-id": "447879488"}}, "/catalog/phone.getGroupCallStreamRtmpUrl": {"post": {"operationId": "phone.getGroupCallStreamRtmpUrl", "tags": ["Звонки"], "summary": "Получите RTMP URL и ключ трансляции, используемый одним внешним стримером, который публикует все аудио и видео для видеочата в режиме RTMP, прямой трансляции или прямой трансляции.", "description": "Получите RTMP URL и ключ трансляции, используемый одним внешним стримером, который публикует все аудио и видео для видеочата в режиме RTMP, прямой трансляции или прямой трансляции.\n\nПолный текст см. [здесь »](https://core.telegram.org/api/group-calls.md#creating-and-publishing-an-rtmp-livestream).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallStreamRtmpUrl", "x-tl-id": "1525991226", "x-tl-result": "phone.GroupCallStreamRtmpUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.GroupCallStreamRtmpUrl`.\n\n[phone.GroupCallStreamRtmpUrl](https://core.telegram.org/type/phone.GroupCallStreamRtmpUrl.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.GroupCallStreamRtmpUrl", "oneOf": [{"$ref": "#/components/schemas/phone.groupCallStreamRtmpUrl"}], "description": "Тип TL: phone.GroupCallStreamRtmpUrl."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getGroupCallStreamRtmpUrl"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"live_story": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Получите учетные данные для прямой трансляции RTMP вместо видеочата/прямой трансляции."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, который будет вести видеочат RTMP, прямую трансляцию или живую историю."}, "revoke": {"type": "boolean", "x-tl-type": "Bool", "description": "Следует ли аннулировать предыдущий ключ потока и создать новый вместо возврата существующего ключа."}}, "additionalProperties": false, "required": ["peer", "revoke"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `live_story` | `true` | Нет | Получите учетные данные для прямой трансляции RTMP вместо видеочата/прямой трансляции. |\n| `peer` | `InputPeer` | Да | Пир, который будет вести видеочат RTMP, прямую трансляцию или живую историю. |\n| `revoke` | `Bool` | Да | Следует ли аннулировать предыдущий ключ потока и создать новый вместо возврата существующего ключа. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "1525991226"}}, "/catalog/phone.saveCallLog": {"post": {"operationId": "phone.saveCallLog", "tags": ["Звонки"], "summary": "Устарело: отправлять отладочную информацию по телефонному звонку libtgvoip.", "description": "Устарело: отправлять отладочную информацию по телефонному звонку libtgvoip.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "phone.saveCallLog", "x-tl-id": "1092913030", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CALL_PEER_INVALID` — Предоставленный объект узла вызова недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.saveCallLog"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "Телефонный звонок"}, "file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Журналы libtgvoip"}}, "additionalProperties": false, "required": ["peer", "file"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | Да | Телефонный звонок |\n| `file` | `InputFile` | Да | Журналы libtgvoip |"}, "x-telegram-rpc-errors": ["CALL_PEER_INVALID"], "x-browser-schema-id": "1092913030"}}, "/catalog/phone.createConferenceCall": {"post": {"operationId": "phone.createConferenceCall", "tags": ["Звонки"], "summary": "Создайте и при необходимости присоединитесь к новой конференц-связи».", "description": "Создайте и при необходимости присоединитесь к новой [конференц-связи »](https://core.telegram.org/api/group-calls.md#conference-calls).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.createConferenceCall", "x-tl-id": "2097431739", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.createConferenceCall"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, отключите микрофон при присоединении к вызову (можно использовать, только если установлено `join`)."}, "video_stopped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Если установлено, наш видеопоток отключен (можно использовать, только если установлено `join`)."}, "join": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Если установлено, также присоединитесь к вызову, в противном случае просто создайте ссылку на вызов."}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Уникальный идентификатор сообщения клиента, необходимый для предотвращения создания повторяющихся групповых вызовов. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID."}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "int256", "x-tl-flag": "flags.3?int256", "description": "Свежий открытый ключ E2E для создателя (можно использовать, только если установлен `join`)."}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.3?bytes", "description": "Начальный блок основной цепи для подцепи `0` (можно использовать, только если установлен `join`)."}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Полезные данные соединения, сгенерированные локальным механизмом вызовов (можно использовать, только если установлено `join`).", "x-tl-flag": "flags.3?DataJSON"}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `muted` | `true` | Нет | Если установлено, отключите микрофон при присоединении к вызову (можно использовать, только если установлено `join`). |\n| `video_stopped` | `true` | Нет | Если установлено, наш видеопоток отключен (можно использовать, только если установлено `join`). |\n| `join` | `true` | Нет | Если установлено, также присоединитесь к вызову, в противном случае просто создайте ссылку на вызов. |\n| `random_id` | `int` | Да | Уникальный идентификатор сообщения клиента, необходимый для предотвращения создания повторяющихся групповых вызовов. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `public_key` | `int256` | Нет | Свежий открытый ключ E2E для создателя (можно использовать, только если установлен `join`). |\n| `block` | `bytes` | Нет | Начальный блок основной цепи для подцепи `0` (можно использовать, только если установлен `join`). |\n| `params` | `DataJSON` | Нет | Полезные данные соединения, сгенерированные локальным механизмом вызовов (можно использовать, только если установлено `join`). |"}, "x-browser-schema-id": "2097431739"}}, "/catalog/phone.deleteConferenceCallParticipants": {"post": {"operationId": "phone.deleteConferenceCallParticipants", "tags": ["Звонки"], "summary": "Удаление участников из конференц-связи».", "description": "Удалить участников из [конференц-связи »](https://core.telegram.org/api/end-to-end/group-calls.md#removing-a-participant).\n\nДолжен быть установлен ровно один из флагов `only_left` и `kick`.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.deleteConferenceCallParticipants", "x-tl-id": "2359690533", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.deleteConferenceCallParticipants"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"only_left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Является ли это удалением участников, которые уже покинули конференц-связь."}, "kick": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Является ли это принудительным удалением активных участников конференц-связи."}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Конференция, из которой удалить участников"}, "ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Идентификаторы пользователей для удаления из конференции и блокчейна E2E"}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Блок основной цепочки, удаляющий указанных пользователей и создающий новый общий ключ, см. [удаление участника »](https://core.telegram.org/api/end-to-end/group-calls.md#removing-a-participant)"}}, "additionalProperties": false, "required": ["call", "ids", "block"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `only_left` | `true` | Нет | Является ли это удалением участников, которые уже покинули конференц-связь. |\n| `kick` | `true` | Нет | Является ли это принудительным удалением активных участников конференц-связи. |\n| `call` | `InputGroupCall` | Да | Конференция, из которой удалить участников |\n| `ids` | `Vector<long>` | Да | Идентификаторы пользователей для удаления из конференции и блокчейна E2E |\n| `block` | `bytes` | Да | Блок основной цепочки, удаляющий указанных пользователей и создающий новый общий ключ, см. [удаление участника »](https://core.telegram.org/api/end-to-end/group-calls.md#removing-a-participant) |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "2359690533"}}, "/catalog/phone.sendConferenceCallBroadcast": {"post": {"operationId": "phone.sendConferenceCallBroadcast", "tags": ["Звонки"], "summary": "Отправьте проверочное сообщение в подцепочку конференц-связи `1`, см. подцепочки ».", "description": "Отправьте проверочное сообщение в подцепочку конференц-связи `1`, см. [подцепочки »](https://core.telegram.org/api/end-to-end/group-calls.md#subchains).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.sendConferenceCallBroadcast", "x-tl-id": "3329235200", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.sendConferenceCallBroadcast"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Конференция, чья подцепь проверки должна получить сообщение"}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Сериализованное проверочное сообщение `e2e.chain.GroupBroadcast`."}}, "additionalProperties": false, "required": ["call", "block"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Конференция, чья подцепь проверки должна получить сообщение |\n| `block` | `bytes` | Да | Сериализованное проверочное сообщение `e2e.chain.GroupBroadcast`. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "3329235200"}}, "/catalog/phone.inviteConferenceCallParticipant": {"post": {"operationId": "phone.inviteConferenceCallParticipant", "tags": ["Звонки"], "summary": "Пригласите пользователя на конференцию.", "description": "Пригласите пользователя на [конференц-связь](https://core.telegram.org/api/group-calls.md#conference-calls).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.inviteConferenceCallParticipant", "x-tl-id": "3169986181", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.inviteConferenceCallParticipant"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Является ли это приглашением на видеоконференцию"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Конференц-связь."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь, которого приглашают."}}, "additionalProperties": false, "required": ["call", "user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `video` | `true` | Нет | Является ли это приглашением на видеоконференцию |\n| `call` | `InputGroupCall` | Да | Конференц-связь. |\n| `user_id` | `InputUser` | Да | Пользователь, которого приглашают. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "3169986181"}}, "/catalog/phone.declineConferenceCallInvite": {"post": {"operationId": "phone.declineConferenceCallInvite", "tags": ["Звонки"], "summary": "Отклонить приглашение на конференц-связь.", "description": "Отклонить приглашение на [конференцию](https://core.telegram.org/api/group-calls.md#conference-calls).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.declineConferenceCallInvite", "x-tl-id": "1011325297", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.declineConferenceCallInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md), который нужно отклонить."}}, "additionalProperties": false, "required": ["msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `msg_id` | `int` | Да | Идентификатор [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md), который нужно отклонить. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID"], "x-browser-schema-id": "1011325297"}}, "/catalog/phone.getGroupCallChainBlocks": {"post": {"operationId": "phone.getGroupCallChainBlocks", "tags": ["Звонки"], "summary": "Получить блоки из подцепи конференц-связи »; обработайте возвращенный updateGroupCallChainBlocks, как указано здесь ».", "description": "Получить блоки из конференц-связи [подцепочка »](https://core.telegram.org/api/end-to-end/group-calls.md#subchains); обработать возвращенный [updateGroupCallChainBlocks](https://core.telegram.org/constructor/updateGroupCallChainBlocks.md), как [указанно здесь »](https://core.telegram.org/api/end-to-end/group-calls.md#handling-updates).\n\nЕсли количество блоков, возвращаемых *любым* вызовом этого метода, равно `limit`, этот метод необходимо повторно вызвать сразу после обработки возвращенного [updateGroupCallChainBlocks](https://core.telegram.org/constructor/updateGroupCallChainBlocks.md), с вновь зафиксированным `offset` (обычно равным возвращенному `next_offset`).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.getGroupCallChainBlocks", "x-tl-id": "4003432614", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getGroupCallChainBlocks"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Конференция, блоки подцепи которой должны быть извлечены"}, "sub_chain_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "`0` для основного блокчейна состояния, `1` для подцепи проверки звонков"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Извлекайте блоки, начиная с этой высоты; передайте `-1`, чтобы получить последний блок"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество блоков, возвращаемых в этом вызове, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md), максимум 100."}}, "additionalProperties": false, "required": ["call", "sub_chain_id", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Конференция, блоки подцепи которой должны быть извлечены |\n| `sub_chain_id` | `int` | Да | `0` для основного блокчейна состояния, `1` для подцепи проверки звонков |\n| `offset` | `int` | Да | Извлекайте блоки, начиная с этой высоты; передайте `-1`, чтобы получить последний блок |\n| `limit` | `int` | Да | Максимальное количество блоков, возвращаемых в этом вызове, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md), максимум 100. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "4003432614"}}, "/catalog/phone.sendGroupCallMessage": {"post": {"operationId": "phone.sendGroupCallMessage", "tags": ["Звонки"], "summary": "Отправьте входящие сообщения всем участникам видеочата/прямой трансляции или прямой трансляции, в том числе в режиме RTMP, подробнее см. здесь ».", "description": "Отправьте сообщение во время звонка всем участникам видеочата/прямой трансляции или прямой трансляции, в том числе в режиме RTMP, дополнительную информацию см. [здесь »](https://core.telegram.org/api/group-calls.md#in-call-messages).\n\nПоле `send_as` может быть заполнено только для живых историй, где при необходимости можно выбрать отображаемого автора. Если этот параметр опущен, сервер автоматически выбирает соответствующего автора. Не заполняйте его для видеочатов/прямых трансляций.\n\nВидеочаты/прямые трансляции и живые истории поддерживают [анимированные эмодзи-реакции »](https://core.telegram.org/api/group-calls.md#in-call-reactions), закодированные как сообщения, содержащие только стандартные доступные эмодзи-реакции или один собственный объект эмодзи.\n\nДля платного комментария к истории в прямом эфире укажите подтвержденную пользователем сумму пожертвования в `allow_paid_stars`. Для комментаторов, не являющихся владельцем актуальной истории, эта сумма должна быть не ниже текущего минимума [groupCall](https://core.telegram.org/constructor/groupCall.md).`send_paid_messages_stars`. Для выделения комментария можно пожертвовать большую сумму. Владелец прямой трансляции может комментировать, не заполняя `allow_paid_stars`. Чтобы отправить отдельное платное пожертвование в виде живой истории, передайте положительное значение `allow_paid_stars` и пустое `message`, полный текст см. [здесь »](https://core.telegram.org/api/group-calls.md#paid-live-story-donations).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.sendGroupCallMessage", "x-tl-id": "2983269392", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен.\n- 400 · `GROUPCALL_JOIN_MISSING` — Вы не присоединились к групповому вызову."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.sendGroupCallMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Видеочат/прямая трансляция или живая история, которая должна получить сообщение, реакцию или пожертвование"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Свежий случайный идентификатор, сгенерированный клиентом, используемый для дедупликации сообщения или пожертвования. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Текст сообщения или реакция смайлика; передайте пустое значение при отправке отдельного платного пожертвования в виде живой истории"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Подтвержденное пользователем количество Telegram Stars для пожертвования в виде комментария к истории или отдельного пожертвования.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Необязательный партнер для отображения в качестве автора сообщения или реакции в реальном времени; можно использовать только для живых историй", "x-tl-flag": "flags.1?InputPeer"}}, "additionalProperties": false, "required": ["call", "random_id", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Видеочат/прямая трансляция или живая история, которая должна получить сообщение, реакцию или пожертвование |\n| `random_id` | `long` | Да | Свежий случайный идентификатор, сгенерированный клиентом, используемый для дедупликации сообщения или пожертвования. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `message` | `TextWithEntities` | Да | Текст сообщения или реакция смайлика; передайте пустое значение при отправке отдельного платного пожертвования в виде живой истории |\n| `allow_paid_stars` | `long` | Нет | Подтвержденное пользователем количество Telegram Stars для пожертвования в виде комментария к истории или отдельного пожертвования. |\n| `send_as` | `InputPeer` | Нет | Необязательный партнер для отображения в качестве автора сообщения или реакции в реальном времени; можно использовать только для живых историй |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "GROUPCALL_JOIN_MISSING"], "x-browser-schema-id": "2983269392"}}, "/catalog/phone.sendGroupCallEncryptedMessage": {"post": {"operationId": "phone.sendGroupCallEncryptedMessage", "tags": ["Звонки"], "summary": "Отправьте зашифрованное E2E сообщение или эмодзи-реакцию всем участникам конференц-связи. Этот метод можно использовать только с конференциями; см. здесь » для получения информации о процессе сериализации и шифрования.", "description": "Отправьте зашифрованное E2E сообщение или эмодзи-реакцию всем участникам конференц-связи. Этот метод можно использовать только с конференциями; см. [здесь »](https://core.telegram.org/api/end-to-end/group-calls.md#conference-in-call-messages) процесс сериализации и шифрования.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.sendGroupCallEncryptedMessage", "x-tl-id": "3853493613", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.sendGroupCallEncryptedMessage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Конференц-связь, на которую должно быть получено зашифрованное сообщение или реакция."}, "encrypted_message": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Полное зашифрованное сообщение или пакет реакции, созданный, как указано [здесь »](https://core.telegram.org/api/end-to-end/group-calls.md#encrypting-and-sending-a-message)"}}, "additionalProperties": false, "required": ["call", "encrypted_message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Конференц-связь, на которую должно быть получено зашифрованное сообщение или реакция. |\n| `encrypted_message` | `bytes` | Да | Полное зашифрованное сообщение или пакет реакции, созданный, как указано [здесь »](https://core.telegram.org/api/end-to-end/group-calls.md#encrypting-and-sending-a-message) |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "3853493613"}}, "/catalog/phone.deleteGroupCallMessages": {"post": {"operationId": "phone.deleteGroupCallMessages", "tags": ["Звонки"], "summary": "Удаление определенных сообщений из наложения сообщений входящих звонков » видеочата/прямой трансляции или прямой трансляции, в том числе в режиме RTMP.", "description": "Удалите определенные сообщения из [наложения сообщений во время вызова »](https://core.telegram.org/api/group-calls.md#in-call-messages) видеочата/прямой трансляции или прямой трансляции, в том числе в режиме RTMP.\n\nУчастники, не являющиеся администраторами, могут удалять отправленные ими сообщения; Админы могут удалить любое сообщение.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.deleteGroupCallMessages", "x-tl-id": "4132394231", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.deleteGroupCallMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"report_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Модерируя сообщения другого участника, также сообщайте о них как о спаме."}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Видеочат/прямая трансляция или живая история, содержащая сообщения"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы сообщений, которые нужно удалить"}}, "additionalProperties": false, "required": ["call", "messages"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `report_spam` | `true` | Нет | Модерируя сообщения другого участника, также сообщайте о них как о спаме. |\n| `call` | `InputGroupCall` | Да | Видеочат/прямая трансляция или живая история, содержащая сообщения |\n| `messages` | `Vector<int>` | Да | Идентификаторы сообщений, которые нужно удалить |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "4132394231"}}, "/catalog/phone.deleteGroupCallParticipantMessages": {"post": {"operationId": "phone.deleteGroupCallParticipantMessages", "tags": ["Звонки"], "summary": "Будучи администратором, вы можете удалить все сообщения от конкретного участника в наложении сообщений во время разговора » видеочата/прямой трансляции или прямой трансляции, в том числе в режиме RTMP.", "description": "Будучи администратором, вы можете удалить все сообщения от определенного участника в [наложении сообщений во время разговора »](https://core.telegram.org/api/group-calls.md#in-call-messages) видеочата/прямой трансляции или прямой трансляции, в том числе в режиме RTMP.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.deleteGroupCallParticipantMessages", "x-tl-id": "499117216", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.deleteGroupCallParticipantMessages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"report_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Также сообщить о сообщениях участника как о спаме"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Видеочат/прямая трансляция или живая история, содержащая сообщения"}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Участник, чьи сообщения следует удалить"}}, "additionalProperties": false, "required": ["call", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `report_spam` | `true` | Нет | Также сообщить о сообщениях участника как о спаме |\n| `call` | `InputGroupCall` | Да | Видеочат/прямая трансляция или живая история, содержащая сообщения |\n| `participant` | `InputPeer` | Да | Участник, чьи сообщения следует удалить |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "499117216"}}, "/catalog/phone.getGroupCallStars": {"post": {"operationId": "phone.getGroupCallStars", "tags": ["Звонки"], "summary": "Получите общую информацию о пожертвованиях прямой трансляции и основных спонсорах, посмотрите оплаченные пожертвования прямой трансляции ».", "description": "Получите информацию об общей сумме пожертвований прямой трансляции и крупнейших спонсорах, см. [платные пожертвования прямой трансляции »](https://core.telegram.org/api/group-calls.md#paid-live-story-donations).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallStars", "x-tl-id": "1868784386", "x-tl-result": "phone.GroupCallStars", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `phone.GroupCallStars`.\n\n[phone.GroupCallStars](https://core.telegram.org/type/phone.GroupCallStars.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "phone.GroupCallStars", "oneOf": [{"$ref": "#/components/schemas/phone.groupCallStars"}], "description": "Тип TL: phone.GroupCallStars."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.getGroupCallStars"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой звонок в прямом эфире"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой звонок в прямом эфире |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "1868784386"}}, "/catalog/phone.saveDefaultSendAs": {"post": {"operationId": "phone.saveDefaultSendAs", "tags": ["Звонки"], "summary": "Сохраните коллегу по умолчанию, отображаемого в качестве автора комментариев и реакций в реальном времени, просматривайте сообщения во время звонков ».", "description": "Сохраните коллегу по умолчанию, отображаемого в качестве автора комментариев и реакций в реальном времени, см. [сообщения во время вызова »](https://core.telegram.org/api/group-calls.md#in-call-messages).\n\nЕго нельзя использовать для обычных видеочатов/прямых трансляций, когда сообщения во время вызова отправляются от имени узла, использованного для присоединения к вызову (`join_as`).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.saveDefaultSendAs", "x-tl-id": "1097313745", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GROUPCALL_INVALID` — Указанный групповой вызов недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/phone.saveDefaultSendAs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Групповой звонок в прямом эфире"}, "send_as": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Peer для отображения в качестве автора последующих комментариев и реакций"}}, "additionalProperties": false, "required": ["call", "send_as"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | Да | Групповой звонок в прямом эфире |\n| `send_as` | `InputPeer` | Да | Peer для отображения в качестве автора последующих комментариев и реакций |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "1097313745"}}, "/catalog/langpack.getLangPack": {"post": {"operationId": "langpack.getLangPack", "tags": ["Переводы"], "summary": "Получить строки пакета локализации", "description": "Получить строки пакета локализации\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getLangPack", "x-tl-id": "4075959050", "x-tl-result": "LangPackDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `LangPackDifference`.\n\n[LangPackDifference](https://core.telegram.org/type/LangPackDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "LangPackDifference", "oneOf": [{"$ref": "#/components/schemas/langPackDifference"}], "description": "Тип TL: LangPackDifference."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `LANGUAGE_INVALID` — Указанное lang_code неверно.\n- 400 · `LANG_CODE_NOT_SUPPORTED` — Указанный код языка не поддерживается.\n- 400 · `LANG_PACK_INVALID` — Указанный языковой пакет недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/langpack.getLangPack"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_pack": {"type": "string", "x-tl-type": "string", "description": "Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links)."}}, "additionalProperties": false, "required": ["lang_pack", "lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | Да | Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.). |\n| `lang_code` | `string` | Да | Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links). |"}, "x-telegram-rpc-errors": ["LANGUAGE_INVALID", "LANG_CODE_NOT_SUPPORTED", "LANG_PACK_INVALID"], "x-browser-schema-id": "4075959050"}}, "/catalog/langpack.getStrings": {"post": {"operationId": "langpack.getStrings", "tags": ["Переводы"], "summary": "Получить строки из языкового пакета", "description": "Получить строки из языкового пакета\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getStrings", "x-tl-id": "4025104387", "x-tl-result": "Vector<LangPackString>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<LangPackString>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[LangPackString](https://core.telegram.org/type/LangPackString.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "LangPackString", "oneOf": [{"$ref": "#/components/schemas/langPackString"}, {"$ref": "#/components/schemas/langPackStringPluralized"}, {"$ref": "#/components/schemas/langPackStringDeleted"}], "description": "Тип TL: LangPackString."}, "x-tl-type": "Vector<LangPackString>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `LANG_CODE_NOT_SUPPORTED` — Указанный код языка не поддерживается.\n- 400 · `LANG_PACK_INVALID` — Указанный языковой пакет недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/langpack.getStrings"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_pack": {"type": "string", "x-tl-type": "string", "description": "Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links)."}, "keys": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Строки, которые нужно получить"}}, "additionalProperties": false, "required": ["lang_pack", "lang_code", "keys"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | Да | Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.). |\n| `lang_code` | `string` | Да | Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links). |\n| `keys` | `Vector<string>` | Да | Строки, которые нужно получить |"}, "x-telegram-rpc-errors": ["LANG_CODE_NOT_SUPPORTED", "LANG_PACK_INVALID"], "x-browser-schema-id": "4025104387"}}, "/catalog/langpack.getDifference": {"post": {"operationId": "langpack.getDifference", "tags": ["Переводы"], "summary": "Получить новые строки в языковом пакете", "description": "Получить новые строки в языковом пакете\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getDifference", "x-tl-id": "3449309861", "x-tl-result": "LangPackDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `LangPackDifference`.\n\n[LangPackDifference](https://core.telegram.org/type/LangPackDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "LangPackDifference", "oneOf": [{"$ref": "#/components/schemas/langPackDifference"}], "description": "Тип TL: LangPackDifference."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `LANG_PACK_INVALID` — Указанный языковой пакет недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/langpack.getDifference"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_pack": {"type": "string", "x-tl-type": "string", "description": "Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links)."}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Предыдущая версия пакета локализации"}}, "additionalProperties": false, "required": ["lang_pack", "lang_code", "from_version"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | Да | Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.). |\n| `lang_code` | `string` | Да | Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links). |\n| `from_version` | `int` | Да | Предыдущая версия пакета локализации |"}, "x-telegram-rpc-errors": ["LANG_PACK_INVALID"], "x-browser-schema-id": "3449309861"}}, "/catalog/langpack.getLanguages": {"post": {"operationId": "langpack.getLanguages", "tags": ["Переводы"], "summary": "Получите информацию обо всех языках в пакете локализации.", "description": "Получите информацию обо всех языках в пакете локализации.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "langpack.getLanguages", "x-tl-id": "1120311183", "x-tl-result": "Vector<LangPackLanguage>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<LangPackLanguage>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[LangPackLanguage](https://core.telegram.org/type/LangPackLanguage.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "LangPackLanguage", "oneOf": [{"$ref": "#/components/schemas/langPackLanguage"}], "description": "Тип TL: LangPackLanguage."}, "x-tl-type": "Vector<LangPackLanguage>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `LANG_PACK_INVALID` — Указанный языковой пакет недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/langpack.getLanguages"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_pack": {"type": "string", "x-tl-type": "string", "description": "Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.)."}}, "additionalProperties": false, "required": ["lang_pack"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | Да | Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.). |"}, "x-telegram-rpc-errors": ["LANG_PACK_INVALID"], "x-browser-schema-id": "1120311183"}}, "/catalog/langpack.getLanguage": {"post": {"operationId": "langpack.getLanguage", "tags": ["Переводы"], "summary": "Получить информацию о языке в пакете локализации", "description": "Получить информацию о языке в пакете локализации\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getLanguage", "x-tl-id": "1784243458", "x-tl-result": "LangPackLanguage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `LangPackLanguage`.\n\n[LangPackLanguage](https://core.telegram.org/type/LangPackLanguage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "LangPackLanguage", "oneOf": [{"$ref": "#/components/schemas/langPackLanguage"}], "description": "Тип TL: LangPackLanguage."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `LANG_CODE_NOT_SUPPORTED` — Указанный код языка не поддерживается.\n- 400 · `LANG_PACK_INVALID` — Указанный языковой пакет недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/langpack.getLanguage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"lang_pack": {"type": "string", "x-tl-type": "string", "description": "Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links)."}}, "additionalProperties": false, "required": ["lang_pack", "lang_code"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | Да | Идентификатор платформы (i.e. `android`, `tdesktop` и т. д.). |\n| `lang_code` | `string` | Да | Либо языковой код ISO 639-1, либо имя языкового пакета, полученное по [ссылка на языковой пакет](https://core.telegram.org/api/links.md#language-pack-links). |"}, "x-telegram-rpc-errors": ["LANG_CODE_NOT_SUPPORTED", "LANG_PACK_INVALID"], "x-browser-schema-id": "1784243458"}}, "/catalog/folders.editPeerFolders": {"post": {"operationId": "folders.editPeerFolders", "tags": ["Папки"], "summary": "Редактировать пиры в папке пиров", "description": "Редактировать пиры в [папке пиров](https://core.telegram.org/api/folders.md#peer-folders)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "folders.editPeerFolders", "x-tl-id": "1749536939", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHAT_ID_INVALID` — Указанный идентификатор чата недействителен.\n- 400 · `FOLDER_ID_INVALID` — Неверный идентификатор папки."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/folders.editPeerFolders"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"folder_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputFolderPeer", "oneOf": [{"$ref": "#/components/schemas/inputFolderPeer"}], "description": "Тип TL: InputFolderPeer."}, "x-tl-type": "Vector<InputFolderPeer>", "description": "Новый список коллег"}}, "additionalProperties": false, "required": ["folder_peers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `folder_peers` | `Vector<InputFolderPeer>` | Да | Новый список коллег |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ID_INVALID", "FOLDER_ID_INVALID"], "x-browser-schema-id": "1749536939"}}, "/catalog/stats.getBroadcastStats": {"post": {"operationId": "stats.getBroadcastStats", "tags": ["Статистика"], "summary": "Получить статистику канала", "description": "Получить [статистику канала](https://core.telegram.org/api/stats.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getBroadcastStats", "x-tl-id": "2873246746", "x-tl-result": "stats.BroadcastStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "Результат MTProto · `stats.BroadcastStats`.\n\n[stats.BroadcastStats](https://core.telegram.org/type/stats.BroadcastStats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stats.BroadcastStats", "oneOf": [{"$ref": "#/components/schemas/stats.broadcastStats"}], "description": "Тип TL: stats.BroadcastStats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BROADCAST_REQUIRED` — Этот метод можно вызвать только на канале, используйте stats.getMegagroupStats для супергрупп.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.getBroadcastStats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить ли темную тему для цветов графика"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Канал"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dark` | `true` | Нет | Включить ли темную тему для цветов графика |\n| `channel` | `InputChannel` | Да | Канал |"}, "x-telegram-rpc-errors": ["BROADCAST_REQUIRED", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHAT_ADMIN_REQUIRED"], "x-browser-schema-id": "2873246746"}}, "/catalog/stats.loadAsyncGraph": {"post": {"operationId": "stats.loadAsyncGraph", "tags": ["Статистика"], "summary": "График статистики канала загрузки асинхронно", "description": "Загрузить [график статистики канала](https://core.telegram.org/api/stats.md) асинхронно\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.loadAsyncGraph", "x-tl-id": "1646092192", "x-tl-result": "StatsGraph", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "Результат MTProto · `StatsGraph`.\n\n[График статистики](https://core.telegram.org/type/StatsGraph.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StatsGraph", "oneOf": [{"$ref": "#/components/schemas/statsGraphAsync"}, {"$ref": "#/components/schemas/statsGraphError"}, {"$ref": "#/components/schemas/statsGraph"}], "description": "Тип TL: StatsGraph."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `GRAPH_EXPIRED_RELOAD` — Срок действия этого графа истек, получите новый токен графа.\n- 400 · `GRAPH_INVALID_RELOAD` — Предоставлен неверный токен графика, перезагрузите статистику и предоставьте обновленный токен.\n- 400 · `GRAPH_OUTDATED_RELOAD` — График устарел, получите новый асинхронный токен, используя stats.getBroadcastStats."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.loadAsyncGraph"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"token": {"type": "string", "x-tl-type": "string", "description": "Токен графика из конструктора [statsGraphAsync](https://core.telegram.org/constructor/statsGraphAsync.md)]"}, "x": {"type": "string", "pattern": "^-?\\d+$", "description": "Значение масштабирования, если требуется", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `token` | `string` | Да | Токен графика из конструктора [statsGraphAsync](https://core.telegram.org/constructor/statsGraphAsync.md)] |\n| `x` | `long` | Нет | Значение масштабирования, если требуется |"}, "x-telegram-rpc-errors": ["GRAPH_EXPIRED_RELOAD", "GRAPH_INVALID_RELOAD", "GRAPH_OUTDATED_RELOAD"], "x-browser-schema-id": "1646092192"}}, "/catalog/stats.getMegagroupStats": {"post": {"operationId": "stats.getMegagroupStats", "tags": ["Статистика"], "summary": "Получить статистику супергруппы", "description": "Получите [статистику супергруппы](https://core.telegram.org/api/stats.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getMegagroupStats", "x-tl-id": "3705636359", "x-tl-result": "stats.MegagroupStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "Результат MTProto · `stats.MegagroupStats`.\n\n[stats.MegagroupStats](https://core.telegram.org/type/stats.MegagroupStats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stats.MegagroupStats", "oneOf": [{"$ref": "#/components/schemas/stats.megagroupStats"}], "description": "Тип TL: stats.MegagroupStats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 403 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `MEGAGROUP_REQUIRED` — Этот метод можно использовать только в супергруппе."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.getMegagroupStats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить ли темную тему для цветов графика"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Идентификатор супергруппы](https://core.telegram.org/api/channel.md)"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dark` | `true` | Нет | Включить ли темную тему для цветов графика |\n| `channel` | `InputChannel` | Да | [Идентификатор супергруппы](https://core.telegram.org/api/channel.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "MEGAGROUP_REQUIRED"], "x-browser-schema-id": "3705636359"}}, "/catalog/stats.getMessagePublicForwards": {"post": {"operationId": "stats.getMessagePublicForwards", "tags": ["Статистика"], "summary": "Получает список сообщений, указывающий, на какие другие общедоступные каналы было перенаправлено сообщение канала.", "description": "Получает список сообщений, указывающий, на какие другие общедоступные каналы было перенаправлено сообщение канала.\nВернет список [сообщений](https://core.telegram.org/constructor/message.md), где `peer_id` соответствует общедоступному каналу, на который было перенаправлено это сообщение.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "stats.getMessagePublicForwards", "x-tl-id": "1595212100", "x-tl-result": "stats.PublicForwards", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `stats.PublicForwards`.\n\n[stats.PublicForwards](https://core.telegram.org/type/stats.PublicForwards.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stats.PublicForwards", "oneOf": [{"$ref": "#/components/schemas/stats.publicForwards"}], "description": "Тип TL: stats.PublicForwards."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.getMessagePublicForwards"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Исходный канал"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор исходного сообщения"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для [пагинации](https://core.telegram.org/api/offsets.md), пустая строка при первом вызове, затем используйте поле `next_offset` возвращаемого конструктора (если оно присутствует, в противном случае результаты будут недоступны)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["channel", "msg_id", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | Да | Исходный канал |\n| `msg_id` | `int` | Да | Идентификатор исходного сообщения |\n| `offset` | `string` | Да | Смещение для [пагинации](https://core.telegram.org/api/offsets.md), пустая строка при первом вызове, затем используйте поле `next_offset` возвращаемого конструктора (если оно присутствует, в противном случае результаты будут недоступны). |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1595212100"}}, "/catalog/stats.getMessageStats": {"post": {"operationId": "stats.getMessageStats", "tags": ["Статистика"], "summary": "Получить статистику сообщений", "description": "Получить [статистику сообщений](https://core.telegram.org/api/stats.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getMessageStats", "x-tl-id": "3068175349", "x-tl-result": "stats.MessageStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "Результат MTProto · `stats.MessageStats`.\n\n[stats.MessageStats](https://core.telegram.org/type/stats.MessageStats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stats.MessageStats", "oneOf": [{"$ref": "#/components/schemas/stats.messageStats"}], "description": "Тип TL: stats.MessageStats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `MESSAGE_ID_INVALID` — Указанный идентификатор сообщения недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.getMessageStats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить ли темную тему для цветов графика"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Идентификатор канала"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения"}}, "additionalProperties": false, "required": ["channel", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dark` | `true` | Нет | Включить ли темную тему для цветов графика |\n| `channel` | `InputChannel` | Да | Идентификатор канала |\n| `msg_id` | `int` | Да | Идентификатор сообщения |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3068175349"}}, "/catalog/stats.getStoryStats": {"post": {"operationId": "stats.getStoryStats", "tags": ["Статистика"], "summary": "Получить статистику по определенной истории.", "description": "Получите [статистику](https://core.telegram.org/api/stats.md) для определённой [истории](https://core.telegram.org/api/stories.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stats.getStoryStats", "x-tl-id": "927985472", "x-tl-result": "stats.StoryStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stats.StoryStats`.\n\n[stats.StoryStats](https://core.telegram.org/type/stats.StoryStats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stats.StoryStats", "oneOf": [{"$ref": "#/components/schemas/stats.storyStats"}], "description": "Тип TL: stats.StoryStats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORIES_NEVER_CREATED` — Этот собеседник никогда не публиковал историй."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.getStoryStats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить ли темную тему для цветов графиков"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Коллега, опубликовавший историю"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dark` | `true` | Нет | Включить ли темную тему для цветов графиков |\n| `peer` | `InputPeer` | Да | Коллега, опубликовавший историю |\n| `id` | `int` | Да | Идентификатор истории |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "PEER_ID_INVALID", "STORIES_NEVER_CREATED"], "x-browser-schema-id": "927985472"}}, "/catalog/stats.getStoryPublicForwards": {"post": {"operationId": "stats.getStoryPublicForwards", "tags": ["Статистика"], "summary": "Получайте пересылки истории в виде сообщений в публичные чаты и репосты по публичным каналам.", "description": "Получайте пересылки [истории](https://core.telegram.org/api/stories.md)] в виде сообщения в публичные чаты и репосты по публичным каналам.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "stats.getStoryPublicForwards", "x-tl-id": "2789441270", "x-tl-result": "stats.PublicForwards", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `stats.PublicForwards`.\n\n[stats.PublicForwards](https://core.telegram.org/type/stats.PublicForwards.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stats.PublicForwards", "oneOf": [{"$ref": "#/components/schemas/stats.publicForwards"}], "description": "Тип TL: stats.PublicForwards."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.getStoryPublicForwards"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Место, где история была первоначально опубликована"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[История](https://core.telegram.org/api/stories.md) ID"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение нумерации страниц от [stats.PublicForwards](https://core.telegram.org/constructor/stats.publicForwards.md).`next_offset`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "id", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Место, где история была первоначально опубликована |\n| `id` | `int` | Да | [История](https://core.telegram.org/api/stories.md) ID |\n| `offset` | `string` | Да | Смещение нумерации страниц от [stats.PublicForwards](https://core.telegram.org/constructor/stats.publicForwards.md).`next_offset`. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2789441270"}}, "/catalog/stats.getPollStats": {"post": {"operationId": "stats.getPollStats", "tags": ["Статистика"], "summary": "Получите статистику опроса, отправленного в сообщении.", "description": "Получите [статистику](https://core.telegram.org/api/stats.md#poll-statistics) для опроса, отправленного в сообщении.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getPollStats", "x-tl-id": "3263036008", "x-tl-result": "stats.PollStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "Результат MTProto · `stats.PollStats`.\n\n[stats.PollStats](https://core.telegram.org/type/stats.PollStats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stats.PollStats", "oneOf": [{"$ref": "#/components/schemas/stats.pollStats"}], "description": "Тип TL: stats.PollStats."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stats.getPollStats"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Включить ли темную тему для цветов графика"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, куда был отправлен опрос"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID сообщения, содержащего опрос"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dark` | `true` | Нет | Включить ли темную тему для цветов графика |\n| `peer` | `InputPeer` | Да | Узел, куда был отправлен опрос |\n| `msg_id` | `int` | Да | ID сообщения, содержащего опрос |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3263036008"}}, "/catalog/chatlists.exportChatlistInvite": {"post": {"operationId": "chatlists.exportChatlistInvite", "tags": ["Папки чатов"], "summary": "Экспортировать папку», создание глубокой ссылки на папку чата».", "description": "Экспортируйте [папку »](https://core.telegram.org/api/folders.md), создав [глубинную ссылку на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "chatlists.exportChatlistInvite", "x-tl-id": "2222081934", "x-tl-result": "chatlists.ExportedChatlistInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Deep links", "https://core.telegram.org/api/links.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `chatlists.ExportedChatlistInvite`.\n\n[chatlists.ExportedChatlistInvite](https://core.telegram.org/type/chatlists.ExportedChatlistInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "chatlists.ExportedChatlistInvite", "oneOf": [{"$ref": "#/components/schemas/chatlists.exportedChatlistInvite"}], "description": "Тип TL: chatlists.ExportedChatlistInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `CHATLISTS_TOO_MUCH` — Вы создали слишком много ссылок на папки, достигнув `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [пределов »](https://core.telegram.org/api/config.md#chatlist-invites-limit-default).\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте.\n- 400 · `INVITES_TOO_MUCH` — достигнуто максимальное количество приглашений для каждой папки, указанное в `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [параметрах конфигурации клиента »](https://core.telegram.org/api/config.md#chatlist-invites-limit-default).\n- 400 · `PEERS_LIST_EMPTY` — Указанный список пиров пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.exportChatlistInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Папка для экспорта"}, "title": {"type": "string", "x-tl-type": "string", "description": "Необязательное имя для ссылки"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Список каналов, групп и супергрупп, которыми можно поделиться по ссылке. Базовые группы будут автоматически [преобразованы в супергруппы](https://core.telegram.org/api/channel.md#migration) при вызове метода."}}, "additionalProperties": false, "required": ["chatlist", "title", "peers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Папка для экспорта |\n| `title` | `string` | Да | Необязательное имя для ссылки |\n| `peers` | `Vector<InputPeer>` | Да | Список каналов, групп и супергрупп, которыми можно поделиться по ссылке. Базовые группы будут автоматически [преобразованы в супергруппы](https://core.telegram.org/api/channel.md#migration) при вызове метода. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "CHATLISTS_TOO_MUCH", "CHAT_ADMIN_REQUIRED", "FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED", "INVITES_TOO_MUCH", "PEERS_LIST_EMPTY"], "x-browser-schema-id": "2222081934"}}, "/catalog/chatlists.deleteExportedInvite": {"post": {"operationId": "chatlists.deleteExportedInvite", "tags": ["Папки чатов"], "summary": "Удалить ранее созданную глубокую ссылку на папку чата».", "description": "Удалите ранее созданную [глубинную ссылку на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.deleteExportedInvite", "x-tl-id": "1906072670", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте.\n- 400 · `INVITE_SLUG_EXPIRED` — Срок действия указанной ссылки на папку чата истек.\n- 400 · `INVITE_SLUG_INVALID` — Указанный пул приглашения недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.deleteExportedInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Соответствующая папка"}, "slug": {"type": "string", "x-tl-type": "string", "description": "`slug` получено из [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links)."}}, "additionalProperties": false, "required": ["chatlist", "slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Соответствующая папка |\n| `slug` | `string` | Да | `slug` получено из [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links). |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED", "INVITE_SLUG_EXPIRED", "INVITE_SLUG_INVALID"], "x-browser-schema-id": "1906072670"}}, "/catalog/chatlists.editExportedInvite": {"post": {"operationId": "chatlists.editExportedInvite", "tags": ["Папки чатов"], "summary": "Редактировать глубокую ссылку на папку чата».", "description": "Отредактируйте [глубокую ссылку на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.editExportedInvite", "x-tl-id": "1698543165", "x-tl-result": "ExportedChatlistInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `ExportedChatlistInvite`.\n\n[ExportedChatlistInvite](https://core.telegram.org/type/ExportedChatlistInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedChatlistInvite", "oneOf": [{"$ref": "#/components/schemas/exportedChatlistInvite"}], "description": "Тип TL: ExportedChatlistInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте.\n- 400 · `INVITE_SLUG_EMPTY` — Указанный пул приглашения пуст.\n- 400 · `INVITE_SLUG_EXPIRED` — Срок действия указанной ссылки на папку чата истек.\n- 400 · `PEERS_LIST_EMPTY` — Указанный список пиров пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.editExportedInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Идентификатор папки"}, "slug": {"type": "string", "x-tl-type": "string", "description": "`slug` получено из [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links)."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Если установлено, задает новое имя для ссылки."}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "x-tl-flag": "flags.2?Vector<InputPeer>", "description": "Если установлено, изменяется список пиров, к которым предоставлен доступ по ссылке."}}, "additionalProperties": false, "required": ["chatlist", "slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Идентификатор папки |\n| `slug` | `string` | Да | `slug` получено из [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links). |\n| `title` | `string` | Нет | Если установлено, задает новое имя для ссылки. |\n| `peers` | `Vector<InputPeer>` | Нет | Если установлено, изменяется список пиров, к которым предоставлен доступ по ссылке. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED", "INVITE_SLUG_EMPTY", "INVITE_SLUG_EXPIRED", "PEERS_LIST_EMPTY"], "x-browser-schema-id": "1698543165"}}, "/catalog/chatlists.getExportedInvites": {"post": {"operationId": "chatlists.getExportedInvites", "tags": ["Папки чатов"], "summary": "Список всех глубоких ссылок на папку чата, » связанных с папкой", "description": "Список всех [глубинных ссылок на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links), связанных с папкой\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.getExportedInvites", "x-tl-id": "3456359043", "x-tl-result": "chatlists.ExportedInvites", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `chatlists.ExportedInvites`.\n\n[chatlists.ExportedInvites](https://core.telegram.org/type/chatlists.ExportedInvites.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "chatlists.ExportedInvites", "oneOf": [{"$ref": "#/components/schemas/chatlists.exportedInvites"}], "description": "Тип TL: chatlists.ExportedInvites."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.getExportedInvites"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Папка"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Папка |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID"], "x-browser-schema-id": "3456359043"}}, "/catalog/chatlists.checkChatlistInvite": {"post": {"operationId": "chatlists.checkChatlistInvite", "tags": ["Папки чатов"], "summary": "Получить информацию о глубокой ссылке на папку чата».", "description": "Получите информацию о [глубинной ссылке на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.checkChatlistInvite", "x-tl-id": "1103171583", "x-tl-result": "chatlists.ChatlistInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `chatlists.ChatlistInvite`.\n\n[chatlists.ChatlistInvite](https://core.telegram.org/type/chatlists.ChatlistInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "chatlists.ChatlistInvite", "oneOf": [{"$ref": "#/components/schemas/chatlists.chatlistInviteAlready"}, {"$ref": "#/components/schemas/chatlists.chatlistInvite"}], "description": "Тип TL: chatlists.ChatlistInvite."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `INVITE_SLUG_EMPTY` — Указанный пул приглашения пуст.\n- 400 · `INVITE_SLUG_EXPIRED` — Срок действия указанной ссылки на папку чата истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.checkChatlistInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "`slug` получено из [глубокой ссылки на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links)"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | `slug` получено из [глубокой ссылки на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links) |"}, "x-telegram-rpc-errors": ["INVITE_SLUG_EMPTY", "INVITE_SLUG_EXPIRED"], "x-browser-schema-id": "1103171583"}}, "/catalog/chatlists.joinChatlistInvite": {"post": {"operationId": "chatlists.joinChatlistInvite", "tags": ["Папки чатов"], "summary": "Импортировать глубокую ссылку на папку чата», присоединяясь к некоторым или всем чатам в папке.", "description": "Импортируйте [глубинную ссылку на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links), чтобы присоединиться к некоторым или всем чатам в папке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "chatlists.joinChatlistInvite", "x-tl-id": "2796675994", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — Вы присоединились к слишком большому количеству каналов/супергрупп.\n- 400 · `CHATLISTS_TOO_MUCH` — Вы создали слишком много ссылок на папки, достигнув `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [пределов »](https://core.telegram.org/api/config.md#chatlist-invites-limit-default).\n- 400 · `FILTER_INCLUDE_EMPTY` — Вектор include_peers фильтра пуст.\n- 400 · `INVITE_SLUG_EMPTY` — Указанный пул приглашения пуст.\n- 400 · `INVITE_SLUG_EXPIRED` — Срок действия указанной ссылки на папку чата истек."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.joinChatlistInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slug": {"type": "string", "x-tl-type": "string", "description": "`slug` получено из [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links)."}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Список новых чатов, к которым можно присоединиться, получен с помощью [chatlists.checkChatlistInvite](https://core.telegram.org/method/chatlists.checkChatlistInvite.md) и отфильтрован, как указано в [документация »](https://core.telegram.org/api/folders.md#shared-folders)."}}, "additionalProperties": false, "required": ["slug", "peers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slug` | `string` | Да | `slug` получено из [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links). |\n| `peers` | `Vector<InputPeer>` | Да | Список новых чатов, к которым можно присоединиться, получен с помощью [chatlists.checkChatlistInvite](https://core.telegram.org/method/chatlists.checkChatlistInvite.md) и отфильтрован, как указано в [документация »](https://core.telegram.org/api/folders.md#shared-folders). |"}, "x-telegram-rpc-errors": ["CHANNELS_TOO_MUCH", "CHATLISTS_TOO_MUCH", "FILTER_INCLUDE_EMPTY", "INVITE_SLUG_EMPTY", "INVITE_SLUG_EXPIRED"], "x-browser-schema-id": "2796675994"}}, "/catalog/chatlists.getChatlistUpdates": {"post": {"operationId": "chatlists.getChatlistUpdates", "tags": ["Папки чатов"], "summary": "Получить новые чаты, связанные с импортированной глубокой ссылкой на папку чата». Должен вызываться не чаще чем каждые `chatlist_update_period` секунд (согласно соответствующему параметру конфигурации клиента ).", "description": "Получить новые чаты, связанные с импортированной [глубинной ссылкой на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links). Должен вызываться не чаще чем каждые `chatlist_update_period` секунд (согласно соответствующему [параметру конфигурации клиента »](https://core.telegram.org/api/config.md#chatlist-update-period)).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "chatlists.getChatlistUpdates", "x-tl-id": "2302776609", "x-tl-result": "chatlists.ChatlistUpdates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `chatlists.ChatlistUpdates`.\n\n[chatlists.ChatlistUpdates](https://core.telegram.org/type/chatlists.ChatlistUpdates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "chatlists.ChatlistUpdates", "oneOf": [{"$ref": "#/components/schemas/chatlists.chatlistUpdates"}], "description": "Тип TL: chatlists.ChatlistUpdates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте.\n- 400 · `INPUT_CHATLIST_INVALID` — Указана неверная папка."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.getChatlistUpdates"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Папка"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Папка |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED", "INPUT_CHATLIST_INVALID"], "x-browser-schema-id": "2302776609"}}, "/catalog/chatlists.joinChatlistUpdates": {"post": {"operationId": "chatlists.joinChatlistUpdates", "tags": ["Папки чатов"], "summary": "Присоединяйтесь к каналам и супергруппам, недавно добавленным в глубокую ссылку в папке чата».", "description": "Присоединяйтесь к каналам и супергруппам, недавно добавленным в [глубинную ссылку на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.joinChatlistUpdates", "x-tl-id": "3767138549", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_INCLUDE_EMPTY` — Вектор include_peers фильтра пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.joinChatlistUpdates"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Папка"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Список новых чатов, к которым можно присоединиться, получен с помощью [chatlists.getChatlistUpdates](https://core.telegram.org/method/chatlists.getChatlistUpdates.md) и отфильтрован, как указано в [документация »](https://core.telegram.org/api/folders.md#shared-folders)."}}, "additionalProperties": false, "required": ["chatlist", "peers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Папка |\n| `peers` | `Vector<InputPeer>` | Да | Список новых чатов, к которым можно присоединиться, получен с помощью [chatlists.getChatlistUpdates](https://core.telegram.org/method/chatlists.getChatlistUpdates.md) и отфильтрован, как указано в [документация »](https://core.telegram.org/api/folders.md#shared-folders). |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID", "FILTER_INCLUDE_EMPTY"], "x-browser-schema-id": "3767138549"}}, "/catalog/chatlists.hideChatlistUpdates": {"post": {"operationId": "chatlists.hideChatlistUpdates", "tags": ["Папки чатов"], "summary": "Отклонить новых ожидающих коллег, недавно добавленных в глубокую ссылку на папку чата».", "description": "Отклонить новых ожидающих коллег, недавно добавленных в [глубинную ссылку на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.hideChatlistUpdates", "x-tl-id": "1726252795", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.hideChatlistUpdates"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Папка"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Папка |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED"], "x-browser-schema-id": "1726252795"}}, "/catalog/chatlists.getLeaveChatlistSuggestions": {"post": {"operationId": "chatlists.getLeaveChatlistSuggestions", "tags": ["Папки чатов"], "summary": "Возвращает идентификаторы закрепленных или всегда включенных чатов из папки чата, импортированных с помощью глубокой ссылки на папку чата», которые предлагается оставить при удалении папки чата.", "description": "Возвращает идентификаторы закрепленных или всегда включенных чатов из папки чата, импортированных с помощью [глубокой ссылки на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links), которые предлагается оставить при удалении папки чата.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.getLeaveChatlistSuggestions", "x-tl-id": "4257011476", "x-tl-result": "Vector<Peer>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<Peer>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Пир](https://core.telegram.org/type/Peer.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "oneOf": [{"$ref": "#/components/schemas/peerUser"}, {"$ref": "#/components/schemas/peerChat"}, {"$ref": "#/components/schemas/peerChannel"}], "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен.\n- 400 · `FILTER_NOT_SUPPORTED` — Указанный фильтр нельзя использовать в данном контексте."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.getLeaveChatlistSuggestions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Идентификатор папки"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Идентификатор папки |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED"], "x-browser-schema-id": "4257011476"}}, "/catalog/chatlists.leaveChatlist": {"post": {"operationId": "chatlists.leaveChatlist", "tags": ["Папки чатов"], "summary": "Удаление папки, импортированной с помощью глубокой ссылки на папку чата »", "description": "Удалите папку, импортированную с помощью [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.leaveChatlist", "x-tl-id": "1962598714", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `FILTER_ID_INVALID` — Указанный идентификатор фильтра недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/chatlists.leaveChatlist"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"chatlist": {"type": "object", "x-tl-type": "InputChatlist", "oneOf": [{"$ref": "#/components/schemas/inputChatlistDialogFilter"}], "description": "Идентификатор папки"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Также оставьте указанные каналы и группы"}}, "additionalProperties": false, "required": ["chatlist", "peers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | Да | Идентификатор папки |\n| `peers` | `Vector<InputPeer>` | Да | Также оставьте указанные каналы и группы |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID"], "x-browser-schema-id": "1962598714"}}, "/catalog/stories.canSendStory": {"post": {"operationId": "stories.canSendStory", "tags": ["Истории"], "summary": "Проверьте, можем ли мы публиковать истории от имени указанного пира.", "description": "Проверьте, можем ли мы публиковать истории от имени указанного пира.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "stories.canSendStory", "x-tl-id": "820732912", "x-tl-result": "stories.CanSendStoryCount", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.CanSendStoryCount`.\n\n[stories.CanSendStoryCount](https://core.telegram.org/type/stories.CanSendStoryCount.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.CanSendStoryCount", "oneOf": [{"$ref": "#/components/schemas/stories.canSendStoryCount"}], "description": "Тип TL: stories.CanSendStoryCount."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOOSTS_REQUIRED` — Указанный канал должен сначала быть [усилен его пользователями](https://core.telegram.org/api/boost.md), чтобы выполнить это действие.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 400 · `STORIES_TOO_MUCH` — Вы достигли максимального лимита активных историй, указанного в [`story_expiring_limit_*` параметрах конфигурации клиента](https://core.telegram.org/api/config.md#story-expiring-limit-default): вам следует купить подписку [Премиум](https://core.telegram.org/api/premium.md), удалить активную историю или дождаться истечения срока действия самой старой истории.\n- 400 · `STORY_SEND_FLOOD_MONTHLY_%d` — Вы достигли месячного лимита историй, указанного в [`stories_sent_monthly_limit_*` параметрах конфигурации клиента](https://core.telegram.org/api/config.md#stories-sent-monthly-limit-default): подождите %d секунд, прежде чем публиковать новую историю.\n- 400 · `STORY_SEND_FLOOD_WEEKLY_%d` — Вы достигли еженедельного лимита историй, указанного в [`stories_sent_weekly_limit_*` параметрах конфигурации клиента](https://core.telegram.org/api/config.md#stories-sent-weekly-limit-default): подождите %d секунд, прежде чем публиковать новую историю."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.canSendStory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, от которого мы хотим публиковать истории."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир, от которого мы хотим публиковать истории. |"}, "x-telegram-rpc-errors": ["BOOSTS_REQUIRED", "CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED", "STORIES_TOO_MUCH", "STORY_SEND_FLOOD_MONTHLY_%d", "STORY_SEND_FLOOD_WEEKLY_%d"], "x-browser-schema-id": "820732912"}}, "/catalog/stories.sendStory": {"post": {"operationId": "stories.sendStory", "tags": ["Истории"], "summary": "Загружает историю в Telegram.", "description": "Загружает [Историю в Telegram](https://core.telegram.org/api/stories.md).\n\nТакже может использоваться в [бизнес-связи](https://core.telegram.org/api/bots/connected-business-bots.md), *не* путем заключения запроса в [invokeWithBusinessConnection »](https://core.telegram.org/method/invokeWithBusinessConnection.md), а путем указания идентификатора контролируемого бизнес-пользователя в `peer`.\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Privacy settings](https://core.telegram.org/api/privacy.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "stories.sendStory", "x-tl-id": "2409523352", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Privacy settings", "https://core.telegram.org/api/privacy.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOOSTS_REQUIRED` — Указанный канал должен сначала быть [усилен его пользователями](https://core.telegram.org/api/boost.md), чтобы выполнить это действие.\n- 403 · `BOT_ACCESS_FORBIDDEN` — Указанный метод *может* использоваться через [бизнес-соединение](https://core.telegram.org/api/bots/connected-business-bots.md) для некоторых операций, но указанный запрос предпринял попытку выполнения операции, которая не разрешена через бизнес-соединение.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `IMAGE_PROCESS_FAILED` — Сбой при обработке изображения.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — Подпись слишком длинная.\n- 400 · `MEDIA_EMPTY` — Указанный медиа-объект недействителен.\n- 400 · `MEDIA_FILE_INVALID` — Указанный медиафайл недействителен.\n- 400 · `MEDIA_TYPE_INVALID` — Указанный тип медиа нельзя использовать в историях.\n- 400 · `MEDIA_VIDEO_STORY_MISSING` — Видео, не являющееся историей, не может быть повторно опубликовано как история (генерируется при попытке повторно отправить видео, не являющееся историей, как историю с помощью inputDocument).\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — Неверные размеры фотографии.\n- 400 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт.\n- 400 · `REACTION_INVALID` — Указанная реакция недействительна.\n- 400 · `STORIES_TOO_MUCH` — Вы достигли максимального лимита активных историй, указанного в [`story_expiring_limit_*` параметрах конфигурации клиента](https://core.telegram.org/api/config.md#story-expiring-limit-default): вам следует купить подписку [Премиум](https://core.telegram.org/api/premium.md), удалить активную историю или дождаться истечения срока действия самой старой истории.\n- 400 · `STORY_PERIOD_INVALID` — Указанный период истории недействителен для этого аккаунта.\n- 400 · `VENUE_ID_INVALID` — Указанный идентификатор заведения недействителен.\n- 400 · `VIDEO_DURATION_INVALID` — Недопустимая длительность указанного видео."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.sendStory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Добавлять ли историю в профиль автоматически по истечении срока действия. Если не установлено, история будет добавлена ​​только в архив, дополнительную информацию см. [здесь »](https://core.telegram.org/api/stories.md)."}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Если установлено, отключает пересылку, снимки экрана и загрузки."}, "fwd_modified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Установите этот флаг при репосте историй с `fwd_from_id`+`fwd_from_story`, если `media` был изменен перед репостом."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узел, в качестве которого можно отправить историю."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "История СМИ."}, "media_areas": {"type": "array", "items": {"type": "object", "x-tl-type": "MediaArea", "oneOf": [{"$ref": "#/components/schemas/mediaAreaVenue"}, {"$ref": "#/components/schemas/inputMediaAreaVenue"}, {"$ref": "#/components/schemas/mediaAreaGeoPoint"}, {"$ref": "#/components/schemas/mediaAreaSuggestedReaction"}, {"$ref": "#/components/schemas/mediaAreaChannelPost"}, {"$ref": "#/components/schemas/inputMediaAreaChannelPost"}, {"$ref": "#/components/schemas/mediaAreaUrl"}, {"$ref": "#/components/schemas/mediaAreaWeather"}, {"$ref": "#/components/schemas/mediaAreaStarGift"}], "description": "Тип TL: MediaArea."}, "x-tl-type": "Vector<MediaArea>", "x-tl-flag": "flags.5?Vector<MediaArea>", "description": "[Медиа-области](https://core.telegram.org/api/stories.md#media-areas), связанные с этой историей, см. [здесь »](https://core.telegram.org/api/stories.md#media-areas) для получения дополнительной информации."}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Подпись к рассказу."}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md), если это разрешено [`stories_entities` параметром конфигурации клиента»](https://core.telegram.org/api/config.md#stories-entities)."}, "privacy_rules": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPrivacyRule", "oneOf": [{"$ref": "#/components/schemas/inputPrivacyValueAllowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowCloseFriends"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowPremium"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowBots"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowBots"}], "description": "Тип TL: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "[Правила конфиденциальности](https://core.telegram.org/api/privacy.md) для истории, указывающие, кто может или не может просматривать историю."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int", "description": "Период, по истечении которого история перемещается в архив (и в профиль, если установлено `pinned`), в секундах; должен быть одним из `6 * 3600`, `12 * 3600`, `86400` или `2 * 86400` для пользователей Telegram Premium и `86400` в противном случае."}, "fwd_from_id": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, это означает, что эта история является репостом истории с идентификатором `fwd_from_story`, опубликованной партнером в `fwd_from_id`.", "x-tl-flag": "flags.6?InputPeer"}, "fwd_from_story": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int", "description": "Если установлено, это означает, что эта история является репостом истории с идентификатором `fwd_from_story`, опубликованной партнером в `fwd_from_id`."}, "albums": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.8?Vector<int>", "description": "Если установлено, добавляет историю в указанные альбомы."}, "music": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Если установлено, звуковая дорожка будет воспроизводиться в качестве фоновой музыки для истории.", "x-tl-flag": "flags.9?InputDocument"}}, "additionalProperties": false, "required": ["peer", "media", "privacy_rules", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `pinned` | `true` | Нет | Добавлять ли историю в профиль автоматически по истечении срока действия. Если не установлено, история будет добавлена ​​только в архив, дополнительную информацию см. [здесь »](https://core.telegram.org/api/stories.md). |\n| `noforwards` | `true` | Нет | Если установлено, отключает пересылку, снимки экрана и загрузки. |\n| `fwd_modified` | `true` | Нет | Установите этот флаг при репосте историй с `fwd_from_id`+`fwd_from_story`, если `media` был изменен перед репостом. |\n| `peer` | `InputPeer` | Да | Узел, в качестве которого можно отправить историю. |\n| `media` | `InputMedia` | Да | История СМИ. |\n| `media_areas` | `Vector<MediaArea>` | Нет | [Медиа-области](https://core.telegram.org/api/stories.md#media-areas), связанные с этой историей, см. [здесь »](https://core.telegram.org/api/stories.md#media-areas) для получения дополнительной информации. |\n| `caption` | `string` | Нет | Подпись к рассказу. |\n| `entities` | `Vector<MessageEntity>` | Нет | [Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md), если это разрешено [`stories_entities` параметром конфигурации клиента»](https://core.telegram.org/api/config.md#stories-entities). |\n| `privacy_rules` | `Vector<InputPrivacyRule>` | Да | [Правила конфиденциальности](https://core.telegram.org/api/privacy.md) для истории, указывающие, кто может или не может просматривать историю. |\n| `random_id` | `long` | Да | Уникальный идентификатор сообщения клиента, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `period` | `int` | Нет | Период, по истечении которого история перемещается в архив (и в профиль, если установлено `pinned`), в секундах; должен быть одним из `6 * 3600`, `12 * 3600`, `86400` или `2 * 86400` для пользователей Telegram Premium и `86400` в противном случае. |\n| `fwd_from_id` | `InputPeer` | Нет | Если установлено, это означает, что эта история является репостом истории с идентификатором `fwd_from_story`, опубликованной партнером в `fwd_from_id`. |\n| `fwd_from_story` | `int` | Нет | Если установлено, это означает, что эта история является репостом истории с идентификатором `fwd_from_story`, опубликованной партнером в `fwd_from_id`. |\n| `albums` | `Vector<int>` | Нет | Если установлено, добавляет историю в указанные альбомы. |\n| `music` | `InputDocument` | Нет | Если установлено, звуковая дорожка будет воспроизводиться в качестве фоновой музыки для истории. |"}, "x-telegram-rpc-errors": ["BOOSTS_REQUIRED", "BOT_ACCESS_FORBIDDEN", "CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "IMAGE_PROCESS_FAILED", "MEDIA_CAPTION_TOO_LONG", "MEDIA_EMPTY", "MEDIA_FILE_INVALID", "MEDIA_TYPE_INVALID", "MEDIA_VIDEO_STORY_MISSING", "PEER_ID_INVALID", "PHOTO_INVALID_DIMENSIONS", "PREMIUM_ACCOUNT_REQUIRED", "REACTION_INVALID", "STORIES_TOO_MUCH", "STORY_PERIOD_INVALID", "VENUE_ID_INVALID", "VIDEO_DURATION_INVALID"], "x-browser-schema-id": "2409523352"}}, "/catalog/stories.editStory": {"post": {"operationId": "stories.editStory", "tags": ["Истории"], "summary": "Редактировать загруженную историю", "description": "Редактировать загруженную [историю](https://core.telegram.org/api/stories.md)\n\nТакже может использоваться в [бизнес-связи](https://core.telegram.org/api/bots/connected-business-bots.md), *не* путем обертывания запроса в [invokeWithBusinessConnection »](https://core.telegram.org/method/invokeWithBusinessConnection.md), а скорее путем указания идентификатора контролируемого бизнес-пользователя в `peer`: в этом контексте метод можно использовать только для редактирования историй, опубликованных тем же бизнес-ботом от имени пользователя с [stories.sendStory](https://core.telegram.org/method/stories.sendStory.md).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Privacy settings](https://core.telegram.org/api/privacy.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "stories.editStory", "x-tl-id": "744728363", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Privacy settings", "https://core.telegram.org/api/privacy.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_NOT_MODIFIED` — Переданная вами новая информация истории равна предыдущей информации истории, поэтому она не была изменена."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.editStory"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где была размещена история."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории для редактирования."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Если указано, заменяет носитель истории.", "x-tl-flag": "flags.0?InputMedia"}, "media_areas": {"type": "array", "items": {"type": "object", "x-tl-type": "MediaArea", "oneOf": [{"$ref": "#/components/schemas/mediaAreaVenue"}, {"$ref": "#/components/schemas/inputMediaAreaVenue"}, {"$ref": "#/components/schemas/mediaAreaGeoPoint"}, {"$ref": "#/components/schemas/mediaAreaSuggestedReaction"}, {"$ref": "#/components/schemas/mediaAreaChannelPost"}, {"$ref": "#/components/schemas/inputMediaAreaChannelPost"}, {"$ref": "#/components/schemas/mediaAreaUrl"}, {"$ref": "#/components/schemas/mediaAreaWeather"}, {"$ref": "#/components/schemas/mediaAreaStarGift"}], "description": "Тип TL: MediaArea."}, "x-tl-type": "Vector<MediaArea>", "x-tl-flag": "flags.3?Vector<MediaArea>", "description": "[Медиа-области](https://core.telegram.org/api/stories.md#media-areas), связанные с этой историей, см. [здесь »](https://core.telegram.org/api/stories.md#media-areas) для получения дополнительной информации."}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Если указано, заменяет заголовок истории."}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста в заголовке](https://core.telegram.org/api/entities.md), если это разрешено [`stories_entities` параметром конфигурации клиента»](https://core.telegram.org/api/config.md#stories-entities)."}, "privacy_rules": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPrivacyRule", "oneOf": [{"$ref": "#/components/schemas/inputPrivacyValueAllowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowCloseFriends"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowPremium"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowBots"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowBots"}], "description": "Тип TL: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "x-tl-flag": "flags.2?Vector<InputPrivacyRule>", "description": "Если указано, изменяет [настройки конфиденциальности »](https://core.telegram.org/api/privacy.md) истории, изменяя, кто может или не может просматривать историю."}, "music": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Если установлено, новая звуковая дорожка будет воспроизводиться в качестве фоновой музыки для истории.", "x-tl-flag": "flags.4?InputDocument"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где была размещена история. |\n| `id` | `int` | Да | Идентификатор истории для редактирования. |\n| `media` | `InputMedia` | Нет | Если указано, заменяет носитель истории. |\n| `media_areas` | `Vector<MediaArea>` | Нет | [Медиа-области](https://core.telegram.org/api/stories.md#media-areas), связанные с этой историей, см. [здесь »](https://core.telegram.org/api/stories.md#media-areas) для получения дополнительной информации. |\n| `caption` | `string` | Нет | Если указано, заменяет заголовок истории. |\n| `entities` | `Vector<MessageEntity>` | Нет | [Объекты сообщений для стилизованного текста в заголовке](https://core.telegram.org/api/entities.md), если это разрешено [`stories_entities` параметром конфигурации клиента»](https://core.telegram.org/api/config.md#stories-entities). |\n| `privacy_rules` | `Vector<InputPrivacyRule>` | Нет | Если указано, изменяет [настройки конфиденциальности »](https://core.telegram.org/api/privacy.md) истории, изменяя, кто может или не может просматривать историю. |\n| `music` | `InputDocument` | Нет | Если установлено, новая звуковая дорожка будет воспроизводиться в качестве фоновой музыки для истории. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_NOT_MODIFIED"], "x-browser-schema-id": "744728363"}}, "/catalog/stories.deleteStories": {"post": {"operationId": "stories.deleteStories", "tags": ["Истории"], "summary": "Удаляет некоторые опубликованные истории.", "description": "Удаляет некоторые опубликованные [истории](https://core.telegram.org/api/stories.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "stories.deleteStories", "x-tl-id": "2925124447", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<int>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[int](https://core.telegram.org/type/int.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `BOT_ACCESS_FORBIDDEN` — Указанный метод *может* использоваться через [бизнес-соединение](https://core.telegram.org/api/bots/connected-business-bots.md) для некоторых операций, но указанный запрос предпринял попытку выполнения операции, которая не разрешена через бизнес-соединение.\n- 400 · `BUSINESS_CONNECTION_INVALID` — `connection_id`, переданный в оболочку вызова [invokeWithBusinessConnection](https://core.telegram.org/api/business.md), недействителен.\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_ID_EMPTY` — Вы не указали идентификаторы историй."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.deleteStories"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал/пользователь, откуда удалить истории."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы историй, которые нужно удалить."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Канал/пользователь, откуда удалить истории. |\n| `id` | `Vector<int>` | Да | Идентификаторы историй, которые нужно удалить. |"}, "x-telegram-rpc-errors": ["BOT_ACCESS_FORBIDDEN", "BUSINESS_CONNECTION_INVALID", "CHANNEL_INVALID", "PEER_ID_INVALID", "STORY_ID_EMPTY"], "x-browser-schema-id": "2925124447"}}, "/catalog/stories.togglePinned": {"post": {"operationId": "stories.togglePinned", "tags": ["Истории"], "summary": "Закрепить или открепить одну или несколько историй", "description": "Закрепить или открепить одну или несколько историй\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "stories.togglePinned", "x-tl-id": "2591400431", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<int>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[int](https://core.telegram.org/type/int.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.togglePinned"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Узнайте, где закрепить или открепить истории"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы историй, которые можно закрепить или открепить."}, "pinned": {"type": "boolean", "x-tl-type": "Bool", "description": "Закрепить или открепить истории"}}, "additionalProperties": false, "required": ["peer", "id", "pinned"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Узнайте, где закрепить или открепить истории |\n| `id` | `Vector<int>` | Да | Идентификаторы историй, которые можно закрепить или открепить. |\n| `pinned` | `Bool` | Да | Закрепить или открепить истории |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2591400431"}}, "/catalog/stories.getAllStories": {"post": {"operationId": "stories.getAllStories", "tags": ["Истории"], "summary": "Получите список активных (или активных и скрытых) историй, см. здесь » для получения дополнительной информации о просмотре историй.", "description": "Получите список активных (или активных и скрытых) историй. Дополнительную информацию о просмотре историй см. [здесь »](https://core.telegram.org/api/stories.md#watching-stories).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAllStories", "x-tl-id": "4004566565", "x-tl-result": "stories.AllStories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.AllStories`.\n\n[stories.AllStories](https://core.telegram.org/type/stories.AllStories.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.AllStories", "oneOf": [{"$ref": "#/components/schemas/stories.allStoriesNotModified"}, {"$ref": "#/components/schemas/stories.allStories"}], "description": "Тип TL: stories.AllStories."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getAllStories"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"next": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Если установлены оба `next` и `state`, используется переданный `state` для перехода к следующим результатам; если ни `state`, ни `next` не установлены, извлекается начальная страница; если `state` установлено, а `next` не установлено, проверьте изменения в активном/скрытом наборе узлов, см. [здесь »](https://core.telegram.org/api/stories.md#watching-stories) для получения дополнительной информации о полном потоке."}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Если установлено, извлекается скрытый список активных историй, в противном случае извлекается список активных историй, см. [здесь »](https://core.telegram.org/api/stories.md#watching-stories) для получения дополнительной информации о полном потоке."}, "state": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Если установлены оба `next` и `state`, используется переданный `state` для перехода к следующим результатам; если ни `state`, ни `next` не установлены, извлекается начальная страница; если `state` установлено, а `next` не установлено, проверьте изменения в активном/скрытом наборе узлов, см. [здесь »](https://core.telegram.org/api/stories.md#watching-stories) для получения дополнительной информации о полном потоке."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `next` | `true` | Нет | Если установлены оба `next` и `state`, используется переданный `state` для перехода к следующим результатам; если ни `state`, ни `next` не установлены, извлекается начальная страница; если `state` установлено, а `next` не установлено, проверьте изменения в активном/скрытом наборе узлов, см. [здесь »](https://core.telegram.org/api/stories.md#watching-stories) для получения дополнительной информации о полном потоке. |\n| `hidden` | `true` | Нет | Если установлено, извлекается скрытый список активных историй, в противном случае извлекается список активных историй, см. [здесь »](https://core.telegram.org/api/stories.md#watching-stories) для получения дополнительной информации о полном потоке. |\n| `state` | `string` | Нет | Если установлены оба `next` и `state`, используется переданный `state` для перехода к следующим результатам; если ни `state`, ни `next` не установлены, извлекается начальная страница; если `state` установлено, а `next` не установлено, проверьте изменения в активном/скрытом наборе узлов, см. [здесь »](https://core.telegram.org/api/stories.md#watching-stories) для получения дополнительной информации о полном потоке. |"}, "x-browser-schema-id": "4004566565"}}, "/catalog/stories.getPinnedStories": {"post": {"operationId": "stories.getPinnedStories", "tags": ["Истории"], "summary": "Получите истории, закрепленные в профиле коллеги.", "description": "Получите [истории](https://core.telegram.org/api/stories.md#pinned-or-archived-stories), закрепленные в профиле коллеги.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getPinnedStories", "x-tl-id": "1478600156", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.Stories`.\n\n[stories.Stories](https://core.telegram.org/type/stories.Stories.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.Stories", "oneOf": [{"$ref": "#/components/schemas/stories.stories"}], "description": "Тип TL: stories.Stories."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `USER_ID_INVALID` — Указанный идентификатор пользователя недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getPinnedStories"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, чьи закрепленные истории следует получить"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир, чьи закрепленные истории следует получить |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "PEER_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "1478600156"}}, "/catalog/stories.getStoriesArchive": {"post": {"operationId": "stories.getStoriesArchive", "tags": ["Истории"], "summary": "Получите архив историй » сверстника, которого мы контролируем.", "description": "Получите [архив историй »](https://core.telegram.org/api/stories.md#pinned-or-archived-stories) партнера, которого мы контролируем.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoriesArchive", "x-tl-id": "3023380502", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.Stories`.\n\n[stories.Stories](https://core.telegram.org/type/stories.Stories.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.Stories", "oneOf": [{"$ref": "#/components/schemas/stories.stories"}], "description": "Тип TL: stories.Stories."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getStoriesArchive"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, чьи архивные истории следует получить"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset_id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир, чьи архивные истории следует получить |\n| `offset_id` | `int` | Да | [Смещения для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "3023380502"}}, "/catalog/stories.getStoriesByID": {"post": {"operationId": "stories.getStoriesByID", "tags": ["Истории"], "summary": "Получите полную информацию о наборе историй по их идентификаторам.", "description": "Получите полную информацию о наборе [историй](https://core.telegram.org/api/stories.md) по их идентификаторам.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoriesByID", "x-tl-id": "1467271796", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.Stories`.\n\n[stories.Stories](https://core.telegram.org/type/stories.Stories.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.Stories", "oneOf": [{"$ref": "#/components/schemas/stories.stories"}], "description": "Тип TL: stories.Stories."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORIES_NEVER_CREATED` — Этот собеседник никогда не публиковал историй.\n- 400 · `STORY_ID_EMPTY` — Вы не указали идентификаторы историй."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getStoriesByID"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где были размещены истории"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы историй"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где были размещены истории |\n| `id` | `Vector<int>` | Да | Идентификаторы историй |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID", "STORIES_NEVER_CREATED", "STORY_ID_EMPTY"], "x-browser-schema-id": "1467271796"}}, "/catalog/stories.toggleAllStoriesHidden": {"post": {"operationId": "stories.toggleAllStoriesHidden", "tags": ["Истории"], "summary": "Скройте активные истории определенного узла, предотвратив их отображение на панели действий на главном экране.", "description": "Скройте активные истории определенного узла, предотвратив их отображение на панели действий на главном экране.", "x-tl-method": "stories.toggleAllStoriesHidden", "x-tl-id": "2082822084", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.toggleAllStoriesHidden"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hidden": {"type": "boolean", "x-tl-type": "Bool", "description": "Скрыть или показать все активные истории узла"}}, "additionalProperties": false, "required": ["hidden"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hidden` | `Bool` | Да | Скрыть или показать все активные истории узла |"}, "x-browser-schema-id": "2082822084"}}, "/catalog/stories.readStories": {"post": {"operationId": "stories.readStories", "tags": ["Истории"], "summary": "Пометить все истории до определенного идентификатора как прочитанные для данного узла; отправит обновление updateReadStories для всех сеансов входа в систему.", "description": "Пометить все истории до определенного идентификатора как прочитанные для данного узла; выдаст обновление [updateReadStories](https://core.telegram.org/constructor/updateReadStories.md) для всех сеансов входа в систему.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "stories.readStories", "x-tl-id": "2773932744", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<int>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[int](https://core.telegram.org/type/int.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `MAX_ID_INVALID` — Указанный максимальный идентификатор недействителен.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORIES_NEVER_CREATED` — Этот собеседник никогда не публиковал историй."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.readStories"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Сверстник, чьи истории следует пометить как прочитанные."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Отметить все истории до этого идентификатора включительно как прочитанные"}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Сверстник, чьи истории следует пометить как прочитанные. |\n| `max_id` | `int` | Да | Отметить все истории до этого идентификатора включительно как прочитанные |"}, "x-telegram-rpc-errors": ["MAX_ID_INVALID", "PEER_ID_INVALID", "STORIES_NEVER_CREATED"], "x-browser-schema-id": "2773932744"}}, "/catalog/stories.incrementStoryViews": {"post": {"operationId": "stories.incrementStoryViews", "tags": ["Истории"], "summary": "Увеличьте счетчик просмотров одной или нескольких историй.", "description": "Увеличьте счетчик просмотров одной или нескольких историй.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "stories.incrementStoryViews", "x-tl-id": "2986511099", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_ID_EMPTY` — Вы не указали идентификаторы историй."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.incrementStoryViews"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где были размещены истории."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы историй (максимум 200 одновременно)."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где были размещены истории. |\n| `id` | `Vector<int>` | Да | Идентификаторы историй (максимум 200 одновременно). |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_ID_EMPTY"], "x-browser-schema-id": "2986511099"}}, "/catalog/stories.getStoryViewsList": {"post": {"operationId": "stories.getStoryViewsList", "tags": ["Истории"], "summary": "Получите список пользователей, которые просмотрели конкретную опубликованную нами историю.", "description": "Получите список пользователей, которые просмотрели конкретную [опубликованную нами историю](https://core.telegram.org/api/stories.md)\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Contact list](https://core.telegram.org/api/contacts.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoryViewsList", "x-tl-id": "2127707223", "x-tl-result": "stories.StoryViewsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Contact list", "https://core.telegram.org/api/contacts.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.StoryViewsList`.\n\n[stories.StoryViewsList](https://core.telegram.org/type/stories.StoryViewsList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.StoryViewsList", "oneOf": [{"$ref": "#/components/schemas/stories.storyViewsList"}], "description": "Тип TL: stories.StoryViewsList."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_ID_INVALID` — Указан неверный идентификатор истории."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getStoryViewsList"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"just_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Следует ли получать только реакцию на просмотры/просмотры, сделанные нашими [контактами](https://core.telegram.org/api/contacts.md)]"}, "reactions_first": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Возвращать ли [storyView](https://core.telegram.org/constructor/storyView.md) информацию о пользователях, которые отреагировали на историю (i.e. если установлено, сервер сначала отсортирует результаты по дате просмотра, как обычно, а затем дополнительно отсортирует список, помещая [storyView](https://core.telegram.org/constructor/storyView.md)s с соответствующей реакцией первыми в списке). Игнорируется, если установлено `forwards_first`."}, "forwards_first": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Если установлено, сначала возвращается вперед и делает репосты, затем реакции, затем другие просмотры; в противном случае возвращает взаимодействия, отсортированные только по дате взаимодействия."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где была опубликована история"}, "q": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Поиск конкретных аналогов"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц, полученное из [stories.storyViewsList](https://core.telegram.org/constructor/stories.storyViewsList.md).`next_offset`"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "id", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `just_contacts` | `true` | Нет | Следует ли получать только реакцию на просмотры/просмотры, сделанные нашими [контактами](https://core.telegram.org/api/contacts.md)] |\n| `reactions_first` | `true` | Нет | Возвращать ли [storyView](https://core.telegram.org/constructor/storyView.md) информацию о пользователях, которые отреагировали на историю (i.e. если установлено, сервер сначала отсортирует результаты по дате просмотра, как обычно, а затем дополнительно отсортирует список, помещая [storyView](https://core.telegram.org/constructor/storyView.md)s с соответствующей реакцией первыми в списке). Игнорируется, если установлено `forwards_first`. |\n| `forwards_first` | `true` | Нет | Если установлено, сначала возвращается вперед и делает репосты, затем реакции, затем другие просмотры; в противном случае возвращает взаимодействия, отсортированные только по дате взаимодействия. |\n| `peer` | `InputPeer` | Да | Посмотрите, где была опубликована история |\n| `q` | `string` | Нет | Поиск конкретных аналогов |\n| `id` | `int` | Да | Идентификатор истории |\n| `offset` | `string` | Да | Смещение для нумерации страниц, полученное из [stories.storyViewsList](https://core.telegram.org/constructor/stories.storyViewsList.md).`next_offset` |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_ID_INVALID"], "x-browser-schema-id": "2127707223"}}, "/catalog/stories.getStoriesViews": {"post": {"operationId": "stories.getStoriesViews", "tags": ["Истории"], "summary": "Получите информацию о количестве просмотров, количестве просмотров, реакциях и недавних зрителях одной или нескольких историй.", "description": "Получите информацию о количестве просмотров, количестве переадресованных просмотров, реакциях и недавних зрителях одной или нескольких [историй](https://core.telegram.org/api/stories.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoriesViews", "x-tl-id": "685862088", "x-tl-result": "stories.StoryViews", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.StoryViews`.\n\n[stories.StoryViews](https://core.telegram.org/type/stories.StoryViews.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.StoryViews", "oneOf": [{"$ref": "#/components/schemas/stories.storyViews"}], "description": "Тип TL: stories.StoryViews."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_ID_EMPTY` — Вы не указали идентификаторы историй."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getStoriesViews"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, чьи истории следует скачать"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы историй"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, чьи истории следует скачать |\n| `id` | `Vector<int>` | Да | Идентификаторы историй |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "PEER_ID_INVALID", "STORY_ID_EMPTY"], "x-browser-schema-id": "685862088"}}, "/catalog/stories.exportStoryLink": {"post": {"operationId": "stories.exportStoryLink", "tags": ["Истории"], "summary": "Создайте глубокую ссылку на конкретную историю.", "description": "Создайте [глубокую ссылку на историю](https://core.telegram.org/api/links.md#story-links) для конкретной истории.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "stories.exportStoryLink", "x-tl-id": "2072899360", "x-tl-result": "ExportedStoryLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "Результат MTProto · `ExportedStoryLink`.\n\n[ExportedStoryLink](https://core.telegram.org/type/ExportedStoryLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedStoryLink", "oneOf": [{"$ref": "#/components/schemas/exportedStoryLink"}], "description": "Тип TL: ExportedStoryLink."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_ID_EMPTY` — Вы не указали идентификаторы историй.\n- 400 · `USER_PUBLIC_MISSING` — Невозможно создать ссылку на истории, опубликованные пользователем без имени пользователя."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.exportStoryLink"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где была опубликована история"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где была опубликована история |\n| `id` | `int` | Да | Идентификатор истории |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_ID_EMPTY", "USER_PUBLIC_MISSING"], "x-browser-schema-id": "2072899360"}}, "/catalog/stories.report": {"post": {"operationId": "stories.report", "tags": ["Истории"], "summary": "Сообщите историю.", "description": "Сообщите историю.\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "stories.report", "x-tl-id": "433646405", "x-tl-result": "ReportResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `ReportResult`.\n\n[РезультатОтчета](https://core.telegram.org/type/ReportResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ReportResult", "oneOf": [{"$ref": "#/components/schemas/reportResultChooseOption"}, {"$ref": "#/components/schemas/reportResultAddComment"}, {"$ref": "#/components/schemas/reportResultReported"}], "description": "Тип TL: ReportResult."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.report"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер, загрузивший историю."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы историй, о которых нужно сообщить."}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Пункт меню, изначально пустой"}, "message": {"type": "string", "x-tl-type": "string", "description": "Комментарий для модерации отчета"}}, "additionalProperties": false, "required": ["peer", "id", "option", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Партнер, загрузивший историю. |\n| `id` | `Vector<int>` | Да | Идентификаторы историй, о которых нужно сообщить. |\n| `option` | `bytes` | Да | Пункт меню, изначально пустой |\n| `message` | `string` | Да | Комментарий для модерации отчета |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "433646405"}}, "/catalog/stories.activateStealthMode": {"post": {"operationId": "stories.activateStealthMode", "tags": ["Истории"], "summary": "Активирует скрытый режим историй, дополнительную информацию см. здесь ».", "description": "Активирует [режим скрытности историй](https://core.telegram.org/api/stories.md#stealth-mode), дополнительную информацию см. [здесь »](https://core.telegram.org/api/stories.md#stealth-mode).\n\nВернет [updateStoriesStealthMode](https://core.telegram.org/constructor/updateStoriesStealthMode.md).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.activateStealthMode", "x-tl-id": "1471926630", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PREMIUM_ACCOUNT_REQUIRED` — Для выполнения этого действия необходим премиум-аккаунт."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.activateStealthMode"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"past": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Удалять ли просмотры любых историй, открытых в течение [`stories_stealth_past_period` секунд »](https://core.telegram.org/api/config.md#stories-stealth-past-period), как указано в [конфигурации клиента](https://core.telegram.org/api/config.md#client-configuration)."}, "future": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Скрывать ли будущие просмотры истории в течение следующих [`stories_stealth_future_period` секунд »](https://core.telegram.org/api/config.md#stories-stealth-future-period), как указано в [client Configuration](https://core.telegram.org/api/config.md#client-configuration)."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `past` | `true` | Нет | Удалять ли просмотры любых историй, открытых в течение [`stories_stealth_past_period` секунд »](https://core.telegram.org/api/config.md#stories-stealth-past-period), как указано в [конфигурации клиента](https://core.telegram.org/api/config.md#client-configuration). |\n| `future` | `true` | Нет | Скрывать ли будущие просмотры истории в течение следующих [`stories_stealth_future_period` секунд »](https://core.telegram.org/api/config.md#stories-stealth-future-period), как указано в [client Configuration](https://core.telegram.org/api/config.md#client-configuration). |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "1471926630"}}, "/catalog/stories.sendReaction": {"post": {"operationId": "stories.sendReaction", "tags": ["Истории"], "summary": "Реагируйте на историю.", "description": "Реагируйте на историю.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "stories.sendReaction", "x-tl-id": "2144810674", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `REACTION_INVALID` — Указанная реакция недействительна.\n- 400 · `STORIES_NEVER_CREATED` — Этот собеседник никогда не публиковал историй.\n- 400 · `STORY_ID_EMPTY` — Вы не указали идентификаторы историй.\n- 400 · `STORY_ID_INVALID` — Указан неверный идентификатор истории."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.sendReaction"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"add_to_recent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Добавлять ли эту реакцию в [список последних реакций »](https://core.telegram.org/api/reactions.md#recent-reactions)."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Партнер, отправивший историю"}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории, на которую нужно отреагировать"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "oneOf": [{"$ref": "#/components/schemas/reactionEmpty"}, {"$ref": "#/components/schemas/reactionEmoji"}, {"$ref": "#/components/schemas/reactionCustomEmoji"}, {"$ref": "#/components/schemas/reactionPaid"}], "description": "Реакция"}}, "additionalProperties": false, "required": ["peer", "story_id", "reaction"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `add_to_recent` | `true` | Нет | Добавлять ли эту реакцию в [список последних реакций »](https://core.telegram.org/api/reactions.md#recent-reactions). |\n| `peer` | `InputPeer` | Да | Партнер, отправивший историю |\n| `story_id` | `int` | Да | Идентификатор истории, на которую нужно отреагировать |\n| `reaction` | `Reaction` | Да | Реакция |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "REACTION_INVALID", "STORIES_NEVER_CREATED", "STORY_ID_EMPTY", "STORY_ID_INVALID"], "x-browser-schema-id": "2144810674"}}, "/catalog/stories.getPeerStories": {"post": {"operationId": "stories.getPeerStories", "tags": ["Истории"], "summary": "Получите полный список активных историй конкретного сверстника.", "description": "Получите полный активный [список историй](https://core.telegram.org/api/stories.md#watching-stories) конкретного партнера.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getPeerStories", "x-tl-id": "743103056", "x-tl-result": "stories.PeerStories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.PeerStories`.\n\n[stories.PeerStories](https://core.telegram.org/type/stories.PeerStories.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.PeerStories", "oneOf": [{"$ref": "#/components/schemas/stories.peerStories"}], "description": "Тип TL: stories.PeerStories."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `MSG_ID_INVALID` — Указан неверный идентификатор сообщения.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getPeerStories"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр, чьи истории следует скачать"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр, чьи истории следует скачать |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "MSG_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "743103056"}}, "/catalog/stories.getAllReadPeerStories": {"post": {"operationId": "stories.getAllReadPeerStories", "tags": ["Истории"], "summary": "Получите последний идентификатор прочитанной истории для всех узлов при первом входе в систему, который будет возвращен в виде списка обновлений updateReadStories. Дополнительные сведения см. здесь ».", "description": "Получите последний идентификатор прочитанной истории для всех одноранговых узлов при первом входе в систему, возвращенный в виде списка обновлений [updateReadStories](https://core.telegram.org/constructor/updateReadStories.md), дополнительную информацию см. здесь [здесь »](https://core.telegram.org/api/stories.md#watching-stories).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAllReadPeerStories", "x-tl-id": "2606426105", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getAllReadPeerStories"}, "x-browser-schema-id": "2606426105"}}, "/catalog/stories.getPeerMaxIDs": {"post": {"operationId": "stories.getPeerMaxIDs", "tags": ["Истории"], "summary": "Получайте компактные краткие обзоры активных историй » для группы коллег.", "description": "Получите компактные [сводки активных историй»](https://core.telegram.org/api/stories.md#recent-story-summaries) для группы коллег.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getPeerMaxIDs", "x-tl-id": "2018087280", "x-tl-result": "Vector<RecentStory>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `Vector<RecentStory>`.\n\n[Вектор](https://core.telegram.org/type/Vector%20t)<[Недавняя история](https://core.telegram.org/type/RecentStory.md)>", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "RecentStory", "oneOf": [{"$ref": "#/components/schemas/recentStory"}], "description": "Тип TL: RecentStory."}, "x-tl-type": "Vector<RecentStory>"}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getPeerMaxIDs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Коллеги, чьи [резюме активных историй »](https://core.telegram.org/api/stories.md#recent-story-summaries) следует получить."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputPeer>` | Да | Коллеги, чьи [резюме активных историй »](https://core.telegram.org/api/stories.md#recent-story-summaries) следует получить. |"}, "x-browser-schema-id": "2018087280"}}, "/catalog/stories.getChatsToSend": {"post": {"operationId": "stories.getChatsToSend", "tags": ["Истории"], "summary": "Получить список каналов, где пользователь может публиковать истории.", "description": "Получите список каналов, где пользователь может публиковать [истории](https://core.telegram.org/api/stories.md)]\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getChatsToSend", "x-tl-id": "2775223136", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.\n\n[messages.Chats](https://core.telegram.org/type/messages.Chats.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getChatsToSend"}, "x-browser-schema-id": "2775223136"}}, "/catalog/stories.togglePeerStoriesHidden": {"post": {"operationId": "stories.togglePeerStoriesHidden", "tags": ["Истории"], "summary": "Скройте активные истории пользователя, чтобы они не отображались на панели действий на главном экране. Дополнительную информацию см. здесь ».", "description": "Скройте активные истории пользователя, предотвратив их отображение на панели действий на главном экране. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/stories.md#hiding-stories-of-other-users).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.togglePeerStoriesHidden", "x-tl-id": "3171161540", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.togglePeerStoriesHidden"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир, чьи истории должны быть (не)скрыты."}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "description": "Скрыть или показать истории."}}, "additionalProperties": false, "required": ["peer", "hidden"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пир, чьи истории должны быть (не)скрыты. |\n| `hidden` | `Bool` | Да | Скрыть или показать истории. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3171161540"}}, "/catalog/stories.getStoryReactionsList": {"post": {"operationId": "stories.getStoryReactionsList", "tags": ["Истории"], "summary": "Получите список реакций и взаимодействий для истории, опубликованной на канале, а также отправителя каждой реакции.", "description": "Получите [реакцию](https://core.telegram.org/api/reactions.md) и список взаимодействий [истории](https://core.telegram.org/api/stories.md), опубликованной на канале], а также отправителя каждой реакции.\n\nМожет использоваться только администраторами канала.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "stories.getStoryReactionsList", "x-tl-id": "3115485215", "x-tl-result": "stories.StoryReactionsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.StoryReactionsList`.\n\n[stories.StoryReactionsList](https://core.telegram.org/type/stories.StoryReactionsList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.StoryReactionsList", "oneOf": [{"$ref": "#/components/schemas/stories.storyReactionsList"}], "description": "Тип TL: stories.StoryReactionsList."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getStoryReactionsList"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"forwards_first": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Если установлено, сначала возвращается вперед и делает репосты, затем реакции, затем другие просмотры; в противном случае возвращает взаимодействия, отсортированные только по дате взаимодействия."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[История](https://core.telegram.org/api/stories.md) ID"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "oneOf": [{"$ref": "#/components/schemas/reactionEmpty"}, {"$ref": "#/components/schemas/reactionEmoji"}, {"$ref": "#/components/schemas/reactionCustomEmoji"}, {"$ref": "#/components/schemas/reactionPaid"}], "description": "Получать только реакции этого типа", "x-tl-flag": "flags.0?Reaction"}, "offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Смещение для нумерации страниц (берётся из поля `next_offset` возвращаемого [stories.StoryReactionsList](https://core.telegram.org/type/stories.StoryReactionsList.md)); пусто в первом запросе."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "id", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `forwards_first` | `true` | Нет | Если установлено, сначала возвращается вперед и делает репосты, затем реакции, затем другие просмотры; в противном случае возвращает взаимодействия, отсортированные только по дате взаимодействия. |\n| `peer` | `InputPeer` | Да | Канал |\n| `id` | `int` | Да | [История](https://core.telegram.org/api/stories.md) ID |\n| `reaction` | `Reaction` | Нет | Получать только реакции этого типа |\n| `offset` | `string` | Нет | Смещение для нумерации страниц (берётся из поля `next_offset` возвращаемого [stories.StoryReactionsList](https://core.telegram.org/type/stories.StoryReactionsList.md)); пусто в первом запросе. |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3115485215"}}, "/catalog/stories.togglePinnedToTop": {"post": {"operationId": "stories.togglePinnedToTop", "tags": ["Истории"], "summary": "Прикрепите несколько историй вверху профиля, дополнительную информацию можно найти здесь ».", "description": "Прикрепите несколько историй вверху профиля, дополнительную информацию см. [здесь »](https://core.telegram.org/api/stories.md#pinned-or-archived-stories).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.togglePinnedToTop", "x-tl-id": "187268763", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_ID_INVALID` — Указан неверный идентификатор истории."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.togglePinnedToTop"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где закреплять сторис."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы историй, которые нужно закрепить (максимум [stories_pinned_to_top_count_max](https://core.telegram.org/api/config.md#stories-pinned-to-top-count-max))."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где закреплять сторис. |\n| `id` | `Vector<int>` | Да | Идентификаторы историй, которые нужно закрепить (максимум [stories_pinned_to_top_count_max](https://core.telegram.org/api/config.md#stories-pinned-to-top-count-max)). |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_ID_INVALID"], "x-browser-schema-id": "187268763"}}, "/catalog/stories.searchPosts": {"post": {"operationId": "stories.searchPosts", "tags": ["Истории"], "summary": "Глобальный поиск историй с использованием хэштега или медиа-области местоположения. Дополнительную информацию о полном потоке см. здесь ».", "description": "Выполняйте глобальный поиск [историй](https://core.telegram.org/api/stories.md), используя хэштег или [местоположение медиа-области](https://core.telegram.org/api/stories.md#location-tags), см. [здесь »](https://core.telegram.org/api/stories.md#searching-stories) для получения дополнительной информации о полном потоке).\n\nЛибо `hashtag` **или** `area` **должен** быть установлен при вызове метода.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.searchPosts", "x-tl-id": "3514894599", "x-tl-result": "stories.FoundStories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.FoundStories`.\n\n[stories.FoundStories](https://core.telegram.org/type/stories.FoundStories.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.FoundStories", "oneOf": [{"$ref": "#/components/schemas/stories.foundStories"}], "description": "Тип TL: stories.FoundStories."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `HASHTAG_INVALID` — Указанный хэштег недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.searchPosts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hashtag": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Хэштег (без `#`)"}, "area": {"type": "object", "x-tl-type": "MediaArea", "oneOf": [{"$ref": "#/components/schemas/mediaAreaVenue"}, {"$ref": "#/components/schemas/inputMediaAreaVenue"}, {"$ref": "#/components/schemas/mediaAreaGeoPoint"}, {"$ref": "#/components/schemas/mediaAreaSuggestedReaction"}, {"$ref": "#/components/schemas/mediaAreaChannelPost"}, {"$ref": "#/components/schemas/inputMediaAreaChannelPost"}, {"$ref": "#/components/schemas/mediaAreaUrl"}, {"$ref": "#/components/schemas/mediaAreaWeather"}, {"$ref": "#/components/schemas/mediaAreaStarGift"}], "description": "[mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) или [mediaAreaVenue](https://core.telegram.org/constructor/mediaAreaVenue.md).   Примечание. Области mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) можно искать только в том случае, если они имеют связанный `address`.", "x-tl-flag": "flags.1?MediaArea"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Если установлено, возвращаются только истории, опубликованные этим узлом.", "x-tl-flag": "flags.2?InputPeer"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для [пагинации](https://core.telegram.org/api/offsets.md): изначально пустая строка, затем `next_offset` из ранее возвращенного [stories.foundStories](https://core.telegram.org/constructor/stories.foundStories.md)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hashtag` | `string` | Нет | Хэштег (без `#`) |\n| `area` | `MediaArea` | Нет | [mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) или [mediaAreaVenue](https://core.telegram.org/constructor/mediaAreaVenue.md).   Примечание. Области mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) можно искать только в том случае, если они имеют связанный `address`. |\n| `peer` | `InputPeer` | Нет | Если установлено, возвращаются только истории, опубликованные этим узлом. |\n| `offset` | `string` | Да | Смещение для [пагинации](https://core.telegram.org/api/offsets.md): изначально пустая строка, затем `next_offset` из ранее возвращенного [stories.foundStories](https://core.telegram.org/constructor/stories.foundStories.md). |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["HASHTAG_INVALID"], "x-browser-schema-id": "3514894599"}}, "/catalog/stories.createAlbum": {"post": {"operationId": "stories.createAlbum", "tags": ["Истории"], "summary": "Создает альбом историй.", "description": "Создает [альбом историй](https://core.telegram.org/api/stories.md#story-albums).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.createAlbum", "x-tl-id": "2741212901", "x-tl-result": "StoryAlbum", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `StoryAlbum`.\n\n[Альбом историй](https://core.telegram.org/type/StoryAlbum.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StoryAlbum", "oneOf": [{"$ref": "#/components/schemas/storyAlbum"}], "description": "Тип TL: StoryAlbum."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.createAlbum"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Принадлежащий узел, где создается альбом."}, "title": {"type": "string", "x-tl-type": "string", "description": "Название альбома."}, "stories": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Истории для добавления в альбом."}}, "additionalProperties": false, "required": ["peer", "title", "stories"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Принадлежащий узел, где создается альбом. |\n| `title` | `string` | Да | Название альбома. |\n| `stories` | `Vector<int>` | Да | Истории для добавления в альбом. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2741212901"}}, "/catalog/stories.updateAlbum": {"post": {"operationId": "stories.updateAlbum", "tags": ["Истории"], "summary": "Переименуйте альбомы историй», а также добавляйте, удаляйте или меняйте порядок историй в нем.", "description": "Переименуйте [альбомы историй »](https://core.telegram.org/api/stories.md#story-albums) либо добавьте, удалите или измените порядок историй в нем.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.updateAlbum", "x-tl-id": "1582455222", "x-tl-result": "StoryAlbum", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `StoryAlbum`.\n\n[Альбом историй](https://core.telegram.org/type/StoryAlbum.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StoryAlbum", "oneOf": [{"$ref": "#/components/schemas/storyAlbum"}], "description": "Тип TL: StoryAlbum."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.updateAlbum"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где выложен альбом."}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор альбома."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Название нового альбома."}, "delete_stories": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.1?Vector<int>", "description": "Если установлено, удаляет указанные истории из альбома."}, "add_stories": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.2?Vector<int>", "description": "Если установлено, добавляет указанные истории в альбом."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.3?Vector<int>", "description": "Если установлено, истории в альбоме переупорядочиваются по их идентификаторам."}}, "additionalProperties": false, "required": ["peer", "album_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где выложен альбом. |\n| `album_id` | `int` | Да | Идентификатор альбома. |\n| `title` | `string` | Нет | Название нового альбома. |\n| `delete_stories` | `Vector<int>` | Нет | Если установлено, удаляет указанные истории из альбома. |\n| `add_stories` | `Vector<int>` | Нет | Если установлено, добавляет указанные истории в альбом. |\n| `order` | `Vector<int>` | Нет | Если установлено, истории в альбоме переупорядочиваются по их идентификаторам. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1582455222"}}, "/catalog/stories.reorderAlbums": {"post": {"operationId": "stories.reorderAlbums", "tags": ["Истории"], "summary": "Переупорядочить альбомы историй в профиле».", "description": "Переупорядочить [альбомы историй в профиле »](https://core.telegram.org/api/stories.md#story-albums).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.reorderAlbums", "x-tl-id": "2234907609", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.reorderAlbums"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где находятся альбомы."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Новый порядок альбомов."}}, "additionalProperties": false, "required": ["peer", "order"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где находятся альбомы. |\n| `order` | `Vector<int>` | Да | Новый порядок альбомов. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2234907609"}}, "/catalog/stories.deleteAlbum": {"post": {"operationId": "stories.deleteAlbum", "tags": ["Истории"], "summary": "Удалить альбом историй.", "description": "Удалить [альбом историй](https://core.telegram.org/api/stories.md#story-albums).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.deleteAlbum", "x-tl-id": "2369017552", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.deleteAlbum"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Принадлежащий узел, где находится альбом."}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор альбома, который нужно удалить."}}, "additionalProperties": false, "required": ["peer", "album_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Принадлежащий узел, где находится альбом. |\n| `album_id` | `int` | Да | Идентификатор альбома, который нужно удалить. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2369017552"}}, "/catalog/stories.getAlbums": {"post": {"operationId": "stories.getAlbums", "tags": ["Истории"], "summary": "Получите альбомы с историями, созданные коллегами.", "description": "Получите [альбомы историй](https://core.telegram.org/api/stories.md#story-albums), созданные вашим коллегой.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAlbums", "x-tl-id": "632548039", "x-tl-result": "stories.Albums", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.Albums`.\n\n[stories.Albums](https://core.telegram.org/type/stories.Albums.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.Albums", "oneOf": [{"$ref": "#/components/schemas/stories.albumsNotModified"}, {"$ref": "#/components/schemas/stories.albums"}], "description": "Тип TL: stories.Albums."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getAlbums"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "`hash` из ранее возвращенного [stories.albums](https://core.telegram.org/constructor/stories.albums.md), чтобы избежать возврата каких-либо результатов, если они не изменились.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр. |\n| `hash` | `long` | Да | `hash` из ранее возвращенного [stories.albums](https://core.telegram.org/constructor/stories.albums.md), чтобы избежать возврата каких-либо результатов, если они не изменились. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "632548039"}}, "/catalog/stories.getAlbumStories": {"post": {"operationId": "stories.getAlbumStories", "tags": ["Истории"], "summary": "Собирайте истории в альбом историй».", "description": "Получайте истории в [альбоме историй »](https://core.telegram.org/api/stories.md#story-albums).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAlbumStories", "x-tl-id": "2894097761", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "Результат MTProto · `stories.Stories`.\n\n[stories.Stories](https://core.telegram.org/type/stories.Stories.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "stories.Stories", "oneOf": [{"$ref": "#/components/schemas/stories.stories"}], "description": "Тип TL: stories.Stories."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.getAlbumStories"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Посмотрите, где выложен альбом."}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор альбома."}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "album_id", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Посмотрите, где выложен альбом. |\n| `album_id` | `int` | Да | Идентификатор альбома. |\n| `offset` | `int` | Да | Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md). |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2894097761"}}, "/catalog/stories.startLive": {"post": {"operationId": "stories.startLive", "tags": ["Истории"], "summary": "Начните прямую трансляцию, при необходимости используя режим прямой трансляции RTMP. Полный текст смотрите здесь ».", "description": "Начните прямую трансляцию, при необходимости используя режим прямой трансляции RTMP, полный текст см. [здесь »](https://core.telegram.org/api/group-calls.md#live-stories).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "stories.startLive", "x-tl-id": "3496594654", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "Результат MTProto · `Updates`.\n\n[Обновления](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Монофорумы](https://core.telegram.org/api/channel.md#monoforums) не поддерживают эту функцию.\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `STORY_LIVE_ALREADY_%d` — У этого узла уже есть активная действующая история, и его идентификатор равен %d."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/stories.startLive"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Закреплять ли живую историю в профиле коллеги"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Необходимо ли запретить зрителям пересылать или сохранять прямую трансляцию"}, "rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Создайте прямую трансляцию в [RTMP режиме прямой трансляции »](https://core.telegram.org/api/group-calls.md#stream-mode), где один внешний стример публикует все аудио и видео."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пользователь, супергруппа или канал, которому будет принадлежать живая история; базовые группы не могут публиковать живые истории"}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Подпись к живой истории"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)"}, "privacy_rules": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPrivacyRule", "oneOf": [{"$ref": "#/components/schemas/inputPrivacyValueAllowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowCloseFriends"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowPremium"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowBots"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowBots"}], "description": "Тип TL: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "Правила конфиденциальности, определяющие, кто может просматривать прямую трансляцию"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Генерируемый клиентом случайный идентификатор, используемый для предотвращения дублирования живых историй. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long"}, "messages_enabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.6?Bool", "description": "Следует ли включать [наложение сообщений во время вызова »](https://core.telegram.org/api/group-calls.md#in-call-messages)"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Минимальное пожертвование Telegram Stars, требуемое от пользователей, кроме владельца живой истории, для каждого комментария; владелец всегда может комментировать без пожертвований, а `0` позволяет всем бесплатно оставлять комментарии.", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}}, "additionalProperties": false, "required": ["peer", "privacy_rules", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `pinned` | `true` | Нет | Закреплять ли живую историю в профиле коллеги |\n| `noforwards` | `true` | Нет | Необходимо ли запретить зрителям пересылать или сохранять прямую трансляцию |\n| `rtmp_stream` | `true` | Нет | Создайте прямую трансляцию в [RTMP режиме прямой трансляции »](https://core.telegram.org/api/group-calls.md#stream-mode), где один внешний стример публикует все аудио и видео. |\n| `peer` | `InputPeer` | Да | Пользователь, супергруппа или канал, которому будет принадлежать живая история; базовые группы не могут публиковать живые истории |\n| `caption` | `string` | Нет | Подпись к живой истории |\n| `entities` | `Vector<MessageEntity>` | Нет | [Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md) |\n| `privacy_rules` | `Vector<InputPrivacyRule>` | Да | Правила конфиденциальности, определяющие, кто может просматривать прямую трансляцию |\n| `random_id` | `long` | Да | Генерируемый клиентом случайный идентификатор, используемый для предотвращения дублирования живых историй. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID. |\n| `messages_enabled` | `Bool` | Нет | Следует ли включать [наложение сообщений во время вызова »](https://core.telegram.org/api/group-calls.md#in-call-messages) |\n| `send_paid_messages_stars` | `long` | Нет | Минимальное пожертвование Telegram Stars, требуемое от пользователей, кроме владельца живой истории, для каждого комментария; владелец всегда может комментировать без пожертвований, а `0` позволяет всем бесплатно оставлять комментарии. |"}, "x-telegram-rpc-errors": ["CHANNEL_MONOFORUM_UNSUPPORTED", "CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID", "STORY_LIVE_ALREADY_%d"], "x-browser-schema-id": "3496594654"}}, "/catalog/premium.getBoostsList": {"post": {"operationId": "premium.getBoostsList", "tags": ["Telegram Premium"], "summary": "Получает информацию об усилениях, которые были применены к определенному каналу или супергруппе (только для администраторов).", "description": "Получает информацию об усилениях, которые были применены к определенному каналу или супергруппе (только для администраторов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "premium.getBoostsList", "x-tl-id": "1626764896", "x-tl-result": "premium.BoostsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "Результат MTProto · `premium.BoostsList`.\n\n[premium.BoostsList](https://core.telegram.org/type/premium.BoostsList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "premium.BoostsList", "oneOf": [{"$ref": "#/components/schemas/premium.boostsList"}], "description": "Тип TL: premium.BoostsList."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — Чтобы сделать это, вы должны быть администратором этого чата.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/premium.getBoostsList"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Возвращать ли только информацию о бустах, полученных от [подарочных кодов и розыгрышей, созданных каналом/супергруппой »](https://core.telegram.org/api/giveaways.md)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал/супергруппа"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц, полученное из [premium.boostsList](https://core.telegram.org/constructor/premium.boostsList.md).`next_offset`"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `gifts` | `true` | Нет | Возвращать ли только информацию о бустах, полученных от [подарочных кодов и розыгрышей, созданных каналом/супергруппой »](https://core.telegram.org/api/giveaways.md) |\n| `peer` | `InputPeer` | Да | Канал/супергруппа |\n| `offset` | `string` | Да | Смещение для нумерации страниц, полученное из [premium.boostsList](https://core.telegram.org/constructor/premium.boostsList.md).`next_offset` |\n| `limit` | `int` | Да | Максимальное количество возвращаемых результатов, [см. нумерацию страниц](https://core.telegram.org/api/offsets.md) |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "1626764896"}}, "/catalog/premium.getMyBoosts": {"post": {"operationId": "premium.getMyBoosts", "tags": ["Telegram Premium"], "summary": "Узнайте, какие пиры мы сейчас повышаем и сколько слотов для повышения у нас осталось.", "description": "Узнайте, какие пиры мы в настоящее время [повышаем](https://core.telegram.org/api/boost.md)] и сколько [ускоряющих слотов](https://core.telegram.org/api/boost.md) у нас осталось.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "premium.getMyBoosts", "x-tl-id": "199719754", "x-tl-result": "premium.MyBoosts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "Результат MTProto · `premium.MyBoosts`.\n\n[premium.MyBoosts](https://core.telegram.org/type/premium.MyBoosts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "premium.MyBoosts", "oneOf": [{"$ref": "#/components/schemas/premium.myBoosts"}], "description": "Тип TL: premium.MyBoosts."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/premium.getMyBoosts"}, "x-browser-schema-id": "199719754"}}, "/catalog/premium.applyBoost": {"post": {"operationId": "premium.applyBoost", "tags": ["Telegram Premium"], "summary": "Примените одно или несколько усилений » к партнеру.", "description": "Примените одно или несколько [ускорителей »](https://core.telegram.org/api/boost.md) к узлу.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "premium.applyBoost", "x-tl-id": "1803396934", "x-tl-result": "premium.MyBoosts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "Результат MTProto · `premium.MyBoosts`.\n\n[premium.MyBoosts](https://core.telegram.org/type/premium.MyBoosts.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "premium.MyBoosts", "oneOf": [{"$ref": "#/components/schemas/premium.myBoosts"}], "description": "Тип TL: premium.MyBoosts."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `BOOSTS_EMPTY` — Слоты усиления не указаны.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен.\n- 400 · `SLOTS_EMPTY` — Указанный список слотов пуст."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/premium.applyBoost"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"slots": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>", "description": "Какие [слоты повышения](https://core.telegram.org/api/boost.md) назначить этому узлу."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пир для повышения."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `slots` | `Vector<int>` | Нет | Какие [слоты повышения](https://core.telegram.org/api/boost.md) назначить этому узлу. |\n| `peer` | `InputPeer` | Да | Пир для повышения. |"}, "x-telegram-rpc-errors": ["BOOSTS_EMPTY", "PEER_ID_INVALID", "SLOTS_EMPTY"], "x-browser-schema-id": "1803396934"}}, "/catalog/premium.getBoostsStatus": {"post": {"operationId": "premium.getBoostsStatus", "tags": ["Telegram Premium"], "summary": "Получает текущее количество повышений канала/супергруппы.", "description": "Получает текущее [количество повышений](https://core.telegram.org/api/boost.md) канала/супергруппы.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "premium.getBoostsStatus", "x-tl-id": "70197089", "x-tl-result": "premium.BoostsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "Результат MTProto · `premium.BoostsStatus`.\n\n[premium.BoostsStatus](https://core.telegram.org/type/premium.BoostsStatus.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "premium.BoostsStatus", "oneOf": [{"$ref": "#/components/schemas/premium.boostsStatus"}], "description": "Тип TL: premium.BoostsStatus."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `CHANNEL_INVALID` — Указанный канал недействителен.\n- 400 · `CHANNEL_PRIVATE` — Вы не присоединились к этому каналу/супергруппе.\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/premium.getBoostsStatus"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Пэр."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Пэр. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHANNEL_PRIVATE", "PEER_ID_INVALID"], "x-browser-schema-id": "70197089"}}, "/catalog/premium.getUserBoosts": {"post": {"operationId": "premium.getUserBoosts", "tags": ["Telegram Premium"], "summary": "Возвращает списки повышений, которые были применены к каналу/супергруппе конкретным пользователем (только администраторы).", "description": "Возвращает списки повышений, которые были применены к каналу/супергруппе конкретным пользователем (только администраторы).\n\n**Кто может вызвать метод** · Пользователи и боты Telegram.", "x-tl-method": "premium.getUserBoosts", "x-tl-id": "965037343", "x-tl-result": "premium.BoostsList", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `premium.BoostsList`.\n\n[premium.BoostsList](https://core.telegram.org/type/premium.BoostsList.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "premium.BoostsList", "oneOf": [{"$ref": "#/components/schemas/premium.boostsList"}], "description": "Тип TL: premium.BoostsList."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `PEER_ID_INVALID` — Указанный идентификатор узла недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/premium.getUserBoosts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Канал/супергруппа"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Пользователь"}}, "additionalProperties": false, "required": ["peer", "user_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Канал/супергруппа |\n| `user_id` | `InputUser` | Да | Пользователь |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "965037343"}}, "/catalog/smsjobs.isEligibleToJoin": {"post": {"operationId": "smsjobs.isEligibleToJoin", "tags": ["SMS"], "summary": "Проверьте, можем ли мы обработать SMS заданий (только для официальных клиентов).", "description": "Проверьте, можем ли мы обработать SMS заданий (только для официальных клиентов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "smsjobs.isEligibleToJoin", "x-tl-id": "249313744", "x-tl-result": "smsjobs.EligibilityToJoin", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `smsjobs.EligibilityToJoin`.\n\n[smsjobs.EligibilityToJoin](https://core.telegram.org/type/smsjobs.EligibilityToJoin.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "smsjobs.EligibilityToJoin", "oneOf": [{"$ref": "#/components/schemas/smsjobs.eligibleToJoin"}], "description": "Тип TL: smsjobs.EligibilityToJoin."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 403 · `NOT_ELIGIBLE` — Текущий пользователь не имеет права присоединиться к программе однорангового входа."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/smsjobs.isEligibleToJoin"}, "x-telegram-rpc-errors": ["NOT_ELIGIBLE"], "x-browser-schema-id": "249313744"}}, "/catalog/smsjobs.join": {"post": {"operationId": "smsjobs.join", "tags": ["SMS"], "summary": "Включить SMS заданий (только для официальных клиентов).", "description": "Включить SMS заданий (только для официальных клиентов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "smsjobs.join", "x-tl-id": "2806959661", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `NOT_ELIGIBLE` — Текущий пользователь не имеет права присоединиться к программе однорангового входа."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/smsjobs.join"}, "x-telegram-rpc-errors": ["NOT_ELIGIBLE"], "x-browser-schema-id": "2806959661"}}, "/catalog/smsjobs.leave": {"post": {"operationId": "smsjobs.leave", "tags": ["SMS"], "summary": "Отключить SMS задания (только для официальных клиентов).", "description": "Отключить SMS задания (только для официальных клиентов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "smsjobs.leave", "x-tl-id": "2560142707", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `NOT_JOINED` — Текущий пользователь не присоединился к программе однорангового входа."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/smsjobs.leave"}, "x-telegram-rpc-errors": ["NOT_JOINED"], "x-browser-schema-id": "2560142707"}}, "/catalog/smsjobs.updateSettings": {"post": {"operationId": "smsjobs.updateSettings", "tags": ["SMS"], "summary": "Обновите настройки задания SMS (только для официальных клиентов).", "description": "Обновите настройки задания SMS (только для официальных клиентов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "smsjobs.updateSettings", "x-tl-id": "155164863", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `NOT_JOINED` — Текущий пользователь не присоединился к программе однорангового входа."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/smsjobs.updateSettings"}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"allow_international": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Разрешить международные номера?"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `allow_international` | `true` | Нет | Разрешить международные номера? |"}, "x-telegram-rpc-errors": ["NOT_JOINED"], "x-browser-schema-id": "155164863"}}, "/catalog/smsjobs.getStatus": {"post": {"operationId": "smsjobs.getStatus", "tags": ["SMS"], "summary": "Получите статус вакансий SMS (только для официальных клиентов).", "description": "Получите статус вакансий SMS (только для официальных клиентов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "smsjobs.getStatus", "x-tl-id": "279353576", "x-tl-result": "smsjobs.Status", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `smsjobs.Status`.\n\n[smsjobs.Status](https://core.telegram.org/type/smsjobs.Status.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "smsjobs.Status", "oneOf": [{"$ref": "#/components/schemas/smsjobs.status"}], "description": "Тип TL: smsjobs.Status."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `NOT_JOINED` — Текущий пользователь не присоединился к программе однорангового входа."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/smsjobs.getStatus"}, "x-telegram-rpc-errors": ["NOT_JOINED"], "x-browser-schema-id": "279353576"}}, "/catalog/smsjobs.getSmsJob": {"post": {"operationId": "smsjobs.getSmsJob", "tags": ["SMS"], "summary": "Получите информацию о вакансии SMS (только для официальных клиентов).", "description": "Получите информацию о вакансии SMS (только для официальных клиентов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "smsjobs.getSmsJob", "x-tl-id": "2005766191", "x-tl-result": "SmsJob", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `SmsJob`.\n\n[SmsJob](https://core.telegram.org/type/SmsJob.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "SmsJob", "oneOf": [{"$ref": "#/components/schemas/smsJob"}], "description": "Тип TL: SmsJob."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SMSJOB_ID_INVALID` — Указанный идентификатор задания недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/smsjobs.getSmsJob"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"job_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор вакансии"}}, "additionalProperties": false, "required": ["job_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `job_id` | `string` | Да | Идентификатор вакансии |"}, "x-telegram-rpc-errors": ["SMSJOB_ID_INVALID"], "x-browser-schema-id": "2005766191"}}, "/catalog/smsjobs.finishJob": {"post": {"operationId": "smsjobs.finishJob", "tags": ["SMS"], "summary": "Завершите задание SMS (только для официальных клиентов).", "description": "Завершите задание SMS (только для официальных клиентов).\n\n**Кто может вызвать метод** · Только пользователи Telegram.", "x-tl-method": "smsjobs.finishJob", "x-tl-id": "1327415076", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `SMSJOB_ID_INVALID` — Указанный идентификатор задания недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/smsjobs.finishJob"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"job_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор вакансии."}, "error": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Если не удалось, то ошибка."}}, "additionalProperties": false, "required": ["job_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `job_id` | `string` | Да | Идентификатор вакансии. |\n| `error` | `string` | Нет | Если не удалось, то ошибка. |"}, "x-telegram-rpc-errors": ["SMSJOB_ID_INVALID"], "x-browser-schema-id": "1327415076"}}, "/catalog/fragment.getCollectibleInfo": {"post": {"operationId": "fragment.getCollectibleInfo", "tags": ["Fragment"], "summary": "Получите информацию о коллекционном фрагменте, см. здесь » для получения дополнительной информации о полном потоке.", "description": "Получите информацию о [фрагменте коллекционного предмета, см. здесь »](https://core.telegram.org/api/fragment.md#fetching-info-about-fragment-collectibles) для получения дополнительной информации о полном потоке.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Fragment collectibles](https://core.telegram.org/api/fragment.md)", "x-tl-method": "fragment.getCollectibleInfo", "x-tl-id": "3189671354", "x-tl-result": "fragment.CollectibleInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Fragment collectibles", "https://core.telegram.org/api/fragment.md"]], "responses": {"200": {"description": "Результат MTProto · `fragment.CollectibleInfo`.\n\n[fragment.CollectibleInfo](https://core.telegram.org/type/fragment.CollectibleInfo.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "fragment.CollectibleInfo", "oneOf": [{"$ref": "#/components/schemas/fragment.collectibleInfo"}], "description": "Тип TL: fragment.CollectibleInfo."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `COLLECTIBLE_INVALID` — Указанный предмет коллекционирования недействителен.\n- 400 · `COLLECTIBLE_NOT_FOUND` — Указанный предмет коллекционирования не найден."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/fragment.getCollectibleInfo"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"collectible": {"type": "object", "x-tl-type": "InputCollectible", "oneOf": [{"$ref": "#/components/schemas/inputCollectibleUsername"}, {"$ref": "#/components/schemas/inputCollectiblePhone"}], "description": "Коллекционный предмет, о котором можно получить информацию."}}, "additionalProperties": false, "required": ["collectible"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `collectible` | `InputCollectible` | Да | Коллекционный предмет, о котором можно получить информацию. |"}, "x-telegram-rpc-errors": ["COLLECTIBLE_INVALID", "COLLECTIBLE_NOT_FOUND"], "x-browser-schema-id": "3189671354"}}, "/catalog/aicompose.createTone": {"post": {"operationId": "aicompose.createTone", "tags": ["ИИ-редактор"], "summary": "Создайте новый собственный тон AI-композитора».", "description": "Создайте новый собственный [тон композитора AI »](https://core.telegram.org/api/ai.md#ai-compose-tones).\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.createTone", "x-tl-id": "1252538643", "x-tl-result": "AiComposeTone", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "Результат MTProto · `AiComposeTone`.\n\n[AiComposeTone](https://core.telegram.org/type/AiComposeTone.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AiComposeTone", "oneOf": [{"$ref": "#/components/schemas/aiComposeTone"}, {"$ref": "#/components/schemas/aiComposeToneDefault"}], "description": "Тип TL: AiComposeTone."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AICOMPOSE_TONE_TITLE_INVALID` — Указанное название тона недействительно."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/aicompose.createTone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"display_author": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Если установлено, текущий пользователь будет публично указан как автор тона."}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md) значка тона", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "description": "Понятное для человека название тона длиной до [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 символов."}, "prompt": {"type": "string", "x-tl-type": "string", "description": "Подсказка, описывающая, как ИИ должен перефразировать сообщения, используя этот тон, длиной до [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 символов."}}, "additionalProperties": false, "required": ["emoji_id", "title", "prompt"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `display_author` | `true` | Нет | Если установлено, текущий пользователь будет публично указан как автор тона. |\n| `emoji_id` | `long` | Да | [Пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md) значка тона |\n| `title` | `string` | Да | Понятное для человека название тона длиной до [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 символов. |\n| `prompt` | `string` | Да | Подсказка, описывающая, как ИИ должен перефразировать сообщения, используя этот тон, длиной до [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 символов. |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_TITLE_INVALID"], "x-browser-schema-id": "1252538643"}}, "/catalog/aicompose.updateTone": {"post": {"operationId": "aicompose.updateTone", "tags": ["ИИ-редактор"], "summary": "Редактировать собственный тон композитора AI, ранее созданный текущим пользователем. Будут изменены только те поля, для которых установлен флаг.", "description": "Отредактируйте собственный [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones), ранее созданный текущим пользователем. Будут изменены только те поля, для которых установлен флаг.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.updateTone", "x-tl-id": "2419838809", "x-tl-result": "AiComposeTone", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "Результат MTProto · `AiComposeTone`.\n\n[AiComposeTone](https://core.telegram.org/type/AiComposeTone.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AiComposeTone", "oneOf": [{"$ref": "#/components/schemas/aiComposeTone"}, {"$ref": "#/components/schemas/aiComposeToneDefault"}], "description": "Тип TL: AiComposeTone."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — Указанный тон недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/aicompose.updateTone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeToneDefault"}, {"$ref": "#/components/schemas/inputAiComposeToneID"}, {"$ref": "#/components/schemas/inputAiComposeToneSlug"}, {"$ref": "#/components/schemas/inputAiComposeToneSingleUse"}], "description": "Тон для редактирования"}, "display_author": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Если установлено, изменяется, будет ли текущий пользователь публично указан как автор тона (троичное значение, может быть не установлено, установлено и истинно, установлено и ложно)."}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Если установлено, новый [пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md) значка тона", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Если установлено, новое удобочитаемое имя тона длиной до [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 символов."}, "prompt": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Если установлено, появится новая подсказка, описывающая, как ИИ должен перефразировать сообщения с использованием этого тона, длиной до [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 символов."}}, "additionalProperties": false, "required": ["tone"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | Да | Тон для редактирования |\n| `display_author` | `Bool` | Нет | Если установлено, изменяется, будет ли текущий пользователь публично указан как автор тона (троичное значение, может быть не установлено, установлено и истинно, установлено и ложно). |\n| `emoji_id` | `long` | Нет | Если установлено, новый [пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md) значка тона |\n| `title` | `string` | Нет | Если установлено, новое удобочитаемое имя тона длиной до [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 символов. |\n| `prompt` | `string` | Нет | Если установлено, появится новая подсказка, описывающая, как ИИ должен перефразировать сообщения с использованием этого тона, длиной до [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 символов. |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "2419838809"}}, "/catalog/aicompose.saveTone": {"post": {"operationId": "aicompose.saveTone", "tags": ["ИИ-редактор"], "summary": "Установить или удалить тон AI композитора», добавив его в список сохраненных тонов текущего пользователя или удалив из него.", "description": "Установите или удалите [тон AI композитора»](https://core.telegram.org/api/ai.md#ai-compose-tones), добавив его в список сохраненных тонов текущего пользователя или удалив из него.\n\nПользователи, не являющиеся [Premium](https://core.telegram.org/api/premium.md), могут установить до [aicompose\\_tone\\_saved\\_limit\\_default »](https://core.telegram.org/api/config.md#aicompose-tone-saved-limit-default) тонов, [Premium](https://core.telegram.org/api/premium.md) пользователи — до [aicompose\\_tone\\_saved\\_limit\\_premium »](https://core.telegram.org/api/config.md#aicompose-tone-saved-limit-premium) тонов.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [AI features](https://core.telegram.org/api/ai.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "aicompose.saveTone", "x-tl-id": "394447793", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — Указанный тон недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/aicompose.saveTone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeToneDefault"}, {"$ref": "#/components/schemas/inputAiComposeToneID"}, {"$ref": "#/components/schemas/inputAiComposeToneSlug"}, {"$ref": "#/components/schemas/inputAiComposeToneSingleUse"}], "description": "Тон, чтобы сохранить или отменить сохранение"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Если `false`, устанавливает (сохраняет) тон; если `true`, удаляет (несохраняет) его"}}, "additionalProperties": false, "required": ["tone", "unsave"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | Да | Тон, чтобы сохранить или отменить сохранение |\n| `unsave` | `Bool` | Да | Если `false`, устанавливает (сохраняет) тон; если `true`, удаляет (несохраняет) его |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "394447793"}}, "/catalog/aicompose.deleteTone": {"post": {"operationId": "aicompose.deleteTone", "tags": ["ИИ-редактор"], "summary": "Безвозвратно удалить пользовательский тон композитора AI, созданный текущим пользователем.", "description": "Навсегда удалить пользовательский [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones), созданный текущим пользователем.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.deleteTone", "x-tl-id": "3711512938", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "Результат MTProto · `Bool`.\n\n[Бул](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — Указанный тон недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/aicompose.deleteTone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeToneDefault"}, {"$ref": "#/components/schemas/inputAiComposeToneID"}, {"$ref": "#/components/schemas/inputAiComposeToneSlug"}, {"$ref": "#/components/schemas/inputAiComposeToneSingleUse"}], "description": "Тон, который нужно удалить"}}, "additionalProperties": false, "required": ["tone"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | Да | Тон, который нужно удалить |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "3711512938"}}, "/catalog/aicompose.getTone": {"post": {"operationId": "aicompose.getTone", "tags": ["ИИ-редактор"], "summary": "Получение информации об одном тоне композитора AI», например, для разрешения глубокой ссылки на общий тон.", "description": "Получите информацию об одном [тоне композитора AI »](https://core.telegram.org/api/ai.md#ai-compose-tones), например, чтобы разрешить глубокую ссылку на общий тон.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.getTone", "x-tl-id": "3001596419", "x-tl-result": "aicompose.Tones", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "Результат MTProto · `aicompose.Tones`.\n\n[aicompose.Tones](https://core.telegram.org/type/aicompose.Tones.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "aicompose.Tones", "oneOf": [{"$ref": "#/components/schemas/aicompose.tonesNotModified"}, {"$ref": "#/components/schemas/aicompose.tones"}], "description": "Тип TL: aicompose.Tones."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — Указанный тон недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/aicompose.getTone"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeToneDefault"}, {"$ref": "#/components/schemas/inputAiComposeToneID"}, {"$ref": "#/components/schemas/inputAiComposeToneSlug"}, {"$ref": "#/components/schemas/inputAiComposeToneSingleUse"}], "description": "Тон, который нужно получить"}}, "additionalProperties": false, "required": ["tone"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | Да | Тон, который нужно получить |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "3001596419"}}, "/catalog/aicompose.getTones": {"post": {"operationId": "aicompose.getTones", "tags": ["ИИ-редактор"], "summary": "Получить список сохраненных тонов композитора AI текущего пользователя.", "description": "Получите список сохраненных [композиторских тонов AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) текущего пользователя.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.getTones", "x-tl-id": "2882900481", "x-tl-result": "aicompose.Tones", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "Результат MTProto · `aicompose.Tones`.\n\n[aicompose.Tones](https://core.telegram.org/type/aicompose.Tones.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "aicompose.Tones", "oneOf": [{"$ref": "#/components/schemas/aicompose.tonesNotModified"}, {"$ref": "#/components/schemas/aicompose.tones"}], "description": "Тип TL: aicompose.Tones."}}}}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/aicompose.getTones"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш из ранее кэшированного [aicompose.tones](https://core.telegram.org/constructor/aicompose.tones.md).`hash`, чтобы избежать повторной загрузки списка, если он не изменился; изначально 0.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | Хэш из ранее кэшированного [aicompose.tones](https://core.telegram.org/constructor/aicompose.tones.md).`hash`, чтобы избежать повторной загрузки списка, если он не изменился; изначально 0. |"}, "x-browser-schema-id": "2882900481"}}, "/catalog/aicompose.getToneExample": {"post": {"operationId": "aicompose.getToneExample", "tags": ["ИИ-редактор"], "summary": "Получите пример, показывающий, как тон AI-композитора » перефразирует образец сообщения, используемый в качестве предварительного просмотра в средстве выбора тона.", "description": "Получите пример, показывающий, как [тон композитора AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) перефразирует образец сообщения, используемый в качестве предварительного просмотра в средстве выбора тона.\n\n**Кто может вызвать метод** · Только пользователи Telegram.\n\n**Связанная документация**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.getToneExample", "x-tl-id": "3518278420", "x-tl-result": "AiComposeToneExample", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "Результат MTProto · `AiComposeToneExample`.\n\n[AiComposeToneExample](https://core.telegram.org/type/AiComposeToneExample.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AiComposeToneExample", "oneOf": [{"$ref": "#/components/schemas/aiComposeToneExample"}], "description": "Тип TL: AiComposeToneExample."}}}}, "default": {"description": "### Ошибки MTProto (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — Указанный тон недействителен."}}, "externalDocs": {"description": "Официальная документация Telegram", "url": "https://core.telegram.org/method/aicompose.getToneExample"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeToneDefault"}, {"$ref": "#/components/schemas/inputAiComposeToneID"}, {"$ref": "#/components/schemas/inputAiComposeToneSlug"}, {"$ref": "#/components/schemas/inputAiComposeToneSingleUse"}], "description": "Тон для предварительного просмотра"}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Индекс примера, отсчитываемый от 0, для циклического перебора доступных примеров (на каждый тон приходится [aicompose_tone_examples_num »](https://core.telegram.org/api/config.md#aicompose-tone-examples-num) примеров)"}}, "additionalProperties": false, "required": ["tone", "num"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | Да | Тон для предварительного просмотра |\n| `num` | `int` | Да | Индекс примера, отсчитываемый от 0, для циклического перебора доступных примеров (на каждый тон приходится [aicompose_tone_examples_num »](https://core.telegram.org/api/config.md#aicompose-tone-examples-num) примеров) |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "3518278420"}}, "/catalog/aicompose.setChatStyle": {"post": {"operationId": "aicompose.setChatStyle", "tags": ["ИИ-редактор"], "summary": "aicompose.setChatStyle", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "aicompose.setChatStyle", "x-tl-id": "1570322880", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "style": {"type": "object", "x-tl-type": "InputAiComposeStyle", "oneOf": [{"$ref": "#/components/schemas/inputAiComposeStyle"}], "description": "Тип TL: InputAiComposeStyle.", "x-tl-flag": "flags.0?InputAiComposeStyle"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `style` | `InputAiComposeStyle` | Нет | Тип TL: InputAiComposeStyle. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1570322880"}}, "/catalog/communities.create": {"post": {"operationId": "communities.create", "tags": ["Сообщества"], "summary": "communities.create", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.create", "x-tl-id": "2788710892", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "title": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}}, "additionalProperties": false, "required": ["title", "peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hidden` | `true` | Нет | Значение типа TL `true`. |\n| `title` | `string` | Да | Значение типа TL `string`. |\n| `about` | `string` | Нет | Значение типа TL `string`. |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2788710892"}}, "/catalog/communities.togglePeerLink": {"post": {"operationId": "communities.togglePeerLink", "tags": ["Сообщества"], "summary": "communities.togglePeerLink", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.togglePeerLink", "x-tl-id": "1936576490", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "deleted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Значение типа TL `true`."}, "community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}}, "additionalProperties": false, "required": ["community", "peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `visible` | `true` | Нет | Значение типа TL `true`. |\n| `hidden` | `true` | Нет | Значение типа TL `true`. |\n| `deleted` | `true` | Нет | Значение типа TL `true`. |\n| `community` | `InputChannel` | Да | Тип TL: InputChannel. |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1936576490"}}, "/catalog/communities.getJoinedCommunities": {"post": {"operationId": "communities.getJoinedCommunities", "tags": ["Сообщества"], "summary": "communities.getJoinedCommunities", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.getJoinedCommunities", "x-tl-id": "2791565360", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.Chats`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.Chats", "oneOf": [{"$ref": "#/components/schemas/messages.chats"}, {"$ref": "#/components/schemas/messages.chatsSlice"}], "description": "Тип TL: messages.Chats."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2791565360"}}, "/catalog/communities.toggleCommunityCollapsedInDialogs": {"post": {"operationId": "communities.toggleCommunityCollapsedInDialogs", "tags": ["Сообщества"], "summary": "communities.toggleCommunityCollapsedInDialogs", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.toggleCommunityCollapsedInDialogs", "x-tl-id": "3613844458", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}}, "additionalProperties": false, "required": ["community"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `collapsed` | `true` | Нет | Значение типа TL `true`. |\n| `community` | `InputChannel` | Да | Тип TL: InputChannel. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3613844458"}}, "/catalog/communities.getPeerLinkRequests": {"post": {"operationId": "communities.getPeerLinkRequests", "tags": ["Сообщества"], "summary": "communities.getPeerLinkRequests", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.getPeerLinkRequests", "x-tl-id": "2474062660", "x-tl-result": "communities.PeerLinkRequests", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `communities.PeerLinkRequests`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "communities.PeerLinkRequests", "oneOf": [{"$ref": "#/components/schemas/communities.peerLinkRequests"}], "description": "Тип TL: communities.PeerLinkRequests."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["community", "offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `community` | `InputChannel` | Да | Тип TL: InputChannel. |\n| `offset` | `string` | Да | Значение типа TL `string`. |\n| `limit` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2474062660"}}, "/catalog/communities.togglePeerLinkRequestApproval": {"post": {"operationId": "communities.togglePeerLinkRequestApproval", "tags": ["Сообщества"], "summary": "communities.togglePeerLinkRequestApproval", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.togglePeerLinkRequestApproval", "x-tl-id": "2357336488", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"reject": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}}, "additionalProperties": false, "required": ["community", "peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `reject` | `true` | Нет | Значение типа TL `true`. |\n| `community` | `InputChannel` | Да | Тип TL: InputChannel. |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2357336488"}}, "/catalog/communities.toggleAllPeerLinkRequestApproval": {"post": {"operationId": "communities.toggleAllPeerLinkRequestApproval", "tags": ["Сообщества"], "summary": "communities.toggleAllPeerLinkRequestApproval", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.toggleAllPeerLinkRequestApproval", "x-tl-id": "3219381565", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"reject": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}}, "additionalProperties": false, "required": ["community"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `reject` | `true` | Нет | Значение типа TL `true`. |\n| `community` | `InputChannel` | Да | Тип TL: InputChannel. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3219381565"}}, "/catalog/communities.toggleParticipantBanned": {"post": {"operationId": "communities.toggleParticipantBanned", "tags": ["Сообщества"], "summary": "communities.toggleParticipantBanned", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.toggleParticipantBanned", "x-tl-id": "2573708559", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"unban": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}}, "additionalProperties": false, "required": ["community", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `unban` | `true` | Нет | Значение типа TL `true`. |\n| `community` | `InputChannel` | Да | Тип TL: InputChannel. |\n| `participant` | `InputPeer` | Да | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2573708559"}}, "/catalog/communities.getParticipantJoinedChats": {"post": {"operationId": "communities.getParticipantJoinedChats", "tags": ["Сообщества"], "summary": "communities.getParticipantJoinedChats", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "communities.getParticipantJoinedChats", "x-tl-id": "4169051051", "x-tl-result": "communities.ParticipantJoinedChats", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `communities.ParticipantJoinedChats`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "communities.ParticipantJoinedChats", "oneOf": [{"$ref": "#/components/schemas/communities.participantJoinedChats"}], "description": "Тип TL: communities.ParticipantJoinedChats."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Тип TL: InputChannel."}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}}, "additionalProperties": false, "required": ["community", "participant"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `community` | `InputChannel` | Да | Тип TL: InputChannel. |\n| `participant` | `InputPeer` | Да | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4169051051"}}, "/catalog/ephemeral.sendMessage": {"post": {"operationId": "ephemeral.sendMessage", "tags": ["Временные сообщения"], "summary": "ephemeral.sendMessage", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.sendMessage", "x-tl-id": "3129827125", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Значение типа TL `true`."}, "welcome": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Значение типа TL `true`."}, "anchor": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true", "description": "Значение типа TL `true`."}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true", "description": "Значение типа TL `true`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer.", "x-tl-flag": "flags.8?InputPeer"}, "receiver_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "message": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "Значение типа TL `Vector<MessageEntity>`."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Тип TL: InputMedia.", "x-tl-flag": "flags.2?InputMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.3?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.4?InputRichMessage"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Тип TL: InputReplyTo.", "x-tl-flag": "flags.5?InputReplyTo"}}, "additionalProperties": false, "required": ["receiver_id", "message", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `invert_media` | `true` | Нет | Значение типа TL `true`. |\n| `welcome` | `true` | Нет | Значение типа TL `true`. |\n| `anchor` | `true` | Нет | Значение типа TL `true`. |\n| `noforwards` | `true` | Нет | Значение типа TL `true`. |\n| `peer` | `InputPeer` | Нет | Тип TL: InputPeer. |\n| `receiver_id` | `InputUser` | Да | Тип TL: InputUser. |\n| `query_id` | `long` | Нет | 64-битное целое в десятичной записи. |\n| `message` | `string` | Да | Значение типа TL `string`. |\n| `entities` | `Vector<MessageEntity>` | Нет | Значение типа TL `Vector<MessageEntity>`. |\n| `media` | `InputMedia` | Нет | Тип TL: InputMedia. |\n| `reply_markup` | `ReplyMarkup` | Нет | Тип TL: ReplyMarkup. |\n| `rich_message` | `InputRichMessage` | Нет | Тип TL: InputRichMessage. |\n| `random_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `reply_to` | `InputReplyTo` | Нет | Тип TL: InputReplyTo. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3129827125"}}, "/catalog/ephemeral.deleteMessage": {"post": {"operationId": "ephemeral.deleteMessage", "tags": ["Временные сообщения"], "summary": "ephemeral.deleteMessage", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.deleteMessage", "x-tl-id": "2465654679", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer.", "x-tl-flag": "flags.0?InputPeer"}, "receiver_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["receiver_id", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Нет | Тип TL: InputPeer. |\n| `receiver_id` | `InputUser` | Да | Тип TL: InputUser. |\n| `id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2465654679"}}, "/catalog/ephemeral.reportMessage": {"post": {"operationId": "ephemeral.reportMessage", "tags": ["Временные сообщения"], "summary": "ephemeral.reportMessage", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.reportMessage", "x-tl-id": "2265248447", "x-tl-result": "ReportResult", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `ReportResult`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ReportResult", "oneOf": [{"$ref": "#/components/schemas/reportResultChooseOption"}, {"$ref": "#/components/schemas/reportResultAddComment"}, {"$ref": "#/components/schemas/reportResultReported"}], "description": "Тип TL: ReportResult."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}, "message": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["peer", "id", "option", "message"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `id` | `int` | Да | Значение типа TL `int`. |\n| `option` | `bytes` | Да | Значение типа TL `bytes`. |\n| `message` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2265248447"}}, "/catalog/ephemeral.getCallbackAnswer": {"post": {"operationId": "ephemeral.getCallbackAnswer", "tags": ["Временные сообщения"], "summary": "ephemeral.getCallbackAnswer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.getCallbackAnswer", "x-tl-id": "1067738312", "x-tl-result": "messages.BotCallbackAnswer", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.BotCallbackAnswer`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotCallbackAnswer", "oneOf": [{"$ref": "#/components/schemas/messages.botCallbackAnswer"}], "description": "Тип TL: messages.BotCallbackAnswer."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.1?bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `id` | `int` | Да | Значение типа TL `int`. |\n| `data` | `bytes` | Нет | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1067738312"}}, "/catalog/ephemeral.editMessage": {"post": {"operationId": "ephemeral.editMessage", "tags": ["Временные сообщения"], "summary": "ephemeral.editMessage", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.editMessage", "x-tl-id": "3483136603", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Значение типа TL `true`."}, "welcome": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Значение типа TL `true`."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer.", "x-tl-flag": "flags.7?InputPeer"}, "receiver_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "message": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "Тип TL: InputMedia.", "x-tl-flag": "flags.3?InputMedia"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "Значение типа TL `Vector<MessageEntity>`."}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.4?InputRichMessage"}}, "additionalProperties": false, "required": ["receiver_id", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `invert_media` | `true` | Нет | Значение типа TL `true`. |\n| `welcome` | `true` | Нет | Значение типа TL `true`. |\n| `peer` | `InputPeer` | Нет | Тип TL: InputPeer. |\n| `receiver_id` | `InputUser` | Да | Тип TL: InputUser. |\n| `id` | `int` | Да | Значение типа TL `int`. |\n| `message` | `string` | Нет | Значение типа TL `string`. |\n| `media` | `InputMedia` | Нет | Тип TL: InputMedia. |\n| `entities` | `Vector<MessageEntity>` | Нет | Значение типа TL `Vector<MessageEntity>`. |\n| `reply_markup` | `ReplyMarkup` | Нет | Тип TL: ReplyMarkup. |\n| `rich_message` | `InputRichMessage` | Нет | Тип TL: InputRichMessage. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3483136603"}}, "/catalog/ephemeral.deleteWelcomeMessage": {"post": {"operationId": "ephemeral.deleteWelcomeMessage", "tags": ["Временные сообщения"], "summary": "ephemeral.deleteWelcomeMessage", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.deleteWelcomeMessage", "x-tl-id": "3900877281", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3900877281"}}, "/catalog/ephemeral.deleteAllWelcomeMessages": {"post": {"operationId": "ephemeral.deleteAllWelcomeMessages", "tags": ["Временные сообщения"], "summary": "ephemeral.deleteAllWelcomeMessages", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.deleteAllWelcomeMessages", "x-tl-id": "1934595873", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1934595873"}}, "/catalog/ephemeral.getWelcomeMessages": {"post": {"operationId": "ephemeral.getWelcomeMessages", "tags": ["Временные сообщения"], "summary": "ephemeral.getWelcomeMessages", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "ephemeral.getWelcomeMessages", "x-tl-id": "3684352397", "x-tl-result": "ephemeral.WelcomeMessages", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `ephemeral.WelcomeMessages`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ephemeral.WelcomeMessages", "oneOf": [{"$ref": "#/components/schemas/ephemeral.welcomeMessagesNotModified"}, {"$ref": "#/components/schemas/ephemeral.welcomeMessages"}], "description": "Тип TL: ephemeral.WelcomeMessages."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `hash` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3684352397"}}, "/catalog/toncenter.performApiRequest": {"post": {"operationId": "toncenter.performApiRequest", "tags": ["TON Center"], "summary": "toncenter.performApiRequest", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "toncenter.performApiRequest", "x-tl-id": "2373705057", "x-tl-result": "toncenter.ApiResponse", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `toncenter.ApiResponse`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "toncenter.ApiResponse", "oneOf": [{"$ref": "#/components/schemas/toncenter.apiResponse"}], "description": "Тип TL: toncenter.ApiResponse."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"post": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "endpoint": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "query": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Значение типа TL `string`."}, "payload": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["endpoint"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `post` | `true` | Нет | Значение типа TL `true`. |\n| `endpoint` | `string` | Да | Значение типа TL `string`. |\n| `query` | `string` | Нет | Значение типа TL `string`. |\n| `payload` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2373705057"}}, "/catalog/toncenter.getStreamingUrl": {"post": {"operationId": "toncenter.getStreamingUrl", "tags": ["TON Center"], "summary": "toncenter.getStreamingUrl", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "toncenter.getStreamingUrl", "x-tl-id": "3450823623", "x-tl-result": "toncenter.StreamingUrl", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `toncenter.StreamingUrl`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "toncenter.StreamingUrl", "oneOf": [{"$ref": "#/components/schemas/toncenter.streamingUrl"}], "description": "Тип TL: toncenter.StreamingUrl."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3450823623"}}, "/catalog/wallet.getState": {"post": {"operationId": "wallet.getState", "tags": ["Кошелёк"], "summary": "wallet.getState", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getState", "x-tl-id": "2877535034", "x-tl-result": "WalletState", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `WalletState`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WalletState", "oneOf": [{"$ref": "#/components/schemas/walletStateEmpty"}, {"$ref": "#/components/schemas/walletState"}], "description": "Тип TL: WalletState."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2877535034"}}, "/catalog/wallet.getUserAddresses": {"post": {"operationId": "wallet.getUserAddresses", "tags": ["Кошелёк"], "summary": "wallet.getUserAddresses", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getUserAddresses", "x-tl-id": "1383456733", "x-tl-result": "wallet.UserAddresses", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.UserAddresses`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.UserAddresses", "oneOf": [{"$ref": "#/components/schemas/wallet.userAddresses"}], "description": "Тип TL: wallet.UserAddresses."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Значение типа TL `Vector<InputUser>`."}, "addresses": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Значение типа TL `Vector<string>`."}}, "additionalProperties": false, "required": ["id", "addresses"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `force` | `true` | Нет | Значение типа TL `true`. |\n| `id` | `Vector<InputUser>` | Да | Значение типа TL `Vector<InputUser>`. |\n| `addresses` | `Vector<string>` | Да | Значение типа TL `Vector<string>`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1383456733"}}, "/catalog/wallet.getTransactions": {"post": {"operationId": "wallet.getTransactions", "tags": ["Кошелёк"], "summary": "wallet.getTransactions", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getTransactions", "x-tl-id": "2827160195", "x-tl-result": "wallet.Transactions", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.Transactions`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.Transactions", "oneOf": [{"$ref": "#/components/schemas/wallet.transactions"}], "description": "Тип TL: wallet.Transactions."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"inbound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "outbound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `inbound` | `true` | Нет | Значение типа TL `true`. |\n| `outbound` | `true` | Нет | Значение типа TL `true`. |\n| `offset` | `string` | Да | Значение типа TL `string`. |\n| `limit` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2827160195"}}, "/catalog/wallet.getTransactionsByIDs": {"post": {"operationId": "wallet.getTransactionsByIDs", "tags": ["Кошелёк"], "summary": "wallet.getTransactionsByIDs", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getTransactionsByIDs", "x-tl-id": "2166155958", "x-tl-result": "wallet.Transactions", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.Transactions`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.Transactions", "oneOf": [{"$ref": "#/components/schemas/wallet.transactions"}], "description": "Тип TL: wallet.Transactions."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"id": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Значение типа TL `Vector<string>`."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `id` | `Vector<string>` | Да | Значение типа TL `Vector<string>`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2166155958"}}, "/catalog/wallet.getTransactionsByMsgHash": {"post": {"operationId": "wallet.getTransactionsByMsgHash", "tags": ["Кошелёк"], "summary": "wallet.getTransactionsByMsgHash", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getTransactionsByMsgHash", "x-tl-id": "2797304157", "x-tl-result": "wallet.Transactions", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.Transactions`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.Transactions", "oneOf": [{"$ref": "#/components/schemas/wallet.transactions"}], "description": "Тип TL: wallet.Transactions."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"msg_hash": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Значение типа TL `Vector<string>`."}}, "additionalProperties": false, "required": ["msg_hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `msg_hash` | `Vector<string>` | Да | Значение типа TL `Vector<string>`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2797304157"}}, "/catalog/wallet.exportSecretPhrase": {"post": {"operationId": "wallet.exportSecretPhrase", "tags": ["Кошелёк"], "summary": "wallet.exportSecretPhrase", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.exportSecretPhrase", "x-tl-id": "2423769516", "x-tl-result": "wallet.SecretPhraseParts", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.SecretPhraseParts`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.SecretPhraseParts", "oneOf": [{"$ref": "#/components/schemas/wallet.secretPhraseParts"}], "description": "Тип TL: wallet.SecretPhraseParts."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Тип TL: InputCheckPasswordSRP.", "x-tl-flag": "flags.0?InputCheckPasswordSRP"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | Нет | Тип TL: InputCheckPasswordSRP. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2423769516"}}, "/catalog/wallet.fetchEncryptedSecretPhrasePart": {"post": {"operationId": "wallet.fetchEncryptedSecretPhrasePart", "tags": ["Кошелёк"], "summary": "wallet.fetchEncryptedSecretPhrasePart", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.fetchEncryptedSecretPhrasePart", "x-tl-id": "4114163151", "x-tl-result": "wallet.EncryptedSecretPhrasePart", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.EncryptedSecretPhrasePart`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.EncryptedSecretPhrasePart", "oneOf": [{"$ref": "#/components/schemas/wallet.encryptedSecretPhrasePart"}], "description": "Тип TL: wallet.EncryptedSecretPhrasePart."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"token": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["token", "public_key"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `token` | `string` | Да | Значение типа TL `string`. |\n| `public_key` | `bytes` | Да | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4114163151"}}, "/catalog/wallet.replaceWallet": {"post": {"operationId": "wallet.replaceWallet", "tags": ["Кошелёк"], "summary": "wallet.replaceWallet", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.replaceWallet", "x-tl-id": "3636932332", "x-tl-result": "WalletState", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `WalletState`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WalletState", "oneOf": [{"$ref": "#/components/schemas/walletStateEmpty"}, {"$ref": "#/components/schemas/walletState"}], "description": "Тип TL: WalletState."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"wallet": {"type": "object", "x-tl-type": "InputWalletReplacement", "oneOf": [{"$ref": "#/components/schemas/inputWalletNew"}, {"$ref": "#/components/schemas/inputWalletImported"}], "description": "Тип TL: InputWalletReplacement."}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Тип TL: InputCheckPasswordSRP.", "x-tl-flag": "flags.0?InputCheckPasswordSRP"}}, "additionalProperties": false, "required": ["wallet"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `wallet` | `InputWalletReplacement` | Да | Тип TL: InputWalletReplacement. |\n| `password` | `InputCheckPasswordSRP` | Нет | Тип TL: InputCheckPasswordSRP. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3636932332"}}, "/catalog/wallet.disableBackup": {"post": {"operationId": "wallet.disableBackup", "tags": ["Кошелёк"], "summary": "wallet.disableBackup", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.disableBackup", "x-tl-id": "185331930", "x-tl-result": "WalletState", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `WalletState`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WalletState", "oneOf": [{"$ref": "#/components/schemas/walletStateEmpty"}, {"$ref": "#/components/schemas/walletState"}], "description": "Тип TL: WalletState."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "Тип TL: InputCheckPasswordSRP.", "x-tl-flag": "flags.0?InputCheckPasswordSRP"}, "new_public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.1?bytes", "description": "Значение типа TL `bytes`."}, "proof": {"type": "object", "x-tl-type": "WalletOwnershipProof", "oneOf": [{"$ref": "#/components/schemas/walletOwnershipProof"}], "description": "Тип TL: WalletOwnershipProof.", "x-tl-flag": "flags.2?WalletOwnershipProof"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | Нет | Тип TL: InputCheckPasswordSRP. |\n| `new_public_key` | `bytes` | Нет | Значение типа TL `bytes`. |\n| `proof` | `WalletOwnershipProof` | Нет | Тип TL: WalletOwnershipProof. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "185331930"}}, "/catalog/wallet.getBackupHolderDcs": {"post": {"operationId": "wallet.getBackupHolderDcs", "tags": ["Кошелёк"], "summary": "wallet.getBackupHolderDcs", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getBackupHolderDcs", "x-tl-id": "3514422420", "x-tl-result": "Vector<wallet.HolderDc>", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Vector<wallet.HolderDc>`.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "wallet.HolderDc", "oneOf": [{"$ref": "#/components/schemas/wallet.holderDc"}], "description": "Тип TL: wallet.HolderDc."}, "x-tl-type": "Vector<wallet.HolderDc>"}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3514422420"}}, "/catalog/wallet.enableBackup": {"post": {"operationId": "wallet.enableBackup", "tags": ["Кошелёк"], "summary": "wallet.enableBackup", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.enableBackup", "x-tl-id": "1157678373", "x-tl-result": "WalletState", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `WalletState`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WalletState", "oneOf": [{"$ref": "#/components/schemas/walletStateEmpty"}, {"$ref": "#/components/schemas/walletState"}], "description": "Тип TL: WalletState."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"parts": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "Значение типа TL `Vector<bytes>`."}, "new_public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.1?bytes", "description": "Значение типа TL `bytes`."}, "proof": {"type": "object", "x-tl-type": "WalletOwnershipProof", "oneOf": [{"$ref": "#/components/schemas/walletOwnershipProof"}], "description": "Тип TL: WalletOwnershipProof.", "x-tl-flag": "flags.2?WalletOwnershipProof"}}, "additionalProperties": false, "required": ["parts"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `parts` | `Vector<bytes>` | Да | Значение типа TL `Vector<bytes>`. |\n| `new_public_key` | `bytes` | Нет | Значение типа TL `bytes`. |\n| `proof` | `WalletOwnershipProof` | Нет | Тип TL: WalletOwnershipProof. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1157678373"}}, "/catalog/wallet.getProofChallenge": {"post": {"operationId": "wallet.getProofChallenge", "tags": ["Кошелёк"], "summary": "wallet.getProofChallenge", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getProofChallenge", "x-tl-id": "539354775", "x-tl-result": "wallet.ProofChallenge", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.ProofChallenge`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.ProofChallenge", "oneOf": [{"$ref": "#/components/schemas/wallet.proofChallenge"}], "description": "Тип TL: wallet.ProofChallenge."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "539354775"}}, "/catalog/wallet.sendTransfer": {"post": {"operationId": "wallet.sendTransfer", "tags": ["Кошелёк"], "summary": "wallet.sendTransfer", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.sendTransfer", "x-tl-id": "3655719394", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"data_normal": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}, "data_gasless": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes", "description": "Значение типа TL `bytes`."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Тип TL: InputUser."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["data_normal", "user_id", "random_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `data_normal` | `bytes` | Да | Значение типа TL `bytes`. |\n| `data_gasless` | `bytes` | Нет | Значение типа TL `bytes`. |\n| `user_id` | `InputUser` | Да | Тип TL: InputUser. |\n| `random_id` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3655719394"}}, "/catalog/wallet.getGaslessInfo": {"post": {"operationId": "wallet.getGaslessInfo", "tags": ["Кошелёк"], "summary": "wallet.getGaslessInfo", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getGaslessInfo", "x-tl-id": "1949167777", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1949167777"}}, "/catalog/wallet.getExistingWaltBalance": {"post": {"operationId": "wallet.getExistingWaltBalance", "tags": ["Кошелёк"], "summary": "wallet.getExistingWaltBalance", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getExistingWaltBalance", "x-tl-id": "1763656544", "x-tl-result": "wallet.ExistingBalance", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.ExistingBalance`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.ExistingBalance", "oneOf": [{"$ref": "#/components/schemas/wallet.existingBalance"}], "description": "Тип TL: wallet.ExistingBalance."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1763656544"}}, "/catalog/wallet.getNfts": {"post": {"operationId": "wallet.getNfts", "tags": ["Кошелёк"], "summary": "wallet.getNfts", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getNfts", "x-tl-id": "2350052260", "x-tl-result": "wallet.NftItems", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.NftItems`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.NftItems", "oneOf": [{"$ref": "#/components/schemas/wallet.nftItems"}], "description": "Тип TL: wallet.NftItems."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offset": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offset` | `string` | Да | Значение типа TL `string`. |\n| `limit` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2350052260"}}, "/catalog/wallet.tonConnectCreateSession": {"post": {"operationId": "wallet.tonConnectCreateSession", "tags": ["Кошелёк"], "summary": "wallet.tonConnectCreateSession", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectCreateSession", "x-tl-id": "3432190022", "x-tl-result": "TonConnectSession", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `TonConnectSession`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "TonConnectSession", "oneOf": [{"$ref": "#/components/schemas/tonConnectSession"}], "description": "Тип TL: TonConnectSession."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"dapp_client_id": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "manifest_url": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["dapp_client_id", "manifest_url"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dapp_client_id` | `string` | Да | Значение типа TL `string`. |\n| `manifest_url` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3432190022"}}, "/catalog/wallet.tonConnectRegisterKey": {"post": {"operationId": "wallet.tonConnectRegisterKey", "tags": ["Кошелёк"], "summary": "wallet.tonConnectRegisterKey", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectRegisterKey", "x-tl-id": "864800540", "x-tl-result": "wallet.TonConnectChallenge", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.TonConnectChallenge`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.TonConnectChallenge", "oneOf": [{"$ref": "#/components/schemas/wallet.tonConnectChallenge"}], "description": "Тип TL: wallet.TonConnectChallenge."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "client_id": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["session_id", "client_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `session_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `client_id` | `string` | Да | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "864800540"}}, "/catalog/wallet.tonConnectSubmitConnectResult": {"post": {"operationId": "wallet.tonConnectSubmitConnectResult", "tags": ["Кошелёк"], "summary": "wallet.tonConnectSubmitConnectResult", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectSubmitConnectResult", "x-tl-id": "3267364729", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"error": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "challenge_answer": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}, "trace_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["session_id", "challenge_answer", "body"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `error` | `true` | Нет | Значение типа TL `true`. |\n| `session_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `challenge_answer` | `bytes` | Да | Значение типа TL `bytes`. |\n| `body` | `bytes` | Да | Значение типа TL `bytes`. |\n| `trace_id` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3267364729"}}, "/catalog/wallet.tonConnectGetPending": {"post": {"operationId": "wallet.tonConnectGetPending", "tags": ["Кошелёк"], "summary": "wallet.tonConnectGetPending", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectGetPending", "x-tl-id": "296673381", "x-tl-result": "wallet.TonConnectPending", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.TonConnectPending`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.TonConnectPending", "oneOf": [{"$ref": "#/components/schemas/wallet.tonConnectPending"}], "description": "Тип TL: wallet.TonConnectPending."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"dapp_client_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `dapp_client_id` | `string` | Нет | Значение типа TL `string`. |\n| `session_id` | `long` | Нет | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "296673381"}}, "/catalog/wallet.tonConnectClaimRequest": {"post": {"operationId": "wallet.tonConnectClaimRequest", "tags": ["Кошелёк"], "summary": "wallet.tonConnectClaimRequest", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectClaimRequest", "x-tl-id": "1723169601", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"declined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "app_request_id": {"type": "string", "x-tl-type": "string", "description": "Значение типа TL `string`."}, "challenge_answer": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["session_id", "msg_id", "app_request_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `declined` | `true` | Нет | Значение типа TL `true`. |\n| `session_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `msg_id` | `int` | Да | Значение типа TL `int`. |\n| `app_request_id` | `string` | Да | Значение типа TL `string`. |\n| `challenge_answer` | `bytes` | Нет | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1723169601"}}, "/catalog/wallet.tonConnectSubmitResponse": {"post": {"operationId": "wallet.tonConnectSubmitResponse", "tags": ["Кошелёк"], "summary": "wallet.tonConnectSubmitResponse", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectSubmitResponse", "x-tl-id": "4207312188", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Значение типа TL `bytes`."}, "trace_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["session_id", "msg_id", "body"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `session_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `msg_id` | `int` | Да | Значение типа TL `int`. |\n| `body` | `bytes` | Да | Значение типа TL `bytes`. |\n| `trace_id` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4207312188"}}, "/catalog/wallet.tonConnectNextEventId": {"post": {"operationId": "wallet.tonConnectNextEventId", "tags": ["Кошелёк"], "summary": "wallet.tonConnectNextEventId", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectNextEventId", "x-tl-id": "2002612804", "x-tl-result": "TonConnectNextEventId", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `TonConnectNextEventId`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "TonConnectNextEventId", "oneOf": [{"$ref": "#/components/schemas/tonConnectNextEventId"}], "description": "Тип TL: TonConnectNextEventId."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["session_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `session_id` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2002612804"}}, "/catalog/wallet.tonConnectCloseSession": {"post": {"operationId": "wallet.tonConnectCloseSession", "tags": ["Кошелёк"], "summary": "wallet.tonConnectCloseSession", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectCloseSession", "x-tl-id": "3594478030", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes", "description": "Значение типа TL `bytes`."}}, "additionalProperties": false, "required": ["session_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `session_id` | `long` | Да | 64-битное целое в десятичной записи. |\n| `body` | `bytes` | Нет | Значение типа TL `bytes`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3594478030"}}, "/catalog/wallet.tonConnectGetSessions": {"post": {"operationId": "wallet.tonConnectGetSessions", "tags": ["Кошелёк"], "summary": "wallet.tonConnectGetSessions", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.tonConnectGetSessions", "x-tl-id": "2818553198", "x-tl-result": "wallet.TonConnectSessions", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.TonConnectSessions`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.TonConnectSessions", "oneOf": [{"$ref": "#/components/schemas/wallet.tonConnectSessions"}], "description": "Тип TL: wallet.TonConnectSessions."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2818553198"}}, "/catalog/wallet.setCardStickers": {"post": {"operationId": "wallet.setCardStickers", "tags": ["Кошелёк"], "summary": "wallet.setCardStickers", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.setCardStickers", "x-tl-id": "109382060", "x-tl-result": "wallet.Card", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.Card`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.Card", "oneOf": [{"$ref": "#/components/schemas/wallet.card"}], "description": "Тип TL: wallet.Card."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputWalletCardSticker", "oneOf": [{"$ref": "#/components/schemas/inputWalletCardSticker"}], "description": "Тип TL: InputWalletCardSticker."}, "x-tl-type": "Vector<InputWalletCardSticker>", "description": "Значение типа TL `Vector<InputWalletCardSticker>`."}, "bg_nft_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}}, "additionalProperties": false, "required": ["stickers"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stickers` | `Vector<InputWalletCardSticker>` | Да | Значение типа TL `Vector<InputWalletCardSticker>`. |\n| `bg_nft_address` | `string` | Нет | Значение типа TL `string`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "109382060"}}, "/catalog/wallet.getStakingInfo": {"post": {"operationId": "wallet.getStakingInfo", "tags": ["Кошелёк"], "summary": "wallet.getStakingInfo", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.getStakingInfo", "x-tl-id": "2807927035", "x-tl-result": "wallet.StakingInfo", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.StakingInfo`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.StakingInfo", "oneOf": [{"$ref": "#/components/schemas/walletStakingInfo"}], "description": "Тип TL: wallet.StakingInfo."}}}}}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2807927035"}}, "/catalog/wallet.stake": {"post": {"operationId": "wallet.stake", "tags": ["Кошелёк"], "summary": "wallet.stake", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.stake", "x-tl-id": "840788815", "x-tl-result": "wallet.StakingPrepared", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.StakingPrepared`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.StakingPrepared", "oneOf": [{"$ref": "#/components/schemas/walletStakingPrepared"}], "description": "Тип TL: wallet.StakingPrepared."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"stake_all": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["amount"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `stake_all` | `true` | Нет | Значение типа TL `true`. |\n| `amount` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "840788815"}}, "/catalog/wallet.unstake": {"post": {"operationId": "wallet.unstake", "tags": ["Кошелёк"], "summary": "wallet.unstake", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "wallet.unstake", "x-tl-id": "4100932396", "x-tl-result": "wallet.StakingPrepared", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `wallet.StakingPrepared`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "wallet.StakingPrepared", "oneOf": [{"$ref": "#/components/schemas/walletStakingPrepared"}], "description": "Тип TL: wallet.StakingPrepared."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"withdraw_all": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["amount"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `withdraw_all` | `true` | Нет | Значение типа TL `true`. |\n| `amount` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "4100932396"}}, "/catalog/feed.getFeed": {"post": {"operationId": "feed.getFeed", "tags": ["Лента"], "summary": "feed.getFeed", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.getFeed", "x-tl-id": "2121717715", "x-tl-result": "feed.FeedMessages", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `feed.FeedMessages`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "feed.FeedMessages", "oneOf": [{"$ref": "#/components/schemas/feed.feedMessagesNotModified"}, {"$ref": "#/components/schemas/feed.feedMessages"}], "description": "Тип TL: feed.FeedMessages."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offset_to_max_read": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Значение типа TL `true`."}, "filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "offset_position": {"type": "object", "x-tl-type": "FeedPosition", "oneOf": [{"$ref": "#/components/schemas/feedPosition"}], "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.0?FeedPosition"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "max_position": {"type": "object", "x-tl-type": "FeedPosition", "oneOf": [{"$ref": "#/components/schemas/feedPosition"}], "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.1?FeedPosition"}, "min_position": {"type": "object", "x-tl-type": "FeedPosition", "oneOf": [{"$ref": "#/components/schemas/feedPosition"}], "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.2?FeedPosition"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["filter_id", "add_offset", "limit", "hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `offset_to_max_read` | `true` | Нет | Значение типа TL `true`. |\n| `filter_id` | `int` | Да | Значение типа TL `int`. |\n| `offset_position` | `FeedPosition` | Нет | Тип TL: FeedPosition. |\n| `add_offset` | `int` | Да | Значение типа TL `int`. |\n| `limit` | `int` | Да | Значение типа TL `int`. |\n| `max_position` | `FeedPosition` | Нет | Тип TL: FeedPosition. |\n| `min_position` | `FeedPosition` | Нет | Тип TL: FeedPosition. |\n| `hash` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2121717715"}}, "/catalog/feed.readFeed": {"post": {"operationId": "feed.readFeed", "tags": ["Лента"], "summary": "feed.readFeed", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.readFeed", "x-tl-id": "3023487487", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Updates`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "Тип TL: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}, "max_position": {"type": "object", "x-tl-type": "FeedPosition", "oneOf": [{"$ref": "#/components/schemas/feedPosition"}], "description": "Тип TL: FeedPosition."}}, "additionalProperties": false, "required": ["filter_id", "max_position"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `filter_id` | `int` | Да | Значение типа TL `int`. |\n| `max_position` | `FeedPosition` | Да | Тип TL: FeedPosition. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3023487487"}}, "/catalog/feed.getForYou": {"post": {"operationId": "feed.getForYou", "tags": ["Лента"], "summary": "feed.getForYou", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.getForYou", "x-tl-id": "867755499", "x-tl-result": "feed.ForYouFeed", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `feed.ForYouFeed`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "feed.ForYouFeed", "oneOf": [{"$ref": "#/components/schemas/feed.forYouFeed"}], "description": "Тип TL: feed.ForYouFeed."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"refresh": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Значение типа TL `true`."}, "query": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Значение типа TL `string`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["limit"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `refresh` | `true` | Нет | Значение типа TL `true`. |\n| `query` | `string` | Нет | Значение типа TL `string`. |\n| `limit` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "867755499"}}, "/catalog/feed.getInterestCategories": {"post": {"operationId": "feed.getInterestCategories", "tags": ["Лента"], "summary": "feed.getInterestCategories", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.getInterestCategories", "x-tl-id": "3128565178", "x-tl-result": "feed.InterestCategories", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `feed.InterestCategories`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "feed.InterestCategories", "oneOf": [{"$ref": "#/components/schemas/feed.interestCategoriesNotModified"}, {"$ref": "#/components/schemas/feed.interestCategories"}], "description": "Тип TL: feed.InterestCategories."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `hash` | `long` | Да | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "3128565178"}}, "/catalog/feed.setInterestCategories": {"post": {"operationId": "feed.setInterestCategories", "tags": ["Лента"], "summary": "feed.setInterestCategories", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.setInterestCategories", "x-tl-id": "2670287068", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"category_ids": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Значение типа TL `Vector<int>`."}}, "additionalProperties": false, "required": ["category_ids"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `category_ids` | `Vector<int>` | Да | Значение типа TL `Vector<int>`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2670287068"}}, "/catalog/feed.likePost": {"post": {"operationId": "feed.likePost", "tags": ["Лента"], "summary": "feed.likePost", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.likePost", "x-tl-id": "457925246", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `msg_id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "457925246"}}, "/catalog/feed.dislikePost": {"post": {"operationId": "feed.dislikePost", "tags": ["Лента"], "summary": "feed.dislikePost", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.dislikePost", "x-tl-id": "1299191644", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `Bool`.", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Тип TL: InputPeer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение типа TL `int`."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | Да | Тип TL: InputPeer. |\n| `msg_id` | `int` | Да | Значение типа TL `int`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "1299191644"}}, "/catalog/feed.getSponsoredMessages": {"post": {"operationId": "feed.getSponsoredMessages", "tags": ["Лента"], "summary": "feed.getSponsoredMessages", "description": "Метод клиентского API Telegram. Карточка описывает аргументы и ответ TL.\n\nДля этого метода не найдена отдельная страница в документации Telegram.", "x-tl-method": "feed.getSponsoredMessages", "x-tl-id": "2276398804", "x-tl-result": "messages.SponsoredMessages", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "Результат MTProto · `messages.SponsoredMessages`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.SponsoredMessages", "oneOf": [{"$ref": "#/components/schemas/messages.sponsoredMessages"}, {"$ref": "#/components/schemas/messages.sponsoredMessagesEmpty"}], "description": "Тип TL: messages.SponsoredMessages."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_you": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "Значение типа TL `true`."}}, "additionalProperties": false}}}, "description": "| Имя | Тип | Обязательное | Описание |\n| --- | --- | --- | --- |\n| `for_you` | `true` | Нет | Значение типа TL `true`. |"}, "x-telegram-docs-note": "Для этого метода не найдена отдельная страница в документации Telegram.", "x-browser-schema-id": "2276398804"}}}, "components": {"schemas": {"boolFalse": {"title": "boolFalse", "type": "object", "properties": {"_": {"type": "string", "enum": ["boolFalse"]}}, "required": ["_"], "additionalProperties": false}, "boolTrue": {"title": "boolTrue", "type": "object", "properties": {"_": {"type": "string", "enum": ["boolTrue"]}}, "required": ["_"], "additionalProperties": false}, "true": {"title": "true", "type": "object", "properties": {"_": {"type": "string", "enum": ["true"]}}, "required": ["_"], "additionalProperties": false}, "vector": {"title": "vector", "type": "object", "properties": {"_": {"type": "string", "enum": ["vector"]}}, "required": ["_"], "additionalProperties": false}, "error": {"title": "error", "type": "object", "properties": {"_": {"type": "string", "enum": ["error"]}, "code": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "code", "text"], "additionalProperties": false}, "null": {"title": "null", "type": "object", "properties": {"_": {"type": "string", "enum": ["null"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerEmpty": {"title": "inputPeerEmpty", "description": "Пустой конструктор, ни пользователь, ни чат не определены.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerSelf": {"title": "inputPeerSelf", "description": "Определяет текущего пользователя.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerSelf"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerSelf"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerChat": {"title": "inputPeerChat", "description": "Определяет чат для дальнейшего взаимодействия.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор чата", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "chat_id"], "additionalProperties": false}, "inputPeerUser": {"title": "inputPeerUser", "description": "Определяет пользователя для дальнейшего взаимодействия.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** значение из конструктора [user](https://core.telegram.org/constructor/user.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "access_hash"], "additionalProperties": false}, "inputPeerChannel": {"title": "inputPeerChannel", "description": "Определяет канал дальнейшего взаимодействия.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор канала", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** значение из конструктора [channel](https://core.telegram.org/constructor/channel.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id", "access_hash"], "additionalProperties": false}, "inputPeerUserFromMessage": {"title": "inputPeerUserFromMessage", "description": "Определяет пользователя [min](https://core.telegram.org/api/min.md), который был замечен в определенном сообщении определенного чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerUserFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerUserFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Чат, в котором был замечен пользователь", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя, которого видели", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "user_id"], "additionalProperties": false}, "inputPeerChannelFromMessage": {"title": "inputPeerChannelFromMessage", "description": "Определяет канал [min](https://core.telegram.org/api/min.md), который был замечен в определенном сообщении определенного чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerChannelFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerChannelFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Чат, в котором было просмотрено сообщение канала", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор канала, который был просмотрен", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "channel_id"], "additionalProperties": false}, "inputUserEmpty": {"title": "inputUserEmpty", "description": "Пустой конструктор, не определяет пользователя.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputUserSelf": {"title": "inputUserSelf", "description": "Определяет текущего пользователя.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserSelf"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserSelf"]}}, "required": ["_"], "additionalProperties": false}, "inputUser": {"title": "inputUser", "description": "Определяет пользователя для дальнейшего взаимодействия.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** значение из конструктора [user](https://core.telegram.org/constructor/user.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "access_hash"], "additionalProperties": false}, "inputUserFromMessage": {"title": "inputUserFromMessage", "description": "Определяет пользователя [min](https://core.telegram.org/api/min.md), который был замечен в определенном сообщении определенного чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Чат, в котором был замечен пользователь", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя, которого видели", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "user_id"], "additionalProperties": false}, "inputPhoneContact": {"title": "inputPhoneContact", "description": "Контактный телефон.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoneContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoneContact"]}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Произвольное 64-битное целое число: его следует установить, например, в возрастающее число при использовании [contacts.importContacts](https://core.telegram.org/method/contacts.importContacts.md), чтобы повторить попытку импорта только тех контактов, которые не были успешно импортированы, в соответствии с client_ids, возвращенным в [contacts.importedContacts](https://core.telegram.org/constructor/contacts.importedContacts.md).`retry_contacts`.", "x-tl-type": "long", "x-telegram-field-docs": true}, "phone": {"type": "string", "x-tl-type": "string", "description": "Номер телефона", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Имя контакта", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Фамилия контакта", "x-telegram-field-docs": true}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Личная заметка для этого контакта, видимая только нам; см. [здесь »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) дополнительную информацию о контактных заметках.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "client_id", "phone", "first_name", "last_name"], "additionalProperties": false}, "inputFile": {"title": "inputFile", "description": "Определяет файл, сохраненный по частям, используя метод [upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор файла, созданный клиентом", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество сохраненных деталей", "x-telegram-field-docs": true}, "name": {"type": "string", "x-tl-type": "string", "description": "Полное имя файла", "x-telegram-field-docs": true}, "md5_checksum": {"type": "string", "x-tl-type": "string", "description": "Если был передан файл [md5-hash](https://en.wikipedia.org/wiki/MD5#MD5_hashes), содержимое файла будет проверено перед использованием.", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "name", "md5_checksum"], "additionalProperties": false}, "inputFileBig": {"title": "inputFileBig", "description": "Назначает большой файл (размером более 10 МБ), частично сохраненный методом [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileBig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileBig"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор файла, созданный клиентом", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество сохраненных деталей", "x-telegram-field-docs": true}, "name": {"type": "string", "x-tl-type": "string", "description": "Полное имя файла", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "name"], "additionalProperties": false}, "inputFileStoryDocument": {"title": "inputFileStoryDocument", "description": "Используется для [редактирования миниатюры/статического предварительного просмотра истории, см. здесь »](https://core.telegram.org/api/stories.md#editing-stories) для получения дополнительной информации о полном потоке.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileStoryDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileStoryDocument"]}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Старое видео-история.", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaEmpty": {"title": "inputMediaEmpty", "description": "Пустой медиаконтент сообщения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputMediaUploadedPhoto": {"title": "inputMediaUploadedPhoto", "description": "Фото", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaUploadedPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaUploadedPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "live_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будь то живое фото, i.e. неподвижное фото в сочетании с коротким клипом `video`, снятым рядом с ним", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "[Загруженный файл](https://core.telegram.org/api/files.md)", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Тип TL: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "description": "Прикрепленные наклейки на маску", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<InputDocument>"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающейся фотографии: `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения фотографии сразу после ее воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "video": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Короткий видеоклип живого фото", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputDocument"}}, "required": ["_", "file"], "additionalProperties": false}, "inputMediaPhoto": {"title": "inputMediaPhoto", "description": "Пересланное фото", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "live_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будь то живое фото, i.e. неподвижное фото в сочетании с коротким клипом `video`, снятым рядом с ним", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Фото для пересылки", "x-telegram-field-docs": true}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающейся фотографии: `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения документа сразу после его воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "video": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Короткий видеоклип живого фото", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputDocument"}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaGeoPoint": {"title": "inputMediaGeoPoint", "description": "Карта.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGeoPoint"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "ГеоПойнт", "x-telegram-field-docs": true}}, "required": ["_", "geo_point"], "additionalProperties": false}, "inputMediaContact": {"title": "inputMediaContact", "description": "Контакты телефонной книги", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Имя контакта", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Фамилия контакта", "x-telegram-field-docs": true}, "vcard": {"type": "string", "x-tl-type": "string", "description": "Контактная визитная карточка", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard"], "additionalProperties": false}, "inputMediaUploadedDocument": {"title": "inputMediaUploadedDocument", "description": "Новый документ", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaUploadedDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaUploadedDocument"]}, "nosound_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отправлять ли файл как видео, даже если он не имеет звуковой дорожки (i.e. Если он установлен, атрибут [documentAttributeAnimated](https://core.telegram.org/constructor/documentAttributeAnimated.md) не будет установлен даже для видео без звука)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "force_file": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Принудительно загрузить медиафайл как документ", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "[Загруженный файл](https://core.telegram.org/api/files.md)", "x-telegram-field-docs": true}, "thumb": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "Миниатюра документа, загруженная как файл", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputFile"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME тип документа", "x-telegram-field-docs": true}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>", "description": "Атрибуты, определяющие тип документа (видео, аудио, голос, наклейка и т. д.).", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Тип TL: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "description": "Прикрепленные наклейки", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<InputDocument>"}, "video_cover": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Начать воспроизведение видео в указанную отметку времени (в секундах).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?InputPhoto"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Начать воспроизведение видео в указанную отметку времени (в секундах).", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?int"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающегося документа может быть `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения документа сразу после его воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "file", "mime_type", "attributes"], "additionalProperties": false}, "inputMediaDocument": {"title": "inputMediaDocument", "description": "Пересланный документ", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaDocument"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Документ, который необходимо передать.", "x-telegram-field-docs": true}, "video_cover": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Индивидуальная обложка для видео.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputPhoto"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Начать воспроизведение видео в указанную отметку времени (в секундах).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающегося документа может быть `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения документа сразу после его воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "query": {"type": "string", "x-tl-type": "string", "description": "Текстовый запрос или смайлик, который использовался пользователем, чтобы найти эту наклейку, или GIF: используется для повышения релевантности результатов поиска.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaVenue": {"title": "inputMediaVenue", "description": "Может использоваться для отправки геолокации места проведения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaVenue"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Геолокация", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название места проведения", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "Физический адрес места проведения", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "Поставщик места проведения: в настоящее время необходимо поддерживать только «foursquare» и «gplaces» (Google Places).", "x-telegram-field-docs": true}, "venue_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор заведения в базе данных провайдера", "x-telegram-field-docs": true}, "venue_type": {"type": "string", "x-tl-type": "string", "description": "Тип площадки в базе данных провайдера", "x-telegram-field-docs": true}}, "required": ["_", "geo_point", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "inputMediaPhotoExternal": {"title": "inputMediaPhotoExternal", "description": "Новая фотография, которая будет загружена сервером с помощью указанного URL.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPhotoExternal"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPhotoExternal"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL фотографии", "x-telegram-field-docs": true}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающейся фотографии: `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения фотографии сразу после ее воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "url"], "additionalProperties": false}, "inputMediaDocumentExternal": {"title": "inputMediaDocumentExternal", "description": "Документ, который будет загружен серверами Telegram", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaDocumentExternal"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaDocumentExternal"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL документа", "x-telegram-field-docs": true}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающегося документа может быть `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения документа сразу после его воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "video_cover": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Индивидуальная обложка для видео.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputPhoto"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Начать воспроизведение видео в указанную отметку времени (в секундах).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}}, "required": ["_", "url"], "additionalProperties": false}, "inputMediaGame": {"title": "inputMediaGame", "description": "Игра", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGame"]}, "id": {"type": "object", "x-tl-type": "InputGame", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGameID", "inputGameShortName"]}}, "description": "Игра для пересылки", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaInvoice": {"title": "inputMediaInvoice", "description": "Сгенерирован счет за [платеж бота](https://core.telegram.org/bots/payments.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaInvoice"]}, "title": {"type": "string", "x-tl-type": "string", "description": "Название продукта, 1–32 символа.", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание товара, 1–255 символов.", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "URL фотографии товара для счета-фактуры. Это может быть фотография товара или маркетинговый имидж услуги. Людям больше нравится, когда они видят, за что платят.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputWebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Фактический счет-фактура", "x-telegram-field-docs": true}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Полезные данные счета, определенные ботом, 1–128 байт. Это не будет отображаться пользователю, используйте для своих внутренних процессов.", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "Токен платежного провайдера, полученный через [Botfather](https://t.me/botfather)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "provider_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Данные о счете в кодировке JSON, которые будут переданы поставщику платежей. Подробное описание обязательных полей должно быть предоставлено поставщиком платежных услуг.", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "Уникальный [начальный параметр глубоких ссылок бота](https://core.telegram.org/api/links.md#bot-links). Если таковая имеется, пересылаемые копии отправленного сообщения будут иметь кнопку URL с [глубинной ссылкой](https://core.telegram.org/api/links.md#bot-links) на бота (вместо кнопки «Оплатить») со значением, используемым в качестве стартового параметра. Если она отсутствует, пересылаемые копии отправленного сообщения будут иметь кнопку «Оплатить», позволяющую нескольким пользователям платить непосредственно из пересылаемого сообщения, используя один и тот же счет.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "extended_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "Устарело", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputMedia"}}, "required": ["_", "title", "description", "invoice", "payload", "provider_data"], "additionalProperties": false}, "inputMediaGeoLive": {"title": "inputMediaGeoLive", "description": "[Живая геолокация](https://core.telegram.org/api/live-location.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGeoLive"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGeoLive"]}, "stopped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Была ли остановлена отправка геолокации", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Текущая геолокация", "x-telegram-field-docs": true}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для [текущих локаций](https://core.telegram.org/api/live-location.md) — направление перемещения локации в градусах; 1-360.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок действия текущего местоположения", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для [местоположений](https://core.telegram.org/api/live-location.md) — максимальное расстояние до другого участника чата для оповещений о близости, в метрах (0–100 000).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}}, "required": ["_", "geo_point"], "additionalProperties": false}, "inputMediaPoll": {"title": "inputMediaPoll", "description": "Опрос", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPoll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPoll"]}, "poll": {"type": "object", "x-tl-type": "Poll", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["poll"]}}, "description": "Опрос для отправки", "x-telegram-field-docs": true}, "correct_answers": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Индексы правильных ответов, отсчитываемые от 0, в векторе `answers` (для викторин)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<int>"}, "attached_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "Дополнительное медиа-приложение для отображения рядом с опросом", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputMedia"}, "solution": {"type": "string", "x-tl-type": "string", "description": "Текст, который отображается, когда пользователь выбирает неправильный ответ или нажимает на значок лампочки в опросе в стиле викторины, 0–200 символов с не более чем двумя переводами строк.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "solution_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Стилизованные текстовые сообщения](https://core.telegram.org/api/entities.md) для объяснения `solution`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "solution_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "Дополнительный мультимедийный вложенный файл, показанный рядом с объяснением решения теста.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputMedia"}}, "required": ["_", "poll"], "additionalProperties": false}, "inputMediaDice": {"title": "inputMediaDice", "description": "Отправьте [анимированный стикер на основе кубиков](https://core.telegram.org/api/dice.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaDice"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "На данный момент поддерживаются смайлы 🏀, 🎲 и 🎯.", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputMediaStory": {"title": "inputMediaStory", "description": "Пересланная история", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaStory"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Посмотрите, где была опубликована история", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории", "x-telegram-field-docs": true}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "inputMediaWebPage": {"title": "inputMediaWebPage", "description": "Указывает параметры, которые будут использоваться для создания предварительного просмотра ссылки для заголовка или даже отдельного предварительного просмотра ссылки без прикрепленного сообщения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaWebPage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWebPage"]}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, указывает, что следует использовать большой предварительный просмотр мультимедиа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, указывает, что следует использовать небольшой предварительный просмотр мультимедиа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "optional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если **не** установлено, будет выдана ошибка `WEBPAGE_NOT_FOUND` RPC, если предварительный просмотр веб-страницы не может быть создан для указанного `url`; в противном случае ошибка не будет выдана (если только предоставленное сообщение также не является пустым, в этом случае вместо этого будет выдано `MESSAGE_EMPTY`).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL для предварительного просмотра ссылки.", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "inputMediaPaidMedia": {"title": "inputMediaPaidMedia", "description": "[Платные СМИ, дополнительную информацию см. здесь »](https://core.telegram.org/api/paid-media.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPaidMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPaidMedia"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Цена носителя в [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "Тип TL: InputMedia."}, "x-tl-type": "Vector<InputMedia>", "description": "Фотографии или видео.", "x-telegram-field-docs": true}, "payload": {"type": "string", "x-tl-type": "string", "description": "Только для ботов, указывает пользовательскую полезную нагрузку, которая затем будет передана в [updateBotPurchasedPaidMedia](https://core.telegram.org/constructor/updateBotPurchasedPaidMedia.md) при совершении платежа (это поле не будет видно пользователю).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "stars_amount", "extended_media"], "additionalProperties": false}, "inputMediaTodo": {"title": "inputMediaTodo", "description": "Создает [список дел»](https://core.telegram.org/api/todo.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaTodo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaTodo"]}, "todo": {"type": "object", "x-tl-type": "TodoList", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoList"]}}, "description": "Список дел.", "x-telegram-field-docs": true}}, "required": ["_", "todo"], "additionalProperties": false}, "inputMediaStakeDice": {"title": "inputMediaStakeDice", "description": "Средства массовой информации для игры в кости.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaStakeDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaStakeDice"]}, "game_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш игры.", "x-telegram-field-docs": true}, "ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Сумма.", "x-tl-type": "long", "x-telegram-field-docs": true}, "client_seed": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Семя клиента.", "x-telegram-field-docs": true}}, "required": ["_", "game_hash", "ton_amount", "client_seed"], "additionalProperties": false}, "inputMediaWidget": {"title": "inputMediaWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWidget"]}, "allow_queries": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shared_widget": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "html": {"type": "string", "x-tl-type": "string"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}}, "required": ["_", "width", "height", "html"], "additionalProperties": false}, "inputMediaWidgetId": {"title": "inputMediaWidgetId", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWidgetId"]}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "widget_id"], "additionalProperties": false}, "inputChatPhotoEmpty": {"title": "inputChatPhotoEmpty", "description": "Очистить конструктор, удалить групповое фото.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatUploadedPhoto": {"title": "inputChatUploadedPhoto", "description": "Новое фото, которое будет установлено в качестве фото профиля группы.\n\nФлаги `file`, `video` и `video_emoji_markup` являются взаимоисключающими.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatUploadedPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatUploadedPhoto"]}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "Файл сохранен по частям методом [upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputFile"}, "video": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "Квадратное видео для анимированного изображения профиля", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputFile"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Временная метка с плавающей запятой UNIX в секундах, обозначающая кадр видео/стикера, который следует использовать в качестве статического предварительного просмотра; можно использовать только в том случае, если установлено `video` или `video_emoji_markup`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?double"}, "video_emoji_markup": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "Анимированное изображение профиля стикера должно содержать конструктор [videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md) или [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)].", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?VideoSize"}}, "required": ["_"], "additionalProperties": false}, "inputChatPhoto": {"title": "inputChatPhoto", "description": "Существующая фотография будет установлена в качестве фотографии профиля чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatPhoto"]}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Существующая фотография", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputGeoPointEmpty": {"title": "inputGeoPointEmpty", "description": "Пустой конструктор GeoPoint.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGeoPointEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputGeoPoint": {"title": "inputGeoPoint", "description": "Определяет GeoPoint по ее координатам.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGeoPoint"]}, "lat": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Широта", "x-telegram-field-docs": true}, "long": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Долгота", "x-telegram-field-docs": true}, "accuracy_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Предполагаемая горизонтальная точность местоположения, в метрах; как определено отправителем.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "lat", "long"], "additionalProperties": false}, "inputPhotoEmpty": {"title": "inputPhotoEmpty", "description": "Пустой конструктор.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputPhoto": {"title": "inputPhoto", "description": "Определяет фотографию для дальнейшего взаимодействия.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoto"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор фотографии", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** значение из конструктора [photo](https://core.telegram.org/constructor/photo.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Ссылка на файл](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference"], "additionalProperties": false}, "inputFileLocation": {"title": "inputFileLocation", "description": "DEPRECATED расположение фотографии", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileLocation"]}, "volume_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Том сервера", "x-tl-type": "long", "x-telegram-field-docs": true}, "local_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор файла", "x-telegram-field-docs": true}, "secret": {"type": "string", "pattern": "^-?\\d+$", "description": "Контрольная сумма для доступа к файлу", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Ссылка на файл](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}}, "required": ["_", "volume_id", "local_id", "secret", "file_reference"], "additionalProperties": false}, "inputEncryptedFileLocation": {"title": "inputEncryptedFileLocation", "description": "Местоположение зашифрованного файла секретного чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор файла, значение параметра **id** из [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Контрольная сумма, значение параметра **access_hash** из [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputDocumentFileLocation": {"title": "inputDocumentFileLocation", "description": "Местоположение документа (видео, голос, аудио, практически все типы, кроме фото)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocumentFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocumentFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор документа", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** параметр из конструктора [document](https://core.telegram.org/constructor/document.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Ссылка на файл](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}, "thumb_size": {"type": "string", "x-tl-type": "string", "description": "Размер миниатюры для загрузки миниатюры", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "thumb_size"], "additionalProperties": false}, "inputSecureFileLocation": {"title": "inputSecureFileLocation", "description": "Местоположение зашифрованной телеграммы [файл паспорта](https://core.telegram.org/passport.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSecureFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор файла, значение параметра **id** из [secureFile](https://core.telegram.org/constructor/secureFile.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Контрольная сумма, значение параметра **access_hash** из [secureFile](https://core.telegram.org/constructor/secureFile.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputTakeoutFileLocation": {"title": "inputTakeoutFileLocation", "description": "Используется для загрузки файла JSON, который будет содержать все персональные данные, относящиеся к функциям, у которых пока нет специального [метода выноса](https://core.telegram.org/api/takeout.md), см. [здесь »](https://core.telegram.org/api/takeout.md) дополнительную информацию о выносе API.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputTakeoutFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTakeoutFileLocation"]}}, "required": ["_"], "additionalProperties": false}, "inputPhotoFileLocation": {"title": "inputPhotoFileLocation", "description": "Используйте этот объект, чтобы загрузить фотографию с помощью метода [upload.getFile](https://core.telegram.org/method/upload.getFile.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор фотографии, полученный с объекта [photo](https://core.telegram.org/constructor/photo.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа к фотографии, полученный из объекта [photo](https://core.telegram.org/constructor/photo.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Ссылка на файл](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}, "thumb_size": {"type": "string", "x-tl-type": "string", "description": "[PhotoSize](https://core.telegram.org/type/PhotoSize.md) для загрузки: должно быть установлено в поле `type` желаемого объекта PhotoSize на [photo](https://core.telegram.org/constructor/photo.md)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "thumb_size"], "additionalProperties": false}, "inputPhotoLegacyFileLocation": {"title": "inputPhotoLegacyFileLocation", "description": "DEPRECATED местоположение файла устаревшей фотографии", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoLegacyFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoLegacyFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "удостоверение личности с фотографией", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Ссылка на файл", "x-telegram-field-docs": true}, "volume_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор тома", "x-tl-type": "long", "x-telegram-field-docs": true}, "local_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Локальный идентификатор", "x-telegram-field-docs": true}, "secret": {"type": "string", "pattern": "^-?\\d+$", "description": "Секрет", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "volume_id", "local_id", "secret"], "additionalProperties": false}, "inputPeerPhotoFileLocation": {"title": "inputPeerPhotoFileLocation", "description": "Расположение фотографии профиля канала/группы/супергруппы/пользователя", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerPhotoFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerPhotoFileLocation"]}, "big": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Стоит ли скачивать качественную версию картинки", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Партнер, изображение профиля которого необходимо загрузить.", "x-telegram-field-docs": true}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "удостоверение личности с фотографией", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "photo_id"], "additionalProperties": false}, "inputStickerSetThumb": {"title": "inputStickerSetThumb", "description": "Расположение миниатюр набора стикеров (см. [файлы](https://core.telegram.org/api/files.md))", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetThumb"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetThumb"]}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Набор наклеек", "x-telegram-field-docs": true}, "thumb_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Миниатюрная версия", "x-telegram-field-docs": true}}, "required": ["_", "stickerset", "thumb_version"], "additionalProperties": false}, "inputGroupCallStream": {"title": "inputGroupCallStream", "description": "Идентифицирует медиа-фрагмент видеочата, прямой трансляции или прямой трансляции в режиме RTMP, см. [воспроизведение прямой трансляции RTMP »](https://core.telegram.org/api/group-calls.md#downloading-media-chunks).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallStream"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallStream"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "RTMP-режим группового вызова", "x-telegram-field-docs": true}, "time_ms": {"type": "string", "pattern": "^-?\\d+$", "description": "Временная метка фрагмента, который необходимо получить, в миллисекундах.", "x-tl-type": "long", "x-telegram-field-docs": true}, "scale": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Указывает продолжительность выборки медиасегмента в миллисекундах путем битового сдвига `1000` вправо `scale` раза: `duration_ms := 1000 >> scale`", "x-telegram-field-docs": true}, "video_channel": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[groupCallStreamChannel](https://core.telegram.org/constructor/groupCallStreamChannel.md).`channel` значение извлекаемого видеоканала; унифицированное видео использует канал `1`. Опустите вместе с `video_quality`, чтобы получить аудио.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "video_quality": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Выбранное качество видео (0 = самое низкое, 1 = среднее, 2 = лучшее)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "call", "time_ms", "scale"], "additionalProperties": false}, "peerUser": {"title": "peerUser", "description": "Чат-партнер", "externalDocs": {"url": "https://core.telegram.org/constructor/peerUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id"], "additionalProperties": false}, "peerChat": {"title": "peerChat", "description": "Группа.", "externalDocs": {"url": "https://core.telegram.org/constructor/peerChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор группы", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "chat_id"], "additionalProperties": false}, "peerChannel": {"title": "peerChannel", "description": "Канал/супергруппа", "externalDocs": {"url": "https://core.telegram.org/constructor/peerChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор канала", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id"], "additionalProperties": false}, "storage.fileUnknown": {"title": "storage.fileUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileUnknown"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePartial": {"title": "storage.filePartial", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePartial"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileJpeg": {"title": "storage.fileJpeg", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileJpeg"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileGif": {"title": "storage.fileGif", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileGif"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePng": {"title": "storage.filePng", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePng"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePdf": {"title": "storage.filePdf", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePdf"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMp3": {"title": "storage.fileMp3", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMp3"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMov": {"title": "storage.fileMov", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMov"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMp4": {"title": "storage.fileMp4", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMp4"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileWebp": {"title": "storage.fileWebp", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileWebp"]}}, "required": ["_"], "additionalProperties": false}, "userEmpty": {"title": "userEmpty", "description": "Пустой конструктор, несуществующий пользователь.", "externalDocs": {"url": "https://core.telegram.org/constructor/userEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["userEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя или `0`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "user": {"title": "user", "description": "Указывает информацию об определенном пользователе.\n\nЕсли не указано иное, при обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) все поля из вновь полученного конструктора имеют приоритет над старым конструктором, кэшированным локально (в том числе путём удаления полей, которые не установлены в новом конструкторе).\n\nСм. [здесь »](https://github.com/tdlib/td/blob/73035e4a69ed26df563652de14aa9c4c86d23420/td/telegram/UserManager.cpp#L3106) реализацию логики, используемой при обновлении [базы данных локальных пользователей](https://core.telegram.org/api/peers.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/user"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["user"]}, "self": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Указывает ли этот пользователь текущего вошедшего в систему пользователя", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли этот пользователь контактом. При обновлении [базы данных локальных одноранговых узлов](https://core.telegram.org/api/peers.md) не применяйте изменения к этому полю, если установлен флаг `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "mutual_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли этот пользователь взаимным контактом.  При обновлении [локальной базы данных одноранговых узлов](https://core.telegram.org/api/peers.md) не применяйте изменения к этому полю, если установлен флаг `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "deleted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Была ли удалена учетная запись этого пользователя.  Изменения этого флага должны привести к аннулированию локального кэша [userFull](https://core.telegram.org/constructor/userFull.md) для этого идентификатора пользователя, дополнительную информацию см. [здесь »](https://core.telegram.org/api/peers.md#full-info-database).", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "bot": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Этот пользователь бот?  Изменения этого флага должны привести к аннулированию локального кэша [userFull](https://core.telegram.org/constructor/userFull.md) для этого идентификатора пользователя, дополнительную информацию см. [здесь »](https://core.telegram.org/api/peers.md#full-info-database).", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "bot_chat_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот видеть все сообщения в группах?", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "bot_nochats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Можно ли добавлять бота в группы?", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?true"}, "verified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Проверен ли этот пользователь", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "restricted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Доступ к этому пользователю должен быть ограничен по причине, указанной в `restriction_reason`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "См. [мин](https://core.telegram.org/api/min.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.20?true"}, "bot_inline_geo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот запрашивать нашу геолокацию во встроенном режиме", "x-telegram-field-docs": true, "x-tl-flag": "flags.21?true"}, "support": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это официальным пользователем службы поддержки", "x-telegram-field-docs": true, "x-tl-flag": "flags.23?true"}, "scam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Это может быть пользователь-мошенник", "x-telegram-field-docs": true, "x-tl-flag": "flags.24?true"}, "apply_min_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлен и установлен `min`, значение `photo` можно использовать для обновления локальной базы данных; дополнительную информацию см. в документации по этому флагу.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?true"}, "fake": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, многие пользователи сообщали об этом пользователе как о фальшивом или мошенническом пользователе: будьте осторожны при взаимодействии с ним.", "x-telegram-field-docs": true, "x-tl-flag": "flags.26?true"}, "bot_attach_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Предлагает ли этот бот [веб-приложение с меню вложений](https://core.telegram.org/api/bots/attach.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?true"}, "premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли этот пользователь пользователем Telegram Premium. Изменения этого флага должны привести к аннулированию локального кэша [userFull](https://core.telegram.org/constructor/userFull.md) для этого идентификатора пользователя, дополнительную информацию см. [здесь »](https://core.telegram.org/api/peers.md#full-info-database).  Изменения этого флага, если установлен флаг `self`, также должны инициировать следующие вызовы для обновления соответствующих кэшей: - Кэш [help.getConfig](https://core.telegram.org/method/help.getConfig.md) - Кэш [messages.getTopReactions](https://core.telegram.org/method/messages.getTopReactions.md), если флаг `bot` **не** установлен", "x-telegram-field-docs": true, "x-tl-flag": "flags.28?true"}, "attach_menu_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Установили ли мы [веб-приложение меню вложений](https://core.telegram.org/api/bots/attach.md), предлагаемое этим ботом.  При обновлении [локальной базы данных одноранговых узлов](https://core.telegram.org/api/peers.md) не применяйте изменения к этому полю, если установлен флаг `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.29?true"}, "bot_can_edit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Можем ли мы редактировать изображение профиля, имя, текст и описание этого бота, поскольку он принадлежит нам.  При обновлении [локальной базы данных одноранговых узлов](https://core.telegram.org/api/peers.md) не применяйте изменения к этому полю, если установлен флаг `min`.  Изменения этого флага (если `min` не установлен) должны сделать недействительным локальный кэш [userFull](https://core.telegram.org/constructor/userFull.md) для этого идентификатора пользователя.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.1?true"}, "close_friend": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отметили ли мы этого пользователя как [близкого друга, подробнее см. здесь » ](https://core.telegram.org/api/privacy.md).  При обновлении [локальной базы данных одноранговых узлов](https://core.telegram.org/api/peers.md) не применяйте изменения к этому полю, если установлен флаг `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.2?true"}, "stories_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Есть ли у нас [скрытые»](https://core.telegram.org/api/stories.md#hiding-stories-of-other-users) все активные истории этого пользователя.  При обновлении [локальной базы данных одноранговых узлов](https://core.telegram.org/api/peers.md) не применяйте изменения к этому полю, если установлен флаг `min`.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.3?true"}, "stories_unavailable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Истории этого пользователя не видны.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.4?true"}, "contact_require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "См. [здесь дополнительную информацию об этом флаге »](https://core.telegram.org/api/privacy.md#require-premium-for-new-non-contact-users).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.10?true"}, "bot_business": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Можно ли [подключить этого бота к пользователю, как указано здесь »](https://core.telegram.org/api/bots/connected-business-bots.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.11?true"}, "bot_has_main_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, этот бот настроил [Основное мини-приложение »](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.13?true"}, "bot_forum_view": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, этот бот поддерживает [темы форума ботов »](https://core.telegram.org/api/forum.md#bot-forums).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.16?true"}, "bot_forum_can_manage_topics": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, этот бот поддерживает [темы форума бота »](https://core.telegram.org/api/forum.md#bot-forums), и пользователи (не только бот!) могут создавать темы форума бота и управлять ими в своем личном чате с ботом.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.17?true"}, "bot_can_manage_bots": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, этот бот является [ботом-менеджером](https://core.telegram.org/api/bots/managed-bots.md), который может создавать и управлять [управляемыми ботами»](https://core.telegram.org/api/bots/managed-bots.md) от имени пользователя.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.18?true"}, "bot_guestchat": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, этого бота можно вызывать как [гость в чатах »](https://core.telegram.org/api/bots/guest-mode.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.19?true"}, "bot_guard": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.20?true"}, "bot_forum_sidebar": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.22?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя см. [здесь »](https://core.telegram.org/api/peers.md#peer-id) для получения дополнительной информации и доступного диапазона идентификаторов.", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа пользователя, см. [здесь »](https://core.telegram.org/api/peers.md#access-hash) для получения дополнительной информации.  Если этот флаг установлен, при обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) сгенерируйте виртуальный флаг с именем `min_access_hash`, который: - Установите значение `true`, если установлено `min` AND -- Флаг `phone` **не** установлен ИЛИ -- Флаг `phone` установлен и соответствующая строка номера телефона не пуста - Установите значение `false` иначе.   Затем примените оба `access_hash` и `min_access_hash` к локальной базе данных, если: - `min_access_hash` ложно ИЛИ - `min_access_hash` истинно AND -- Для этого пользователя нет локально кэшированного объекта ИЛИ -- В локальном кэше нет `access_hash` ИЛИ -- `min_access_hash` кэшированного объекта также истинно Если В окончательном объединенном объекте, хранящемся в базе данных, для поля `min_access_hash` установлено значение true, соответствующее `access_hash` **подходит только** для использования в [`inputPeerPhotoFileLocation` »](https://core.telegram.org/constructor/inputPeerPhotoFileLocation.md), для прямой [загрузки изображений профиля](https://core.telegram.org/api/files.md) пользователей, в остальных случаях конструктор `inputPeer*FromMessage` должен быть сгенерирован, как указано [здесь »](https://core.telegram.org/api/min.md).  В некоторых условиях боты также могут использовать хэши минимального доступа, передавая `0` вместо хэша минимального доступа.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Имя.  При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) применяйте изменения к этому полю только в том случае, если: - Флаг `min` не установлен ИЛИ - Флаг `min` установлен AND -- Установлен флаг `min` локально кэшированной пользовательской записи.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Фамилия.  При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) применяйте изменения к этому полю только в том случае, если: - Флаг `min` не установлен ИЛИ - Флаг `min` установлен AND -- Установлен флаг `min` локально кэшированной пользовательской записи.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "username": {"type": "string", "x-tl-type": "string", "description": "Основное активное имя пользователя.  При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) применяйте изменения к этому полю только в том случае, если: - Флаг `min` не установлен ИЛИ - Флаг `min` установлен AND -- Установлен флаг `min` локально кэшированной пользовательской записи.  Изменения этого флага должны привести к аннулированию локального кэша [userFull](https://core.telegram.org/constructor/userFull.md) для этого идентификатора пользователя, если вышеуказанные условия соблюдаются и также установлен флаг `bot_can_edit`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "phone": {"type": "string", "x-tl-type": "string", "description": "Номер телефона.  При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) применяйте изменения к этому полю только в том случае, если: - Флаг `min` не установлен ИЛИ - Флаг `min` установлен AND -- Установлен флаг `min` локально кэшированной пользовательской записи.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "photo": {"type": "object", "x-tl-type": "UserProfilePhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userProfilePhotoEmpty", "userProfilePhoto"]}}, "description": "Изображение профиля пользователя.  При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) применяйте изменения к этому полю только в том случае, если: - Флаг `min` не установлен ИЛИ - Флаг `min` установлен AND -- Флаг `apply_min_photo` установлен ИЛИ -- Установлен флаг `min` локально кэшированной пользовательской записи.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?UserProfilePhoto"}, "status": {"type": "object", "x-tl-type": "UserStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth"]}}, "description": "Онлайн-статус пользователя.  При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) применяйте изменения к этому полю только в том случае, если: - Флаг `min` не установлен ИЛИ - Флаг `min` установлен AND -- Установлен флаг `min` локально кэшированной записи пользователя ИЛИ -- Локально кэшированная запись пользователя равна [userStatusEmpty](https://core.telegram.org/constructor/userStatusEmpty.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?UserStatus"}, "bot_info_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Версия поля [bot_info в userFull](https://core.telegram.org/constructor/userFull.md), увеличивается при каждом изменении.  Изменения этого флага должны привести к аннулированию локального кэша [userFull](https://core.telegram.org/constructor/userFull.md) для этого идентификатора пользователя, дополнительную информацию см. в [здесь »](https://core.telegram.org/api/peers.md#full-info-database).", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?int"}, "restriction_reason": {"type": "array", "items": {"type": "object", "x-tl-type": "RestrictionReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}}, "description": "Тип TL: RestrictionReason."}, "x-tl-type": "Vector<RestrictionReason>", "description": "Содержит причину, по которой доступ к этому пользователю должен быть ограничен.", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?Vector<RestrictionReason>"}, "bot_inline_placeholder": {"type": "string", "x-tl-type": "string", "description": "Встроенный заполнитель для этого встроенного бота", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?string"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Языковой код пользователя", "x-telegram-field-docs": true, "x-tl-flag": "flags.22?string"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "[Статус эмодзи](https://core.telegram.org/api/emoji-status.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.30?EmojiStatus"}, "usernames": {"type": "array", "items": {"type": "object", "x-tl-type": "Username", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["username"]}}, "description": "Тип TL: Username."}, "x-tl-type": "Vector<Username>", "description": "Дополнительные имена пользователей.  При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) применяйте изменения к этому полю только в том случае, если: - Флаг `min` не установлен ИЛИ - Флаг `min` установлен AND -- Установлен флаг `min` локально кэшированной пользовательской записи.  Изменения этого флага (если соблюдаются вышеуказанные условия) должны привести к аннулированию локального кэша [userFull](https://core.telegram.org/constructor/userFull.md) для этого идентификатора пользователя.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.0?Vector<Username>"}, "stories_max_id": {"type": "object", "x-tl-type": "RecentStory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["recentStory"]}}, "description": "Сводка [активных историй пользователя»](https://core.telegram.org/api/stories.md#recent-story-summaries).   При обновлении [локальной одноранговой базы данных](https://core.telegram.org/api/peers.md) не применяйте изменения к этому полю, если установлен флаг `min` входящего конструктора.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.5?RecentStory"}, "color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "[Цвет акцента пользователя](https://core.telegram.org/api/colors.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.8?PeerColor"}, "profile_color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "[Цвет профиля](https://core.telegram.org/api/colors.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.9?PeerColor"}, "bot_active_users": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ежемесячные активные пользователи (MAU) этого бота (может отсутствовать для небольших ботов).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.12?int"}, "bot_verification_icon": {"type": "string", "pattern": "^-?\\d+$", "description": "Описывает [значок проверки бота »](https://core.telegram.org/api/bots/verification.md).", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags2.14?long"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Если установлено, пользователь включил [платные сообщения»](https://core.telegram.org/api/paid-messages.md), нам *возможно* придется заплатить указанную сумму [Звезд](https://core.telegram.org/api/stars.md), чтобы отправить ему сообщения, в зависимости от настроенных исключений: проверьте [userFull](https://core.telegram.org/constructor/userFull.md).`send_paid_messages_stars` или [users.getRequirementsToContact](https://core.telegram.org/method/users.getRequirementsToContact.md), чтобы узнать, действительно ли текущий вошедший в систему пользователь должен платить или нет, см. [здесь] »](https://core.telegram.org/api/paid-messages.md) для полного стока.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags2.15?long"}, "linked_community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.21?long"}}, "required": ["_", "id"], "additionalProperties": false}, "userProfilePhotoEmpty": {"title": "userProfilePhotoEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["userProfilePhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "userProfilePhoto": {"title": "userProfilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["userProfilePhoto"]}, "has_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "personal": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stripped_thumb": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.1?bytes"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "photo_id", "dc_id"], "additionalProperties": false}, "userStatusEmpty": {"title": "userStatusEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusEmpty"]}}, "required": ["_"], "additionalProperties": false}, "userStatusOnline": {"title": "userStatusOnline", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusOnline"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "expires"], "additionalProperties": false}, "userStatusOffline": {"title": "userStatusOffline", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusOffline"]}, "was_online": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "was_online"], "additionalProperties": false}, "userStatusRecently": {"title": "userStatusRecently", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusRecently"]}, "by_me": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "userStatusLastWeek": {"title": "userStatusLastWeek", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusLastWeek"]}, "by_me": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "userStatusLastMonth": {"title": "userStatusLastMonth", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusLastMonth"]}, "by_me": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "chatEmpty": {"title": "chatEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "chat": {"title": "chat", "type": "object", "properties": {"_": {"type": "string", "enum": ["chat"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "deactivated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "call_active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.23?true"}, "call_not_empty": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto."}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "migrated_to": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "Тип TL: InputChannel.", "x-tl-flag": "flags.6?InputChannel"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.14?ChatAdminRights"}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.18?ChatBannedRights"}}, "required": ["_", "id", "title", "photo", "participants_count", "date", "version"], "additionalProperties": false}, "chatForbidden": {"title": "chatForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatForbidden"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "channel": {"title": "channel", "type": "object", "properties": {"_": {"type": "string", "enum": ["channel"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "verified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "restricted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "signatures": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "scam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "has_link": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}, "has_geo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "slowmode_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.22?true"}, "call_active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.23?true"}, "call_not_empty": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "fake": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true"}, "gigagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "join_to_send": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "join_request": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "forum": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.30?true"}, "stories_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.1?true"}, "stories_hidden_min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.2?true"}, "stories_unavailable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.3?true"}, "signature_profiles": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.12?true"}, "autotranslation": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.15?true"}, "broadcast_messages_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.16?true"}, "monoforum": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.17?true"}, "forum_tabs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.19?true"}, "in_news": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.21?true"}, "forum_sidebar": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.23?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "title": {"type": "string", "x-tl-type": "string"}, "username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "restriction_reason": {"type": "array", "items": {"type": "object", "x-tl-type": "RestrictionReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}}, "description": "Тип TL: RestrictionReason."}, "x-tl-type": "Vector<RestrictionReason>", "x-tl-flag": "flags.9?Vector<RestrictionReason>"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.14?ChatAdminRights"}, "banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.15?ChatBannedRights"}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.18?ChatBannedRights"}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "usernames": {"type": "array", "items": {"type": "object", "x-tl-type": "Username", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["username"]}}, "description": "Тип TL: Username."}, "x-tl-type": "Vector<Username>", "x-tl-flag": "flags2.0?Vector<Username>"}, "stories_max_id": {"type": "object", "x-tl-type": "RecentStory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["recentStory"]}}, "description": "Тип TL: RecentStory.", "x-tl-flag": "flags2.4?RecentStory"}, "color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags2.7?PeerColor"}, "profile_color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags2.8?PeerColor"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus.", "x-tl-flag": "flags2.9?EmojiStatus"}, "level": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.10?int"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.11?int"}, "bot_verification_icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.13?long"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.14?long"}, "linked_monoforum_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.18?long"}, "linked_community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.20?long"}, "pinned_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.22?int"}}, "required": ["_", "id", "title", "photo", "date"], "additionalProperties": false}, "channelForbidden": {"title": "channelForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelForbidden"]}, "broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "monoforum": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.16?int"}}, "required": ["_", "id", "access_hash", "title"], "additionalProperties": false}, "communityForbidden": {"title": "communityForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityForbidden"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "community": {"title": "community", "type": "object", "properties": {"_": {"type": "string", "enum": ["community"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "collapsed_in_dialogs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.20?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "title": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.14?ChatAdminRights"}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.18?ChatBannedRights"}}, "required": ["_", "id", "title", "photo", "date"], "additionalProperties": false}, "chatFull": {"title": "chatFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatFull"]}, "can_set_username": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "has_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "translations_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "has_welcome_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "participants": {"type": "object", "x-tl-type": "ChatParticipants", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipantsForbidden", "chatParticipants"]}}, "description": "Тип TL: ChatParticipants."}, "chat_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings."}, "exported_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite.", "x-tl-flag": "flags.13?ExportedChatInvite"}, "bot_info": {"type": "array", "items": {"type": "object", "x-tl-type": "BotInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInfo"]}}, "description": "Тип TL: BotInfo."}, "x-tl-type": "Vector<BotInfo>", "x-tl-flag": "flags.3?Vector<BotInfo>"}, "pinned_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall.", "x-tl-flag": "flags.12?InputGroupCall"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.14?int"}, "groupcall_default_join_as": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.15?Peer"}, "theme_emoticon": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "recent_requesters": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.17?Vector<long>"}, "available_reactions": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions.", "x-tl-flag": "flags.18?ChatReactions"}, "reactions_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int"}}, "required": ["_", "id", "about", "participants", "notify_settings"], "additionalProperties": false}, "channelFull": {"title": "channelFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelFull"]}, "can_view_participants": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "can_set_username": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "can_set_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "hidden_prehistory": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "can_set_location": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "has_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "can_view_stats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.22?true"}, "can_delete_channel": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.0?true"}, "antispam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.1?true"}, "participants_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.2?true"}, "translations_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.3?true"}, "stories_pinned_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.5?true"}, "view_forum_as_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.6?true"}, "restricted_sponsored": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.11?true"}, "can_view_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.12?true"}, "paid_media_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.14?true"}, "can_view_stars_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.15?true"}, "paid_reactions_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.16?true"}, "stargifts_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.19?true"}, "paid_messages_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.20?true"}, "has_welcome_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.24?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "admins_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "kicked_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "banned_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "online_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.13?int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "chat_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings."}, "exported_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite.", "x-tl-flag": "flags.23?ExportedChatInvite"}, "bot_info": {"type": "array", "items": {"type": "object", "x-tl-type": "BotInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInfo"]}}, "description": "Тип TL: BotInfo."}, "x-tl-type": "Vector<BotInfo>"}, "migrated_from_chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "migrated_from_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "pinned_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "stickerset": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Тип TL: StickerSet.", "x-tl-flag": "flags.8?StickerSet"}, "available_min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "linked_chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.14?long"}, "location": {"type": "object", "x-tl-type": "ChannelLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty", "channelLocation"]}}, "description": "Тип TL: ChannelLocation.", "x-tl-flag": "flags.15?ChannelLocation"}, "slowmode_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "slowmode_next_send_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.18?int"}, "stats_dc": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.12?int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall.", "x-tl-flag": "flags.21?InputGroupCall"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.24?int"}, "pending_suggestions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.25?Vector<string>"}, "groupcall_default_join_as": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.26?Peer"}, "theme_emoticon": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.27?string"}, "requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.28?int"}, "recent_requesters": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.28?Vector<long>"}, "default_send_as": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.29?Peer"}, "available_reactions": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions.", "x-tl-flag": "flags.30?ChatReactions"}, "reactions_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.13?int"}, "stories": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "Тип TL: PeerStories.", "x-tl-flag": "flags2.4?PeerStories"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper.", "x-tl-flag": "flags2.7?WallPaper"}, "boosts_applied": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.8?int"}, "boosts_unrestrict": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.9?int"}, "emojiset": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Тип TL: StickerSet.", "x-tl-flag": "flags2.10?StickerSet"}, "bot_verification": {"type": "object", "x-tl-type": "BotVerification", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerification"]}}, "description": "Тип TL: BotVerification.", "x-tl-flag": "flags2.17?BotVerification"}, "stargifts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.18?int"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.21?long"}, "main_tab": {"type": "object", "x-tl-type": "ProfileTab", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["profileTabPosts", "profileTabGifts", "profileTabMedia", "profileTabFiles", "profileTabMusic", "profileTabVoice", "profileTabLinks", "profileTabGifs"]}}, "description": "Тип TL: ProfileTab.", "x-tl-flag": "flags2.22?ProfileTab"}, "guard_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.23?long"}, "share_theme": {"type": "object", "x-tl-type": "ShareTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shareThemeDefault", "shareThemeEmojiBackdrop", "shareThemeGift", "inputShareThemeGift"]}}, "description": "Тип TL: ShareTheme.", "x-tl-flag": "flags2.25?ShareTheme"}}, "required": ["_", "id", "about", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "chat_photo", "notify_settings", "bot_info", "pts"], "additionalProperties": false}, "communityFull": {"title": "communityFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityFull"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "chat_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "linked_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "CommunityPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["communityPeer"]}}, "description": "Тип TL: CommunityPeer."}, "x-tl-type": "Vector<CommunityPeer>"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings.", "x-tl-flag": "flags.3?PeerNotifySettings"}, "admins_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "kicked_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "peer_link_requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "id", "about", "chat_photo", "linked_peers"], "additionalProperties": false}, "chatParticipant": {"title": "chatParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipant"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "inviter_id", "date"], "additionalProperties": false}, "chatParticipantCreator": {"title": "chatParticipantCreator", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipantCreator"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id"], "additionalProperties": false}, "chatParticipantAdmin": {"title": "chatParticipantAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipantAdmin"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "inviter_id", "date"], "additionalProperties": false}, "chatParticipantsForbidden": {"title": "chatParticipantsForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipantsForbidden"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "self_participant": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant.", "x-tl-flag": "flags.0?ChatParticipant"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "chatParticipants": {"title": "chatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipants"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant."}, "x-tl-type": "Vector<ChatParticipant>"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "participants", "version"], "additionalProperties": false}, "chatPhotoEmpty": {"title": "chatPhotoEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "chatPhoto": {"title": "chatPhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatPhoto"]}, "has_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stripped_thumb": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.1?bytes"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "photo_id", "dc_id"], "additionalProperties": false}, "messageEmpty": {"title": "messageEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEmpty"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}}, "required": ["_", "id"], "additionalProperties": false}, "message": {"title": "message", "type": "object", "properties": {"_": {"type": "string", "enum": ["message"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "post": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "from_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.18?true"}, "legacy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "edit_hide": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "offline": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.1?true"}, "video_processing_pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.4?true"}, "paid_suggested_post_stars": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.8?true"}, "paid_suggested_post_ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.9?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.8?Peer"}, "from_boosts_applied": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.29?int"}, "from_rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags2.12?string"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.28?Peer"}, "fwd_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "Тип TL: MessageFwdHeader.", "x-tl-flag": "flags.2?MessageFwdHeader"}, "via_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.11?long"}, "via_business_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.0?long"}, "guestchat_via_from": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags2.19?Peer"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Тип TL: MessageReplyHeader.", "x-tl-flag": "flags.3?MessageReplyHeader"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "string", "x-tl-type": "string"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia.", "x-tl-flag": "flags.9?MessageMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.6?ReplyMarkup"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.7?Vector<MessageEntity>"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "replies": {"type": "object", "x-tl-type": "MessageReplies", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplies"]}}, "description": "Тип TL: MessageReplies.", "x-tl-flag": "flags.23?MessageReplies"}, "edit_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "post_author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "grouped_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.17?long"}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "Тип TL: MessageReactions.", "x-tl-flag": "flags.20?MessageReactions"}, "restriction_reason": {"type": "array", "items": {"type": "object", "x-tl-type": "RestrictionReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}}, "description": "Тип TL: RestrictionReason."}, "x-tl-type": "Vector<RestrictionReason>", "x-tl-flag": "flags.22?Vector<RestrictionReason>"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.25?int"}, "quick_reply_shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.30?int"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.2?long"}, "factcheck": {"type": "object", "x-tl-type": "FactCheck", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["factCheck"]}}, "description": "Тип TL: FactCheck.", "x-tl-flag": "flags2.3?FactCheck"}, "report_delivery_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.5?int"}, "paid_message_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.6?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["suggestedPost"]}}, "description": "Тип TL: SuggestedPost.", "x-tl-flag": "flags2.7?SuggestedPost"}, "schedule_repeat_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.10?int"}, "summary_from_language": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags2.11?string"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage.", "x-tl-flag": "flags2.13?RichMessage"}}, "required": ["_", "id", "peer_id", "date", "message"], "additionalProperties": false}, "messageService": {"title": "messageService", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageService"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "reactions_are_possible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "post": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "legacy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.8?Peer"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.28?Peer"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Тип TL: MessageReplyHeader.", "x-tl-flag": "flags.3?MessageReplyHeader"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "action": {"type": "object", "x-tl-type": "MessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated", "messageActionChangeCommunity", "messageActionChatJoinedViaCommunity", "messageActionGramTransfer", "messageActionWalletTonConnectRequest", "messageActionNoPaidMessagesTokenUsed", "messageActionStarGiftOnchainOffer", "messageActionBotInvite"]}}, "description": "Тип TL: MessageAction."}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "Тип TL: MessageReactions.", "x-tl-flag": "flags.20?MessageReactions"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "peer_id", "date", "action"], "additionalProperties": false}, "messageMediaEmpty": {"title": "messageMediaEmpty", "description": "Пустой конструктор.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty"]}}, "required": ["_"], "additionalProperties": false}, "messageMediaPhoto": {"title": "messageMediaPhoto", "description": "Прикрепленное фото.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "live_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будь то живое фото, i.e. неподвижное фото в сочетании с коротким клипом `video`, снятым рядом с ним", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Фото", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Photo"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающейся фотографии: `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения фотографии сразу после ее воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "video": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Короткий видеоклип живого фото", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Document"}}, "required": ["_"], "additionalProperties": false}, "messageMediaGeo": {"title": "messageMediaGeo", "description": "Прикрепленная карта.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGeo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGeo"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "ГеоПойнт", "x-telegram-field-docs": true}}, "required": ["_", "geo"], "additionalProperties": false}, "messageMediaContact": {"title": "messageMediaContact", "description": "Прикрепленный контакт.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Имя контакта", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Фамилия контакта", "x-telegram-field-docs": true}, "vcard": {"type": "string", "x-tl-type": "string", "description": "VCARD контакта", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя или `0`, если пользователь с данным номером телефона не зарегистрирован.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard", "user_id"], "additionalProperties": false}, "messageMediaUnsupported": {"title": "messageMediaUnsupported", "description": "Текущая версия клиента не поддерживает этот тип носителя.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaUnsupported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "messageMediaDocument": {"title": "messageMediaDocument", "description": "Документ (видео, аудио, голос, наклейка, любой тип носителя, кроме фотографии)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaDocument"]}, "nopremium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это обычной наклейкой, если не установлено, то это премиум-наклейка, и должна воспроизводиться анимация премиум-стикера.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли прятать это медиа за предупреждением о спойлере", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "То ли это видео.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "round": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "То ли это круглое видео.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "voice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будь то голосовое сообщение.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Прикрепленный документ", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Document"}, "alt_documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Только видео, содержит видео альтернативного качества.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?Vector<Document>"}, "video_cover": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Индивидуальная обложка для видео.", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?Photo"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Начать воспроизведение видео в указанную отметку времени (в секундах).", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?int"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни самоуничтожающегося документа может быть `0` для отключения самоуничтожения, `0x7FFFFFFF` для самоуничтожения документа сразу после его воспроизведения; в противном случае самоуничтожится `ttl_seconds` после воспроизведения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "messageMediaWebPage": {"title": "messageMediaWebPage", "description": "Предварительный просмотр веб-страницы", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaWebPage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaWebPage"]}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, указывает, что следует использовать большой предварительный просмотр мультимедиа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, указывает, что следует использовать небольшой предварительный просмотр мультимедиа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "manual": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "If set, indicates that the URL used for the webpage preview was specified manually using [inputMediaWebPage](https://core.telegram.org/constructor/inputMediaWebPage.md), and may not be related to any of the URLs specified in the message.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "safe": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, веб-страницу можно открыть напрямую без подтверждения пользователя; в противном случае требуется подтверждение пользователя с указанием точного URL, который будет открыт.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "Предварительный просмотр веб-страницы", "x-telegram-field-docs": true}}, "required": ["_", "webpage"], "additionalProperties": false}, "messageMediaVenue": {"title": "messageMediaVenue", "description": "Место проведения", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaVenue"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Геолокация места проведения", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название места проведения", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "Адрес", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "Поставщик места проведения: в настоящее время необходимо поддерживать только «foursquare» и «gplaces» (Google Places).", "x-telegram-field-docs": true}, "venue_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор заведения в базе данных провайдера", "x-telegram-field-docs": true}, "venue_type": {"type": "string", "x-tl-type": "string", "description": "Тип площадки в базе данных провайдера", "x-telegram-field-docs": true}}, "required": ["_", "geo", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "messageMediaGame": {"title": "messageMediaGame", "description": "Телеграмм игра", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGame"]}, "game": {"type": "object", "x-tl-type": "Game", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["game"]}}, "description": "Игра", "x-telegram-field-docs": true}}, "required": ["_", "game"], "additionalProperties": false}, "messageMediaInvoice": {"title": "messageMediaInvoice", "description": "Счет", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaInvoice"]}, "shipping_address_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Был ли запрошен адрес доставки", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "test": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это примером счета-фактуры", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "title": {"type": "string", "x-tl-type": "string", "description": "Название продукта, 1–32 символа.", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание товара, 1–255 символов.", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "URL фотографии товара для счета-фактуры. Это может быть фотография товара или маркетинговый имидж услуги. Людям больше нравится, когда они видят, за что платят.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?WebDocument"}, "receipt_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения о квитанции: если он установлен, клиенты должны изменить текст первой кнопки [keyboardButtonBuy](https://core.telegram.org/constructor/keyboardButtonBuy.md), всегда прикрепленной к [сообщению](https://core.telegram.org/constructor/message.md)], на локализованную версию слова `Receipt`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный номер ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies) или `XTR` для [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-telegram-field-docs": true}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "Уникальный параметр глубокой связи бота, который можно использовать для создания этого счета.", "x-telegram-field-docs": true}, "extended_media": {"type": "object", "x-tl-type": "MessageExtendedMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview", "messageExtendedMedia"]}}, "description": "Устарело", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?MessageExtendedMedia"}}, "required": ["_", "title", "description", "currency", "total_amount", "start_param"], "additionalProperties": false}, "messageMediaGeoLive": {"title": "messageMediaGeoLive", "description": "Обозначает [реальную геолокацию](https://core.telegram.org/api/live-location.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGeoLive"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGeoLive"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Геолокация", "x-telegram-field-docs": true}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для [текущих локаций](https://core.telegram.org/api/live-location.md) — направление перемещения локации в градусах; 1-360", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок действия предоставленной геолокации", "x-telegram-field-docs": true}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для [живых местоположений](https://core.telegram.org/api/live-location.md) — максимальное расстояние до другого участника чата для оповещений о близости в метрах (0–100 000).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "geo", "period"], "additionalProperties": false}, "messageMediaPoll": {"title": "messageMediaPoll", "description": "Опрос", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaPoll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaPoll"]}, "poll": {"type": "object", "x-tl-type": "Poll", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["poll"]}}, "description": "Опрос", "x-telegram-field-docs": true}, "results": {"type": "object", "x-tl-type": "PollResults", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollResults"]}}, "description": "Результаты опроса", "x-telegram-field-docs": true}, "attached_media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Дополнительное медиа-вложение, отображаемое рядом с опросом", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MessageMedia"}}, "required": ["_", "poll", "results"], "additionalProperties": false}, "messageMediaDice": {"title": "messageMediaDice", "description": "[Анимированная наклейка на основе игральных костей](https://core.telegram.org/api/dice.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaDice"]}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Значение кубика](https://core.telegram.org/api/dice.md)", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "На данный момент поддерживаются смайлы 🏀, 🎲 и 🎯.", "x-telegram-field-docs": true}, "game_outcome": {"type": "object", "x-tl-type": "messages.EmojiGameOutcome", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messages.emojiGameOutcome"]}}, "description": "Результат игры в кости.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?messages.EmojiGameOutcome"}}, "required": ["_", "value", "emoticon"], "additionalProperties": false}, "messageMediaStory": {"title": "messageMediaStory", "description": "Представляет пересылаемую [историю](https://core.telegram.org/api/stories.md) или упоминание в истории.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaStory"]}, "via_mention": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, это означает, что этот кто-то упомянул нас в этой истории (i.e. отметив нас в описании) или наоборот, мы упомянули другого узла (если сообщение исходящее).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Пэр, выложивший историю.", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории", "x-telegram-field-docs": true}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Саму историю, если она отсутствует, извлеките ее, используя [stories.getStoriesByID](https://core.telegram.org/method/stories.getStoriesByID.md) и параметры `peer`/`id`, указанные выше.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?StoryItem"}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "messageMediaGiveaway": {"title": "messageMediaGiveaway", "description": "Содержит информацию о [розыгрыше, дополнительную информацию см. здесь »](https://core.telegram.org/api/giveaways.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, в розыгрыше смогут участвовать только новые подписчики, начиная с даты создания розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, победители розыгрыша являются общедоступными и будут перечислены в сообщении [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md), которое будет автоматически отправлено на канал после завершения розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "channels": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Каналы, к которым пользователь должен присоединиться, чтобы принять участие в розыгрыше.", "x-telegram-field-docs": true}, "countries_iso2": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Если установлено, в розыгрыше могут участвовать только пользователи, проживающие в этих странах (указанные в виде списка двухбуквенных кодов стран ISO 3166-1 альфа-2); в противном случае ограничений по странам нет.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<string>"}, "prize_description": {"type": "string", "x-tl-type": "string", "description": "Может содержать текстовое описание дополнительных призов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "quantity": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество розданных подписок [Telegram Premium](https://core.telegram.org/api/premium.md).", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность в месяцах каждой подписки [Telegram Premium](https://core.telegram.org/api/premium.md) в розыгрыше.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [раздачи Telegram Star](https://core.telegram.org/api/stars.md#star-giveaways) — общее количество разыгрываемых Telegram Stars.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?long"}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата окончания розыгрыша.", "x-telegram-field-docs": true}}, "required": ["_", "channels", "quantity", "until_date"], "additionalProperties": false}, "messageMediaGiveawayResults": {"title": "messageMediaGiveawayResults", "description": "Розыгрыш [розыгрыш](https://core.telegram.org/api/giveaways.md) с публичными победителями завершен, этот конструктор содержит информацию о победителях.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGiveawayResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGiveawayResults"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, в розыгрыше участвовали только новые подписчики, начиная с даты создания розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, раздача была отменена и ее стоимость была полностью возвращена.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор канала/супергруппы, который был автоматически [повышен](https://core.telegram.org/api/boost.md) победителями розыгрыша на время действия Премиум-подписки.", "x-tl-type": "long", "x-telegram-field-docs": true}, "additional_peers_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество других каналов, принявших участие в розыгрыше.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "launch_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения с раздачей в `channel_id`.", "x-telegram-field-docs": true}, "winners_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество победителей розыгрыша.", "x-telegram-field-docs": true}, "unclaimed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество еще не востребованных призов.", "x-telegram-field-docs": true}, "winners": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "До 100 пользовательских идентификаторов победителей розыгрыша.", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность в месяцах каждой подписки [Telegram Premium](https://core.telegram.org/api/premium.md) в розыгрыше.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [раздачи Telegram Star](https://core.telegram.org/api/stars.md#star-giveaways) — общее количество разыгрываемых Telegram Stars.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?long"}, "prize_description": {"type": "string", "x-tl-type": "string", "description": "Может содержать текстовое описание дополнительных призов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Момент времени (временная метка Unix), когда были выбраны победители. Может быть больше даты выбора победителей, указанной в первоначальных параметрах розыгрыша.", "x-telegram-field-docs": true}}, "required": ["_", "channel_id", "launch_msg_id", "winners_count", "unclaimed_count", "winners", "until_date"], "additionalProperties": false}, "messageMediaPaidMedia": {"title": "messageMediaPaidMedia", "description": "[Платные СМИ, дополнительную информацию см. здесь »](https://core.telegram.org/api/paid-media.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaPaidMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaPaidMedia"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Цена носителя в [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageExtendedMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview", "messageExtendedMedia"]}}, "description": "Тип TL: MessageExtendedMedia."}, "x-tl-type": "Vector<MessageExtendedMedia>", "description": "Либо платные носители, либо предварительный просмотр мультимедиа со сверхнизким разрешением, если медиафайл еще не приобретен, [см. здесь »](https://core.telegram.org/api/paid-media.md#viewing-paid-media) для получения дополнительной информации.", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount", "extended_media"], "additionalProperties": false}, "messageMediaToDo": {"title": "messageMediaToDo", "description": "Представляет собой список дел »](https://core.telegram.org/api/todo.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaToDo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaToDo"]}, "todo": {"type": "object", "x-tl-type": "TodoList", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoList"]}}, "description": "Список дел.", "x-telegram-field-docs": true}, "completions": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoCompletion", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoCompletion"]}}, "description": "Тип TL: TodoCompletion."}, "x-tl-type": "Vector<TodoCompletion>", "description": "Завершенные предметы.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<TodoCompletion>"}}, "required": ["_", "todo"], "additionalProperties": false}, "messageMediaVideoStream": {"title": "messageMediaVideoStream", "description": "Идентифицирует активный групповой вызов, связанный с [живой историей »](https://core.telegram.org/api/group-calls.md#live-stories).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaVideoStream"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaVideoStream"]}, "rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Используется ли в прямой трансляции [RTMP режим прямой трансляции »](https://core.telegram.org/api/group-calls.md#stream-mode)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Активный групповой звонок в режиме реального времени", "x-telegram-field-docs": true}}, "required": ["_", "call"], "additionalProperties": false}, "messageMediaWidget": {"title": "messageMediaWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaWidget"]}, "is_copy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "background_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.5?long"}}, "required": ["_", "width", "height", "payload"], "additionalProperties": false}, "messageActionEmpty": {"title": "messageActionEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatCreate": {"title": "messageActionChatCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatCreate"]}, "title": {"type": "string", "x-tl-type": "string"}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "title", "users"], "additionalProperties": false}, "messageActionChatEditTitle": {"title": "messageActionChatEditTitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditTitle"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatEditPhoto": {"title": "messageActionChatEditPhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditPhoto"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}}, "required": ["_", "photo"], "additionalProperties": false}, "messageActionChatDeletePhoto": {"title": "messageActionChatDeletePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatDeletePhoto"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatAddUser": {"title": "messageActionChatAddUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatAddUser"]}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "users"], "additionalProperties": false}, "messageActionChatDeleteUser": {"title": "messageActionChatDeleteUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatDeleteUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "messageActionChatJoinedByLink": {"title": "messageActionChatJoinedByLink", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatJoinedByLink"]}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "inviter_id"], "additionalProperties": false}, "messageActionChannelCreate": {"title": "messageActionChannelCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChannelCreate"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatMigrateTo": {"title": "messageActionChatMigrateTo", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatMigrateTo"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "messageActionChannelMigrateFrom": {"title": "messageActionChannelMigrateFrom", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChannelMigrateFrom"]}, "title": {"type": "string", "x-tl-type": "string"}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "title", "chat_id"], "additionalProperties": false}, "messageActionPinMessage": {"title": "messageActionPinMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPinMessage"]}}, "required": ["_"], "additionalProperties": false}, "messageActionHistoryClear": {"title": "messageActionHistoryClear", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionHistoryClear"]}}, "required": ["_"], "additionalProperties": false}, "messageActionGameScore": {"title": "messageActionGameScore", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGameScore"]}, "game_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "score": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "game_id", "score"], "additionalProperties": false}, "messageActionPaymentSentMe": {"title": "messageActionPaymentSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentSentMe"]}, "recurring_init": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "recurring_used": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Тип TL: PaymentRequestedInfo.", "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "charge": {"type": "object", "x-tl-type": "PaymentCharge", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentCharge"]}}, "description": "Тип TL: PaymentCharge."}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "currency", "total_amount", "payload", "charge"], "additionalProperties": false}, "messageActionPaymentSent": {"title": "messageActionPaymentSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentSent"]}, "recurring_init": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "recurring_used": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invoice_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "currency", "total_amount"], "additionalProperties": false}, "messageActionPhoneCall": {"title": "messageActionPhoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPhoneCall"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "call_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reason": {"type": "object", "x-tl-type": "PhoneCallDiscardReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall"]}}, "description": "Тип TL: PhoneCallDiscardReason.", "x-tl-flag": "flags.0?PhoneCallDiscardReason"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "call_id"], "additionalProperties": false}, "messageActionScreenshotTaken": {"title": "messageActionScreenshotTaken", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionScreenshotTaken"]}}, "required": ["_"], "additionalProperties": false}, "messageActionCustomAction": {"title": "messageActionCustomAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionCustomAction"]}, "message": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "message"], "additionalProperties": false}, "messageActionBotAllowed": {"title": "messageActionBotAllowed", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBotAllowed"]}, "attach_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "from_request": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "app": {"type": "object", "x-tl-type": "BotApp", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botAppNotModified", "botApp"]}}, "description": "Тип TL: BotApp.", "x-tl-flag": "flags.2?BotApp"}}, "required": ["_"], "additionalProperties": false}, "messageActionSecureValuesSentMe": {"title": "messageActionSecureValuesSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSecureValuesSentMe"]}, "values": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValue"]}}, "description": "Тип TL: SecureValue."}, "x-tl-type": "Vector<SecureValue>"}, "credentials": {"type": "object", "x-tl-type": "SecureCredentialsEncrypted", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureCredentialsEncrypted"]}}, "description": "Тип TL: SecureCredentialsEncrypted."}}, "required": ["_", "values", "credentials"], "additionalProperties": false}, "messageActionSecureValuesSent": {"title": "messageActionSecureValuesSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSecureValuesSent"]}, "types": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Тип TL: SecureValueType."}, "x-tl-type": "Vector<SecureValueType>"}}, "required": ["_", "types"], "additionalProperties": false}, "messageActionContactSignUp": {"title": "messageActionContactSignUp", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionContactSignUp"]}}, "required": ["_"], "additionalProperties": false}, "messageActionGeoProximityReached": {"title": "messageActionGeoProximityReached", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGeoProximityReached"]}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "to_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "distance": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "from_id", "to_id", "distance"], "additionalProperties": false}, "messageActionGroupCall": {"title": "messageActionGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "call"], "additionalProperties": false}, "messageActionInviteToGroupCall": {"title": "messageActionInviteToGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionInviteToGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "call", "users"], "additionalProperties": false}, "messageActionSetMessagesTTL": {"title": "messageActionSetMessagesTTL", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSetMessagesTTL"]}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "auto_setting_from": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "period"], "additionalProperties": false}, "messageActionGroupCallScheduled": {"title": "messageActionGroupCallScheduled", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGroupCallScheduled"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "call", "schedule_date"], "additionalProperties": false}, "messageActionSetChatTheme": {"title": "messageActionSetChatTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSetChatTheme"]}, "theme": {"type": "object", "x-tl-type": "ChatTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatTheme", "chatThemeUniqueGift"]}}, "description": "Тип TL: ChatTheme."}}, "required": ["_", "theme"], "additionalProperties": false}, "messageActionChatJoinedByRequest": {"title": "messageActionChatJoinedByRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatJoinedByRequest"]}}, "required": ["_"], "additionalProperties": false}, "messageActionWebViewDataSentMe": {"title": "messageActionWebViewDataSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionWebViewDataSentMe"]}, "text": {"type": "string", "x-tl-type": "string"}, "data": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "data"], "additionalProperties": false}, "messageActionWebViewDataSent": {"title": "messageActionWebViewDataSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionWebViewDataSent"]}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text"], "additionalProperties": false}, "messageActionGiftPremium": {"title": "messageActionGiftPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftPremium"]}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "crypto_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "currency", "amount", "days"], "additionalProperties": false}, "messageActionTopicCreate": {"title": "messageActionTopicCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTopicCreate"]}, "title_missing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "title": {"type": "string", "x-tl-type": "string"}, "icon_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "title", "icon_color"], "additionalProperties": false}, "messageActionTopicEdit": {"title": "messageActionTopicEdit", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTopicEdit"]}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "closed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool"}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}}, "required": ["_"], "additionalProperties": false}, "messageActionSuggestProfilePhoto": {"title": "messageActionSuggestProfilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestProfilePhoto"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}}, "required": ["_", "photo"], "additionalProperties": false}, "messageActionRequestedPeer": {"title": "messageActionRequestedPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionRequestedPeer"]}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>"}}, "required": ["_", "button_id", "peers"], "additionalProperties": false}, "messageActionSetChatWallPaper": {"title": "messageActionSetChatWallPaper", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSetChatWallPaper"]}, "same": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "for_both": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper."}}, "required": ["_", "wallpaper"], "additionalProperties": false}, "messageActionGiftCode": {"title": "messageActionGiftCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftCode"]}, "via_giveaway": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "unclaimed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "boost_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "slug": {"type": "string", "x-tl-type": "string"}, "currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "crypto_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.4?TextWithEntities"}}, "required": ["_", "days", "slug"], "additionalProperties": false}, "messageActionGiveawayLaunch": {"title": "messageActionGiveawayLaunch", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiveawayLaunch"]}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_"], "additionalProperties": false}, "messageActionGiveawayResults": {"title": "messageActionGiveawayResults", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiveawayResults"]}, "stars": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "winners_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unclaimed_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "winners_count", "unclaimed_count"], "additionalProperties": false}, "messageActionBoostApply": {"title": "messageActionBoostApply", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBoostApply"]}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "boosts"], "additionalProperties": false}, "messageActionRequestedPeerSentMe": {"title": "messageActionRequestedPeerSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionRequestedPeerSentMe"]}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "RequestedPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["requestedPeerUser", "requestedPeerChat", "requestedPeerChannel"]}}, "description": "Тип TL: RequestedPeer."}, "x-tl-type": "Vector<RequestedPeer>"}}, "required": ["_", "button_id", "peers"], "additionalProperties": false}, "messageActionPaymentRefunded": {"title": "messageActionPaymentRefunded", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentRefunded"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "charge": {"type": "object", "x-tl-type": "PaymentCharge", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentCharge"]}}, "description": "Тип TL: PaymentCharge."}}, "required": ["_", "peer", "currency", "total_amount", "charge"], "additionalProperties": false}, "messageActionGiftStars": {"title": "messageActionGiftStars", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftStars"]}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "crypto_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "transaction_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "currency", "amount", "stars"], "additionalProperties": false}, "messageActionPrizeStars": {"title": "messageActionPrizeStars", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPrizeStars"]}, "unclaimed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "transaction_id": {"type": "string", "x-tl-type": "string"}, "boost_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "giveaway_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "stars", "transaction_id", "boost_peer", "giveaway_msg_id"], "additionalProperties": false}, "messageActionStarGift": {"title": "messageActionStarGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGift"]}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "saved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "converted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "upgraded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "can_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "prepaid_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "upgrade_separate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "auction_acquired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}, "convert_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "upgrade_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "upgrade_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.11?Peer"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.12?Peer"}, "saved_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.12?long"}, "prepaid_upgrade_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.14?string"}, "gift_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "to_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.18?Peer"}, "gift_num": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.19?int"}}, "required": ["_", "gift"], "additionalProperties": false}, "messageActionStarGiftUnique": {"title": "messageActionStarGiftUnique", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftUnique"]}, "upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "transferred": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "saved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "prepaid_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "assigned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "from_offer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "craft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "can_export_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "transfer_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.6?Peer"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.7?Peer"}, "saved_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}, "resale_amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount.", "x-tl-flag": "flags.8?StarsAmount"}, "can_transfer_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "can_resell_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "drop_original_details_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.12?long"}, "can_craft_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.18?TextWithEntities"}}, "required": ["_", "gift"], "additionalProperties": false}, "messageActionPaidMessagesRefunded": {"title": "messageActionPaidMessagesRefunded", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaidMessagesRefunded"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "count", "stars"], "additionalProperties": false}, "messageActionPaidMessagesPrice": {"title": "messageActionPaidMessagesPrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaidMessagesPrice"]}, "broadcast_messages_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "stars"], "additionalProperties": false}, "messageActionConferenceCall": {"title": "messageActionConferenceCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionConferenceCall"]}, "missed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "call_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "other_participants": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.3?Vector<Peer>"}}, "required": ["_", "call_id"], "additionalProperties": false}, "messageActionTodoCompletions": {"title": "messageActionTodoCompletions", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTodoCompletions"]}, "completed": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "incompleted": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "completed", "incompleted"], "additionalProperties": false}, "messageActionTodoAppendTasks": {"title": "messageActionTodoAppendTasks", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTodoAppendTasks"]}, "list": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoItem"]}}, "description": "Тип TL: TodoItem."}, "x-tl-type": "Vector<TodoItem>"}}, "required": ["_", "list"], "additionalProperties": false}, "messageActionSuggestedPostApproval": {"title": "messageActionSuggestedPostApproval", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestedPostApproval"]}, "rejected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "balance_too_low": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "reject_comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount.", "x-tl-flag": "flags.4?StarsAmount"}}, "required": ["_"], "additionalProperties": false}, "messageActionSuggestedPostSuccess": {"title": "messageActionSuggestedPostSuccess", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestedPostSuccess"]}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}}, "required": ["_", "price"], "additionalProperties": false}, "messageActionSuggestedPostRefund": {"title": "messageActionSuggestedPostRefund", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestedPostRefund"]}, "payer_initiated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "messageActionGiftTon": {"title": "messageActionGiftTon", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftTon"]}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "crypto_currency": {"type": "string", "x-tl-type": "string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "transaction_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "currency", "amount", "crypto_currency", "crypto_amount"], "additionalProperties": false}, "messageActionSuggestBirthday": {"title": "messageActionSuggestBirthday", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestBirthday"]}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "Тип TL: Birthday."}}, "required": ["_", "birthday"], "additionalProperties": false}, "messageActionStarGiftPurchaseOffer": {"title": "messageActionStarGiftPurchaseOffer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftPurchaseOffer"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "declined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "gift", "price", "expires_at"], "additionalProperties": false}, "messageActionStarGiftPurchaseOfferDeclined": {"title": "messageActionStarGiftPurchaseOfferDeclined", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftPurchaseOfferDeclined"]}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}}, "required": ["_", "gift", "price"], "additionalProperties": false}, "messageActionNewCreatorPending": {"title": "messageActionNewCreatorPending", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNewCreatorPending"]}, "new_creator_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "new_creator_id"], "additionalProperties": false}, "messageActionChangeCreator": {"title": "messageActionChangeCreator", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChangeCreator"]}, "new_creator_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "new_creator_id"], "additionalProperties": false}, "messageActionNoForwardsToggle": {"title": "messageActionNoForwardsToggle", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNoForwardsToggle"]}, "prev_value": {"type": "boolean", "x-tl-type": "Bool"}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "messageActionNoForwardsRequest": {"title": "messageActionNoForwardsRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNoForwardsRequest"]}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "prev_value": {"type": "boolean", "x-tl-type": "Bool"}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "messageActionPollAppendAnswer": {"title": "messageActionPollAppendAnswer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPollAppendAnswer"]}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "Тип TL: PollAnswer."}}, "required": ["_", "answer"], "additionalProperties": false}, "messageActionPollDeleteAnswer": {"title": "messageActionPollDeleteAnswer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPollDeleteAnswer"]}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "Тип TL: PollAnswer."}}, "required": ["_", "answer"], "additionalProperties": false}, "messageActionManagedBotCreated": {"title": "messageActionManagedBotCreated", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionManagedBotCreated"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "bot_id"], "additionalProperties": false}, "messageActionChangeCommunity": {"title": "messageActionChangeCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChangeCommunity"]}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_"], "additionalProperties": false}, "messageActionChatJoinedViaCommunity": {"title": "messageActionChatJoinedViaCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatJoinedViaCommunity"]}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "community_id"], "additionalProperties": false}, "messageActionGramTransfer": {"title": "messageActionGramTransfer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGramTransfer"]}, "comment_encrypted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer_address": {"type": "string", "x-tl-type": "string"}, "transaction_id": {"type": "string", "x-tl-type": "string"}, "comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "onramp_provider_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "amount", "peer_address", "transaction_id"], "additionalProperties": false}, "messageActionWalletTonConnectRequest": {"title": "messageActionWalletTonConnectRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionWalletTonConnectRequest"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "declined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "topic": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "trace_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "dapp_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "session_id", "expires"], "additionalProperties": false}, "messageActionNoPaidMessagesTokenUsed": {"title": "messageActionNoPaidMessagesTokenUsed", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNoPaidMessagesTokenUsed"]}}, "required": ["_"], "additionalProperties": false}, "messageActionStarGiftOnchainOffer": {"title": "messageActionStarGiftOnchainOffer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftOnchainOffer"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "declined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "cancelled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "settled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "buyer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "cancelling": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "offer_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "fee_bps": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "offer_address": {"type": "string", "x-tl-type": "string"}, "buyer_refund": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "fine": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.5?long"}}, "required": ["_", "offer_id", "gift", "amount", "fee_bps", "expires_at", "offer_address"], "additionalProperties": false}, "messageActionBotInvite": {"title": "messageActionBotInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBotInvite"]}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "inviter_id"], "additionalProperties": false}, "dialog": {"title": "dialog", "type": "object", "properties": {"_": {"type": "string", "enum": ["dialog"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "unread_mark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "view_forum_as_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_mentions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_poll_votes_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage.", "x-tl-flag": "flags.1?DraftMessage"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}}, "required": ["_", "peer", "top_message", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "unread_mentions_count", "unread_reactions_count", "unread_poll_votes_count", "notify_settings"], "additionalProperties": false}, "dialogFolder": {"title": "dialogFolder", "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFolder"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "folder": {"type": "object", "x-tl-type": "Folder", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["folder"]}}, "description": "Тип TL: Folder."}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_muted_peers_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_unmuted_peers_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_muted_messages_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_unmuted_messages_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "folder", "peer", "top_message", "unread_muted_peers_count", "unread_unmuted_peers_count", "unread_muted_messages_count", "unread_unmuted_messages_count"], "additionalProperties": false}, "dialogCommunity": {"title": "dialogCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogCommunity"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings."}}, "required": ["_", "community_id", "notify_settings"], "additionalProperties": false}, "photoEmpty": {"title": "photoEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "photo": {"title": "photo", "type": "object", "properties": {"_": {"type": "string", "enum": ["photo"]}, "has_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "sizes": {"type": "array", "items": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>"}, "video_sizes": {"type": "array", "items": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "Тип TL: VideoSize."}, "x-tl-type": "Vector<VideoSize>", "x-tl-flag": "flags.1?Vector<VideoSize>"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "access_hash", "file_reference", "date", "sizes", "dc_id"], "additionalProperties": false}, "photoSizeEmpty": {"title": "photoSizeEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty"]}, "type": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "type"], "additionalProperties": false}, "photoSize": {"title": "photoSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "type", "w", "h", "size"], "additionalProperties": false}, "photoCachedSize": {"title": "photoCachedSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoCachedSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "type", "w", "h", "bytes"], "additionalProperties": false}, "photoStrippedSize": {"title": "photoStrippedSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoStrippedSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "type", "bytes"], "additionalProperties": false}, "photoSizeProgressive": {"title": "photoSizeProgressive", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoSizeProgressive"]}, "type": {"type": "string", "x-tl-type": "string"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "sizes": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "type", "w", "h", "sizes"], "additionalProperties": false}, "photoPathSize": {"title": "photoPathSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoPathSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "type", "bytes"], "additionalProperties": false}, "geoPointEmpty": {"title": "geoPointEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["geoPointEmpty"]}}, "required": ["_"], "additionalProperties": false}, "geoPoint": {"title": "geoPoint", "type": "object", "properties": {"_": {"type": "string", "enum": ["geoPoint"]}, "long": {"type": "number", "format": "double", "x-tl-type": "double"}, "lat": {"type": "number", "format": "double", "x-tl-type": "double"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "accuracy_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "long", "lat", "access_hash"], "additionalProperties": false}, "auth.sentCode": {"title": "auth.sentCode", "description": "Содержит информацию об отправленном коде подтверждения.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.sentCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCode"]}, "type": {"type": "object", "x-tl-type": "auth.SentCodeType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeApp", "auth.sentCodeTypeSms", "auth.sentCodeTypeCall", "auth.sentCodeTypeFlashCall", "auth.sentCodeTypeMissedCall", "auth.sentCodeTypeEmailCode", "auth.sentCodeTypeSetUpEmailRequired", "auth.sentCodeTypeFragmentSms", "auth.sentCodeTypeFirebaseSms", "auth.sentCodeTypeSmsWord", "auth.sentCodeTypeSmsPhrase"]}}, "description": "Тип телефонного кода", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода для сохранения и последующего повторного использования с помощью [auth.signIn](https://core.telegram.org/method/auth.signIn.md)", "x-telegram-field-docs": true}, "next_type": {"type": "object", "x-tl-type": "auth.CodeType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.codeTypeSms", "auth.codeTypeCall", "auth.codeTypeFlashCall", "auth.codeTypeMissedCall", "auth.codeTypeFragmentSms"]}}, "description": "Тип телефонного кода, который будет отправлен следующим. Если телефонный код не получен в течение `timeout` секунд: для его отправки используйте [auth.resendCode](https://core.telegram.org/method/auth.resendCode.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?auth.CodeType"}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Таймаут приема телефонного кода", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}}, "required": ["_", "type", "phone_code_hash"], "additionalProperties": false}, "auth.sentCodeSuccess": {"title": "auth.sentCodeSuccess", "description": "Пользователь успешно авторизовался с использованием [будущих токенов аутентификации](https://core.telegram.org/api/auth.md#future-auth-tokens)", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.sentCodeSuccess"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeSuccess"]}, "authorization": {"type": "object", "x-tl-type": "auth.Authorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.authorization", "auth.authorizationSignUpRequired"]}}, "description": "Информация об авторизации", "x-telegram-field-docs": true}}, "required": ["_", "authorization"], "additionalProperties": false}, "auth.sentCodePaymentRequired": {"title": "auth.sentCodePaymentRequired", "description": "Официальные приложения могут получить этот конструктор, что указывает на то, что из-за высокой стоимости SMS проверочных кодов для страны/провайдера пользователя пользователю необходимо приобрести подписку [Telegram Premium](https://core.telegram.org/api/premium.md), чтобы продолжить вход/регистрацию, см. [здесь »](https://core.telegram.org/api/auth.md#paid-auth) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.sentCodePaymentRequired"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodePaymentRequired"]}, "store_product": {"type": "string", "x-tl-type": "string", "description": "Для официальных приложений вырван идентификатор подписки Telegram Premium.", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода для сохранения и последующего повторного использования с помощью [auth.signIn](https://core.telegram.org/method/auth.signIn.md)", "x-telegram-field-docs": true}, "support_email_address": {"type": "string", "x-tl-type": "string", "description": "Адрес электронной почты, по которому можно связаться для получения дополнительной информации по этому запросу.", "x-telegram-field-docs": true}, "support_email_subject": {"type": "string", "x-tl-type": "string", "description": "Обязательная тема электронного письма.", "x-telegram-field-docs": true}, "premium_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность в днях подписки [Telegram Premium](https://core.telegram.org/api/premium.md), предоставленной в результате этой покупки.", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies).", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "store_product", "phone_code_hash", "support_email_address", "support_email_subject", "premium_days", "currency", "amount"], "additionalProperties": false}, "auth.authorization": {"title": "auth.authorization", "description": "Содержит информацию об авторизации пользователя.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.authorization"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.authorization"]}, "setup_password_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Предлагает пользователю установить пароль для двухэтапной проверки, чтобы иметь возможность снова войти в систему.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "otherwise_relogin_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если и только если установлен setup_password_required и пользователь откажется установить пароль для двухэтапной проверки, он сможет снова войти в свою учетную запись через SMS только по прошествии этого количества дней.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "tmp_sessions": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество [параллельных сеансов](https://core.telegram.org/api/datacenter.md#parallel-sessions), которые клиент может открыть для основного соединения своего домашнего контроллера домена для увеличения пропускной способности; если отсутствует или `≤ 1`, необходимо использовать один основной сеанс", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "future_auth_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[будущий токен аутентификации](https://core.telegram.org/api/auth.md#future-auth-tokens)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?bytes"}, "user": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Информация об авторизованном пользователе", "x-telegram-field-docs": true}}, "required": ["_", "user"], "additionalProperties": false}, "auth.authorizationSignUpRequired": {"title": "auth.authorizationSignUpRequired", "description": "Учетной записи с этим номером телефона в Telegram не существует: пользователю необходимо [ввести основную информацию и зарегистрироваться](https://core.telegram.org/api/auth.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.authorizationSignUpRequired"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.authorizationSignUpRequired"]}, "terms_of_service": {"type": "object", "x-tl-type": "help.TermsOfService", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.termsOfService"]}}, "description": "Условия обслуживания Telegram: пользователь должен прочитать и принять условия обслуживания перед регистрацией в Telegram.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?help.TermsOfService"}}, "required": ["_"], "additionalProperties": false}, "auth.exportedAuthorization": {"title": "auth.exportedAuthorization", "description": "Данные для копирования авторизации между дата-центрами.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.exportedAuthorization"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.exportedAuthorization"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "текущий идентификатор пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "авторизует ключ", "x-telegram-field-docs": true}}, "required": ["_", "id", "bytes"], "additionalProperties": false}, "inputNotifyPeer": {"title": "inputNotifyPeer", "description": "Уведомления, созданные определенным пользователем или группой.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Пользователь или группа", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "inputNotifyUsers": {"title": "inputNotifyUsers", "description": "Уведомления, генерируемые всеми пользователями.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyUsers"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyChats": {"title": "inputNotifyChats", "description": "Уведомления, генерируемые всеми группами.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyChats"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyBroadcasts": {"title": "inputNotifyBroadcasts", "description": "Все [каналы](https://core.telegram.org/api/channel.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyBroadcasts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyBroadcasts"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyForumTopic": {"title": "inputNotifyForumTopic", "description": "Уведомления, созданные [темой](https://core.telegram.org/api/forum.md#forum-topics) на [форум](https://core.telegram.org/api/forum.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyForumTopic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyForumTopic"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Идентификатор форума", "x-telegram-field-docs": true}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор темы](https://core.telegram.org/api/forum.md#forum-topics)", "x-telegram-field-docs": true}}, "required": ["_", "peer", "top_msg_id"], "additionalProperties": false}, "inputNotifyCommunity": {"title": "inputNotifyCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyCommunity"]}, "community": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "Тип TL: InputChannel."}}, "required": ["_", "community"], "additionalProperties": false}, "inputPeerNotifySettings": {"title": "inputPeerNotifySettings", "description": "Настройки уведомлений.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerNotifySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerNotifySettings"]}, "show_previews": {"type": "boolean", "x-tl-type": "Bool", "description": "Если текст сообщения должен отображаться в уведомлении", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Bool"}, "silent": {"type": "boolean", "x-tl-type": "Bool", "description": "Пир был отключен?", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Bool"}, "mute_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата, до которой все уведомления будут отключены", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Идентификатор аудиофайла, который будет воспроизводиться для уведомлений.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?NotificationSound"}, "stories_muted": {"type": "boolean", "x-tl-type": "Bool", "description": "Следует ли отключать уведомления в историях.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Bool"}, "stories_hide_sender": {"type": "boolean", "x-tl-type": "Bool", "description": "Должно ли имя отправителя отображаться в уведомлениях истории.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Bool"}, "stories_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Идентификатор аудиофайла, который будет воспроизводиться для уведомлений истории.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?NotificationSound"}}, "required": ["_"], "additionalProperties": false}, "peerNotifySettings": {"title": "peerNotifySettings", "description": "Настройки уведомлений.", "externalDocs": {"url": "https://core.telegram.org/constructor/peerNotifySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}, "show_previews": {"type": "boolean", "x-tl-type": "Bool", "description": "(Тройное значение) Если установлено, указывает, следует ли отображать предварительный просмотр сообщений в уведомлениях; в противном случае следует использовать поведение по умолчанию.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Bool"}, "silent": {"type": "boolean", "x-tl-type": "Bool", "description": "(Трнарное значение) Если установлено, указывает, следует ли отключить или включить звук однорангового узла; в противном случае следует использовать поведение по умолчанию.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Bool"}, "mute_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Отключить все уведомления до этой даты", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "ios_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Звук уведомления для официального приложения iOS", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?NotificationSound"}, "android_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Звук уведомления для официального приложения Android", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?NotificationSound"}, "other_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Звук уведомления для других приложений", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?NotificationSound"}, "stories_muted": {"type": "boolean", "x-tl-type": "Bool", "description": "Следует ли отключать уведомления в историях.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Bool"}, "stories_hide_sender": {"type": "boolean", "x-tl-type": "Bool", "description": "Должно ли имя отправителя отображаться в уведомлениях истории.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Bool"}, "stories_ios_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Звук для уведомлений в сторис в официальном приложении iOS", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?NotificationSound"}, "stories_android_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Звук для уведомлений в сторис в официальном приложении для Android", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?NotificationSound"}, "stories_other_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Звук для уведомлений историй в других приложениях", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?NotificationSound"}}, "required": ["_"], "additionalProperties": false}, "peerSettings": {"title": "peerSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerSettings"]}, "report_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "add_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "block_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "share_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "need_contacts_exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "report_geo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "autoarchived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "invite_members": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "request_chat_broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "business_bot_paused": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "business_bot_can_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "geo_distance": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "request_chat_title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.9?string"}, "request_chat_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "business_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "business_bot_manage_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.13?string"}, "charge_paid_message_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.14?long"}, "registration_month": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.15?string"}, "phone_country": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "name_change_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "photo_change_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.18?int"}, "bot_inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.19?long"}, "bot_owner_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.20?long"}}, "required": ["_"], "additionalProperties": false}, "wallPaper": {"title": "wallPaper", "description": "Представляет [обои](https://core.telegram.org/api/wallpapers.md) на основе изображения.", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaper"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaper"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор", "x-tl-type": "long", "x-telegram-field-docs": true}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Создали ли мы эти обои", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это обоями по умолчанию", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "pattern": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это [обоями с рисунком »](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли использовать эти обои в темном режиме.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу", "x-tl-type": "long", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "Уникальный идентификатор обоев, используемый при создании [ссылок на обои](https://core.telegram.org/api/links.md#wallpaper-links) или [импорта ссылок на обои](https://core.telegram.org/api/wallpapers.md).", "x-telegram-field-docs": true}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Настоящие обои", "x-telegram-field-docs": true}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "Информация о том, как сгенерировать обои, согласно [этой инструкции»](https://core.telegram.org/api/wallpapers.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WallPaperSettings"}}, "required": ["_", "id", "access_hash", "slug", "document"], "additionalProperties": false}, "wallPaperNoFile": {"title": "wallPaperNoFile", "description": "Представляет [обои](https://core.telegram.org/api/wallpapers.md) только на основе цветов/градиентов.", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaperNoFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaperNoFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор обоев", "x-tl-type": "long", "x-telegram-field-docs": true}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это обоями по умолчанию", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли использовать эти обои в темном режиме.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "Информация о том, как создать обои.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WallPaperSettings"}}, "required": ["_", "id"], "additionalProperties": false}, "inputReportReasonSpam": {"title": "inputReportReasonSpam", "description": "Сообщить о спаме", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonSpam"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonSpam"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonViolence": {"title": "inputReportReasonViolence", "description": "Сообщить о насилии", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonViolence"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonViolence"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPornography": {"title": "inputReportReasonPornography", "description": "Сообщить о порнографии", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPornography"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPornography"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonChildAbuse": {"title": "inputReportReasonChildAbuse", "description": "Сообщить о жестоком обращении с детьми", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonChildAbuse"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonChildAbuse"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonOther": {"title": "inputReportReasonOther", "description": "Другое", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonOther"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonOther"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonCopyright": {"title": "inputReportReasonCopyright", "description": "Сообщить о контенте, защищенном авторским правом", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonCopyright"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonCopyright"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonGeoIrrelevant": {"title": "inputReportReasonGeoIrrelevant", "description": "Сообщить о нерелевантной геогруппе", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonGeoIrrelevant"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonGeoIrrelevant"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonFake": {"title": "inputReportReasonFake", "description": "Сообщить о выдаче себя за другое лицо", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonFake"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonFake"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonIllegalDrugs": {"title": "inputReportReasonIllegalDrugs", "description": "Отчет о незаконных наркотиках", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonIllegalDrugs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonIllegalDrugs"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPersonalDetails": {"title": "inputReportReasonPersonalDetails", "description": "Сообщить о разглашении личных данных", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "userFull": {"title": "userFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["userFull"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "phone_calls_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "phone_calls_private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "can_pin_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "has_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "video_calls_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "voice_messages_forbidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}, "translations_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.23?true"}, "stories_pinned_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "wallpaper_overridden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "contact_require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "read_dates_private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.30?true"}, "sponsored_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.7?true"}, "can_view_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.9?true"}, "bot_can_manage_emoji_status": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.10?true"}, "display_gifts_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.16?true"}, "noforwards_my_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.23?true"}, "noforwards_peer_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.24?true"}, "unofficial_security_risk": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.26?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "Тип TL: PeerSettings."}, "personal_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.21?Photo"}, "profile_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}, "fallback_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.22?Photo"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings."}, "bot_info": {"type": "object", "x-tl-type": "BotInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInfo"]}}, "description": "Тип TL: BotInfo.", "x-tl-flag": "flags.3?BotInfo"}, "pinned_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "common_chats_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.14?int"}, "theme": {"type": "object", "x-tl-type": "ChatTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatTheme", "chatThemeUniqueGift"]}}, "description": "Тип TL: ChatTheme.", "x-tl-flag": "flags.15?ChatTheme"}, "private_forward_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "bot_group_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.17?ChatAdminRights"}, "bot_broadcast_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.18?ChatAdminRights"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper.", "x-tl-flag": "flags.24?WallPaper"}, "stories": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "Тип TL: PeerStories.", "x-tl-flag": "flags.25?PeerStories"}, "business_work_hours": {"type": "object", "x-tl-type": "BusinessWorkHours", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessWorkHours"]}}, "description": "Тип TL: BusinessWorkHours.", "x-tl-flag": "flags2.0?BusinessWorkHours"}, "business_location": {"type": "object", "x-tl-type": "BusinessLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessLocation"]}}, "description": "Тип TL: BusinessLocation.", "x-tl-flag": "flags2.1?BusinessLocation"}, "business_greeting_message": {"type": "object", "x-tl-type": "BusinessGreetingMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessGreetingMessage"]}}, "description": "Тип TL: BusinessGreetingMessage.", "x-tl-flag": "flags2.2?BusinessGreetingMessage"}, "business_away_message": {"type": "object", "x-tl-type": "BusinessAwayMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessAwayMessage"]}}, "description": "Тип TL: BusinessAwayMessage.", "x-tl-flag": "flags2.3?BusinessAwayMessage"}, "business_intro": {"type": "object", "x-tl-type": "BusinessIntro", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessIntro"]}}, "description": "Тип TL: BusinessIntro.", "x-tl-flag": "flags2.4?BusinessIntro"}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "Тип TL: Birthday.", "x-tl-flag": "flags2.5?Birthday"}, "personal_channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.6?long"}, "personal_channel_message": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.6?int"}, "stargifts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.8?int"}, "starref_program": {"type": "object", "x-tl-type": "StarRefProgram", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starRefProgram"]}}, "description": "Тип TL: StarRefProgram.", "x-tl-flag": "flags2.11?StarRefProgram"}, "bot_verification": {"type": "object", "x-tl-type": "BotVerification", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerification"]}}, "description": "Тип TL: BotVerification.", "x-tl-flag": "flags2.12?BotVerification"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.14?long"}, "disallowed_gifts": {"type": "object", "x-tl-type": "DisallowedGiftsSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["disallowedGiftsSettings"]}}, "description": "Тип TL: DisallowedGiftsSettings.", "x-tl-flag": "flags2.15?DisallowedGiftsSettings"}, "stars_rating": {"type": "object", "x-tl-type": "StarsRating", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRating"]}}, "description": "Тип TL: StarsRating.", "x-tl-flag": "flags2.17?StarsRating"}, "stars_my_pending_rating": {"type": "object", "x-tl-type": "StarsRating", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRating"]}}, "description": "Тип TL: StarsRating.", "x-tl-flag": "flags2.18?StarsRating"}, "stars_my_pending_rating_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.18?int"}, "main_tab": {"type": "object", "x-tl-type": "ProfileTab", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["profileTabPosts", "profileTabGifts", "profileTabMedia", "profileTabFiles", "profileTabMusic", "profileTabVoice", "profileTabLinks", "profileTabGifs"]}}, "description": "Тип TL: ProfileTab.", "x-tl-flag": "flags2.20?ProfileTab"}, "saved_music": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags2.21?Document"}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags2.22?TextWithEntities"}, "bot_manager_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.25?long"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags2.19?wallet.Card"}, "share_theme": {"type": "object", "x-tl-type": "ShareTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shareThemeDefault", "shareThemeEmojiBackdrop", "shareThemeGift", "inputShareThemeGift"]}}, "description": "Тип TL: ShareTheme.", "x-tl-flag": "flags2.27?ShareTheme"}, "bot_profile_widget": {"type": "object", "x-tl-type": "BotProfileWidget", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botProfileWidget"]}}, "description": "Тип TL: BotProfileWidget.", "x-tl-flag": "flags2.28?BotProfileWidget"}}, "required": ["_", "id", "settings", "notify_settings", "common_chats_count"], "additionalProperties": false}, "contact": {"title": "contact", "type": "object", "properties": {"_": {"type": "string", "enum": ["contact"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "mutual": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "user_id", "mutual"], "additionalProperties": false}, "importedContact": {"title": "importedContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["importedContact"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id", "client_id"], "additionalProperties": false}, "contactStatus": {"title": "contactStatus", "description": "Статус контакта: онлайн/оффлайн.", "externalDocs": {"url": "https://core.telegram.org/constructor/contactStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contactStatus"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "status": {"type": "object", "x-tl-type": "UserStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth"]}}, "description": "Онлайн-статус", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "status"], "additionalProperties": false}, "contacts.contactsNotModified": {"title": "contacts.contactsNotModified", "description": "Список контактов на сервере такой же, как список на клиенте.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.contactsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.contactsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "contacts.contacts": {"title": "contacts.contacts", "description": "Список контактов текущего пользователя и информация о пользователях.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.contacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.contacts"]}, "contacts": {"type": "array", "items": {"type": "object", "x-tl-type": "Contact", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["contact"]}}, "description": "Тип TL: Contact."}, "x-tl-type": "Vector<Contact>", "description": "Список контактов", "x-telegram-field-docs": true}, "saved_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество контактов, которые были успешно сохранены", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей", "x-telegram-field-docs": true}}, "required": ["_", "contacts", "saved_count", "users"], "additionalProperties": false}, "contacts.importedContacts": {"title": "contacts.importedContacts", "description": "Информация об успешно импортированных контактах.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.importedContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.importedContacts"]}, "imported": {"type": "array", "items": {"type": "object", "x-tl-type": "ImportedContact", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["importedContact"]}}, "description": "Тип TL: ImportedContact."}, "x-tl-type": "Vector<ImportedContact>", "description": "Список успешно импортированных контактов", "x-telegram-field-docs": true}, "popular_invites": {"type": "array", "items": {"type": "object", "x-tl-type": "PopularContact", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["popularContact"]}}, "description": "Тип TL: PopularContact."}, "x-tl-type": "Vector<PopularContact>", "description": "Популярные контакты", "x-telegram-field-docs": true}, "retry_contacts": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Список идентификаторов контактов, которые не удалось импортировать из-за системных ограничений и которые необходимо будет импортировать позже.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей", "x-telegram-field-docs": true}}, "required": ["_", "imported", "popular_invites", "retry_contacts", "users"], "additionalProperties": false}, "contacts.blocked": {"title": "contacts.blocked", "description": "Полный список заблокированных пользователей.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.blocked"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.blocked"]}, "blocked": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerBlocked", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerBlocked"]}}, "description": "Тип TL: PeerBlocked."}, "x-tl-type": "Vector<PeerBlocked>", "description": "Список заблокированных пользователей", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Заблокированные чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей", "x-telegram-field-docs": true}}, "required": ["_", "blocked", "chats", "users"], "additionalProperties": false}, "contacts.blockedSlice": {"title": "contacts.blockedSlice", "description": "Неполный список заблокированных пользователей.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.blockedSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.blockedSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество элементов в списке", "x-telegram-field-docs": true}, "blocked": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerBlocked", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerBlocked"]}}, "description": "Тип TL: PeerBlocked."}, "x-tl-type": "Vector<PeerBlocked>", "description": "Список заблокированных пользователей", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Заблокированные чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей", "x-telegram-field-docs": true}}, "required": ["_", "count", "blocked", "chats", "users"], "additionalProperties": false}, "messages.dialogs": {"title": "messages.dialogs", "description": "Полный список чатов с сообщениями и вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogs"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Тип TL: Dialog."}, "x-tl-type": "Vector<Dialog>", "description": "Список чатов", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список последних сообщений из каждого чата", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список групп, упомянутых в чатах", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в сообщениях и группах", "x-telegram-field-docs": true}}, "required": ["_", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.dialogsSlice": {"title": "messages.dialogsSlice", "description": "Неполный список диалогов с сообщениями и вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogsSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogsSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество диалогов", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Тип TL: Dialog."}, "x-tl-type": "Vector<Dialog>", "description": "Список диалогов", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список последних сообщений из диалогов", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов, упомянутых в диалогах", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в сообщениях и чатах", "x-telegram-field-docs": true}}, "required": ["_", "count", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.dialogsNotModified": {"title": "messages.dialogsNotModified", "description": "Диалоги не изменились", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogsNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество диалогов, найденных на стороне сервера по запросу", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "messages.messages": {"title": "messages.messages", "description": "Полный список сообщений со вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messages"]}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список сообщений", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "[Темы форума](https://core.telegram.org/api/forum.md#forum-topics), которым принадлежат возвращенные сообщения.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов, упомянутых в диалогах", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в сообщениях и чатах", "x-telegram-field-docs": true}}, "required": ["_", "messages", "topics", "chats", "users"], "additionalProperties": false}, "messages.messagesSlice": {"title": "messages.messagesSlice", "description": "Неполный список сообщений и вспомогательных данных.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messagesSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messagesSlice"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, это означает, что результаты могут быть неточными.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество сообщений в списке", "x-telegram-field-docs": true}, "next_rate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Скорость для использования в параметре `offset_rate` при следующем вызове [messages.searchGlobal](https://core.telegram.org/method/messages.searchGlobal.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "offset_id_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Указывает абсолютную позицию `messages[0]` в общем наборе результатов с количеством `count`.  Это полезно, например, если результат был получен с помощью `offset_id`, и нам нужно отобразить счетчик `progress/total` (например, `photo 134 of 200`, для всех медиафайлов в чате мы могли бы просто использовать `photo ${offset_id_offset} of ${count}`).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "search_flood": {"type": "object", "x-tl-type": "SearchPostsFlood", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchPostsFlood"]}}, "description": "[Для глобального поиска сообщений »](https://core.telegram.org/api/search.md#posts-tab), оставшееся количество бесплатных поисков, здесь `query_is_free` относится только к текущему вызову, а не к следующему вызову с разбивкой на страницы, и все последующие вызовы с разбивкой на страницы всегда будут бесплатными.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?SearchPostsFlood"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список сообщений", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "[Темы форума](https://core.telegram.org/api/forum.md#forum-topics), которым принадлежат возвращенные сообщения.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов, упомянутых в сообщениях", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в сообщениях и чатах", "x-telegram-field-docs": true}}, "required": ["_", "count", "messages", "topics", "chats", "users"], "additionalProperties": false}, "messages.channelMessages": {"title": "messages.channelMessages", "description": "Сообщения канала", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.channelMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.channelMessages"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, возвращаемые результаты могут быть неточными.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Количество событий после генерации](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов, найденных на стороне сервера (здесь могут быть указаны не все)", "x-telegram-field-docs": true}, "offset_id_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Указывает абсолютную позицию `messages[0]` в общем наборе результатов с количеством `count`.  Это полезно, например, если результат был получен с помощью `offset_id`, и нам нужно отобразить счетчик `progress/total` (например, `photo 134 of 200`, для всех медиафайлов в чате мы могли бы просто использовать `photo ${offset_id_offset} of ${count}`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Найденные сообщения", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "[Тема форума](https://core.telegram.org/api/forum.md#forum-topics) информация", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "pts", "count", "messages", "topics", "chats", "users"], "additionalProperties": false}, "messages.messagesNotModified": {"title": "messages.messagesNotModified", "description": "Новых сообщений, соответствующих запросу, не обнаружено.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messagesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messagesNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество результатов, найденных на стороне сервера по данному запросу", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "messages.chats": {"title": "messages.chats", "description": "Список чатов со вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chats"]}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов", "x-telegram-field-docs": true}}, "required": ["_", "chats"], "additionalProperties": false}, "messages.chatsSlice": {"title": "messages.chatsSlice", "description": "Неполный список чатов, нужно будет получить больше с помощью [нумерация страниц](https://core.telegram.org/api/offsets.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatsSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatsSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов, найденных на стороне сервера (не все включены в `chats`)", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты", "x-telegram-field-docs": true}}, "required": ["_", "count", "chats"], "additionalProperties": false}, "messages.chatFull": {"title": "messages.chatFull", "description": "Полная информация о [канале](https://core.telegram.org/api/channel.md#channels), [супергруппе](https://core.telegram.org/api/channel.md#supergroups), [гигагруппе](https://core.telegram.org/api/channel.md#gigagroups) или [базовой группе](https://core.telegram.org/api/channel.md#basic-groups).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatFull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatFull"]}, "full_chat": {"type": "object", "x-tl-type": "ChatFull", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatFull", "channelFull", "communityFull"]}}, "description": "Полная информация", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "full_chat", "chats", "users"], "additionalProperties": false}, "messages.affectedHistory": {"title": "messages.affectedHistory", "description": "Затронута часть истории общения с пользователем или в чате.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.affectedHistory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.affectedHistory"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество произошедших событий в текстовом поле", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество затронутых событий", "x-telegram-field-docs": true}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если параметр содержит положительное значение, необходимо повторить вызов метода с использованием данного значения; на протяжении всей истории само значение будет постепенно уменьшаться", "x-telegram-field-docs": true}}, "required": ["_", "pts", "pts_count", "offset"], "additionalProperties": false}, "inputMessagesFilterEmpty": {"title": "inputMessagesFilterEmpty", "description": "Фильтр отсутствует.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhotos": {"title": "inputMessagesFilterPhotos", "description": "Фильтровать сообщения, содержащие фотографии.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhotos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhotos"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterVideo": {"title": "inputMessagesFilterVideo", "description": "Фильтровать сообщения, содержащие видео.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhotoVideo": {"title": "inputMessagesFilterPhotoVideo", "description": "Фильтруйте сообщения, содержащие фотографии или видео.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhotoVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhotoVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterDocument": {"title": "inputMessagesFilterDocument", "description": "Фильтровать сообщения, содержащие документы.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterDocument"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterUrl": {"title": "inputMessagesFilterUrl", "description": "Return only messages containing URLs", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterUrl"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterGif": {"title": "inputMessagesFilterGif", "description": "Return only messages containing gifs", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGif"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGif"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterVoice": {"title": "inputMessagesFilterVoice", "description": "Возвращать только сообщения, содержащие голосовые заметки", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMusic": {"title": "inputMessagesFilterMusic", "description": "Возвращать только сообщения, содержащие аудиофайлы", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterMusic"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterChatPhotos": {"title": "inputMessagesFilterChatPhotos", "description": "Вернуть только изменения фотографий в чате", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterChatPhotos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterChatPhotos"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhoneCalls": {"title": "inputMessagesFilterPhoneCalls", "description": "Возвращайте только телефонные звонки", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhoneCalls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhoneCalls"]}, "missed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Возвращайте только пропущенные телефонные звонки", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterRoundVoice": {"title": "inputMessagesFilterRoundVoice", "description": "Вернуть только круглые видео и голосовые заметки", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterRoundVideo": {"title": "inputMessagesFilterRoundVideo", "description": "Вернуть только круглые видео", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMyMentions": {"title": "inputMessagesFilterMyMentions", "description": "Возвращать только сообщения, в которых текущий пользователь был [упомянут](https://core.telegram.org/api/mentions.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterMyMentions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterMyMentions"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterGeo": {"title": "inputMessagesFilterGeo", "description": "Возвращать только сообщения, содержащие геолокацию", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGeo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGeo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterContacts": {"title": "inputMessagesFilterContacts", "description": "Возвращать только сообщения, содержащие контакты", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPinned": {"title": "inputMessagesFilterPinned", "description": "Получить только закрепленные сообщения", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPoll": {"title": "inputMessagesFilterPoll", "description": "Фильтруйте сообщения опросов, см. [поиск опросов »](https://core.telegram.org/api/poll.md#searching-for-polls)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPoll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPoll"]}}, "required": ["_"], "additionalProperties": false}, "updateNewMessage": {"title": "updateNewMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateMessageID": {"title": "updateMessageID", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageID"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "random_id"], "additionalProperties": false}, "updateDeleteMessages": {"title": "updateDeleteMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteMessages"]}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateUserTyping": {"title": "updateUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserTyping"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction"]}}, "description": "Тип TL: SendMessageAction."}}, "required": ["_", "user_id", "action"], "additionalProperties": false}, "updateChatUserTyping": {"title": "updateChatUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatUserTyping"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction"]}}, "description": "Тип TL: SendMessageAction."}}, "required": ["_", "chat_id", "from_id", "action"], "additionalProperties": false}, "updateChatParticipants": {"title": "updateChatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipants"]}, "participants": {"type": "object", "x-tl-type": "ChatParticipants", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipantsForbidden", "chatParticipants"]}}, "description": "Тип TL: ChatParticipants."}}, "required": ["_", "participants"], "additionalProperties": false}, "updateUserStatus": {"title": "updateUserStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserStatus"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "status": {"type": "object", "x-tl-type": "UserStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth"]}}, "description": "Тип TL: UserStatus."}}, "required": ["_", "user_id", "status"], "additionalProperties": false}, "updateUserName": {"title": "updateUserName", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserName"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "first_name": {"type": "string", "x-tl-type": "string"}, "last_name": {"type": "string", "x-tl-type": "string"}, "usernames": {"type": "array", "items": {"type": "object", "x-tl-type": "Username", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["username"]}}, "description": "Тип TL: Username."}, "x-tl-type": "Vector<Username>"}}, "required": ["_", "user_id", "first_name", "last_name", "usernames"], "additionalProperties": false}, "updateNewAuthorization": {"title": "updateNewAuthorization", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewAuthorization"]}, "unconfirmed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "device": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "location": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "hash"], "additionalProperties": false}, "updateNewEncryptedMessage": {"title": "updateNewEncryptedMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewEncryptedMessage"]}, "message": {"type": "object", "x-tl-type": "EncryptedMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedMessage", "encryptedMessageService"]}}, "description": "Тип TL: EncryptedMessage."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "qts"], "additionalProperties": false}, "updateEncryptedChatTyping": {"title": "updateEncryptedChatTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEncryptedChatTyping"]}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "updateEncryption": {"title": "updateEncryption", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEncryption"]}, "chat": {"type": "object", "x-tl-type": "EncryptedChat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedChatEmpty", "encryptedChatWaiting", "encryptedChatRequested", "encryptedChat", "encryptedChatDiscarded"]}}, "description": "Тип TL: EncryptedChat."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat", "date"], "additionalProperties": false}, "updateEncryptedMessagesRead": {"title": "updateEncryptedMessagesRead", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEncryptedMessagesRead"]}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "max_date", "date"], "additionalProperties": false}, "updateChatParticipantAdd": {"title": "updateChatParticipantAdd", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantAdd"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "inviter_id", "date", "version"], "additionalProperties": false}, "updateChatParticipantDelete": {"title": "updateChatParticipantDelete", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantDelete"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "version"], "additionalProperties": false}, "updateDcOptions": {"title": "updateDcOptions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDcOptions"]}, "dc_options": {"type": "array", "items": {"type": "object", "x-tl-type": "DcOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dcOption"]}}, "description": "Тип TL: DcOption."}, "x-tl-type": "Vector<DcOption>"}}, "required": ["_", "dc_options"], "additionalProperties": false}, "updateNotifySettings": {"title": "updateNotifySettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNotifySettings"]}, "peer": {"type": "object", "x-tl-type": "NotifyPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic", "notifyCommunity"]}}, "description": "Тип TL: NotifyPeer."}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings."}}, "required": ["_", "peer", "notify_settings"], "additionalProperties": false}, "updateServiceNotification": {"title": "updateServiceNotification", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateServiceNotification"]}, "popup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "inbox_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "type": {"type": "string", "x-tl-type": "string"}, "message": {"type": "string", "x-tl-type": "string"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia."}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>"}}, "required": ["_", "type", "message", "media", "entities"], "additionalProperties": false}, "updatePrivacy": {"title": "updatePrivacy", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePrivacy"]}, "key": {"type": "object", "x-tl-type": "PrivacyKey", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyKeyStatusTimestamp", "privacyKeyChatInvite", "privacyKeyPhoneCall", "privacyKeyPhoneP2P", "privacyKeyForwards", "privacyKeyProfilePhoto", "privacyKeyPhoneNumber", "privacyKeyAddedByPhone", "privacyKeyVoiceMessages", "privacyKeyAbout", "privacyKeyBirthday", "privacyKeyStarGiftsAutoSave", "privacyKeyNoPaidMessages", "privacyKeySavedMusic"]}}, "description": "Тип TL: PrivacyKey."}, "rules": {"type": "array", "items": {"type": "object", "x-tl-type": "PrivacyRule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts", "privacyValueAllowAll", "privacyValueAllowUsers", "privacyValueDisallowContacts", "privacyValueDisallowAll", "privacyValueDisallowUsers", "privacyValueAllowChatParticipants", "privacyValueDisallowChatParticipants", "privacyValueAllowCloseFriends", "privacyValueAllowPremium", "privacyValueAllowBots", "privacyValueDisallowBots"]}}, "description": "Тип TL: PrivacyRule."}, "x-tl-type": "Vector<PrivacyRule>"}}, "required": ["_", "key", "rules"], "additionalProperties": false}, "updateUserPhone": {"title": "updateUserPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserPhone"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "user_id", "phone"], "additionalProperties": false}, "updateReadHistoryInbox": {"title": "updateReadHistoryInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadHistoryInbox"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "still_unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "max_id", "still_unread_count", "pts", "pts_count"], "additionalProperties": false}, "updateReadHistoryOutbox": {"title": "updateReadHistoryOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadHistoryOutbox"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "max_id", "pts", "pts_count"], "additionalProperties": false}, "updateWebPage": {"title": "updateWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebPage"]}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "Тип TL: WebPage."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "webpage", "pts", "pts_count"], "additionalProperties": false}, "updateReadMessagesContents": {"title": "updateReadMessagesContents", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadMessagesContents"]}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateChannelTooLong": {"title": "updateChannelTooLong", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelTooLong"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "last_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "last_msg_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "updateChannel": {"title": "updateChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "updateNewChannelMessage": {"title": "updateNewChannelMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewChannelMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateReadChannelInbox": {"title": "updateReadChannelInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelInbox"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "still_unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "max_id", "still_unread_count", "pts"], "additionalProperties": false}, "updateDeleteChannelMessages": {"title": "updateDeleteChannelMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteChannelMessages"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateChannelMessageViews": {"title": "updateChannelMessageViews", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelMessageViews"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "id", "views"], "additionalProperties": false}, "updateChatParticipantAdmin": {"title": "updateChatParticipantAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantAdmin"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "is_admin": {"type": "boolean", "x-tl-type": "Bool"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "is_admin", "version"], "additionalProperties": false}, "updateNewStickerSet": {"title": "updateNewStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewStickerSet"]}, "stickerset": {"type": "object", "x-tl-type": "messages.StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messages.stickerSet", "messages.stickerSetNotModified"]}}, "description": "Тип TL: messages.StickerSet."}}, "required": ["_", "stickerset"], "additionalProperties": false}, "updateStickerSetsOrder": {"title": "updateStickerSetsOrder", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStickerSetsOrder"]}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "order": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "order"], "additionalProperties": false}, "updateStickerSets": {"title": "updateStickerSets", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStickerSets"]}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "updateSavedGifs": {"title": "updateSavedGifs", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedGifs"]}}, "required": ["_"], "additionalProperties": false}, "updateBotInlineQuery": {"title": "updateBotInlineQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotInlineQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query": {"type": "string", "x-tl-type": "string"}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint.", "x-tl-flag": "flags.0?GeoPoint"}, "peer_type": {"type": "object", "x-tl-type": "InlineQueryPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM", "inlineQueryPeerTypePM", "inlineQueryPeerTypeChat", "inlineQueryPeerTypeMegagroup", "inlineQueryPeerTypeBroadcast", "inlineQueryPeerTypeBotPM"]}}, "description": "Тип TL: InlineQueryPeerType.", "x-tl-flag": "flags.1?InlineQueryPeerType"}, "offset": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "query_id", "user_id", "query", "offset"], "additionalProperties": false}, "updateBotInlineSend": {"title": "updateBotInlineSend", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotInlineSend"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query": {"type": "string", "x-tl-type": "string"}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint.", "x-tl-flag": "flags.0?GeoPoint"}, "id": {"type": "string", "x-tl-type": "string"}, "msg_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "Тип TL: InputBotInlineMessageID.", "x-tl-flag": "flags.1?InputBotInlineMessageID"}}, "required": ["_", "user_id", "query", "id"], "additionalProperties": false}, "updateEditChannelMessage": {"title": "updateEditChannelMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditChannelMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateBotCallbackQuery": {"title": "updateBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "game_short_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "query_id", "user_id", "peer", "msg_id", "chat_instance"], "additionalProperties": false}, "updateEditMessage": {"title": "updateEditMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateInlineBotCallbackQuery": {"title": "updateInlineBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateInlineBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "msg_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "Тип TL: InputBotInlineMessageID."}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "game_short_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "query_id", "user_id", "msg_id", "chat_instance"], "additionalProperties": false}, "updateReadChannelOutbox": {"title": "updateReadChannelOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelOutbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "max_id"], "additionalProperties": false}, "updateDraftMessage": {"title": "updateDraftMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDraftMessage"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage."}}, "required": ["_", "peer", "draft"], "additionalProperties": false}, "updateReadFeaturedStickers": {"title": "updateReadFeaturedStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeaturedStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateRecentStickers": {"title": "updateRecentStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateConfig": {"title": "updateConfig", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateConfig"]}}, "required": ["_"], "additionalProperties": false}, "updatePtsChanged": {"title": "updatePtsChanged", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePtsChanged"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelWebPage": {"title": "updateChannelWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelWebPage"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "Тип TL: WebPage."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "webpage", "pts", "pts_count"], "additionalProperties": false}, "updateDialogPinned": {"title": "updateDialogPinned", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogPinned"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "peer": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "Тип TL: DialogPeer."}}, "required": ["_", "peer"], "additionalProperties": false}, "updatePinnedDialogs": {"title": "updatePinnedDialogs", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedDialogs"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "Тип TL: DialogPeer."}, "x-tl-type": "Vector<DialogPeer>", "x-tl-flag": "flags.0?Vector<DialogPeer>"}}, "required": ["_"], "additionalProperties": false}, "updateBotWebhookJSON": {"title": "updateBotWebhookJSON", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotWebhookJSON"]}, "data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}}, "required": ["_", "data"], "additionalProperties": false}, "updateBotWebhookJSONQuery": {"title": "updateBotWebhookJSONQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotWebhookJSONQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "query_id", "data", "timeout"], "additionalProperties": false}, "updateBotShippingQuery": {"title": "updateBotShippingQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotShippingQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "shipping_address": {"type": "object", "x-tl-type": "PostAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["postAddress"]}}, "description": "Тип TL: PostAddress."}}, "required": ["_", "query_id", "user_id", "payload", "shipping_address"], "additionalProperties": false}, "updateBotPrecheckoutQuery": {"title": "updateBotPrecheckoutQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotPrecheckoutQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Тип TL: PaymentRequestedInfo.", "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "query_id", "user_id", "payload", "currency", "total_amount"], "additionalProperties": false}, "updatePhoneCall": {"title": "updatePhoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePhoneCall"]}, "phone_call": {"type": "object", "x-tl-type": "PhoneCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty", "phoneCallWaiting", "phoneCallRequested", "phoneCallAccepted", "phoneCall", "phoneCallDiscarded"]}}, "description": "Тип TL: PhoneCall."}}, "required": ["_", "phone_call"], "additionalProperties": false}, "updateLangPackTooLong": {"title": "updateLangPackTooLong", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLangPackTooLong"]}, "lang_code": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "lang_code"], "additionalProperties": false}, "updateLangPack": {"title": "updateLangPack", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLangPack"]}, "difference": {"type": "object", "x-tl-type": "LangPackDifference", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["langPackDifference"]}}, "description": "Тип TL: LangPackDifference."}}, "required": ["_", "difference"], "additionalProperties": false}, "updateFavedStickers": {"title": "updateFavedStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateFavedStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelReadMessagesContents": {"title": "updateChannelReadMessagesContents", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelReadMessagesContents"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "channel_id", "messages"], "additionalProperties": false}, "updateContactsReset": {"title": "updateContactsReset", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateContactsReset"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelAvailableMessages": {"title": "updateChannelAvailableMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelAvailableMessages"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "available_min_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "available_min_id"], "additionalProperties": false}, "updateDialogUnreadMark": {"title": "updateDialogUnreadMark", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogUnreadMark"]}, "unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "Тип TL: DialogPeer."}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateMessagePoll": {"title": "updateMessagePoll", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessagePoll"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "poll_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "poll": {"type": "object", "x-tl-type": "Poll", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["poll"]}}, "description": "Тип TL: Poll.", "x-tl-flag": "flags.0?Poll"}, "results": {"type": "object", "x-tl-type": "PollResults", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollResults"]}}, "description": "Тип TL: PollResults."}}, "required": ["_", "poll_id", "results"], "additionalProperties": false}, "updateChatDefaultBannedRights": {"title": "updateChatDefaultBannedRights", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatDefaultBannedRights"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "default_banned_rights", "version"], "additionalProperties": false}, "updateFolderPeers": {"title": "updateFolderPeers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateFolderPeers"]}, "folder_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "FolderPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["folderPeer"]}}, "description": "Тип TL: FolderPeer."}, "x-tl-type": "Vector<FolderPeer>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "folder_peers", "pts", "pts_count"], "additionalProperties": false}, "updatePeerSettings": {"title": "updatePeerSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerSettings"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "Тип TL: PeerSettings."}}, "required": ["_", "peer", "settings"], "additionalProperties": false}, "updatePeerLocated": {"title": "updatePeerLocated", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerLocated"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerLocated", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerLocated", "peerSelfLocated"]}}, "description": "Тип TL: PeerLocated."}, "x-tl-type": "Vector<PeerLocated>"}}, "required": ["_", "peers"], "additionalProperties": false}, "updateNewScheduledMessage": {"title": "updateNewScheduledMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewScheduledMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteScheduledMessages": {"title": "updateDeleteScheduledMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteScheduledMessages"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "sent_messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>"}}, "required": ["_", "peer", "messages"], "additionalProperties": false}, "updateTheme": {"title": "updateTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateTheme"]}, "theme": {"type": "object", "x-tl-type": "Theme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["theme"]}}, "description": "Тип TL: Theme."}}, "required": ["_", "theme"], "additionalProperties": false}, "updateGeoLiveViewed": {"title": "updateGeoLiveViewed", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGeoLiveViewed"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id"], "additionalProperties": false}, "updateLoginToken": {"title": "updateLoginToken", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLoginToken"]}}, "required": ["_"], "additionalProperties": false}, "updateMessagePollVote": {"title": "updateMessagePollVote", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessagePollVote"]}, "poll_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "options": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>"}, "positions": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "poll_id", "peer", "options", "positions", "qts"], "additionalProperties": false}, "updateDialogFilter": {"title": "updateDialogFilter", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogFilter"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "filter": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "Тип TL: DialogFilter.", "x-tl-flag": "flags.0?DialogFilter"}}, "required": ["_", "id"], "additionalProperties": false}, "updateDialogFilterOrder": {"title": "updateDialogFilterOrder", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogFilterOrder"]}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "order"], "additionalProperties": false}, "updateDialogFilters": {"title": "updateDialogFilters", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogFilters"]}}, "required": ["_"], "additionalProperties": false}, "updatePhoneCallSignalingData": {"title": "updatePhoneCallSignalingData", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePhoneCallSignalingData"]}, "phone_call_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "phone_call_id", "data"], "additionalProperties": false}, "updateChannelMessageForwards": {"title": "updateChannelMessageForwards", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelMessageForwards"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "id", "forwards"], "additionalProperties": false}, "updateReadChannelDiscussionInbox": {"title": "updateReadChannelDiscussionInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelDiscussionInbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "broadcast_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "broadcast_post": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "channel_id", "top_msg_id", "read_max_id"], "additionalProperties": false}, "updateReadChannelDiscussionOutbox": {"title": "updateReadChannelDiscussionOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelDiscussionOutbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "top_msg_id", "read_max_id"], "additionalProperties": false}, "updatePeerBlocked": {"title": "updatePeerBlocked", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerBlocked"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}}, "required": ["_", "peer_id"], "additionalProperties": false}, "updateChannelUserTyping": {"title": "updateChannelUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelUserTyping"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction"]}}, "description": "Тип TL: SendMessageAction."}}, "required": ["_", "channel_id", "from_id", "action"], "additionalProperties": false}, "updatePinnedMessages": {"title": "updatePinnedMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedMessages"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "messages", "pts", "pts_count"], "additionalProperties": false}, "updatePinnedChannelMessages": {"title": "updatePinnedChannelMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedChannelMessages"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateChat": {"title": "updateChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "updateGroupCallParticipants": {"title": "updateGroupCallParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallParticipants"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}, "x-tl-type": "Vector<GroupCallParticipant>"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "call", "participants", "version"], "additionalProperties": false}, "updateGroupCall": {"title": "updateGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCall"]}, "live_story": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}, "call": {"type": "object", "x-tl-type": "GroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDiscarded", "groupCall"]}}, "description": "Тип TL: GroupCall."}}, "required": ["_", "call"], "additionalProperties": false}, "updatePeerHistoryTTL": {"title": "updatePeerHistoryTTL", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerHistoryTTL"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateChatParticipant": {"title": "updateChatParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipant"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "actor_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "prev_participant": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant.", "x-tl-flag": "flags.0?ChatParticipant"}, "new_participant": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant.", "x-tl-flag": "flags.1?ChatParticipant"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite.", "x-tl-flag": "flags.2?ExportedChatInvite"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "date", "actor_id", "user_id", "qts"], "additionalProperties": false}, "updateChannelParticipant": {"title": "updateChannelParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelParticipant"]}, "via_chatlist": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "actor_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant.", "x-tl-flag": "flags.0?ChannelParticipant"}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant.", "x-tl-flag": "flags.1?ChannelParticipant"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite.", "x-tl-flag": "flags.2?ExportedChatInvite"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "date", "actor_id", "user_id", "qts"], "additionalProperties": false}, "updateBotStopped": {"title": "updateBotStopped", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotStopped"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "stopped": {"type": "boolean", "x-tl-type": "Bool"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "date", "stopped", "qts"], "additionalProperties": false}, "updateGroupCallConnection": {"title": "updateGroupCallConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallConnection"]}, "presentation": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "params": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}}, "required": ["_", "params"], "additionalProperties": false}, "updateBotCommands": {"title": "updateBotCommands", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotCommands"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "commands": {"type": "array", "items": {"type": "object", "x-tl-type": "BotCommand", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botCommand"]}}, "description": "Тип TL: BotCommand."}, "x-tl-type": "Vector<BotCommand>"}}, "required": ["_", "peer", "bot_id", "commands"], "additionalProperties": false}, "updatePendingJoinRequests": {"title": "updatePendingJoinRequests", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePendingJoinRequests"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "recent_requesters": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "peer", "requests_pending", "recent_requesters"], "additionalProperties": false}, "updateBotChatInviteRequester": {"title": "updateBotChatInviteRequester", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotChatInviteRequester"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "peer", "date", "user_id", "about", "invite", "qts"], "additionalProperties": false}, "updateMessageReactions": {"title": "updateMessageReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageReactions"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "Тип TL: MessageReactions."}}, "required": ["_", "peer", "msg_id", "reactions"], "additionalProperties": false}, "updateAttachMenuBots": {"title": "updateAttachMenuBots", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAttachMenuBots"]}}, "required": ["_"], "additionalProperties": false}, "updateWebViewResultSent": {"title": "updateWebViewResultSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebViewResultSent"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "query_id"], "additionalProperties": false}, "updateBotMenuButton": {"title": "updateBotMenuButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotMenuButton"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "button": {"type": "object", "x-tl-type": "BotMenuButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botMenuButtonDefault", "botMenuButtonCommands", "botMenuButton"]}}, "description": "Тип TL: BotMenuButton."}}, "required": ["_", "bot_id", "button"], "additionalProperties": false}, "updateSavedRingtones": {"title": "updateSavedRingtones", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedRingtones"]}}, "required": ["_"], "additionalProperties": false}, "updateTranscribedAudio": {"title": "updateTranscribedAudio", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateTranscribedAudio"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "peer", "msg_id", "transcription_id", "text"], "additionalProperties": false}, "updateReadFeaturedEmojiStickers": {"title": "updateReadFeaturedEmojiStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeaturedEmojiStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateUserEmojiStatus": {"title": "updateUserEmojiStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserEmojiStatus"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}}, "required": ["_", "user_id", "emoji_status"], "additionalProperties": false}, "updateRecentEmojiStatuses": {"title": "updateRecentEmojiStatuses", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentEmojiStatuses"]}}, "required": ["_"], "additionalProperties": false}, "updateRecentReactions": {"title": "updateRecentReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentReactions"]}}, "required": ["_"], "additionalProperties": false}, "updateMoveStickerSetToTop": {"title": "updateMoveStickerSetToTop", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMoveStickerSetToTop"]}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "stickerset": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "stickerset"], "additionalProperties": false}, "updateMessageExtendedMedia": {"title": "updateMessageExtendedMedia", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageExtendedMedia"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageExtendedMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview", "messageExtendedMedia"]}}, "description": "Тип TL: MessageExtendedMedia."}, "x-tl-type": "Vector<MessageExtendedMedia>"}}, "required": ["_", "peer", "msg_id", "extended_media"], "additionalProperties": false}, "updateUser": {"title": "updateUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "updateAutoSaveSettings": {"title": "updateAutoSaveSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAutoSaveSettings"]}}, "required": ["_"], "additionalProperties": false}, "updateStory": {"title": "updateStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer", "story"], "additionalProperties": false}, "updateReadStories": {"title": "updateReadStories", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadStories"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "max_id"], "additionalProperties": false}, "updateStoryID": {"title": "updateStoryID", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStoryID"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "random_id"], "additionalProperties": false}, "updateStoriesStealthMode": {"title": "updateStoriesStealthMode", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStoriesStealthMode"]}, "stealth_mode": {"type": "object", "x-tl-type": "StoriesStealthMode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}}, "description": "Тип TL: StoriesStealthMode."}}, "required": ["_", "stealth_mode"], "additionalProperties": false}, "updateSentStoryReaction": {"title": "updateSentStoryReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSentStoryReaction"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}}, "required": ["_", "peer", "story_id", "reaction"], "additionalProperties": false}, "updateBotChatBoost": {"title": "updateBotChatBoost", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotChatBoost"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "boost": {"type": "object", "x-tl-type": "Boost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["boost"]}}, "description": "Тип TL: Boost."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "boost", "qts"], "additionalProperties": false}, "updateChannelViewForumAsMessages": {"title": "updateChannelViewForumAsMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelViewForumAsMessages"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "enabled": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "channel_id", "enabled"], "additionalProperties": false}, "updatePeerWallpaper": {"title": "updatePeerWallpaper", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerWallpaper"]}, "wallpaper_overridden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper.", "x-tl-flag": "flags.0?WallPaper"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateBotMessageReaction": {"title": "updateBotMessageReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotMessageReaction"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "actor": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "old_reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}, "x-tl-type": "Vector<Reaction>"}, "new_reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}, "x-tl-type": "Vector<Reaction>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id", "date", "actor", "old_reactions", "new_reactions", "qts"], "additionalProperties": false}, "updateBotMessageReactions": {"title": "updateBotMessageReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotMessageReactions"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "ReactionCount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionCount"]}}, "description": "Тип TL: ReactionCount."}, "x-tl-type": "Vector<ReactionCount>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id", "date", "reactions", "qts"], "additionalProperties": false}, "updateSavedDialogPinned": {"title": "updateSavedDialogPinned", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedDialogPinned"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "Тип TL: DialogPeer."}}, "required": ["_", "peer"], "additionalProperties": false}, "updatePinnedSavedDialogs": {"title": "updatePinnedSavedDialogs", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedSavedDialogs"]}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "Тип TL: DialogPeer."}, "x-tl-type": "Vector<DialogPeer>", "x-tl-flag": "flags.0?Vector<DialogPeer>"}}, "required": ["_"], "additionalProperties": false}, "updateSavedReactionTags": {"title": "updateSavedReactionTags", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedReactionTags"]}}, "required": ["_"], "additionalProperties": false}, "updateSmsJob": {"title": "updateSmsJob", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSmsJob"]}, "job_id": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "job_id"], "additionalProperties": false}, "updateQuickReplies": {"title": "updateQuickReplies", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateQuickReplies"]}, "quick_replies": {"type": "array", "items": {"type": "object", "x-tl-type": "QuickReply", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["quickReply"]}}, "description": "Тип TL: QuickReply."}, "x-tl-type": "Vector<QuickReply>"}}, "required": ["_", "quick_replies"], "additionalProperties": false}, "updateNewQuickReply": {"title": "updateNewQuickReply", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewQuickReply"]}, "quick_reply": {"type": "object", "x-tl-type": "QuickReply", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["quickReply"]}}, "description": "Тип TL: QuickReply."}}, "required": ["_", "quick_reply"], "additionalProperties": false}, "updateDeleteQuickReply": {"title": "updateDeleteQuickReply", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteQuickReply"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id"], "additionalProperties": false}, "updateQuickReplyMessage": {"title": "updateQuickReplyMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateQuickReplyMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteQuickReplyMessages": {"title": "updateDeleteQuickReplyMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteQuickReplyMessages"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "shortcut_id", "messages"], "additionalProperties": false}, "updateBotBusinessConnect": {"title": "updateBotBusinessConnect", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotBusinessConnect"]}, "connection": {"type": "object", "x-tl-type": "BotBusinessConnection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botBusinessConnection"]}}, "description": "Тип TL: BotBusinessConnection."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection", "qts"], "additionalProperties": false}, "updateBotNewBusinessMessage": {"title": "updateBotNewBusinessMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotNewBusinessMessage"]}, "connection_id": {"type": "string", "x-tl-type": "string"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message.", "x-tl-flag": "flags.0?Message"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "message", "qts"], "additionalProperties": false}, "updateBotEditBusinessMessage": {"title": "updateBotEditBusinessMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotEditBusinessMessage"]}, "connection_id": {"type": "string", "x-tl-type": "string"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message.", "x-tl-flag": "flags.0?Message"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "message", "qts"], "additionalProperties": false}, "updateBotDeleteBusinessMessage": {"title": "updateBotDeleteBusinessMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotDeleteBusinessMessage"]}, "connection_id": {"type": "string", "x-tl-type": "string"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "peer", "messages", "qts"], "additionalProperties": false}, "updateNewStoryReaction": {"title": "updateNewStoryReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewStoryReaction"]}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}}, "required": ["_", "story_id", "peer", "reaction"], "additionalProperties": false}, "updateStarsBalance": {"title": "updateStarsBalance", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarsBalance"]}, "balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}}, "required": ["_", "balance"], "additionalProperties": false}, "updateBusinessBotCallbackQuery": {"title": "updateBusinessBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBusinessBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "connection_id": {"type": "string", "x-tl-type": "string"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message.", "x-tl-flag": "flags.2?Message"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}}, "required": ["_", "query_id", "user_id", "connection_id", "message", "chat_instance"], "additionalProperties": false}, "updateStarsRevenueStatus": {"title": "updateStarsRevenueStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarsRevenueStatus"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "status": {"type": "object", "x-tl-type": "StarsRevenueStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRevenueStatus"]}}, "description": "Тип TL: StarsRevenueStatus."}}, "required": ["_", "peer", "status"], "additionalProperties": false}, "updateBotPurchasedPaidMedia": {"title": "updateBotPurchasedPaidMedia", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotPurchasedPaidMedia"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "x-tl-type": "string"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "payload", "qts"], "additionalProperties": false}, "updatePaidReactionPrivacy": {"title": "updatePaidReactionPrivacy", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePaidReactionPrivacy"]}, "private": {"type": "object", "x-tl-type": "PaidReactionPrivacy", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyDefault", "paidReactionPrivacyAnonymous", "paidReactionPrivacyPeer"]}}, "description": "Тип TL: PaidReactionPrivacy."}}, "required": ["_", "private"], "additionalProperties": false}, "updateSentPhoneCode": {"title": "updateSentPhoneCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSentPhoneCode"]}, "sent_code": {"type": "object", "x-tl-type": "auth.SentCode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired"]}}, "description": "Тип TL: auth.SentCode."}}, "required": ["_", "sent_code"], "additionalProperties": false}, "updateGroupCallChainBlocks": {"title": "updateGroupCallChainBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallChainBlocks"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "sub_chain_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "blocks": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>"}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "call", "sub_chain_id", "blocks", "next_offset"], "additionalProperties": false}, "updateReadMonoForumInbox": {"title": "updateReadMonoForumInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadMonoForumInbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "saved_peer_id", "read_max_id"], "additionalProperties": false}, "updateReadMonoForumOutbox": {"title": "updateReadMonoForumOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadMonoForumOutbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "saved_peer_id", "read_max_id"], "additionalProperties": false}, "updateMonoForumNoPaidException": {"title": "updateMonoForumNoPaidException", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMonoForumNoPaidException"]}, "exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}}, "required": ["_", "channel_id", "saved_peer_id"], "additionalProperties": false}, "updateGroupCallMessage": {"title": "updateGroupCallMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallMessage"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "message": {"type": "object", "x-tl-type": "GroupCallMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallMessage"]}}, "description": "Тип TL: GroupCallMessage."}}, "required": ["_", "call", "message"], "additionalProperties": false}, "updateGroupCallEncryptedMessage": {"title": "updateGroupCallEncryptedMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallEncryptedMessage"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "encrypted_message": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "call", "from_id", "encrypted_message"], "additionalProperties": false}, "updatePinnedForumTopic": {"title": "updatePinnedForumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedForumTopic"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "topic_id"], "additionalProperties": false}, "updatePinnedForumTopics": {"title": "updatePinnedForumTopics", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedForumTopics"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateDeleteGroupCallMessages": {"title": "updateDeleteGroupCallMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteGroupCallMessages"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "call", "messages"], "additionalProperties": false}, "updateStarGiftAuctionState": {"title": "updateStarGiftAuctionState", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarGiftAuctionState"]}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "state": {"type": "object", "x-tl-type": "StarGiftAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified", "starGiftAuctionState", "starGiftAuctionStateFinished"]}}, "description": "Тип TL: StarGiftAuctionState."}}, "required": ["_", "gift_id", "state"], "additionalProperties": false}, "updateStarGiftAuctionUserState": {"title": "updateStarGiftAuctionUserState", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarGiftAuctionUserState"]}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_state": {"type": "object", "x-tl-type": "StarGiftAuctionUserState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}}, "description": "Тип TL: StarGiftAuctionUserState."}}, "required": ["_", "gift_id", "user_state"], "additionalProperties": false}, "updateEmojiGameInfo": {"title": "updateEmojiGameInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEmojiGameInfo"]}, "info": {"type": "object", "x-tl-type": "messages.EmojiGameInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messages.emojiGameUnavailable", "messages.emojiGameDiceInfo"]}}, "description": "Тип TL: messages.EmojiGameInfo."}}, "required": ["_", "info"], "additionalProperties": false}, "updateStarGiftCraftFail": {"title": "updateStarGiftCraftFail", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarGiftCraftFail"]}}, "required": ["_"], "additionalProperties": false}, "updateChatParticipantRank": {"title": "updateChatParticipantRank", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantRank"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rank": {"type": "string", "x-tl-type": "string"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "rank", "version"], "additionalProperties": false}, "updateManagedBot": {"title": "updateManagedBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateManagedBot"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "bot_id", "qts"], "additionalProperties": false}, "updateBotGuestChatQuery": {"title": "updateBotGuestChatQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotGuestChatQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reference_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "x-tl-flag": "flags.0?Vector<Message>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "query_id", "message", "qts"], "additionalProperties": false}, "updateAiComposeTones": {"title": "updateAiComposeTones", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAiComposeTones"]}}, "required": ["_"], "additionalProperties": false}, "updateJoinChatWebViewDecision": {"title": "updateJoinChatWebViewDecision", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateJoinChatWebViewDecision"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "result": {"type": "object", "x-tl-type": "JoinChatBotResult", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["joinChatBotResultApproved", "joinChatBotResultDeclined", "joinChatBotResultQueued", "joinChatBotResultWebView"]}}, "description": "Тип TL: JoinChatBotResult."}}, "required": ["_", "peer", "query_id", "result"], "additionalProperties": false}, "updateNewBotConnection": {"title": "updateNewBotConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewBotConnection"]}, "confirmed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "device": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "location": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "bot_id"], "additionalProperties": false}, "updateWebBrowserSettings": {"title": "updateWebBrowserSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebBrowserSettings"]}, "open_external_browser": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "display_close_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "updateWebBrowserException": {"title": "updateWebBrowserException", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebBrowserException"]}, "delete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "open_external_browser": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}, "exception": {"type": "object", "x-tl-type": "WebDomainException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDomainException"]}}, "description": "Тип TL: WebDomainException."}}, "required": ["_", "exception"], "additionalProperties": false}, "updateNewEphemeralMessage": {"title": "updateNewEphemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewEphemeralMessage"]}, "message": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteEphemeralMessages": {"title": "updateDeleteEphemeralMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteEphemeralMessages"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "ids": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "peer", "ids"], "additionalProperties": false}, "updateEditEphemeralMessage": {"title": "updateEditEphemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditEphemeralMessage"]}, "message": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}}, "required": ["_", "message"], "additionalProperties": false}, "updateEphemeralBotCallbackQuery": {"title": "updateEphemeralBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEphemeralBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "message": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}}, "required": ["_", "query_id", "user_id", "msg_id", "data", "message"], "additionalProperties": false}, "updateBotStarsSubscription": {"title": "updateBotStarsSubscription", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotStarsSubscription"]}, "canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "payment_failed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "restored": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "payload", "qts"], "additionalProperties": false}, "updateWalletState": {"title": "updateWalletState", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletState"]}, "state": {"type": "object", "x-tl-type": "WalletState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletStateEmpty", "walletState"]}}, "description": "Тип TL: WalletState."}}, "required": ["_", "state"], "additionalProperties": false}, "updateSentWalletTransaction": {"title": "updateSentWalletTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSentWalletTransaction"]}, "gasless": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "msg_hash": {"type": "string", "x-tl-type": "string"}, "transaction": {"type": "object", "x-tl-type": "WalletTransaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletTransaction"]}}, "description": "Тип TL: WalletTransaction.", "x-tl-flag": "flags.1?WalletTransaction"}}, "required": ["_", "msg_hash"], "additionalProperties": false}, "updateWalletGaslessInfo": {"title": "updateWalletGaslessInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletGaslessInfo"]}, "available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reset_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "min_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "relayer_address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "left", "reset_at", "min_amount", "relayer_address"], "additionalProperties": false}, "updateWalletTonConnectSession": {"title": "updateWalletTonConnectSession", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletTonConnectSession"]}, "session": {"type": "object", "x-tl-type": "TonConnectSession", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}}, "description": "Тип TL: TonConnectSession."}}, "required": ["_", "session"], "additionalProperties": false}, "updateWalletTonConnectPendingDisconnect": {"title": "updateWalletTonConnectPendingDisconnect", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletTonConnectPendingDisconnect"]}, "session_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "session_ids"], "additionalProperties": false}, "updateEditForumTopic": {"title": "updateEditForumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditForumTopic"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "closed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool"}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}}, "required": ["_", "peer", "topic_id"], "additionalProperties": false}, "updateBotWidgetQuery": {"title": "updateBotWidgetQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotWidgetQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData", "widgetQueryTypeSignData", "widgetQueryTypeSentTransaction"]}}, "description": "Тип TL: WidgetQueryType."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_type": {"type": "string", "x-tl-type": "string"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags.1?wallet.Card"}}, "required": ["_", "query_id", "query_type", "user_id", "peer", "msg_id", "chat_instance", "chat_type", "data"], "additionalProperties": false}, "updateInlineBotWidgetQuery": {"title": "updateInlineBotWidgetQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateInlineBotWidgetQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData", "widgetQueryTypeSignData", "widgetQueryTypeSentTransaction"]}}, "description": "Тип TL: WidgetQueryType."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inline_message_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "Тип TL: InputBotInlineMessageID."}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_type": {"type": "string", "x-tl-type": "string"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags.1?wallet.Card"}}, "required": ["_", "query_id", "query_type", "user_id", "inline_message_id", "chat_instance", "chat_type", "data"], "additionalProperties": false}, "updateBotWidgetCopyQuery": {"title": "updateBotWidgetCopyQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotWidgetCopyQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData", "widgetQueryTypeSignData", "widgetQueryTypeSentTransaction"]}}, "description": "Тип TL: WidgetQueryType."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags.1?wallet.Card"}}, "required": ["_", "query_id", "query_type", "user_id", "data", "widget_id"], "additionalProperties": false}, "updateMessageWidgetData": {"title": "updateMessageWidgetData", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageWidgetData"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id", "pts", "pts_count"], "additionalProperties": false}, "updateTranscribedAudioFile": {"title": "updateTranscribedAudioFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateTranscribedAudioFile"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "transcription_id", "text"], "additionalProperties": false}, "updateBotProfileWidgetQuery": {"title": "updateBotProfileWidgetQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotProfileWidgetQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData", "widgetQueryTypeSignData", "widgetQueryTypeSentTransaction"]}}, "description": "Тип TL: WidgetQueryType."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags.0?wallet.Card"}}, "required": ["_", "query_id", "query_type", "user_id", "data"], "additionalProperties": false}, "updateBotProfileWidgetData": {"title": "updateBotProfileWidgetData", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotProfileWidgetData"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_data": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "bot_id", "chat_data"], "additionalProperties": false}, "updateBotProfileWidget": {"title": "updateBotProfileWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotProfileWidget"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "widget": {"type": "object", "x-tl-type": "BotProfileWidget", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botProfileWidget"]}}, "description": "Тип TL: BotProfileWidget.", "x-tl-flag": "flags.0?BotProfileWidget"}}, "required": ["_", "bot_id"], "additionalProperties": false}, "updateReadFeed": {"title": "updateReadFeed", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeed"]}, "filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition."}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "unread_muted_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "filter_id", "max_position"], "additionalProperties": false}, "updates.state": {"title": "updates.state", "description": "Состояние обновлений.", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.state"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.state"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество произошедших событий в текстовом поле", "x-telegram-field-docs": true}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Позиция в череде обновлений в секретных чатах. Более подробную информацию можно найти в статье [секретные чаты](https://core.telegram.org/api/end-to-end.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата состояния", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество отправленных обновлений", "x-telegram-field-docs": true}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество непрочитанных сообщений", "x-telegram-field-docs": true}}, "required": ["_", "pts", "qts", "date", "seq", "unread_count"], "additionalProperties": false}, "updates.differenceEmpty": {"title": "updates.differenceEmpty", "description": "Никаких событий.", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.differenceEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.differenceEmpty"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущая дата", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество отправленных обновлений", "x-telegram-field-docs": true}}, "required": ["_", "date", "seq"], "additionalProperties": false}, "updates.difference": {"title": "updates.difference", "description": "Полный список произошедших событий.", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.difference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.difference"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "new_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список новых сообщений", "x-telegram-field-docs": true}, "new_encrypted_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "EncryptedMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedMessage", "encryptedMessageService"]}}, "description": "Тип TL: EncryptedMessage."}, "x-tl-type": "Vector<EncryptedMessage>", "description": "Список новых зашифрованных сообщений секретного чата", "x-telegram-field-docs": true}, "other_updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "Список обновлений", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов, упомянутых в событиях", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в событиях", "x-telegram-field-docs": true}, "state": {"type": "object", "x-tl-type": "updates.State", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updates.state"]}}, "description": "Текущее состояние", "x-telegram-field-docs": true}}, "required": ["_", "new_messages", "new_encrypted_messages", "other_updates", "chats", "users", "state"], "additionalProperties": false}, "updates.differenceSlice": {"title": "updates.differenceSlice", "description": "Неполный список произошедших событий.", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.differenceSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.differenceSlice"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "new_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список новых сообщений", "x-telegram-field-docs": true}, "new_encrypted_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "EncryptedMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedMessage", "encryptedMessageService"]}}, "description": "Тип TL: EncryptedMessage."}, "x-tl-type": "Vector<EncryptedMessage>", "description": "Новые сообщения из [зашифрованной последовательности событий](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "other_updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "Список обновлений", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов, упомянутых в событиях", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в событиях", "x-telegram-field-docs": true}, "intermediate_state": {"type": "object", "x-tl-type": "updates.State", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updates.state"]}}, "description": "Промежуточное состояние", "x-telegram-field-docs": true}}, "required": ["_", "new_messages", "new_encrypted_messages", "other_updates", "chats", "users", "intermediate_state"], "additionalProperties": false}, "updates.differenceTooLong": {"title": "updates.differenceTooLong", "description": "Разница составляет [слишком долго](https://core.telegram.org/api/updates.md#recovering-gaps), и указанное состояние необходимо использовать для повторной загрузки обновлений.", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.differenceTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.differenceTooLong"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новое состояние для использования.", "x-telegram-field-docs": true}}, "required": ["_", "pts"], "additionalProperties": false}, "updatesTooLong": {"title": "updatesTooLong", "description": "Количество обновлений в очереди в общем окне сообщений слишком велико для пассивной доставки через сокет. Вызовите [updates.getDifference](https://core.telegram.org/method/updates.getDifference.md), чтобы получить разницу, как указано в [документации »](https://core.telegram.org/api/updates.md).\n\n**Не** обязательно указывает на то, что [достигнут предел размера окна сообщения](https://core.telegram.org/api/updates.md#recovering-gaps-for-very-old-messages), он просто указывает на то, что количество обновлений в очереди в окне сообщения слишком велико для пассивной доставки через сокет.", "externalDocs": {"url": "https://core.telegram.org/constructor/updatesTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updatesTooLong"]}}, "required": ["_"], "additionalProperties": false}, "updateShortMessage": {"title": "updateShortMessage", "description": "Информация о сообщении, отправленном (полученном) другому пользователю", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShortMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShortMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли сообщение исходящим", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Были ли мы упомянуты в сообщении", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Есть ли в этом сообщении **непрочитанные** упоминания.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если это правда, сообщение является беззвучным сообщением, никакие уведомления не должны активироваться.", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор отправителя (если `outgoing` будет идентификатором пункта назначения) сообщения.", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS считать](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[дата](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "fwd_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "Информация о пересылаемом сообщении", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?MessageFwdHeader"}, "via_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Информация о встроенном боте, использованном для создания этого сообщения.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?long"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Ответ и информация о [теме](https://core.telegram.org/api/threads.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?MessageReplyHeader"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Entities](https://core.telegram.org/api/entities.md) для стилизованного текста", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Vector<MessageEntity>"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни сообщения, как только наступит message.date+message.ttl_period === time(), сообщение будет удалено на сервере, а также должно быть удалено локально.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "user_id", "message", "pts", "pts_count", "date"], "additionalProperties": false}, "updateShortChatMessage": {"title": "updateShortChatMessage", "description": "Сокращенный конструктор, содержащий информацию об одном новом входящем текстовом сообщении из чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShortChatMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShortChatMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли сообщение исходящим", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Были ли мы упомянуты в этом сообщении", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Содержит ли сообщение **непрочитанные** упоминания.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если это правда, сообщение является беззвучным сообщением, никакие уведомления не должны активироваться.", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}, "from_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор отправителя сообщения", "x-tl-type": "long", "x-telegram-field-docs": true}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ID чата, куда было отправлено сообщение", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS считать](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[дата](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "fwd_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "Информация о пересылаемом сообщении", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?MessageFwdHeader"}, "via_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Информация о встроенном боте, использованном для создания этого сообщения.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?long"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Информация об ответе (теме)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?MessageReplyHeader"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Entities](https://core.telegram.org/api/entities.md) для стилизованного текста", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Vector<MessageEntity>"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни сообщения, как только наступит updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), сообщение будет удалено на сервере, а также должно быть удалено локально.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "from_id", "chat_id", "message", "pts", "pts_count", "date"], "additionalProperties": false}, "updateShort": {"title": "updateShort", "description": "Сокращенный конструктор, содержащий информацию об одном обновлении, не требующий вспомогательных данных.", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShort"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShort"]}, "update": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Обновить", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата мероприятия", "x-telegram-field-docs": true}}, "required": ["_", "update", "date"], "additionalProperties": false}, "updatesCombined": {"title": "updatesCombined", "description": "Конструктор группы обновлений.", "externalDocs": {"url": "https://core.telegram.org/constructor/updatesCombined"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updatesCombined"]}, "updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "Список обновлений", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в обновлениях", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов, упомянутых в обновлениях", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущая дата", "x-telegram-field-docs": true}, "seq_start": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение **seq** для самого раннего обновления в группе.", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Значение **seq** для последнего обновления в группе.", "x-telegram-field-docs": true}}, "required": ["_", "updates", "users", "chats", "date", "seq_start", "seq"], "additionalProperties": false}, "updates": {"title": "updates", "description": "Полный конструктор обновлений", "externalDocs": {"url": "https://core.telegram.org/constructor/updates"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates"]}, "updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "Список обновлений", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей, упомянутых в обновлениях", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов, упомянутых в обновлениях", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущая дата", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество отправленных обновлений", "x-telegram-field-docs": true}}, "required": ["_", "updates", "users", "chats", "date", "seq"], "additionalProperties": false}, "updateShortSentMessage": {"title": "updateShortSentMessage", "description": "Сокращенный конструктор, содержащий информацию об одном исходящем сообщении контакту (чат назначения необходимо извлечь из вызова метода, который вернул этот объект).", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShortSentMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShortSentMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли сообщение исходящим", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID отправленного сообщения", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS считать](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[дата](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Прикрепленные медиа", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?MessageMedia"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Entities](https://core.telegram.org/api/entities.md) для стилизованного текста", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Vector<MessageEntity>"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни сообщения, как только наступит message.date+message.ttl_period === time(), сообщение будет удалено на сервере, а также должно быть удалено локально.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "pts", "pts_count", "date"], "additionalProperties": false}, "photos.photos": {"title": "photos.photos", "description": "Полный список фотографий со вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/photos.photos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["photos.photos"]}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>", "description": "Список фотографий", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список упомянутых пользователей", "x-telegram-field-docs": true}}, "required": ["_", "photos", "users"], "additionalProperties": false}, "photos.photosSlice": {"title": "photos.photosSlice", "description": "Неполный список фотографий со вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/photos.photosSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["photos.photosSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество фотографий", "x-telegram-field-docs": true}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>", "description": "Список фотографий", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список упомянутых пользователей", "x-telegram-field-docs": true}}, "required": ["_", "count", "photos", "users"], "additionalProperties": false}, "photos.photo": {"title": "photos.photo", "description": "Фото со вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/photos.photo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["photos.photo"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Фото", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "photo", "users"], "additionalProperties": false}, "upload.file": {"title": "upload.file", "description": "Содержимое файла.", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.file"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.file"]}, "type": {"type": "object", "x-tl-type": "storage.FileType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp"]}}, "description": "Тип файла", "x-telegram-field-docs": true}, "mtime": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время модификации", "x-telegram-field-docs": true}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Двоичные данные, содержимое файла", "x-telegram-field-docs": true}}, "required": ["_", "type", "mtime", "bytes"], "additionalProperties": false}, "upload.fileCdnRedirect": {"title": "upload.fileCdnRedirect", "description": "Файл необходимо загрузить с диска [CDN DC](https://core.telegram.org/cdn.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.fileCdnRedirect"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.fileCdnRedirect"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[CDN DC](https://core.telegram.org/cdn.md) ID", "x-telegram-field-docs": true}, "file_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен файла (см. [CDN files](https://core.telegram.org/cdn.md))", "x-telegram-field-docs": true}, "encryption_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Ключ шифрования (см. [CDN файлы](https://core.telegram.org/cdn.md))", "x-telegram-field-docs": true}, "encryption_iv": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Шифрование IV (см. [CDN файлы](https://core.telegram.org/cdn.md))", "x-telegram-field-docs": true}, "file_hashes": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["fileHash"]}}, "description": "Тип TL: FileHash."}, "x-tl-type": "Vector<FileHash>", "description": "Хэши файлов (см. [CDN файлы](https://core.telegram.org/cdn.md))", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "file_token", "encryption_key", "encryption_iv", "file_hashes"], "additionalProperties": false}, "dcOption": {"title": "dcOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["dcOption"]}, "ipv6": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "media_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "tcpo_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "cdn": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "static": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "this_port_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "ip_address": {"type": "string", "x-tl-type": "string"}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.10?bytes"}}, "required": ["_", "id", "ip_address", "port"], "additionalProperties": false}, "config": {"title": "config", "description": "Текущая конфигурация", "externalDocs": {"url": "https://core.telegram.org/constructor/config"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["config"]}, "default_p2p_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Должен ли клиент использовать P2P по умолчанию для телефонных звонков с контактами", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "preload_featured_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Должен ли клиент предварительно загружать избранные стикеры", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "revoke_pm_inbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Можно ли удалять входящие личные сообщения для обоих участников", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "blocked_mode": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Указывает, что Telegram *вероятно* подвергается цензуре со стороны правительств/провайдеров Интернета в текущем регионе.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "force_try_ipv6": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли принудительно подключаться с использованием IPv6 [dcOptions](https://core.telegram.org/type/DcOption.md), даже если клиент знает, что IPv4 доступен.", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "fpnv_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущая дата на сервере", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата истечения срока действия этой конфигурации: по истечении срока ее действия ее придется загрузить повторно, используя [help.getConfig](https://core.telegram.org/method/help.getConfig.md)", "x-telegram-field-docs": true}, "test_mode": {"type": "boolean", "x-tl-type": "Bool", "description": "Подключены ли мы к тестовым контроллерам домена", "x-telegram-field-docs": true}, "this_dc": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор контроллера домена, вернувшего ответ", "x-telegram-field-docs": true}, "dc_options": {"type": "array", "items": {"type": "object", "x-tl-type": "DcOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dcOption"]}}, "description": "Тип TL: DcOption."}, "x-tl-type": "Vector<DcOption>", "description": "Список IP-адресов DC", "x-telegram-field-docs": true}, "dc_txt_domain_name": {"type": "string", "x-tl-type": "string", "description": "Доменное имя для получения зашифрованного списка контроллеров домена из записи DNS TXT", "x-telegram-field-docs": true}, "chat_size_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество участников для обычных [групп](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true}, "megagroup_size_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество участников для [супергрупп](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true}, "forwarded_count_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество сообщений, которые можно переслать одновременно, используя [messages.forwardMessages](https://core.telegram.org/method/messages.forwardMessages.md).", "x-telegram-field-docs": true}, "online_update_period_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Клиент должен [обновлять свой онлайн-статус](https://core.telegram.org/method/account.updateStatus.md) каждые N миллисекунд.", "x-telegram-field-docs": true}, "offline_blur_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Задержка перед отправкой статуса автономного режима на сервер.", "x-telegram-field-docs": true}, "offline_idle_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время без активности пользователя, после которого его следует рассматривать в автономном режиме.", "x-telegram-field-docs": true}, "online_cloud_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если мы находимся в автономном режиме, но находились в сети от какого-либо другого клиента в течение последних `online_cloud_timeout_ms` миллисекунд после того, как мы вышли из сети, то задержите уведомление об автономном режиме на `notify_cloud_delay_ms` миллисекунды.", "x-telegram-field-docs": true}, "notify_cloud_delay_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если мы находимся в автономном режиме, но находимся в сети от какого-либо другого клиента, задержите отправку автономного уведомления на `notify_cloud_delay_ms` миллисекунд.", "x-telegram-field-docs": true}, "notify_default_delay_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если какой-либо другой клиент находится в сети, задержите уведомление на `notification_default_delay_ms` миллисекунды.", "x-telegram-field-docs": true}, "push_chat_period_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Не для использования клиентом", "x-telegram-field-docs": true}, "push_chat_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Не для использования клиентом", "x-telegram-field-docs": true}, "edit_time_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Редактировать можно только сообщения, возраст которых (в секундах) меньше указанного в этом поле.", "x-telegram-field-docs": true}, "revoke_time_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Удалить можно только сообщения канала/супергруппы, возраст которых меньше указанного.", "x-telegram-field-docs": true}, "revoke_pm_time_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Удалить можно только личные сообщения, возраст которых меньше указанного.", "x-telegram-field-docs": true}, "rating_e_decay": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Скорость экспоненциального затухания для вычислений [высший рейтинг коллег](https://core.telegram.org/api/top-rating.md)", "x-telegram-field-docs": true}, "stickers_recent_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество последних стикеров", "x-telegram-field-docs": true}, "channels_read_media_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Указывает, что круглые видеоролики (видеозаметки) и голосовые сообщения, отправленные в каналах и старше указанного периода, должны быть помечены как прочитанные.", "x-telegram-field-docs": true}, "tmp_sessions": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество [параллельных сеансов](https://core.telegram.org/api/datacenter.md#parallel-sessions), которые клиент может открыть для основного соединения своего домашнего контроллера домена для увеличения пропускной способности; если отсутствует или `≤ 1`, необходимо использовать один основной сеанс", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "call_receive_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимально допустимое время исходящего звонка при вызовах VoIP: если пользователь, которому мы звоним, не отвечает в течение указанного времени (в миллисекундах), мы должны повесить трубку.", "x-telegram-field-docs": true}, "call_ring_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимально допустимое время входящего звонка при вызовах VoIP: если текущий пользователь не отвечает в течение указанного времени (в миллисекундах), вызов будет автоматически отклонен.", "x-telegram-field-docs": true}, "call_connect_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Таймаут соединения VoIP: если экземпляр libtgvoip на другой стороне вызова не подключается к нашему экземпляру libtgvoip в течение указанного времени (в миллисекундах), вызов необходимо прервать.", "x-telegram-field-docs": true}, "call_packet_timeout_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если во время VoIP-звонка пакет не получен в течение указанного периода времени, вызов необходимо прервать.", "x-telegram-field-docs": true}, "me_url_prefix": {"type": "string", "x-tl-type": "string", "description": "Домен, который будет использоваться для анализа [глубинных ссылок »](https://core.telegram.org/api/links.md).", "x-telegram-field-docs": true}, "autoupdate_url_prefix": {"type": "string", "x-tl-type": "string", "description": "URL для автоматического обновления текущего приложения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?string"}, "gif_search_username": {"type": "string", "x-tl-type": "string", "description": "Username of the bot to use to search for GIFs", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?string"}, "venue_search_username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя бота, который будет использоваться для поиска площадок", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?string"}, "img_search_username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя бота, который будет использоваться для поиска изображений", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?string"}, "static_maps_provider": {"type": "string", "x-tl-type": "string", "description": "Идентификатор поставщика карт, который будет использоваться для объектов", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?string"}, "caption_length_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальная длина подписи (длина в кодах utf8)", "x-telegram-field-docs": true}, "message_length_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальная длина сообщений (длина в кодах utf8)", "x-telegram-field-docs": true}, "webfile_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор DC, который будет использоваться для загрузки [webfiles](https://core.telegram.org/api/files.md#downloading-webfiles)", "x-telegram-field-docs": true}, "suggested_lang_code": {"type": "string", "x-tl-type": "string", "description": "Предлагаемый код языка", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "lang_pack_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Версия языкового пакета", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "base_lang_pack_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Базовая версия языкового пакета", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "reactions_default": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "По умолчанию [реакция на сообщение](https://core.telegram.org/api/reactions.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?Reaction"}, "autologin_token": {"type": "string", "x-tl-type": "string", "description": "Токен автоматического входа, [нажмите здесь, чтобы получить дополнительную информацию об авторизации URL »](https://core.telegram.org/api/url-authorization.md#link-url-authorization).", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?string"}}, "required": ["_", "date", "expires", "test_mode", "this_dc", "dc_options", "dc_txt_domain_name", "chat_size_max", "megagroup_size_max", "forwarded_count_max", "online_update_period_ms", "offline_blur_timeout_ms", "offline_idle_timeout_ms", "online_cloud_timeout_ms", "notify_cloud_delay_ms", "notify_default_delay_ms", "push_chat_period_ms", "push_chat_limit", "edit_time_limit", "revoke_time_limit", "revoke_pm_time_limit", "rating_e_decay", "stickers_recent_limit", "channels_read_media_period", "call_receive_timeout_ms", "call_ring_timeout_ms", "call_connect_timeout_ms", "call_packet_timeout_ms", "me_url_prefix", "caption_length_max", "message_length_max", "webfile_dc_id"], "additionalProperties": false}, "nearestDc": {"title": "nearestDc", "description": "Ближайший дата-центр, согласно geo-ip.", "externalDocs": {"url": "https://core.telegram.org/constructor/nearestDc"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["nearestDc"]}, "country": {"type": "string", "x-tl-type": "string", "description": "Код страны определяется гео-IP", "x-telegram-field-docs": true}, "this_dc": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Номер текущего дата-центра", "x-telegram-field-docs": true}, "nearest_dc": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Номер ближайшего дата-центра", "x-telegram-field-docs": true}}, "required": ["_", "country", "this_dc", "nearest_dc"], "additionalProperties": false}, "help.appUpdate": {"title": "help.appUpdate", "description": "Доступно обновление для приложения.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.appUpdate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.appUpdate"]}, "can_not_skip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Нельзя пропустить, новая информация должна быть показана пользователю (с помощью всплывающего окна или чего-то еще).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Обновить идентификатор", "x-telegram-field-docs": true}, "version": {"type": "string", "x-tl-type": "string", "description": "Название новой версии", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Текстовое описание обновления", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Бинарное приложение", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Document"}, "url": {"type": "string", "x-tl-type": "string", "description": "Загрузка приложения URL", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "sticker": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Связанная наклейка", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Document"}}, "required": ["_", "id", "version", "text", "entities"], "additionalProperties": false}, "help.noAppUpdate": {"title": "help.noAppUpdate", "description": "Обновлений для приложения нет.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.noAppUpdate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.noAppUpdate"]}}, "required": ["_"], "additionalProperties": false}, "help.inviteText": {"title": "help.inviteText", "description": "Текст текстового сообщения с приглашением установить Telegram.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.inviteText"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.inviteText"]}, "message": {"type": "string", "x-tl-type": "string", "description": "Текст сообщения", "x-telegram-field-docs": true}}, "required": ["_", "message"], "additionalProperties": false}, "encryptedChatEmpty": {"title": "encryptedChatEmpty", "description": "Пустой конструктор.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatEmpty"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор чата", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "encryptedChatWaiting": {"title": "encryptedChatWaiting", "description": "Чат ожидает одобрения второго участника.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatWaiting"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatWaiting"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор чата", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Проверка суммы в зависимости от идентификатора пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата создания чата", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор создателя чата", "x-tl-type": "long", "x-telegram-field-docs": true}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ID второго участника чата", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id"], "additionalProperties": false}, "encryptedChatRequested": {"title": "encryptedChatRequested", "description": "Запрос на создание зашифрованного чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatRequested"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatRequested"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор чата", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Контрольная сумма в зависимости от идентификатора пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата создания чата", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор создателя чата", "x-tl-type": "long", "x-telegram-field-docs": true}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ID второго участника чата", "x-tl-type": "long", "x-telegram-field-docs": true}, "g_a": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`A = g ^ a mod p`, см. [Википедия](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a"], "additionalProperties": false}, "encryptedChat": {"title": "encryptedChat", "description": "Зашифрованный чат", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChat"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор чата", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Контрольная сумма в зависимости от идентификатора пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата создания чата", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор создателя чата", "x-tl-type": "long", "x-telegram-field-docs": true}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ID второго участника чата", "x-tl-type": "long", "x-telegram-field-docs": true}, "g_a_or_b": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`B = g ^ b mod p`, если текущий авторизованный пользователь является создателем чата, или `A = g ^ a mod p` в противном случае. Дополнительную информацию см. в [Википедии](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)].", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битный отпечаток полученного ключа", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_or_b", "key_fingerprint"], "additionalProperties": false}, "encryptedChatDiscarded": {"title": "encryptedChatDiscarded", "description": "Отброшенный или удаленный чат.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatDiscarded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatDiscarded"]}, "history_deleted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Должны ли оба пользователя этого секретного чата удалить все его сообщения?", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор чата", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputEncryptedChat": {"title": "inputEncryptedChat", "description": "[Зашифрованный чат e2e](https://core.telegram.org/api/end-to-end.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedChat"]}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор чата", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа из [encryptedChat](https://core.telegram.org/constructor/encryptedChat.md), [encryptedChatWaiting](https://core.telegram.org/constructor/encryptedChatWaiting.md) или [encryptedChatRequested](https://core.telegram.org/constructor/encryptedChatRequested.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "chat_id", "access_hash"], "additionalProperties": false}, "encryptedFileEmpty": {"title": "encryptedFileEmpty", "description": "Пустой конструктор, несуществующий файл.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "encryptedFile": {"title": "encryptedFile", "description": "Зашифрованный файл.", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор файла", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Проверка суммы в зависимости от идентификатора пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "Размер файла в байтах", "x-tl-type": "long", "x-telegram-field-docs": true}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество дата-центров", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "32-битный отпечаток ключа, используемого для шифрования файлов", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "size", "dc_id", "key_fingerprint"], "additionalProperties": false}, "inputEncryptedFileEmpty": {"title": "inputEncryptedFileEmpty", "description": "Пустой конструктор.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputEncryptedFileUploaded": {"title": "inputEncryptedFileUploaded", "description": "Устанавливает новый зашифрованный файл, сохраненный по частям с использованием метода upload.saveFilePart.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileUploaded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор файла, созданный клиентом", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество сохраненных деталей", "x-telegram-field-docs": true}, "md5_checksum": {"type": "string", "x-tl-type": "string", "description": "В случае передачи [md5-HASH](https://en.wikipedia.org/wiki/MD5) (уже зашифрованного) файла, содержимое файла будет проверено перед использованием.", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "32-битный отпечаток ключа, используемого для шифрования файла.", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "md5_checksum", "key_fingerprint"], "additionalProperties": false}, "inputEncryptedFile": {"title": "inputEncryptedFile", "description": "Устанавливает пересылаемый зашифрованный файл для вложения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор файла, значение параметра **id** из [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Проверка суммы, значение параметра **access_hash** из [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputEncryptedFileBigUploaded": {"title": "inputEncryptedFileBigUploaded", "description": "Назначает новый большой зашифрованный файл (размером более 10 МБ), сохраняемый по частям с помощью метода [upload.saveBigFilePart](https://core.telegram.org/method/upload.saveBigFilePart.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileBigUploaded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileBigUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор файла, созданный клиентом", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество сохраненных деталей", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "32-битный отпечаток ключа, используемого для шифрования файла.", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "key_fingerprint"], "additionalProperties": false}, "encryptedMessage": {"title": "encryptedMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedMessage"]}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "file": {"type": "object", "x-tl-type": "EncryptedFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty", "encryptedFile"]}}, "description": "Тип TL: EncryptedFile."}}, "required": ["_", "random_id", "chat_id", "date", "bytes", "file"], "additionalProperties": false}, "encryptedMessageService": {"title": "encryptedMessageService", "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedMessageService"]}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "random_id", "chat_id", "date", "bytes"], "additionalProperties": false}, "messages.dhConfigNotModified": {"title": "messages.dhConfigNotModified", "description": "Параметры настройки не изменились.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dhConfigNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dhConfigNotModified"]}, "random": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Случайная последовательность байтов заданной длины", "x-telegram-field-docs": true}}, "required": ["_", "random"], "additionalProperties": false}, "messages.dhConfig": {"title": "messages.dhConfig", "description": "Новый набор параметров настройки.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dhConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dhConfig"]}, "g": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новое значение **примитивный корень**, см. [Википедия](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)]", "x-telegram-field-docs": true}, "p": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Новое значение **простое**, см. [Википедия](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)]", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Версия набора параметров", "x-telegram-field-docs": true}, "random": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Случайная последовательность байтов заданной длины", "x-telegram-field-docs": true}}, "required": ["_", "g", "p", "version", "random"], "additionalProperties": false}, "messages.sentEncryptedMessage": {"title": "messages.sentEncryptedMessage", "description": "Сообщение без вложенных файлов отправлено в зашифрованный файл.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sentEncryptedMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sentEncryptedMessage"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата отправки", "x-telegram-field-docs": true}}, "required": ["_", "date"], "additionalProperties": false}, "messages.sentEncryptedFile": {"title": "messages.sentEncryptedFile", "description": "Сообщение с вложением файла отправлено в защищённый чат", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sentEncryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sentEncryptedFile"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата отправки", "x-telegram-field-docs": true}, "file": {"type": "object", "x-tl-type": "EncryptedFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty", "encryptedFile"]}}, "description": "Прикрепленный файл", "x-telegram-field-docs": true}}, "required": ["_", "date", "file"], "additionalProperties": false}, "inputDocumentEmpty": {"title": "inputDocumentEmpty", "description": "Пустой конструктор.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocumentEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputDocument": {"title": "inputDocument", "description": "Определяет документ для последующего взаимодействия.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocument"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор документа", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** параметр из конструктора [document](https://core.telegram.org/constructor/document.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Ссылка на файл](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference"], "additionalProperties": false}, "documentEmpty": {"title": "documentEmpty", "description": "Пустой конструктор, документ не существует.", "externalDocs": {"url": "https://core.telegram.org/constructor/documentEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["documentEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор документа или `0`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "document": {"title": "document", "description": "Документ", "externalDocs": {"url": "https://core.telegram.org/constructor/document"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["document"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор документа", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Контрольная сумма, в зависимости от идентификатора документа", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Ссылка на файл](https://core.telegram.org/api/file-references.md)", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата создания", "x-telegram-field-docs": true}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME тип", "x-telegram-field-docs": true}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "Размер", "x-tl-type": "long", "x-telegram-field-docs": true}, "thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>", "description": "Миниатюры", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<PhotoSize>"}, "video_thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "Тип TL: VideoSize."}, "x-tl-type": "Vector<VideoSize>", "description": "Миниатюры видео", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<VideoSize>"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор контроллера домена", "x-telegram-field-docs": true}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>", "description": "Атрибуты", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "date", "mime_type", "size", "dc_id", "attributes"], "additionalProperties": false}, "help.support": {"title": "help.support", "description": "Информация о пользователе поддержки.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.support"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.support"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона", "x-telegram-field-docs": true}, "user": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Пользователь", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "user"], "additionalProperties": false}, "notifyPeer": {"title": "notifyPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "notifyUsers": {"title": "notifyUsers", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyUsers"]}}, "required": ["_"], "additionalProperties": false}, "notifyChats": {"title": "notifyChats", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyChats"]}}, "required": ["_"], "additionalProperties": false}, "notifyBroadcasts": {"title": "notifyBroadcasts", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyBroadcasts"]}}, "required": ["_"], "additionalProperties": false}, "notifyForumTopic": {"title": "notifyForumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyForumTopic"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "top_msg_id"], "additionalProperties": false}, "notifyCommunity": {"title": "notifyCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyCommunity"]}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "community_id"], "additionalProperties": false}, "sendMessageTypingAction": {"title": "sendMessageTypingAction", "description": "Пользователь печатает.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageTypingAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageCancelAction": {"title": "sendMessageCancelAction", "description": "Отменить все предыдущие обновления действий. E.g. когда пользователь удаляет введенный текст или прерывает загрузку видео.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageCancelAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageCancelAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageRecordVideoAction": {"title": "sendMessageRecordVideoAction", "description": "Пользователь записывает видео.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageRecordVideoAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRecordVideoAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageUploadVideoAction": {"title": "sendMessageUploadVideoAction", "description": "Пользователь загружает видео.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadVideoAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadVideoAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Процент прогресса", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageRecordAudioAction": {"title": "sendMessageRecordAudioAction", "description": "Пользователь записывает голосовое сообщение.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageRecordAudioAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRecordAudioAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageUploadAudioAction": {"title": "sendMessageUploadAudioAction", "description": "Пользователь загружает голосовое сообщение.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadAudioAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadAudioAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Процент прогресса", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageUploadPhotoAction": {"title": "sendMessageUploadPhotoAction", "description": "Пользователь загружает фотографию.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadPhotoAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadPhotoAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Процент прогресса", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageUploadDocumentAction": {"title": "sendMessageUploadDocumentAction", "description": "Пользователь загружает файл.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadDocumentAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadDocumentAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Процент прогресса", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageGeoLocationAction": {"title": "sendMessageGeoLocationAction", "description": "Пользователь выбирает место, которым хочет поделиться.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageGeoLocationAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageGeoLocationAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageChooseContactAction": {"title": "sendMessageChooseContactAction", "description": "Пользователь выбирает контакт, которым хочет поделиться.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageChooseContactAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageChooseContactAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageGamePlayAction": {"title": "sendMessageGamePlayAction", "description": "Пользователь играет в игру", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageGamePlayAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageGamePlayAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageRecordRoundAction": {"title": "sendMessageRecordRoundAction", "description": "Пользователь записывает круглое видео, чтобы поделиться\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageRecordRoundAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRecordRoundAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageUploadRoundAction": {"title": "sendMessageUploadRoundAction", "description": "Пользователь загружает круглое видео\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadRoundAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadRoundAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Процент прогресса", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "speakingInGroupCallAction": {"title": "speakingInGroupCallAction", "description": "Пользователь в данный момент разговаривает в групповом вызове", "externalDocs": {"url": "https://core.telegram.org/constructor/speakingInGroupCallAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["speakingInGroupCallAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageHistoryImportAction": {"title": "sendMessageHistoryImportAction", "description": "История чата импортируется", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageHistoryImportAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageHistoryImportAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Процент прогресса", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageChooseStickerAction": {"title": "sendMessageChooseStickerAction", "description": "Пользователь выбирает наклейку", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageChooseStickerAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageChooseStickerAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageEmojiInteraction": {"title": "sendMessageEmojiInteraction", "description": "Пользователь нажал на анимированный смайлик, вызвав [реакцию, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/animated-emojis.md#emoji-reactions).", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageEmojiInteraction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageEmojiInteraction"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения анимированного смайлика, на который нажали", "x-telegram-field-docs": true}, "interaction": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Объект JSON с информацией о взаимодействии, [нажмите здесь, чтобы получить дополнительную информацию »](https://core.telegram.org/api/animated-emojis.md#emoji-reactions)", "x-telegram-field-docs": true}}, "required": ["_", "emoticon", "msg_id", "interaction"], "additionalProperties": false}, "sendMessageEmojiInteractionSeen": {"title": "sendMessageEmojiInteractionSeen", "description": "Пользователь наблюдает за анимированной реакцией смайликов, инициированной другим пользователем, [нажмите здесь, чтобы получить дополнительную информацию »](https://core.telegram.org/api/animated-emojis.md#emoji-reactions).", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageEmojiInteractionSeen"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageEmojiInteractionSeen"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "sendMessageTextDraftAction": {"title": "sendMessageTextDraftAction", "description": "Используется ботами для реализации [потоковой передачи сообщений в реальном времени»](https://core.telegram.org/api/bots/ai.md#live-response-streaming).", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageTextDraftAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageTextDraftAction"]}, "can_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "keep_on_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор живого черновика: используется графическими клиентами для небольшого изменения поведения рендеринга, дополнительную информацию см. [здесь »](https://core.telegram.org/api/bots/ai.md#live-response-streaming). См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) для получения дополнительной информации о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long", "x-telegram-field-docs": true}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Содержимое живого проекта.", "x-telegram-field-docs": true}}, "required": ["_", "random_id", "text"], "additionalProperties": false}, "inputSendMessageRichMessageDraftAction": {"title": "inputSendMessageRichMessageDraftAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSendMessageRichMessageDraftAction"]}, "can_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "keep_on_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichMessage", "inputRichMessageHTML", "inputRichMessageMarkdown"]}}, "description": "Тип TL: InputRichMessage."}}, "required": ["_", "random_id", "rich_message"], "additionalProperties": false}, "sendMessageRichMessageDraftAction": {"title": "sendMessageRichMessageDraftAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRichMessageDraftAction"]}, "can_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "keep_on_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}}, "required": ["_", "random_id", "rich_message"], "additionalProperties": false}, "sendMessageStopDraftAction": {"title": "sendMessageStopDraftAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageStopDraftAction"]}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "random_id"], "additionalProperties": false}, "contacts.found": {"title": "contacts.found", "description": "Пользователи найдены по подстроке имени и вспомогательным данным.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.found"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.found"]}, "my_results": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Персонализированные результаты", "x-telegram-field-docs": true}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Список найденных идентификаторов пользователей", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Найдены чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Список пользователей", "x-telegram-field-docs": true}}, "required": ["_", "my_results", "results", "chats", "users"], "additionalProperties": false}, "inputPrivacyKeyStatusTimestamp": {"title": "inputPrivacyKeyStatusTimestamp", "description": "Смогут ли люди увидеть точную временную метку нашего последнего онлайн-выхода.\n\nОбратите внимание: если *мы* решим скрыть точную временную метку нашего последнего онлайн-соединения от кого-либо (i.e., пользователей A, B, C или всех пользователей) **и** у нас нет подписки [Premium](https://core.telegram.org/api/premium.md)), мы не сможем увидеть точную временную метку последнего онлайн-соединения этих пользователей (A, B, C или всех пользователей), даже если эти пользователи *делят* ее с нами.\n\nЕсли эти пользователи *действительно* делятся с нами своим точным онлайн-статусом, но мы не видим его по причине, указанной выше, будет установлен флаг `by_me` для [userStatusRecently](https://core.telegram.org/constructor/userStatusRecently.md), [userStatusLastWeek](https://core.telegram.org/constructor/userStatusLastWeek.md), [userStatusLastMonth](https://core.telegram.org/constructor/userStatusLastMonth.md)].", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyStatusTimestamp"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyChatInvite": {"title": "inputPrivacyKeyChatInvite", "description": "Смогут ли люди пригласить вас в чаты", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyChatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyChatInvite"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneCall": {"title": "inputPrivacyKeyPhoneCall", "description": "Будете ли вы принимать телефонные звонки", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneCall"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneP2P": {"title": "inputPrivacyKeyPhoneP2P", "description": "Разрешить ли связь P2P во время вызовов VoIP", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneP2P"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneP2P"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyForwards": {"title": "inputPrivacyKeyForwards", "description": "Будут ли пересылаемые от вас сообщения [анонимными](https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyForwards"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyForwards"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyProfilePhoto": {"title": "inputPrivacyKeyProfilePhoto", "description": "Смогут ли люди видеть ваше изображение профиля", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyProfilePhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyProfilePhoto"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneNumber": {"title": "inputPrivacyKeyPhoneNumber", "description": "Смогут ли люди увидеть ваш номер телефона", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneNumber"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneNumber"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyAddedByPhone": {"title": "inputPrivacyKeyAddedByPhone", "description": "Могут ли люди добавлять вас в свой список контактов по номеру телефона", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAddedByPhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAddedByPhone"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyVoiceMessages": {"title": "inputPrivacyKeyVoiceMessages", "description": "Могут ли люди отправлять вам голосовые сообщения или видеоролики (только для пользователей Premium](https://core.telegram.org/api/premium.md)).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyVoiceMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyVoiceMessages"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyAbout": {"title": "inputPrivacyKeyAbout", "description": "Могут ли люди видеть вашу биографию", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAbout"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAbout"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyBirthday": {"title": "inputPrivacyKeyBirthday", "description": "Может ли пользователь видеть наш день рождения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyBirthday"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyBirthday"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyStarGiftsAutoSave": {"title": "inputPrivacyKeyStarGiftsAutoSave", "description": "Полученные [подарки](https://core.telegram.org/api/gifts.md) будут автоматически отображаться в нашем профиле.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyStarGiftsAutoSave"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyStarGiftsAutoSave"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyNoPaidMessages": {"title": "inputPrivacyKeyNoPaidMessages", "description": "Кто может отправлять вам сообщения бесплатно, если включены [платные сообщения »](https://core.telegram.org/api/paid-messages.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyNoPaidMessages"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeySavedMusic": {"title": "inputPrivacyKeySavedMusic", "description": "Может ли пользователь видеть [песни, которые мы прикрепили к нашему профилю »](https://core.telegram.org/api/profile.md#music).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeySavedMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeySavedMusic"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyStatusTimestamp": {"title": "privacyKeyStatusTimestamp", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyStatusTimestamp"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyChatInvite": {"title": "privacyKeyChatInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyChatInvite"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneCall": {"title": "privacyKeyPhoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneCall"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneP2P": {"title": "privacyKeyPhoneP2P", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneP2P"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyForwards": {"title": "privacyKeyForwards", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyForwards"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyProfilePhoto": {"title": "privacyKeyProfilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyProfilePhoto"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneNumber": {"title": "privacyKeyPhoneNumber", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneNumber"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyAddedByPhone": {"title": "privacyKeyAddedByPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyAddedByPhone"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyVoiceMessages": {"title": "privacyKeyVoiceMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyVoiceMessages"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyAbout": {"title": "privacyKeyAbout", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyAbout"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyBirthday": {"title": "privacyKeyBirthday", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyBirthday"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyStarGiftsAutoSave": {"title": "privacyKeyStarGiftsAutoSave", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyStarGiftsAutoSave"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyNoPaidMessages": {"title": "privacyKeyNoPaidMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyNoPaidMessages"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeySavedMusic": {"title": "privacyKeySavedMusic", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeySavedMusic"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowContacts": {"title": "inputPrivacyValueAllowContacts", "description": "Разрешить только контакты", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowAll": {"title": "inputPrivacyValueAllowAll", "description": "Разрешить всем пользователям", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowAll"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowUsers": {"title": "inputPrivacyValueAllowUsers", "description": "Разрешить только определенным пользователям", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowUsers"]}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Разрешенные пользователи", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "inputPrivacyValueDisallowContacts": {"title": "inputPrivacyValueDisallowContacts", "description": "Запретить только контакты", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueDisallowAll": {"title": "inputPrivacyValueDisallowAll", "description": "Запретить все", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowAll"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueDisallowUsers": {"title": "inputPrivacyValueDisallowUsers", "description": "Запретить только определенным пользователям", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowUsers"]}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Пользователи, которых нужно запретить", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "inputPrivacyValueAllowChatParticipants": {"title": "inputPrivacyValueAllowChatParticipants", "description": "Разрешить только участникам определенных чатов", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowChatParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Разрешенные идентификаторы чата (либо [chat](https://core.telegram.org/constructor/chat.md), либо [supergroup](https://core.telegram.org/constructor/channel.md) ID, дословно так, как он получен в конструкторе (i.e. в отличие от идентификаторов ботов API, здесь идентификаторы группы и супергруппы должны обрабатываться одинаково)).", "x-telegram-field-docs": true}}, "required": ["_", "chats"], "additionalProperties": false}, "inputPrivacyValueDisallowChatParticipants": {"title": "inputPrivacyValueDisallowChatParticipants", "description": "Запретить только участникам определенных чатов", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Запрещенные идентификаторы чата (либо [chat](https://core.telegram.org/constructor/chat.md), либо [supergroup](https://core.telegram.org/constructor/channel.md) ID, дословно так, как он получен в конструкторе (i.e. в отличие от идентификаторов ботов API, здесь идентификаторы группы и супергруппы должны обрабатываться одинаково)).", "x-telegram-field-docs": true}}, "required": ["_", "chats"], "additionalProperties": false}, "inputPrivacyValueAllowCloseFriends": {"title": "inputPrivacyValueAllowCloseFriends", "description": "Разрешить только [близкие друзья »](https://core.telegram.org/api/privacy.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowCloseFriends"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowCloseFriends"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowPremium": {"title": "inputPrivacyValueAllowPremium", "description": "Разрешить доступ только пользователям с [Премиум-подпиской »](https://core.telegram.org/api/premium.md), которую в настоящее время можно использовать только для [inputPrivacyKeyChatInvite](https://core.telegram.org/constructor/inputPrivacyKeyChatInvite.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowPremium"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowPremium"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowBots": {"title": "inputPrivacyValueAllowBots", "description": "Разрешить ботов и мини-приложения", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowBots"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueDisallowBots": {"title": "inputPrivacyValueDisallowBots", "description": "Запретить ботов и мини-приложения", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowBots"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowContacts": {"title": "privacyValueAllowContacts", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowAll": {"title": "privacyValueAllowAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowAll"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowUsers": {"title": "privacyValueAllowUsers", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowUsers"]}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "users"], "additionalProperties": false}, "privacyValueDisallowContacts": {"title": "privacyValueDisallowContacts", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowContacts"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowAll": {"title": "privacyValueDisallowAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowAll"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowUsers": {"title": "privacyValueDisallowUsers", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowUsers"]}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "users"], "additionalProperties": false}, "privacyValueAllowChatParticipants": {"title": "privacyValueAllowChatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "chats"], "additionalProperties": false}, "privacyValueDisallowChatParticipants": {"title": "privacyValueDisallowChatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "chats"], "additionalProperties": false}, "privacyValueAllowCloseFriends": {"title": "privacyValueAllowCloseFriends", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowCloseFriends"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowPremium": {"title": "privacyValueAllowPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowPremium"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowBots": {"title": "privacyValueAllowBots", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowBots"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowBots": {"title": "privacyValueDisallowBots", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowBots"]}}, "required": ["_"], "additionalProperties": false}, "account.privacyRules": {"title": "account.privacyRules", "description": "Правила конфиденциальности", "externalDocs": {"url": "https://core.telegram.org/constructor/account.privacyRules"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.privacyRules"]}, "rules": {"type": "array", "items": {"type": "object", "x-tl-type": "PrivacyRule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts", "privacyValueAllowAll", "privacyValueAllowUsers", "privacyValueDisallowContacts", "privacyValueDisallowAll", "privacyValueDisallowUsers", "privacyValueAllowChatParticipants", "privacyValueDisallowChatParticipants", "privacyValueAllowCloseFriends", "privacyValueAllowPremium", "privacyValueAllowBots", "privacyValueDisallowBots"]}}, "description": "Тип TL: PrivacyRule."}, "x-tl-type": "Vector<PrivacyRule>", "description": "Правила конфиденциальности", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, к которым применяются правила", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, к которым применяются правила", "x-telegram-field-docs": true}}, "required": ["_", "rules", "chats", "users"], "additionalProperties": false}, "accountDaysTTL": {"title": "accountDaysTTL", "description": "Время жить в днях текущего счета", "externalDocs": {"url": "https://core.telegram.org/constructor/accountDaysTTL"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["accountDaysTTL"]}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Эта учетная запись будет самоуничтожена через указанное количество дней.", "x-telegram-field-docs": true}}, "required": ["_", "days"], "additionalProperties": false}, "documentAttributeImageSize": {"title": "documentAttributeImageSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize"]}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "w", "h"], "additionalProperties": false}, "documentAttributeAnimated": {"title": "documentAttributeAnimated", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeAnimated"]}}, "required": ["_"], "additionalProperties": false}, "documentAttributeSticker": {"title": "documentAttributeSticker", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeSticker"]}, "mask": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "alt": {"type": "string", "x-tl-type": "string"}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Тип TL: InputStickerSet."}, "mask_coords": {"type": "object", "x-tl-type": "MaskCoords", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["maskCoords"]}}, "description": "Тип TL: MaskCoords.", "x-tl-flag": "flags.0?MaskCoords"}}, "required": ["_", "alt", "stickerset"], "additionalProperties": false}, "documentAttributeVideo": {"title": "documentAttributeVideo", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeVideo"]}, "round_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "supports_streaming": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "nosound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "duration": {"type": "number", "format": "double", "x-tl-type": "double"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "preload_prefix_size": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.4?double"}, "video_codec": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}}, "required": ["_", "duration", "w", "h"], "additionalProperties": false}, "documentAttributeAudio": {"title": "documentAttributeAudio", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeAudio"]}, "voice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "performer": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "waveform": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.2?bytes"}}, "required": ["_", "duration"], "additionalProperties": false}, "documentAttributeFilename": {"title": "documentAttributeFilename", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeFilename"]}, "file_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "file_name"], "additionalProperties": false}, "documentAttributeHasStickers": {"title": "documentAttributeHasStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeHasStickers"]}}, "required": ["_"], "additionalProperties": false}, "documentAttributeCustomEmoji": {"title": "documentAttributeCustomEmoji", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeCustomEmoji"]}, "free": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "alt": {"type": "string", "x-tl-type": "string"}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Тип TL: InputStickerSet."}}, "required": ["_", "alt", "stickerset"], "additionalProperties": false}, "messages.stickersNotModified": {"title": "messages.stickersNotModified", "description": "По данному запросу новых стикеров не найдено", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.stickers": {"title": "messages.stickers", "description": "Найдены стикеры", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Наклейки", "x-telegram-field-docs": true}}, "required": ["_", "hash", "stickers"], "additionalProperties": false}, "stickerPack": {"title": "stickerPack", "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerPack"]}, "emoticon": {"type": "string", "x-tl-type": "string"}, "documents": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "emoticon", "documents"], "additionalProperties": false}, "messages.allStickersNotModified": {"title": "messages.allStickersNotModified", "description": "Информация обо всех установленных стикерах не изменилась.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.allStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.allStickersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.allStickers": {"title": "messages.allStickers", "description": "Информация обо всех установленных стикерах", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.allStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.allStickers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Тип TL: StickerSet."}, "x-tl-type": "Vector<StickerSet>", "description": "Все стикерсеты", "x-telegram-field-docs": true}}, "required": ["_", "hash", "sets"], "additionalProperties": false}, "messages.affectedMessages": {"title": "messages.affectedMessages", "description": "События, на которые влияет операция", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.affectedMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.affectedMessages"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Количество событий после генерации](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Количество сгенерированных событий](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}}, "required": ["_", "pts", "pts_count"], "additionalProperties": false}, "webPageEmpty": {"title": "webPageEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "id"], "additionalProperties": false}, "webPagePending": {"title": "webPagePending", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPagePending"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "date"], "additionalProperties": false}, "webPage": {"title": "webPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPage"]}, "has_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "video_cover_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "url": {"type": "string", "x-tl-type": "string"}, "display_url": {"type": "string", "x-tl-type": "string"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "site_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.4?Photo"}, "embed_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "embed_type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "embed_width": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "embed_height": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.7?int"}, "author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.8?string"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.9?Document"}, "cached_page": {"type": "object", "x-tl-type": "Page", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["page"]}}, "description": "Тип TL: Page.", "x-tl-flag": "flags.10?Page"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "WebPageAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageAttributeTheme", "webPageAttributeStory", "webPageAttributeStickerSet", "webPageAttributeUniqueStarGift", "webPageAttributeStarGiftCollection", "webPageAttributeStarGiftAuction", "webPageAttributeAiComposeTone"]}}, "description": "Тип TL: WebPageAttribute."}, "x-tl-type": "Vector<WebPageAttribute>", "x-tl-flag": "flags.12?Vector<WebPageAttribute>"}}, "required": ["_", "id", "url", "display_url", "hash"], "additionalProperties": false}, "webPageNotModified": {"title": "webPageNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageNotModified"]}, "cached_page_views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_"], "additionalProperties": false}, "authorization": {"title": "authorization", "description": "Авторизованный сеанс", "externalDocs": {"url": "https://core.telegram.org/constructor/authorization"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["authorization"]}, "current": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это текущим сеансом", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "official_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли сеанс из официального приложения", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "password_pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Ожидает ли сеанс пароля 2FA", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "encrypted_requests_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будет ли этот сеанс принимать зашифрованные чаты", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "call_requests_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будет ли этот сеанс принимать телефонные звонки", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "unconfirmed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли сеанс [не подтверждено, дополнительную информацию см. здесь »](https://core.telegram.org/api/auth.md#confirming-login).", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор", "x-tl-type": "long", "x-telegram-field-docs": true}, "device_model": {"type": "string", "x-tl-type": "string", "description": "Модель устройства", "x-telegram-field-docs": true}, "platform": {"type": "string", "x-tl-type": "string", "description": "Платформа", "x-telegram-field-docs": true}, "system_version": {"type": "string", "x-tl-type": "string", "description": "Версия системы", "x-telegram-field-docs": true}, "api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[API ID](https://core.telegram.org/api/obtaining_api_id.md)", "x-telegram-field-docs": true}, "app_name": {"type": "string", "x-tl-type": "string", "description": "Название приложения", "x-telegram-field-docs": true}, "app_version": {"type": "string", "x-tl-type": "string", "description": "Версия приложения", "x-telegram-field-docs": true}, "date_created": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда была создана сессия", "x-telegram-field-docs": true}, "date_active": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда сессия была активна в последний раз", "x-telegram-field-docs": true}, "ip": {"type": "string", "x-tl-type": "string", "description": "Последний известный IP", "x-telegram-field-docs": true}, "country": {"type": "string", "x-tl-type": "string", "description": "Страна определяется по IP", "x-telegram-field-docs": true}, "region": {"type": "string", "x-tl-type": "string", "description": "Регион определяется по IP", "x-telegram-field-docs": true}}, "required": ["_", "hash", "device_model", "platform", "system_version", "api_id", "app_name", "app_version", "date_created", "date_active", "ip", "country", "region"], "additionalProperties": false}, "account.authorizations": {"title": "account.authorizations", "description": "Зарегистрированные сеансы", "externalDocs": {"url": "https://core.telegram.org/constructor/account.authorizations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.authorizations"]}, "authorization_ttl_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Время жизни сеанса", "x-telegram-field-docs": true}, "authorizations": {"type": "array", "items": {"type": "object", "x-tl-type": "Authorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["authorization"]}}, "description": "Тип TL: Authorization."}, "x-tl-type": "Vector<Authorization>", "description": "Зарегистрированные сеансы", "x-telegram-field-docs": true}}, "required": ["_", "authorization_ttl_days", "authorizations"], "additionalProperties": false}, "account.password": {"title": "account.password", "description": "Конфигурация для двухфакторной авторизации", "externalDocs": {"url": "https://core.telegram.org/constructor/account.password"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.password"]}, "has_recovery": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Настроен ли у пользователя метод восстановления", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "has_secure_values": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включена ли телеграмма [паспорт](https://core.telegram.org/passport.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_password": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Есть ли у пользователя пароль", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "current_algo": {"type": "object", "x-tl-type": "PasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown", "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}}, "description": "Алгоритм [KDF для SRP двухфакторной аутентификации](https://core.telegram.org/api/srp.md) текущего пароля", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?PasswordKdfAlgo"}, "srp_B": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Параметр Srp B для [SRP авторизации](https://core.telegram.org/api/srp.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?bytes"}, "srp_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Параметр Srp ID для [SRP авторизации](https://core.telegram.org/api/srp.md)", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "hint": {"type": "string", "x-tl-type": "string", "description": "Текстовая подсказка к паролю", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "email_unconfirmed_pattern": {"type": "string", "x-tl-type": "string", "description": "[Электронное письмо для восстановления пароля](https://core.telegram.org/api/srp.md#email-verification) с указанным [шаблоном](https://core.telegram.org/api/pattern.md)] все еще ожидает подтверждения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "new_algo": {"type": "object", "x-tl-type": "PasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown", "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}}, "description": "[KDF алгоритм для SRP двухфакторной аутентификации](https://core.telegram.org/api/srp.md), используемый при создании новых паролей.", "x-telegram-field-docs": true}, "new_secure_algo": {"type": "object", "x-tl-type": "SecurePasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoUnknown", "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", "securePasswordKdfAlgoSHA512"]}}, "description": "Алгоритм KDF для Telegram [паспорт](https://core.telegram.org/passport.md)", "x-telegram-field-docs": true}, "secure_random": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Безопасная случайная строка", "x-telegram-field-docs": true}, "pending_reset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Пароль 2FA будет автоматически удален в этот день, если пользователь не отменит операцию.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "login_email_pattern": {"type": "string", "x-tl-type": "string", "description": "Настроен подтвержденный адрес электронной почты для входа с указанным [шаблоном](https://core.telegram.org/api/pattern.md)].", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?string"}}, "required": ["_", "new_algo", "new_secure_algo", "secure_random"], "additionalProperties": false}, "account.passwordSettings": {"title": "account.passwordSettings", "description": "Личная информация, связанная с информацией о пароле (адрес электронной почты для восстановления, телеграмма [информация о паспорте](https://core.telegram.org/passport.md) и т. д.)", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passwordSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passwordSettings"]}, "email": {"type": "string", "x-tl-type": "string", "description": "[Электронный адрес для восстановления 2FA](https://core.telegram.org/api/srp.md#email-verification)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "secure_settings": {"type": "object", "x-tl-type": "SecureSecretSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureSecretSettings"]}}, "description": "Telegram [паспорт](https://core.telegram.org/passport.md) настройки", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?SecureSecretSettings"}}, "required": ["_"], "additionalProperties": false}, "account.passwordInputSettings": {"title": "account.passwordInputSettings", "description": "Настройки для установки нового пароля", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passwordInputSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passwordInputSettings"]}, "new_algo": {"type": "object", "x-tl-type": "PasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown", "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}}, "description": "Алгоритм [SRP](https://core.telegram.org/api/srp.md) использовать", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?PasswordKdfAlgo"}, "new_password_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[вычисленный хеш пароля](https://core.telegram.org/api/srp.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?bytes"}, "hint": {"type": "string", "x-tl-type": "string", "description": "Текстовая подсказка к паролю", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "email": {"type": "string", "x-tl-type": "string", "description": "Электронная почта для восстановления пароля", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "new_secure_settings": {"type": "object", "x-tl-type": "SecureSecretSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureSecretSettings"]}}, "description": "Telegram [паспорт](https://core.telegram.org/passport.md) настройки", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?SecureSecretSettings"}}, "required": ["_"], "additionalProperties": false}, "auth.passwordRecovery": {"title": "auth.passwordRecovery", "description": "Информация для восстановления [пароля 2FA](https://core.telegram.org/api/srp.md), только для учетных записей с настроенным [адресом электронной почты для восстановления](https://core.telegram.org/api/srp.md#email-verification)].", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.passwordRecovery"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.passwordRecovery"]}, "email_pattern": {"type": "string", "x-tl-type": "string", "description": "Электронная почта, на которую был отправлен код восстановления, должна соответствовать этому [шаблону](https://core.telegram.org/api/pattern.md).", "x-telegram-field-docs": true}}, "required": ["_", "email_pattern"], "additionalProperties": false}, "receivedNotifyMessage": {"title": "receivedNotifyMessage", "description": "Идентификатор сообщения, для которого были отменены PUSH-уведомления.", "externalDocs": {"url": "https://core.telegram.org/constructor/receivedNotifyMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["receivedNotifyMessage"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, для которого отменены PUSH-уведомления", "x-telegram-field-docs": true}, "flags": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Зарезервировано для будущего использования", "x-telegram-field-docs": true}}, "required": ["_", "id", "flags"], "additionalProperties": false}, "chatInviteExported": {"title": "chatInviteExported", "description": "Экспортированное приглашение в чат", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInviteExported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteExported"]}, "revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Было ли это приглашение в чат отозвано?", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "permanent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Имеет ли это приглашение в чат срок действия", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "request_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Необходимо ли будет получать одобрение пользователей, импортирующих эту ссылку для приглашения, для присоединения к каналу или группе.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "link": {"type": "string", "x-tl-type": "string", "description": "Ссылка на приглашение в чат", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор администратора, создавшего это приглашение в чат.", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда было создано это приглашение в чат", "x-telegram-field-docs": true}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда это приглашение в чат было изменено в последний раз?", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда истекает срок действия этого приглашения в чат?", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "usage_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальное количество пользователей, которые могут присоединиться по этой ссылке", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "usage": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Сколько пользователей присоединилось по этой ссылке", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "requested": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество пользователей, которые уже использовали эту ссылку для присоединения", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?int"}, "subscription_expired": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для [подписок Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) содержит количество участников чата, которые уже присоединились к чату по ссылке, но уже покинули его из-за истечения срока действия их подписки.", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?int"}, "title": {"type": "string", "x-tl-type": "string", "description": "Пользовательское описание ссылки для приглашения, видимое только администраторам.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?string"}, "subscription_pricing": {"type": "object", "x-tl-type": "StarsSubscriptionPricing", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsSubscriptionPricing"]}}, "description": "Для [подписок Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) указана стоимость подписки, которую пользователь должен активировать, чтобы присоединиться к частному каналу.", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?StarsSubscriptionPricing"}}, "required": ["_", "link", "admin_id", "date"], "additionalProperties": false}, "chatInvitePublicJoinRequests": {"title": "chatInvitePublicJoinRequests", "description": "Используется в обновлениях и в журнале канала, чтобы указать, когда пользователь запрашивает присоединение или присоединился к [дискуссионной группе](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group)", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvitePublicJoinRequests"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvitePublicJoinRequests"]}}, "required": ["_"], "additionalProperties": false}, "chatInviteAlready": {"title": "chatInviteAlready", "description": "Пользователь уже присоединился к этому чату", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInviteAlready"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteAlready"]}, "chat": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Чат, подключенный к приглашению", "x-telegram-field-docs": true}}, "required": ["_", "chat"], "additionalProperties": false}, "chatInvite": {"title": "chatInvite", "description": "Информация о приглашении в чат", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvite"]}, "channel": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будь то [канал/супергруппа](https://core.telegram.org/api/channel.md) или [обычная группа](https://core.telegram.org/api/channel.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это [канал](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "public": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это общедоступным [каналом/супергруппой](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это [супергруппой](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "request_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Должен ли [запрос на присоединение »](https://core.telegram.org/api/invites.md#join-requests) быть сначала одобрен администратором", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "verified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Этот чат или канал проверен Telegram?", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "scam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Вероятно, этот чат является мошенничеством", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "fake": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, многие пользователи сообщали об этом чате как о подделке или мошенничестве: будьте осторожны при взаимодействии с ним.", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "can_refulfill_subscription": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, это означает, что пользователь уже заплатил за связанные [подписки Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions), и срок их действия еще не истек, поэтому он может повторно присоединиться к каналу, используя [messages.importChatInvite](https://core.telegram.org/method/messages.importChatInvite.md), не повторяя платеж.", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "title": {"type": "string", "x-tl-type": "string", "description": "Чат/супергруппа/название канала", "x-telegram-field-docs": true}, "about": {"type": "string", "x-tl-type": "string", "description": "Описание группы каналов", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Фото чата/супергруппы/канала", "x-telegram-field-docs": true}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество участников", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Некоторые участники группы", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<User>"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор цветовой палитры профиля](https://core.telegram.org/api/colors.md)", "x-telegram-field-docs": true}, "subscription_pricing": {"type": "object", "x-tl-type": "StarsSubscriptionPricing", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsSubscriptionPricing"]}}, "description": "Для [подписок Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) указана стоимость подписки, которую пользователь должен активировать, чтобы присоединиться к частному каналу.", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?StarsSubscriptionPricing"}, "subscription_form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Для [Подписки Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions) — идентификатор формы оплаты подписки.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?long"}, "bot_verification": {"type": "object", "x-tl-type": "BotVerification", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerification"]}}, "description": "Описывает [значок проверки бота »](https://core.telegram.org/api/bots/verification.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?BotVerification"}}, "required": ["_", "title", "photo", "participants_count", "color"], "additionalProperties": false}, "chatInvitePeek": {"title": "chatInvitePeek", "description": "Приглашение в чат, которое также позволяет заглянуть в группу и прочитать сообщения, не присоединяясь к ней.", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvitePeek"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvitePeek"]}, "chat": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Информация чата", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Анонимный доступ только для чтения к этой группе будет отменен в этот день.", "x-telegram-field-docs": true}}, "required": ["_", "chat", "expires"], "additionalProperties": false}, "inputStickerSetEmpty": {"title": "inputStickerSetEmpty", "description": "Пустой конструктор\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetID": {"title": "inputStickerSetID", "description": "Набор стикеров по ID", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "идентификатор", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputStickerSetShortName": {"title": "inputStickerSetShortName", "description": "Набор стикеров по короткому названию из [глубокая ссылка на набор стикеров »](https://core.telegram.org/api/links.md#stickerset-links)\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetShortName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetShortName"]}, "short_name": {"type": "string", "x-tl-type": "string", "description": "Короткое имя из [глубокой ссылки набора стикеров »](https://core.telegram.org/api/links.md#stickerset-links)", "x-telegram-field-docs": true}}, "required": ["_", "short_name"], "additionalProperties": false}, "inputStickerSetAnimatedEmoji": {"title": "inputStickerSetAnimatedEmoji", "description": "Набор анимированных стикеров-эмодзи", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetAnimatedEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetAnimatedEmoji"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetDice": {"title": "inputStickerSetDice", "description": "Используется для получения [анимационных наклеек с кубиками](https://core.telegram.org/api/dice.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetDice"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "На данный момент поддерживаются смайлы 🏀, 🎲 и 🎯.", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputStickerSetAnimatedEmojiAnimations": {"title": "inputStickerSetAnimatedEmojiAnimations", "description": "Набор анимированных стикеров-реакций с эмодзи (содержит анимацию, которая воспроизводится, когда пользователь нажимает на заданный анимированный эмодзи)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetAnimatedEmojiAnimations"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetPremiumGifts": {"title": "inputStickerSetPremiumGifts", "description": "Стикеры, которые будут отображаться при получении подаренной подписки Telegram Premium", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetPremiumGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetPremiumGifts"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiGenericAnimations": {"title": "inputStickerSetEmojiGenericAnimations", "description": "Общий набор анимационных наклеек, содержащий анимацию, которая воспроизводится при [реагировании на сообщения с использованием обычных смайлов без специальной анимации](https://core.telegram.org/api/reactions.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiGenericAnimations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiGenericAnimations"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiDefaultStatuses": {"title": "inputStickerSetEmojiDefaultStatuses", "description": "По умолчанию [пользовательский статус смайлика](https://core.telegram.org/api/emoji-status.md) набор стикеров", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiDefaultStatuses"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiDefaultStatuses"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiDefaultTopicIcons": {"title": "inputStickerSetEmojiDefaultTopicIcons", "description": "Стандартный [пользовательский набор смайлов](https://core.telegram.org/api/custom-emoji.md) для [значков тем форума](https://core.telegram.org/api/forum.md#forum-topics)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiDefaultTopicIcons"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetEmojiChannelDefaultStatuses": {"title": "inputStickerSetEmojiChannelDefaultStatuses", "description": "По умолчанию [пользовательский статус смайликов](https://core.telegram.org/api/emoji-status.md) набор наклеек для статусов каналов", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmojiChannelDefaultStatuses"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmojiChannelDefaultStatuses"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetTonGifts": {"title": "inputStickerSetTonGifts", "description": "TON набор подарочных наклеек.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetTonGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetTonGifts"]}}, "required": ["_"], "additionalProperties": false}, "stickerSet": {"title": "stickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSet"]}, "archived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "official": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "channel_emoji_status": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "installed_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "short_name": {"type": "string", "x-tl-type": "string"}, "thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>", "x-tl-flag": "flags.4?Vector<PhotoSize>"}, "thumb_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "thumb_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "thumb_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "access_hash", "title", "short_name", "count", "hash"], "additionalProperties": false}, "messages.stickerSet": {"title": "messages.stickerSet", "description": "Набор стикеров и наклейки внутри него.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickerSet"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickerSet"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Набор стикеров", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "Информация об эмодзи для стикеров", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerKeyword"]}}, "description": "Тип TL: StickerKeyword."}, "x-tl-type": "Vector<StickerKeyword>", "description": "Ключевые слова для некоторых или всех стикеров в наборе стикеров.", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Стикеры в наборе стикеров", "x-telegram-field-docs": true}}, "required": ["_", "set", "packs", "keywords", "documents"], "additionalProperties": false}, "messages.stickerSetNotModified": {"title": "messages.stickerSetNotModified", "description": "Набор стикеров не изменился", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickerSetNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickerSetNotModified"]}}, "required": ["_"], "additionalProperties": false}, "botCommand": {"title": "botCommand", "description": "Описывает команду бота, которую можно использовать в чате.", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommand"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommand"]}, "ephemeral": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "command": {"type": "string", "x-tl-type": "string", "description": "`/command` имя", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание команды", "x-telegram-field-docs": true}}, "required": ["_", "command", "description"], "additionalProperties": false}, "botInfo": {"title": "botInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInfo"]}, "has_preview_medias": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "description_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.4?Photo"}, "description_document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.5?Document"}, "commands": {"type": "array", "items": {"type": "object", "x-tl-type": "BotCommand", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botCommand"]}}, "description": "Тип TL: BotCommand."}, "x-tl-type": "Vector<BotCommand>", "x-tl-flag": "flags.2?Vector<BotCommand>"}, "menu_button": {"type": "object", "x-tl-type": "BotMenuButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botMenuButtonDefault", "botMenuButtonCommands", "botMenuButton"]}}, "description": "Тип TL: BotMenuButton.", "x-tl-flag": "flags.3?BotMenuButton"}, "privacy_policy_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.7?string"}, "app_settings": {"type": "object", "x-tl-type": "BotAppSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botAppSettings"]}}, "description": "Тип TL: BotAppSettings.", "x-tl-flag": "flags.8?BotAppSettings"}, "verifier_settings": {"type": "object", "x-tl-type": "BotVerifierSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerifierSettings"]}}, "description": "Тип TL: BotVerifierSettings.", "x-tl-flag": "flags.9?BotVerifierSettings"}}, "required": ["_"], "additionalProperties": false}, "keyboardButton": {"title": "keyboardButton", "description": "Кнопка клавиатуры бота\n\nДоступно только в [клавиатурах ответа](https://core.telegram.org/constructor/replyKeyboardMarkup.md).\n\nПри нажатии клиенты должны отправить `text` как сообщение в текущий чат, ответив на сообщение, к которому прикреплен файл [replyKeyboardMarkup](https://core.telegram.org/constructor/replyKeyboardMarkup.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/keyboardButton"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardButton"]}, "style": {"type": "object", "x-tl-type": "KeyboardButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButtonStyle"]}}, "description": "Стиль кнопок см. [здесь »](https://core.telegram.org/api/bots/buttons.md#button-styles) для получения дополнительной информации о стилях кнопок.", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?KeyboardButtonStyle"}, "text": {"type": "string", "x-tl-type": "string", "description": "Текст кнопки", "x-telegram-field-docs": true}, "type": {"type": "object", "x-tl-type": "ButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["buttonTypeDefault", "buttonTypeRequestPhone", "buttonTypeRequestGeoLocation", "buttonTypeRequestPoll", "buttonTypeRequestPeer", "inputButtonTypeRequestPeer", "buttonTypeSimpleWebView"]}}, "description": "Тип TL: ButtonType."}}, "required": ["_", "text", "type"], "additionalProperties": false}, "keyboardButtonRow": {"title": "keyboardButtonRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardButtonRow"]}, "buttons": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButton"]}}, "description": "Тип TL: KeyboardButton."}, "x-tl-type": "Vector<KeyboardButton>"}}, "required": ["_", "buttons"], "additionalProperties": false}, "replyKeyboardHide": {"title": "replyKeyboardHide", "description": "Скрыть клавиатуру отправленного ответа", "externalDocs": {"url": "https://core.telegram.org/constructor/replyKeyboardHide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide"]}, "selective": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Используйте этот флаг, если вы хотите удалить клавиатуру только для определенных пользователей. Цели: 1) пользователи, @упомянутые в тексте объекта «Сообщение»; 2) если сообщение бота является ответным (имеет reply_to_message_id), отправитель исходного сообщения.  Пример: пользователь голосует в опросе, бот возвращает подтверждающее сообщение в ответ на голосование и удаляет клавиатуру для этого пользователя, при этом показывая клавиатуру с опциями опроса пользователям, которые еще не проголосовали.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}}, "required": ["_"], "additionalProperties": false}, "replyKeyboardForceReply": {"title": "replyKeyboardForceReply", "description": "Заставить пользователя отправить ответ", "externalDocs": {"url": "https://core.telegram.org/constructor/replyKeyboardForceReply"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyKeyboardForceReply"]}, "single_use": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Просит клиентов скрывать клавиатуру сразу после ее использования. Клавиатура по-прежнему будет доступна, но клиенты автоматически будут отображать в чате обычную буквенную клавиатуру — пользователь может нажать специальную кнопку в поле ввода, чтобы снова увидеть пользовательскую клавиатуру.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "selective": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Используйте этот параметр, если вы хотите показывать клавиатуру только определенным пользователям. Цели: 1) пользователи, @упомянутые в тексте объекта «Сообщение»; 2) если сообщение бота является ответным (имеет reply_to_message_id), отправитель исходного сообщения.  Пример: пользователь запрашивает изменение языка бота, бот отвечает на запрос с помощью клавиатуры для выбора нового языка. Другие пользователи в группе не видят клавиатуру.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "placeholder": {"type": "string", "x-tl-type": "string", "description": "Заполнитель, который будет отображаться в поле ввода, когда клавиатура активна; 1-64 символов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}}, "required": ["_"], "additionalProperties": false}, "replyKeyboardMarkup": {"title": "replyKeyboardMarkup", "description": "Представляет клавиатуру ответа", "externalDocs": {"url": "https://core.telegram.org/constructor/replyKeyboardMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyKeyboardMarkup"]}, "resize": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Просит клиентов изменить размер клавиатуры по вертикали для оптимального соответствия (e.g., уменьшите клавиатуру, если на ней всего два ряда кнопок). Если этот параметр не установлен, пользовательская клавиатура всегда имеет ту же высоту, что и стандартная клавиатура приложения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "single_use": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Просит клиентов скрывать клавиатуру сразу после ее использования. Клавиатура по-прежнему будет доступна, но клиенты автоматически будут отображать в чате обычную буквенную клавиатуру — пользователь может нажать специальную кнопку в поле ввода, чтобы снова увидеть пользовательскую клавиатуру.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "selective": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Используйте этот параметр, если вы хотите показывать клавиатуру только определенным пользователям. Цели: 1) пользователи, @упомянутые в тексте объекта «Сообщение»; 2) если сообщение бота является ответным (имеет reply_to_message_id), отправитель исходного сообщения.  Пример: пользователь запрашивает изменение языка бота, бот отвечает на запрос с помощью клавиатуры для выбора нового языка. Другие пользователи в группе не видят клавиатуру.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "persistent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Просит клиентов всегда показывать клавиатуру, когда обычная клавиатура скрыта.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "force_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardButtonRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButtonRow"]}}, "description": "Тип TL: KeyboardButtonRow."}, "x-tl-type": "Vector<KeyboardButtonRow>", "description": "Ряд кнопок", "x-telegram-field-docs": true}, "placeholder": {"type": "string", "x-tl-type": "string", "description": "Заполнитель, который будет отображаться в поле ввода, когда клавиатура активна; 1-64 символов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}}, "required": ["_", "rows"], "additionalProperties": false}, "replyInlineMarkup": {"title": "replyInlineMarkup", "description": "Представляет встроенную клавиатуру", "externalDocs": {"url": "https://core.telegram.org/constructor/replyInlineMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyInlineMarkup"]}, "force_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardInlineButtonRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardInlineButtonRow"]}}, "description": "Тип TL: KeyboardInlineButtonRow."}, "x-tl-type": "Vector<KeyboardInlineButtonRow>", "description": "Бот или встроенные строки клавиатуры", "x-telegram-field-docs": true}}, "required": ["_", "rows"], "additionalProperties": false}, "messageEntityUnknown": {"title": "messageEntityUnknown", "description": "Неизвестный объект сообщения\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUnknown"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityMention": {"title": "messageEntityMention", "description": "Сущность сообщения [упоминание](https://core.telegram.org/api/mentions.md) пользователя `@username`; [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName.md) также можно использовать для упоминания пользователей по их идентификатору.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityMention"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityMention"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityHashtag": {"title": "messageEntityHashtag", "description": "**\\#хэштег** объект сообщения\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityHashtag"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityHashtag"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBotCommand": {"title": "messageEntityBotCommand", "description": "Сущность сообщения, представляющая бота/команду\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBotCommand"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBotCommand"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityUrl": {"title": "messageEntityUrl", "description": "Message entity representing an in-text url: <https://google.com>; for [text urls](https://google.com), use [messageEntityTextUrl](https://core.telegram.org/constructor/messageEntityTextUrl.md).\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUrl"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityEmail": {"title": "messageEntityEmail", "description": "Объект сообщения, представляющий <email@example.com>.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityEmail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityEmail"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBold": {"title": "messageEntityBold", "description": "Объект сообщения, представляющий **жирный текст**.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBold"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBold"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityItalic": {"title": "messageEntityItalic", "description": "Сущность сообщения, представляющая *курсив*.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityItalic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityItalic"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCode": {"title": "messageEntityCode", "description": "Объект сообщения, представляющий `codeblock`.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCode"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityPre": {"title": "messageEntityPre", "description": "Объект сообщения, представляющий предварительно отформатированный символ `codeblock`, позволяющий пользователю указать язык программирования для кодового блока.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityPre"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityPre"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "language": {"type": "string", "x-tl-type": "string", "description": "Язык программирования кода", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "language"], "additionalProperties": false}, "messageEntityTextUrl": {"title": "messageEntityTextUrl", "description": "Message entity representing a [text url](https://google.com): for in-text urls like <https://google.com> use [messageEntityUrl](https://core.telegram.org/constructor/messageEntityUrl.md).\n\nОбратите внимание, что перед открытием этой ссылки пользователю должно быть отображено дополнительное всплывающее окно подтверждения с полным текстом URL, если только домен не удовлетворяет условиям, указанным в [документации по белому списку доменов »](https://core.telegram.org/api/config.md#whitelisted-domains).\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityTextUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityTextUrl"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "Актуальный URL", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "url"], "additionalProperties": false}, "messageEntityMentionName": {"title": "messageEntityMentionName", "description": "Сущность сообщения, представляющая [упоминание пользователя](https://core.telegram.org/api/mentions.md): для *создания* упоминания используйте [inputMessageEntityMentionName](https://core.telegram.org/constructor/inputMessageEntityMentionName.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityMentionName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityMentionName"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя, который был упомянут", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "user_id"], "additionalProperties": false}, "inputMessageEntityMentionName": {"title": "inputMessageEntityMentionName", "description": "Сущность сообщения, которую можно использовать для создания пользователя [упоминание пользователя](https://core.telegram.org/api/mentions.md): полученные упоминания вместо этого используют конструктор [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName.md)).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageEntityMentionName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageEntityMentionName"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Идентификатор пользователя, который был упомянут", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "user_id"], "additionalProperties": false}, "messageEntityPhone": {"title": "messageEntityPhone", "description": "Объект сообщения, представляющий номер телефона.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityPhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityPhone"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCashtag": {"title": "messageEntityCashtag", "description": "Сущность сообщения, представляющая **$cashtag**.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCashtag"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCashtag"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityUnderline": {"title": "messageEntityUnderline", "description": "Сущность сообщения, представляющая подчеркнутый текст.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUnderline"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUnderline"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityStrike": {"title": "messageEntityStrike", "description": "Объект сообщения, представляющий <del>зачеркнутый</del> текст.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityStrike"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityStrike"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBankCard": {"title": "messageEntityBankCard", "description": "Указывает номер кредитной карты", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBankCard"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBankCard"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntitySpoiler": {"title": "messageEntitySpoiler", "description": "Сущность сообщения, представляющая спойлер\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntitySpoiler"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntitySpoiler"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCustomEmoji": {"title": "messageEntityCustomEmoji", "description": "Представляет пользовательский эмодзи.\nОбратите внимание, что этот объект должен обернуть ровно один обычный смайлик (тот, который содержится в [documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji.md).`alt`) в связанном тексте, иначе сервер проигнорирует его.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCustomEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCustomEmoji"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор документа [пользовательского смайлика](https://core.telegram.org/api/custom-emoji.md), используйте [messages.getCustomEmojiDocuments](https://core.telegram.org/method/messages.getCustomEmojiDocuments.md), чтобы получить анимацию смайлика и фактический смайлик, который он представляет.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "document_id"], "additionalProperties": false}, "messageEntityBlockquote": {"title": "messageEntityBlockquote", "description": "Сущность сообщения, представляющая блочную цитату.\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBlockquote"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBlockquote"]}, "collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Свернута ли цитата по умолчанию.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityFormattedDate": {"title": "messageEntityFormattedDate", "description": "Представляет определенный момент времени, отображаемый, как указано [здесь »](https://core.telegram.org/api/entities.md#date-entities)\n\nВсе флаги являются необязательными со следующими ограничениями:\n\n- `relative` не может сочетаться ни с каким другим флагом\n- `short_time` и `long_time` нельзя комбинировать друг с другом\n- `short_date` и `long_date` нельзя комбинировать друг с другом\n\nЕсли какие-либо из флагов объединены, то порядок их отрисовки в тексте следующий:\n\n- `day_of_week`\n- `short_time`/`long_time`\n- `short_date`/`long_date`", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityFormattedDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityFormattedDate"]}, "relative": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, отображать относительную дату, см. [здесь »](https://core.telegram.org/api/entities.md#date-entities) для получения дополнительной информации. Не может сочетаться с другими флагами.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "short_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отображает время в кратком формате: часы и минуты, в соответствии с языковыми настройками пользователя; нельзя сочетать с `long_time`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "long_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отображает время в длинном формате: часы, минуты, секунды и, возможно, часовой пояс, в соответствии с настройками локали пользователя; нельзя сочетать с `short_time`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "short_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отображает время в кратком формате: месяц, дата (и год, если он отличается от текущего), все в соответствии с языковыми настройками пользователя; нельзя сочетать с `long_date`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "long_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отображает время в длинном формате: всегда месяц, дата и год, в соответствии с языковыми настройками пользователя; нельзя сочетать с `short_date`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "day_of_week": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отрисовывает день недели в соответствии с языковыми настройками пользователя.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата в виде отметки времени UNIX: допустимое значение варьируется от `0` до текущей даты плюс 1098 дней (`time()+1098*86400`).", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "date"], "additionalProperties": false}, "messageEntityDiffInsert": {"title": "messageEntityDiffInsert", "description": "Представляет добавление различий: визуализируйте его, просто <u>подчеркивая</u> указанный раздел и окрашивая его в зеленый цвет. Дополнительную информацию о том, как визуализировать объекты различий, см. здесь [здесь »](https://core.telegram.org/api/entities.md#diff-entities).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffInsert"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffInsert"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityDiffReplace": {"title": "messageEntityDiffReplace", "description": "Представляет замену diff, визуализируйте ее следующим образом:\n\n- Вставьте `old_text` в текст по смещению `offset`, <u>подчеркните</u> его и закрасьте красным: обратите внимание, что эта вставка не влияет на смещения объектов, следующих за ней.\n- <u>подчеркните</u> раздел, ограниченный `offset` и `limit`, и раскрасьте его зеленым цветом.\n\nСм. [здесь »](https://core.telegram.org/api/entities.md#diff-entities) для получения дополнительной информации о том, как отображать объекты различий.", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffReplace"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffReplace"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "old_text": {"type": "string", "x-tl-type": "string", "description": "Фрагмент текста, который был удален.", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "old_text"], "additionalProperties": false}, "messageEntityDiffDelete": {"title": "messageEntityDiffDelete", "description": "Представляет удаление различий: визуализируйте его, просто <u>подчеркивая</u> указанный раздел и окрашивая его в красный цвет. Дополнительную информацию о том, как отображать объекты различий, см. [здесь »](https://core.telegram.org/api/entities.md#diff-entities).", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffDelete"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffDelete"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина объекта сообщения внутри сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length))", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityTonAddress": {"title": "messageEntityTonAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityTonAddress"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "inputChannelEmpty": {"title": "inputChannelEmpty", "description": "Обозначает отсутствие канала", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannelEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChannel": {"title": "inputChannel", "description": "Представляет канал", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор канала", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа, взятый из конструктора [channel](https://core.telegram.org/constructor/channel.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id", "access_hash"], "additionalProperties": false}, "inputChannelFromMessage": {"title": "inputChannelFromMessage", "description": "Определяет канал [min](https://core.telegram.org/api/min.md), который был замечен в определенном сообщении определенного чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannelFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannelFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Чат, в котором был просмотрен канал", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения в чате, где был просмотрен канал", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор канала", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id", "channel_id"], "additionalProperties": false}, "contacts.resolvedPeer": {"title": "contacts.resolvedPeer", "description": "Разрешенный узел", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.resolvedPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.resolvedPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Партнер", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "peer", "chats", "users"], "additionalProperties": false}, "messageRange": {"title": "messageRange", "description": "Указывает диапазон сообщений чата", "externalDocs": {"url": "https://core.telegram.org/constructor/messageRange"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageRange"]}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Начало диапазона (идентификатор сообщения)", "x-telegram-field-docs": true}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Конец диапазона (идентификатор сообщения)", "x-telegram-field-docs": true}}, "required": ["_", "min_id", "max_id"], "additionalProperties": false}, "updates.channelDifferenceEmpty": {"title": "updates.channelDifferenceEmpty", "description": "Новых обновлений нет", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.channelDifferenceEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.channelDifferenceEmpty"]}, "final": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Есть ли еще обновления, которые необходимо получить (всегда ложно)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Последний [PTS](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Клиенты должны повторно получить разницу каналов по истечении времени ожидания, если пользователь [в данный момент просматривает чат, см. здесь »](https://core.telegram.org/api/updates.md#subscribing-to-updates-of-channels-supergroups) для получения дополнительной информации.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "pts"], "additionalProperties": false}, "updates.channelDifferenceTooLong": {"title": "updates.channelDifferenceTooLong", "description": "Пропущенный `pts` слишком старый: одно или несколько обновлений, начиная с указанного PTS, были удалены из окна сообщений этого канала.\n\nДля супергрупп/каналов это обычно происходит для обновлений старше `latestPts - 100000` (хотя не полагайтесь на это значение, это деталь реализации на стороне сервера, которая может измениться и не должна использоваться клиентами каким-либо образом).", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.channelDifferenceTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.channelDifferenceTooLong"]}, "final": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Есть ли еще обновления, которые необходимо загрузить (всегда устанавливается)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Клиенты должны повторно получить разницу каналов после истечения времени ожидания.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.2?Vector<ForumTopic>"}, "dialog": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Диалоговое окно, содержащее последнюю версию [PTS](https://core.telegram.org/api/updates.md), которую можно использовать для сброса состояния канала.", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Самые последние сообщения (не начиная с пройденного `pts`, только самые последние сообщения).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты из сообщений", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи из сообщений", "x-telegram-field-docs": true}}, "required": ["_", "dialog", "messages", "chats", "users"], "additionalProperties": false}, "updates.channelDifference": {"title": "updates.channelDifference", "description": "Новые обновления", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.channelDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.channelDifference"]}, "final": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Есть ли еще обновления, которые нужно получить с помощью getDifference, начиная с предоставленного `pts`", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[PTS](https://core.telegram.org/api/updates.md), с которого можно начать получать обновления в следующий раз.", "x-telegram-field-docs": true}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Клиенты должны повторно получить разницу каналов по истечении времени ожидания, если пользователь [в данный момент просматривает чат, см. здесь »](https://core.telegram.org/api/updates.md#subscribing-to-updates-of-channels-supergroups) для получения дополнительной информации.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.2?Vector<ForumTopic>"}, "new_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Новые сообщения", "x-telegram-field-docs": true}, "other_updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "Другие обновления", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "pts", "new_messages", "other_updates", "chats", "users"], "additionalProperties": false}, "channelMessagesFilterEmpty": {"title": "channelMessagesFilterEmpty", "description": "Без фильтра", "externalDocs": {"url": "https://core.telegram.org/constructor/channelMessagesFilterEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelMessagesFilterEmpty"]}}, "required": ["_"], "additionalProperties": false}, "channelMessagesFilter": {"title": "channelMessagesFilter", "description": "Фильтр для получения только определенных типов сообщений канала.\n\nЭтот фильтр нельзя использовать для получения сообщений старше размера окна сообщения канала.", "externalDocs": {"url": "https://core.telegram.org/constructor/channelMessagesFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelMessagesFilter"]}, "exclude_new_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Исключать ли новые сообщения из поиска", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "ranges": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageRange", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageRange"]}}, "description": "Тип TL: MessageRange."}, "x-tl-type": "Vector<MessageRange>", "description": "Диапазон сообщений для получения", "x-telegram-field-docs": true}}, "required": ["_", "ranges"], "additionalProperties": false}, "channelParticipant": {"title": "channelParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipant"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "channelParticipantSelf": {"title": "channelParticipantSelf", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantSelf"]}, "via_request": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "user_id", "inviter_id", "date"], "additionalProperties": false}, "channelParticipantCreator": {"title": "channelParticipantCreator", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantCreator"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights."}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "admin_rights"], "additionalProperties": false}, "channelParticipantAdmin": {"title": "channelParticipantAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantAdmin"]}, "can_edit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "self": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "promoted_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights."}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "user_id", "promoted_by", "date", "admin_rights"], "additionalProperties": false}, "channelParticipantBanned": {"title": "channelParticipantBanned", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantBanned"]}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "kicked_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "peer", "kicked_by", "date", "banned_rights"], "additionalProperties": false}, "channelParticipantLeft": {"title": "channelParticipantLeft", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantLeft"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "channelParticipantsRecent": {"title": "channelParticipantsRecent", "description": "Получить только недавних участников", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsRecent"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsRecent"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsAdmins": {"title": "channelParticipantsAdmins", "description": "Получить только участников-администраторов", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsAdmins"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsAdmins"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsKicked": {"title": "channelParticipantsKicked", "description": "Получить только исключенных участников", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsKicked"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsKicked"]}, "q": {"type": "string", "x-tl-type": "string", "description": "Дополнительный фильтр для поиска исключенных участников по имени (иначе пусто)", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsBots": {"title": "channelParticipantsBots", "description": "Получить только участников-ботов", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsBots"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsBanned": {"title": "channelParticipantsBanned", "description": "Получить только запрещенных участников", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsBanned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsBanned"]}, "q": {"type": "string", "x-tl-type": "string", "description": "Дополнительный фильтр для поиска запрещенных участников по имени (иначе пусто)", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsSearch": {"title": "channelParticipantsSearch", "description": "Запрос участников по имени", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsSearch"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsSearch"]}, "q": {"type": "string", "x-tl-type": "string", "description": "Поисковый запрос", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsContacts": {"title": "channelParticipantsContacts", "description": "Получить только участников, которые также являются контактами", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsContacts"]}, "q": {"type": "string", "x-tl-type": "string", "description": "Дополнительный поисковый запрос для поиска участников контакта по имени", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsMentions": {"title": "channelParticipantsMentions", "description": "Этот фильтр используется при поиске членов супергруппы для упоминания.\nЭтот фильтр автоматически удалит анонимных администраторов и вернет даже пользователей, не участвующих в форуме, которые ответили на конкретную [тему](https://core.telegram.org/api/threads.md) через [раздел комментариев](https://core.telegram.org/api/threads.md#channel-comments) канала.", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsMentions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsMentions"]}, "q": {"type": "string", "x-tl-type": "string", "description": "Фильтровать по имени пользователя или имени пользователя", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ищите только пользователей, разместивших сообщения в этой [теме](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_"], "additionalProperties": false}, "channels.channelParticipants": {"title": "channels.channelParticipants", "description": "Представляет нескольких участников канала", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.channelParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.channelParticipants"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество участников, соответствующих данному запросу", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "x-tl-type": "Vector<ChannelParticipant>", "description": "Участники", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в информации об участнике", "x-telegram-field-docs": true}}, "required": ["_", "count", "participants", "chats", "users"], "additionalProperties": false}, "channels.channelParticipantsNotModified": {"title": "channels.channelParticipantsNotModified", "description": "Не удалось найти информацию о новом участнике", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.channelParticipantsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.channelParticipantsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "channels.channelParticipant": {"title": "channels.channelParticipant", "description": "Представляет участника канала", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.channelParticipant"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.channelParticipant"]}, "participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Участник канала", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "participant", "chats", "users"], "additionalProperties": false}, "help.termsOfService": {"title": "help.termsOfService", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.termsOfService"]}, "popup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "id": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}, "text": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>"}, "min_age_confirm": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "id", "text", "entities"], "additionalProperties": false}, "messages.savedGifsNotModified": {"title": "messages.savedGifsNotModified", "description": "No new saved gifs were found", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedGifsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedGifsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.savedGifs": {"title": "messages.savedGifs", "description": "Сохраненные картинки", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedGifs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedGifs"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "gifs": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Список сохраненных картинок", "x-telegram-field-docs": true}}, "required": ["_", "hash", "gifs"], "additionalProperties": false}, "inputBotInlineMessageMediaAuto": {"title": "inputBotInlineMessageMediaAuto", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "inputBotInlineMessageText": {"title": "inputBotInlineMessageText", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageText"]}, "no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "inputBotInlineMessageMediaGeo": {"title": "inputBotInlineMessageMediaGeo", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaGeo"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Тип TL: InputGeoPoint."}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo_point"], "additionalProperties": false}, "inputBotInlineMessageMediaVenue": {"title": "inputBotInlineMessageMediaVenue", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaVenue"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Тип TL: InputGeoPoint."}, "title": {"type": "string", "x-tl-type": "string"}, "address": {"type": "string", "x-tl-type": "string"}, "provider": {"type": "string", "x-tl-type": "string"}, "venue_id": {"type": "string", "x-tl-type": "string"}, "venue_type": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo_point", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "inputBotInlineMessageMediaContact": {"title": "inputBotInlineMessageMediaContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string"}, "first_name": {"type": "string", "x-tl-type": "string"}, "last_name": {"type": "string", "x-tl-type": "string"}, "vcard": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard"], "additionalProperties": false}, "inputBotInlineMessageGame": {"title": "inputBotInlineMessageGame", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageGame"]}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_"], "additionalProperties": false}, "inputBotInlineMessageMediaInvoice": {"title": "inputBotInlineMessageMediaInvoice", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaInvoice"]}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "Тип TL: InputWebDocument.", "x-tl-flag": "flags.0?InputWebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Тип TL: Invoice."}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "provider": {"type": "string", "x-tl-type": "string"}, "provider_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "title", "description", "invoice", "payload", "provider", "provider_data"], "additionalProperties": false}, "inputBotInlineMessageMediaWebPage": {"title": "inputBotInlineMessageMediaWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaWebPage"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "optional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "url": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message", "url"], "additionalProperties": false}, "inputBotInlineMessageRichMessage": {"title": "inputBotInlineMessageRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageRichMessage"]}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichMessage", "inputRichMessageHTML", "inputRichMessageMarkdown"]}}, "description": "Тип TL: InputRichMessage."}}, "required": ["_", "rich_message"], "additionalProperties": false}, "inputBotInlineMessageWidget": {"title": "inputBotInlineMessageWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageWidget"]}, "allow_queries": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shared_widget": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "html": {"type": "string", "x-tl-type": "string"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.4?ReplyMarkup"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.5?Vector<MessageEntity>"}}, "required": ["_", "width", "height", "html", "message"], "additionalProperties": false}, "inputBotInlineMessageWidgetId": {"title": "inputBotInlineMessageWidgetId", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageWidgetId"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.1?ReplyMarkup"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.2?Vector<MessageEntity>"}}, "required": ["_", "widget_id", "message"], "additionalProperties": false}, "inputBotInlineResult": {"title": "inputBotInlineResult", "description": "Встроенный результат бота", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResult"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResult"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор результата", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "Тип результата (см. [bot API docs](https://core.telegram.org/bots/api/types/inlinequeryresult.md))", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название результата", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание результата", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL результата", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "thumb": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "Миниатюра результата", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?InputWebDocument"}, "content": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "Содержание результата", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?InputWebDocument"}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "Сообщение для отправки при выборе результата", "x-telegram-field-docs": true}}, "required": ["_", "id", "type", "send_message"], "additionalProperties": false}, "inputBotInlineResultPhoto": {"title": "inputBotInlineResultPhoto", "description": "Фото", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResultPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResultPhoto"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор результата", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "Тип результата (см. [bot API docs](https://core.telegram.org/bots/api/types/inlinequeryresult.md))", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Фото для отправки", "x-telegram-field-docs": true}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "Сообщение для отправки при выборе результата", "x-telegram-field-docs": true}}, "required": ["_", "id", "type", "photo", "send_message"], "additionalProperties": false}, "inputBotInlineResultDocument": {"title": "inputBotInlineResultDocument", "description": "Документ (носитель любого типа, кроме фотографий)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResultDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResultDocument"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор результата", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "Тип результата (см. [bot API docs](https://core.telegram.org/bots/api/types/inlinequeryresult.md))", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название результата", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание результата", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Документ для отправки", "x-telegram-field-docs": true}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "Сообщение для отправки при выборе результата", "x-telegram-field-docs": true}}, "required": ["_", "id", "type", "document", "send_message"], "additionalProperties": false}, "inputBotInlineResultGame": {"title": "inputBotInlineResultGame", "description": "Игра", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResultGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResultGame"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор результата", "x-telegram-field-docs": true}, "short_name": {"type": "string", "x-tl-type": "string", "description": "Краткое название игры", "x-telegram-field-docs": true}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "Сообщение для отправки при выборе результата", "x-telegram-field-docs": true}}, "required": ["_", "id", "short_name", "send_message"], "additionalProperties": false}, "botInlineMessageMediaAuto": {"title": "botInlineMessageMediaAuto", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaAuto"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "botInlineMessageText": {"title": "botInlineMessageText", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageText"]}, "no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "botInlineMessageMediaGeo": {"title": "botInlineMessageMediaGeo", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaGeo"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo"], "additionalProperties": false}, "botInlineMessageMediaVenue": {"title": "botInlineMessageMediaVenue", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaVenue"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "title": {"type": "string", "x-tl-type": "string"}, "address": {"type": "string", "x-tl-type": "string"}, "provider": {"type": "string", "x-tl-type": "string"}, "venue_id": {"type": "string", "x-tl-type": "string"}, "venue_type": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "botInlineMessageMediaContact": {"title": "botInlineMessageMediaContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string"}, "first_name": {"type": "string", "x-tl-type": "string"}, "last_name": {"type": "string", "x-tl-type": "string"}, "vcard": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard"], "additionalProperties": false}, "botInlineMessageMediaInvoice": {"title": "botInlineMessageMediaInvoice", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaInvoice"]}, "shipping_address_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "test": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.0?WebDocument"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "title", "description", "currency", "total_amount"], "additionalProperties": false}, "botInlineMessageMediaWebPage": {"title": "botInlineMessageMediaWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaWebPage"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "manual": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "safe": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "url": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message", "url"], "additionalProperties": false}, "botInlineMessageRichMessage": {"title": "botInlineMessageRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageRichMessage"]}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}}, "required": ["_", "rich_message"], "additionalProperties": false}, "botInlineMessageWidget": {"title": "botInlineMessageWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageWidget"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.4?Vector<MessageEntity>"}}, "required": ["_", "width", "height", "payload", "message"], "additionalProperties": false}, "botInlineResult": {"title": "botInlineResult", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineResult"]}, "id": {"type": "string", "x-tl-type": "string"}, "type": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "thumb": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.4?WebDocument"}, "content": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.5?WebDocument"}, "send_message": {"type": "object", "x-tl-type": "BotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaAuto", "botInlineMessageText", "botInlineMessageMediaGeo", "botInlineMessageMediaVenue", "botInlineMessageMediaContact", "botInlineMessageMediaInvoice", "botInlineMessageMediaWebPage", "botInlineMessageRichMessage", "botInlineMessageWidget"]}}, "description": "Тип TL: BotInlineMessage."}}, "required": ["_", "id", "type", "send_message"], "additionalProperties": false}, "botInlineMediaResult": {"title": "botInlineMediaResult", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMediaResult"]}, "id": {"type": "string", "x-tl-type": "string"}, "type": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.0?Photo"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.1?Document"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "send_message": {"type": "object", "x-tl-type": "BotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaAuto", "botInlineMessageText", "botInlineMessageMediaGeo", "botInlineMessageMediaVenue", "botInlineMessageMediaContact", "botInlineMessageMediaInvoice", "botInlineMessageMediaWebPage", "botInlineMessageRichMessage", "botInlineMessageWidget"]}}, "description": "Тип TL: BotInlineMessage."}}, "required": ["_", "id", "type", "send_message"], "additionalProperties": false}, "messages.botResults": {"title": "messages.botResults", "description": "Результат запроса встроенному боту", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botResults"]}, "gallery": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли результат картинной галереей", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор запроса", "x-tl-type": "long", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Следующее смещение, которое будет использоваться при навигации по результатам.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "switch_pm": {"type": "object", "x-tl-type": "InlineBotSwitchPM", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineBotSwitchPM"]}}, "description": "Отображается в виде кнопки поверх оставшегося встроенного списка результатов; при нажатии перенаправляет пользователя в приватный чат с ботом с указанным параметром запуска.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InlineBotSwitchPM"}, "switch_webview": {"type": "object", "x-tl-type": "InlineBotWebView", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineBotWebView"]}}, "description": "Отображается в виде кнопки поверх оставшегося встроенного списка результатов; при нажатии открывается указанное [мини-приложение встроенного режима](https://core.telegram.org/api/bots/webapps.md#inline-mode-mini-apps).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InlineBotWebView"}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "BotInlineResult", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInlineResult", "botInlineMediaResult"]}}, "description": "Тип TL: BotInlineResult."}, "x-tl-type": "Vector<BotInlineResult>", "description": "Результаты", "x-telegram-field-docs": true}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Кэширование достоверности результатов", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в результатах", "x-telegram-field-docs": true}}, "required": ["_", "query_id", "results", "cache_time", "users"], "additionalProperties": false}, "exportedMessageLink": {"title": "exportedMessageLink", "description": "Ссылка на сообщение в супергруппе/канале", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedMessageLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedMessageLink"]}, "link": {"type": "string", "x-tl-type": "string", "description": "URL", "x-telegram-field-docs": true}, "html": {"type": "string", "x-tl-type": "string", "description": "Встроить код", "x-telegram-field-docs": true}}, "required": ["_", "link", "html"], "additionalProperties": false}, "messageFwdHeader": {"title": "messageFwdHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}, "imported": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "saved_out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "from_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "channel_post": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "post_author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "saved_from_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.4?Peer"}, "saved_from_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "saved_from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.8?Peer"}, "saved_from_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.9?string"}, "saved_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "psa_type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}}, "required": ["_", "date"], "additionalProperties": false}, "auth.codeTypeSms": {"title": "auth.codeTypeSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeSms"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeCall": {"title": "auth.codeTypeCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeCall"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeFlashCall": {"title": "auth.codeTypeFlashCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeFlashCall"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeMissedCall": {"title": "auth.codeTypeMissedCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeMissedCall"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeFragmentSms": {"title": "auth.codeTypeFragmentSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeFragmentSms"]}}, "required": ["_"], "additionalProperties": false}, "auth.sentCodeTypeApp": {"title": "auth.sentCodeTypeApp", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeApp"]}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeSms": {"title": "auth.sentCodeTypeSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSms"]}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeCall": {"title": "auth.sentCodeTypeCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeCall"]}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeFlashCall": {"title": "auth.sentCodeTypeFlashCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeFlashCall"]}, "pattern": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "pattern"], "additionalProperties": false}, "auth.sentCodeTypeMissedCall": {"title": "auth.sentCodeTypeMissedCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeMissedCall"]}, "prefix": {"type": "string", "x-tl-type": "string"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "prefix", "length"], "additionalProperties": false}, "auth.sentCodeTypeEmailCode": {"title": "auth.sentCodeTypeEmailCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeEmailCode"]}, "apple_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "google_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "email_pattern": {"type": "string", "x-tl-type": "string"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reset_available_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "reset_pending_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "email_pattern", "length"], "additionalProperties": false}, "auth.sentCodeTypeSetUpEmailRequired": {"title": "auth.sentCodeTypeSetUpEmailRequired", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSetUpEmailRequired"]}, "apple_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "google_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "auth.sentCodeTypeFragmentSms": {"title": "auth.sentCodeTypeFragmentSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeFragmentSms"]}, "url": {"type": "string", "x-tl-type": "string"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "url", "length"], "additionalProperties": false}, "auth.sentCodeTypeFirebaseSms": {"title": "auth.sentCodeTypeFirebaseSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeFirebaseSms"]}, "nonce": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "play_integrity_project_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "play_integrity_nonce": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.2?bytes"}, "receipt": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "push_timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeSmsWord": {"title": "auth.sentCodeTypeSmsWord", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSmsWord"]}, "beginning": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_"], "additionalProperties": false}, "auth.sentCodeTypeSmsPhrase": {"title": "auth.sentCodeTypeSmsPhrase", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSmsPhrase"]}, "beginning": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_"], "additionalProperties": false}, "messages.botCallbackAnswer": {"title": "messages.botCallbackAnswer", "description": "Ответ обратного вызова, отправленный ботом в ответ на нажатие кнопки", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botCallbackAnswer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botCallbackAnswer"]}, "alert": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли отображать пользователю оповещение вместо всплывающего уведомления", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_url": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Присутствует ли URL", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "native_ui": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Показывать ли игры в WebView или в собственном пользовательском интерфейсе.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "message": {"type": "string", "x-tl-type": "string", "description": "Оповещение о показе", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL, чтобы открыть", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Как долго этот ответ должен храниться в кэше", "x-telegram-field-docs": true}}, "required": ["_", "cache_time"], "additionalProperties": false}, "messages.messageEditData": {"title": "messages.messageEditData", "description": "Данные редактирования сообщения для мультимедиа", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messageEditData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messageEditData"]}, "caption": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Заголовок носителя, если заголовок указанного носителя можно редактировать.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "inputBotInlineMessageID": {"title": "inputBotInlineMessageID", "description": "Представляет отправленное встроенное сообщение с точки зрения бота (устаревший конструктор).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineMessageID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор DC, который будет использоваться при работе с этим встроенным сообщением.", "x-telegram-field-docs": true}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор сообщения содержит как идентификатор владельца (32-битный, устаревший), так и идентификатор сообщения, используемый только для обратной совместимости бота API с 32-битным идентификатором пользователя.", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу сообщения", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "id", "access_hash"], "additionalProperties": false}, "inputBotInlineMessageID64": {"title": "inputBotInlineMessageID64", "description": "Представляет отправленное встроенное сообщение с точки зрения бота.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineMessageID64"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID64"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор DC, который будет использоваться при работе с этим встроенным сообщением.", "x-telegram-field-docs": true}, "owner_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор владельца этого сообщения", "x-tl-type": "long", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "идентификатор сообщения", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу сообщения", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "owner_id", "id", "access_hash"], "additionalProperties": false}, "inlineBotSwitchPM": {"title": "inlineBotSwitchPM", "description": "Бот попросил пользователя отправить ему личное сообщение.", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineBotSwitchPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineBotSwitchPM"]}, "text": {"type": "string", "x-tl-type": "string", "description": "Текст для кнопки, которая переключает пользователя в приватный чат с ботом и отправляет боту стартовое сообщение с параметром `start_parameter` (может быть пустым)", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "Параметр для `/start parameter`", "x-telegram-field-docs": true}}, "required": ["_", "text", "start_param"], "additionalProperties": false}, "messages.peerDialogs": {"title": "messages.peerDialogs", "description": "Информация о диалоге нескольких пиров", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.peerDialogs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.peerDialogs"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Тип TL: Dialog."}, "x-tl-type": "Vector<Dialog>", "description": "Информация о диалоге", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Сообщения, упомянутые в информации диалога", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}, "state": {"type": "object", "x-tl-type": "updates.State", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updates.state"]}}, "description": "Текущее [обновить состояние диалога](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}}, "required": ["_", "dialogs", "messages", "chats", "users", "state"], "additionalProperties": false}, "topPeer": {"title": "topPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "rating": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "peer", "rating"], "additionalProperties": false}, "topPeerCategoryBotsPM": {"title": "topPeerCategoryBotsPM", "description": "Самые используемые боты", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsPM"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsInline": {"title": "topPeerCategoryBotsInline", "description": "Наиболее часто используемые встроенные боты", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsInline"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsInline"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryCorrespondents": {"title": "topPeerCategoryCorrespondents", "description": "Пользователи, с которыми мы чаще всего общаемся", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryCorrespondents"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryCorrespondents"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryGroups": {"title": "topPeerCategoryGroups", "description": "Часто открываемые группы и супергруппы", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryGroups"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryGroups"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryChannels": {"title": "topPeerCategoryChannels", "description": "Наиболее часто посещаемые каналы", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryChannels"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryChannels"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryPhoneCalls": {"title": "topPeerCategoryPhoneCalls", "description": "Наиболее часто звонящие пользователи", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryPhoneCalls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryPhoneCalls"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryForwardUsers": {"title": "topPeerCategoryForwardUsers", "description": "Пользователи, которым пользователи часто пересылают сообщения", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryForwardUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryForwardUsers"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryForwardChats": {"title": "topPeerCategoryForwardChats", "description": "Чаты, в которые пользователи часто пересылают сообщения", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryForwardChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryForwardChats"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsApp": {"title": "topPeerCategoryBotsApp", "description": "Наиболее часто используемые [Основные приложения мини-ботов](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsApp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsApp"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsGuestChat": {"title": "topPeerCategoryBotsGuestChat", "description": "Топ [гостевые боты»](https://core.telegram.org/api/bots/guest-mode.md), i.e. боты чаще всего вызываются в качестве гостей в чатах.", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsGuestChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsGuestChat"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryPeers": {"title": "topPeerCategoryPeers", "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryPeers"]}, "category": {"type": "object", "x-tl-type": "TopPeerCategory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats", "topPeerCategoryBotsApp", "topPeerCategoryBotsGuestChat"]}}, "description": "Тип TL: TopPeerCategory."}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "TopPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["topPeer"]}}, "description": "Тип TL: TopPeer."}, "x-tl-type": "Vector<TopPeer>"}}, "required": ["_", "category", "count", "peers"], "additionalProperties": false}, "contacts.topPeersNotModified": {"title": "contacts.topPeersNotModified", "description": "Информация о ведущих коллегах не изменилась.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.topPeersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.topPeersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "contacts.topPeers": {"title": "contacts.topPeers", "description": "Лучшие коллеги", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.topPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.topPeers"]}, "categories": {"type": "array", "items": {"type": "object", "x-tl-type": "TopPeerCategoryPeers", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["topPeerCategoryPeers"]}}, "description": "Тип TL: TopPeerCategoryPeers."}, "x-tl-type": "Vector<TopPeerCategoryPeers>", "description": "Лучшие аналоги по категориям лучших аналогов", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "categories", "chats", "users"], "additionalProperties": false}, "contacts.topPeersDisabled": {"title": "contacts.topPeersDisabled", "description": "Лучшие коллеги отключены", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.topPeersDisabled"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.topPeersDisabled"]}}, "required": ["_"], "additionalProperties": false}, "draftMessageEmpty": {"title": "draftMessageEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "ai_style": {"type": "object", "x-tl-type": "InputAiComposeStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputAiComposeStyle"]}}, "description": "Тип TL: InputAiComposeStyle.", "x-tl-flag": "flags.1?InputAiComposeStyle"}}, "required": ["_"], "additionalProperties": false}, "draftMessage": {"title": "draftMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["draftMessage"]}, "no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum", "inputReplyToEphemeralMessage"]}}, "description": "Тип TL: InputReplyTo.", "x-tl-flag": "flags.4?InputReplyTo"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>"}, "media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "Тип TL: InputMedia.", "x-tl-flag": "flags.5?InputMedia"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["suggestedPost"]}}, "description": "Тип TL: SuggestedPost.", "x-tl-flag": "flags.8?SuggestedPost"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage.", "x-tl-flag": "flags.9?RichMessage"}, "ai_style": {"type": "object", "x-tl-type": "InputAiComposeStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputAiComposeStyle"]}}, "description": "Тип TL: InputAiComposeStyle.", "x-tl-flag": "flags.10?InputAiComposeStyle"}}, "required": ["_", "message", "date"], "additionalProperties": false}, "messages.featuredStickersNotModified": {"title": "messages.featuredStickersNotModified", "description": "Рекомендуемые стикеры не изменились.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.featuredStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.featuredStickersNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество избранных стикеров", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "messages.featuredStickers": {"title": "messages.featuredStickers", "description": "Рекомендуемые наборы наклеек", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.featuredStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.featuredStickers"]}, "premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будь то премиум-наклейка", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество избранных стикеров", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "Тип TL: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "Рекомендуемые наборы наклеек", "x-telegram-field-docs": true}, "unread": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Идентификаторы новых избранных наборов стикеров", "x-telegram-field-docs": true}}, "required": ["_", "hash", "count", "sets", "unread"], "additionalProperties": false}, "messages.recentStickersNotModified": {"title": "messages.recentStickersNotModified", "description": "Новых недавних стикеров не найдено", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.recentStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.recentStickersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.recentStickers": {"title": "messages.recentStickers", "description": "Недавно использованные стикеры", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.recentStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.recentStickers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "Эмодзи, связанные со стикерами", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Недавние стикеры", "x-telegram-field-docs": true}, "dates": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Когда в последний раз использовалась каждая наклейка", "x-telegram-field-docs": true}}, "required": ["_", "hash", "packs", "stickers", "dates"], "additionalProperties": false}, "messages.archivedStickers": {"title": "messages.archivedStickers", "description": "Архив наборов стикеров", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.archivedStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.archivedStickers"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество заархивированных стикеров", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "Тип TL: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "Архив наборов стикеров", "x-telegram-field-docs": true}}, "required": ["_", "count", "sets"], "additionalProperties": false}, "messages.stickerSetInstallResultSuccess": {"title": "messages.stickerSetInstallResultSuccess", "description": "Набор стикеров успешно установлен.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickerSetInstallResultSuccess"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickerSetInstallResultSuccess"]}}, "required": ["_"], "additionalProperties": false}, "messages.stickerSetInstallResultArchive": {"title": "messages.stickerSetInstallResultArchive", "description": "Набор стикеров установился, но так как наборов стикеров слишком много, некоторые были заархивированы.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickerSetInstallResultArchive"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickerSetInstallResultArchive"]}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "Тип TL: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "Архив наборов стикеров", "x-telegram-field-docs": true}}, "required": ["_", "sets"], "additionalProperties": false}, "stickerSetCovered": {"title": "stickerSetCovered", "description": "Набор стикеров с одной наклейкой в качестве предварительного просмотра", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Набор наклеек", "x-telegram-field-docs": true}, "cover": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Предварительный просмотр", "x-telegram-field-docs": true}}, "required": ["_", "set", "cover"], "additionalProperties": false}, "stickerSetMultiCovered": {"title": "stickerSetMultiCovered", "description": "Набор стикеров с несколькими стикерами в качестве предварительного просмотра", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetMultiCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetMultiCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Набор наклеек", "x-telegram-field-docs": true}, "covers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Предварительный просмотр стикеров", "x-telegram-field-docs": true}}, "required": ["_", "set", "covers"], "additionalProperties": false}, "stickerSetFullCovered": {"title": "stickerSetFullCovered", "description": "Предварительный просмотр набора стикеров со всеми наклейками из набора.\nВ настоящее время используется только для [пользовательских наборов стикеров эмодзи](https://core.telegram.org/api/custom-emoji.md), чтобы избежать дальнейшего вызова [messages.getStickerSet](https://core.telegram.org/method/messages.getStickerSet.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetFullCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetFullCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Набор наклеек", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "Информация об эмодзи о каждой наклейке в наборе стикеров.", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerKeyword"]}}, "description": "Тип TL: StickerKeyword."}, "x-tl-type": "Vector<StickerKeyword>", "description": "Ключевые слова для некоторых или всех стикеров в наборе стикеров.", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Наклейки", "x-telegram-field-docs": true}}, "required": ["_", "set", "packs", "keywords", "documents"], "additionalProperties": false}, "stickerSetNoCovered": {"title": "stickerSetNoCovered", "description": "Только информация о стикерсете, без предварительного просмотра.", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetNoCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetNoCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Информация о наборе стикеров.", "x-telegram-field-docs": true}}, "required": ["_", "set"], "additionalProperties": false}, "maskCoords": {"title": "maskCoords", "description": "Позиция на фотографии, где должна быть размещена маска при [прикреплении наклеек к носителю »](https://core.telegram.org/api/stickers.md#attached-stickers)\n\nПоложение `n` указывает, где следует разместить маску:\n\n- 0 => Относительно лба\n- 1 => относительно глаз\n- 2 => Относительно рта\n- 3 => Относительно подбородка", "externalDocs": {"url": "https://core.telegram.org/constructor/maskCoords"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["maskCoords"]}, "n": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Часть лица, относительно которой должна располагаться маска", "x-telegram-field-docs": true}, "x": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Сдвиг по оси X измеряется по ширине маски, масштабированной по размеру лица, слева направо. (Например, при значении -1.0 маска будет размещена слева от позиции маски по умолчанию)", "x-telegram-field-docs": true}, "y": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Сдвиг по оси Y измеряется по ширине маски, масштабированной по размеру лица, слева направо. (Например, -1.0 поместит маску чуть ниже позиции маски по умолчанию)", "x-telegram-field-docs": true}, "zoom": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Коэффициент масштабирования маски. (Например, 2,0 означает удвоенный размер)", "x-telegram-field-docs": true}}, "required": ["_", "n", "x", "y", "zoom"], "additionalProperties": false}, "inputStickeredMediaPhoto": {"title": "inputStickeredMediaPhoto", "description": "Фотография с прикрепленными наклейками", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickeredMediaPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickeredMediaPhoto"]}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Фотография", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputStickeredMediaDocument": {"title": "inputStickeredMediaDocument", "description": "Документ с прикрепленными наклейками", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickeredMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickeredMediaDocument"]}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Документ", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "game": {"title": "game", "type": "object", "properties": {"_": {"type": "string", "enum": ["game"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "short_name": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.0?Document"}}, "required": ["_", "id", "access_hash", "short_name", "title", "description", "photo"], "additionalProperties": false}, "inputGameID": {"title": "inputGameID", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGameID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputGameShortName": {"title": "inputGameShortName", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGameShortName"]}, "bot_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "short_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "bot_id", "short_name"], "additionalProperties": false}, "highScore": {"title": "highScore", "type": "object", "properties": {"_": {"type": "string", "enum": ["highScore"]}, "pos": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "score": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "pos", "user_id", "score"], "additionalProperties": false}, "messages.highScores": {"title": "messages.highScores", "description": "Рекорды в игре", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.highScores"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.highScores"]}, "scores": {"type": "array", "items": {"type": "object", "x-tl-type": "HighScore", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["highScore"]}}, "description": "Тип TL: HighScore."}, "x-tl-type": "Vector<HighScore>", "description": "Рейтинги", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, связанные с рекордами", "x-telegram-field-docs": true}}, "required": ["_", "scores", "users"], "additionalProperties": false}, "textEmpty": {"title": "textEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["textEmpty"]}}, "required": ["_"], "additionalProperties": false}, "textPlain": {"title": "textPlain", "type": "object", "properties": {"_": {"type": "string", "enum": ["textPlain"]}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text"], "additionalProperties": false}, "textBold": {"title": "textBold", "type": "object", "properties": {"_": {"type": "string", "enum": ["textBold"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textItalic": {"title": "textItalic", "type": "object", "properties": {"_": {"type": "string", "enum": ["textItalic"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textUnderline": {"title": "textUnderline", "type": "object", "properties": {"_": {"type": "string", "enum": ["textUnderline"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textStrike": {"title": "textStrike", "type": "object", "properties": {"_": {"type": "string", "enum": ["textStrike"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textFixed": {"title": "textFixed", "type": "object", "properties": {"_": {"type": "string", "enum": ["textFixed"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textUrl": {"title": "textUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["textUrl"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "url": {"type": "string", "x-tl-type": "string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "text", "url", "webpage_id"], "additionalProperties": false}, "textEmail": {"title": "textEmail", "type": "object", "properties": {"_": {"type": "string", "enum": ["textEmail"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "email": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "email"], "additionalProperties": false}, "textConcat": {"title": "textConcat", "type": "object", "properties": {"_": {"type": "string", "enum": ["textConcat"]}, "texts": {"type": "array", "items": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "x-tl-type": "Vector<RichText>"}}, "required": ["_", "texts"], "additionalProperties": false}, "textSubscript": {"title": "textSubscript", "type": "object", "properties": {"_": {"type": "string", "enum": ["textSubscript"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textSuperscript": {"title": "textSuperscript", "type": "object", "properties": {"_": {"type": "string", "enum": ["textSuperscript"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textMarked": {"title": "textMarked", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMarked"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textPhone": {"title": "textPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["textPhone"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "phone"], "additionalProperties": false}, "textImage": {"title": "textImage", "type": "object", "properties": {"_": {"type": "string", "enum": ["textImage"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "document_id", "w", "h"], "additionalProperties": false}, "textAnchor": {"title": "textAnchor", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAnchor"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "name"], "additionalProperties": false}, "textMath": {"title": "textMath", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMath"]}, "source": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "source"], "additionalProperties": false}, "textCustomEmoji": {"title": "textCustomEmoji", "type": "object", "properties": {"_": {"type": "string", "enum": ["textCustomEmoji"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "alt": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "document_id", "alt"], "additionalProperties": false}, "textSpoiler": {"title": "textSpoiler", "type": "object", "properties": {"_": {"type": "string", "enum": ["textSpoiler"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textMention": {"title": "textMention", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMention"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textHashtag": {"title": "textHashtag", "type": "object", "properties": {"_": {"type": "string", "enum": ["textHashtag"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textBotCommand": {"title": "textBotCommand", "type": "object", "properties": {"_": {"type": "string", "enum": ["textBotCommand"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textCashtag": {"title": "textCashtag", "type": "object", "properties": {"_": {"type": "string", "enum": ["textCashtag"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textAutoUrl": {"title": "textAutoUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAutoUrl"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textAutoEmail": {"title": "textAutoEmail", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAutoEmail"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textAutoPhone": {"title": "textAutoPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAutoPhone"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textBankCard": {"title": "textBankCard", "type": "object", "properties": {"_": {"type": "string", "enum": ["textBankCard"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textMentionName": {"title": "textMentionName", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMentionName"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "text", "user_id"], "additionalProperties": false}, "textDate": {"title": "textDate", "type": "object", "properties": {"_": {"type": "string", "enum": ["textDate"]}, "relative": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "short_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "long_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "short_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "long_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "day_of_week": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "text", "date"], "additionalProperties": false}, "textDiff": {"title": "textDiff", "type": "object", "properties": {"_": {"type": "string", "enum": ["textDiff"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "old_text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "old_text"], "additionalProperties": false}, "textButton": {"title": "textButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["textButton"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "type": {"type": "object", "x-tl-type": "InlineButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl", "inlineButtonTypeUrlAuth", "inputInlineButtonTypeUrlAuth", "inlineButtonTypeWebView", "inlineButtonTypeCallback", "inlineButtonTypeGame", "inlineButtonTypeBuy", "inlineButtonTypeSwitchInline", "inlineButtonTypeUserProfile", "inputInlineButtonTypeUserProfile", "inlineButtonTypeCopy", "inlineButtonTypeDisabled"]}}, "description": "Тип TL: InlineButtonType."}, "style": {"type": "object", "x-tl-type": "RichButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richButtonStyle"]}}, "description": "Тип TL: RichButtonStyle.", "x-tl-flag": "flags.0?RichButtonStyle"}}, "required": ["_", "text", "type"], "additionalProperties": false}, "textTonAddress": {"title": "textTonAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["textTonAddress"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockUnsupported": {"title": "pageBlockUnsupported", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "pageBlockTitle": {"title": "pageBlockTitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockTitle"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockSubtitle": {"title": "pageBlockSubtitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockSubtitle"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockAuthorDate": {"title": "pageBlockAuthorDate", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockAuthorDate"]}, "author": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "published_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "author", "published_date"], "additionalProperties": false}, "pageBlockHeader": {"title": "pageBlockHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeader"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockSubheader": {"title": "pageBlockSubheader", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockSubheader"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockParagraph": {"title": "pageBlockParagraph", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockParagraph"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockPreformatted": {"title": "pageBlockPreformatted", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockPreformatted"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "language": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "language"], "additionalProperties": false}, "pageBlockFooter": {"title": "pageBlockFooter", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockFooter"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockDivider": {"title": "pageBlockDivider", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockDivider"]}}, "required": ["_"], "additionalProperties": false}, "pageBlockAnchor": {"title": "pageBlockAnchor", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockAnchor"]}, "name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "name"], "additionalProperties": false}, "pageBlockList": {"title": "pageBlockList", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockList"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageListItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageListItemText", "pageListItemBlocks"]}}, "description": "Тип TL: PageListItem."}, "x-tl-type": "Vector<PageListItem>"}}, "required": ["_", "items"], "additionalProperties": false}, "pageBlockBlockquote": {"title": "pageBlockBlockquote", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockBlockquote"]}, "collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "caption": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "caption"], "additionalProperties": false}, "pageBlockPullquote": {"title": "pageBlockPullquote", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockPullquote"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "caption": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "caption"], "additionalProperties": false}, "pageBlockPhoto": {"title": "pageBlockPhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "photo_id", "caption"], "additionalProperties": false}, "pageBlockVideo": {"title": "pageBlockVideo", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockVideo"]}, "autoplay": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "loop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "video_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "video_id", "caption"], "additionalProperties": false}, "pageBlockCover": {"title": "pageBlockCover", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockCover"]}, "cover": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}}, "required": ["_", "cover"], "additionalProperties": false}, "pageBlockEmbed": {"title": "pageBlockEmbed", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockEmbed"]}, "full_width": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "allow_scrolling": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "html": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "poster_photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "caption"], "additionalProperties": false}, "pageBlockEmbedPost": {"title": "pageBlockEmbedPost", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockEmbedPost"]}, "url": {"type": "string", "x-tl-type": "string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "author_photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "author": {"type": "string", "x-tl-type": "string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "url", "webpage_id", "author_photo_id", "author", "date", "blocks", "caption"], "additionalProperties": false}, "pageBlockCollage": {"title": "pageBlockCollage", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockCollage"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "items", "caption"], "additionalProperties": false}, "pageBlockSlideshow": {"title": "pageBlockSlideshow", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockSlideshow"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "items", "caption"], "additionalProperties": false}, "pageBlockChannel": {"title": "pageBlockChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockChannel"]}, "channel": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}}, "required": ["_", "channel"], "additionalProperties": false}, "pageBlockAudio": {"title": "pageBlockAudio", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockAudio"]}, "audio_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "audio_id", "caption"], "additionalProperties": false}, "pageBlockKicker": {"title": "pageBlockKicker", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockKicker"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockTable": {"title": "pageBlockTable", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockTable"]}, "bordered": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "striped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "title": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "PageTableRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageTableRow"]}}, "description": "Тип TL: PageTableRow."}, "x-tl-type": "Vector<PageTableRow>"}}, "required": ["_", "title", "rows"], "additionalProperties": false}, "pageBlockOrderedList": {"title": "pageBlockOrderedList", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockOrderedList"]}, "reversed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageListOrderedItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemText", "pageListOrderedItemBlocks"]}}, "description": "Тип TL: PageListOrderedItem."}, "x-tl-type": "Vector<PageListOrderedItem>"}, "start": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "items"], "additionalProperties": false}, "pageBlockDetails": {"title": "pageBlockDetails", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockDetails"]}, "open": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "title": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "blocks", "title"], "additionalProperties": false}, "pageBlockRelatedArticles": {"title": "pageBlockRelatedArticles", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockRelatedArticles"]}, "title": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "articles": {"type": "array", "items": {"type": "object", "x-tl-type": "PageRelatedArticle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageRelatedArticle"]}}, "description": "Тип TL: PageRelatedArticle."}, "x-tl-type": "Vector<PageRelatedArticle>"}}, "required": ["_", "title", "articles"], "additionalProperties": false}, "pageBlockMap": {"title": "pageBlockMap", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockMap"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "zoom": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "geo", "zoom", "w", "h", "caption"], "additionalProperties": false}, "pageBlockHeading1": {"title": "pageBlockHeading1", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading1"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading2": {"title": "pageBlockHeading2", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading2"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading3": {"title": "pageBlockHeading3", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading3"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading4": {"title": "pageBlockHeading4", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading4"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading5": {"title": "pageBlockHeading5", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading5"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading6": {"title": "pageBlockHeading6", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading6"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockMath": {"title": "pageBlockMath", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockMath"]}, "source": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "source"], "additionalProperties": false}, "pageBlockThinking": {"title": "pageBlockThinking", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockThinking"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "inputPageBlockMap": {"title": "inputPageBlockMap", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPageBlockMap"]}, "geo": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Тип TL: InputGeoPoint."}, "zoom": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "geo", "zoom", "w", "h", "caption"], "additionalProperties": false}, "pageBlockBlockquoteBlocks": {"title": "pageBlockBlockquoteBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockBlockquoteBlocks"]}, "collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "blocks", "caption"], "additionalProperties": false}, "pageBlockButtonRow": {"title": "pageBlockButtonRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockButtonRow"]}, "align_left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "align_center": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "align_right": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "buttons": {"type": "array", "items": {"type": "object", "x-tl-type": "PageButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageButton"]}}, "description": "Тип TL: PageButton."}, "x-tl-type": "Vector<PageButton>"}}, "required": ["_", "buttons"], "additionalProperties": false}, "pageBlockDocument": {"title": "pageBlockDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockDocument"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "document_id", "caption"], "additionalProperties": false}, "phoneCallDiscardReasonMissed": {"title": "phoneCallDiscardReasonMissed", "description": "Телефонный звонок был пропущен, дополнительную информацию см. [здесь »](https://core.telegram.org/api/calls.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonMissed"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMissed"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonDisconnect": {"title": "phoneCallDiscardReasonDisconnect", "description": "Телефонный звонок был прерван, дополнительную информацию см. [здесь »](https://core.telegram.org/api/calls.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonDisconnect"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonDisconnect"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonHangup": {"title": "phoneCallDiscardReasonHangup", "description": "Телефонный звонок был завершен нормально, см. [здесь »](https://core.telegram.org/api/calls.md) дополнительную информацию.", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonHangup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonHangup"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonBusy": {"title": "phoneCallDiscardReasonBusy", "description": "Телефонный звонок был отклонен, поскольку пользователь занят другим вызовом. Дополнительную информацию см. [здесь »](https://core.telegram.org/api/calls.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonBusy"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonBusy"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonMigrateConferenceCall": {"title": "phoneCallDiscardReasonMigrateConferenceCall", "description": "Этот телефонный звонок был перенесен на [конференц-связь](https://core.telegram.org/api/end-to-end/group-calls.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonMigrateConferenceCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMigrateConferenceCall"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "[Ссылка на конференцию »](https://core.telegram.org/api/links.md#conference-links) пул.", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "dataJSON": {"title": "dataJSON", "description": "Represents a json-encoded object", "externalDocs": {"url": "https://core.telegram.org/constructor/dataJSON"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dataJSON"]}, "data": {"type": "string", "x-tl-type": "string", "description": "JSON-кодированный объект", "x-telegram-field-docs": true}}, "required": ["_", "data"], "additionalProperties": false}, "labeledPrice": {"title": "labeledPrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["labeledPrice"]}, "label": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "label", "amount"], "additionalProperties": false}, "invoice": {"title": "invoice", "type": "object", "properties": {"_": {"type": "string", "enum": ["invoice"]}, "test": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "name_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "phone_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "email_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "shipping_address_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "flexible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "phone_to_provider": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "email_to_provider": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "recurring": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "prices": {"type": "array", "items": {"type": "object", "x-tl-type": "LabeledPrice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["labeledPrice"]}}, "description": "Тип TL: LabeledPrice."}, "x-tl-type": "Vector<LabeledPrice>"}, "max_tip_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "suggested_tip_amounts": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.8?Vector<long>"}, "terms_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.10?string"}, "subscription_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}}, "required": ["_", "currency", "prices"], "additionalProperties": false}, "paymentCharge": {"title": "paymentCharge", "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentCharge"]}, "id": {"type": "string", "x-tl-type": "string"}, "provider_charge_id": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "provider_charge_id"], "additionalProperties": false}, "postAddress": {"title": "postAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["postAddress"]}, "street_line1": {"type": "string", "x-tl-type": "string"}, "street_line2": {"type": "string", "x-tl-type": "string"}, "city": {"type": "string", "x-tl-type": "string"}, "state": {"type": "string", "x-tl-type": "string"}, "country_iso2": {"type": "string", "x-tl-type": "string"}, "post_code": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "street_line1", "street_line2", "city", "state", "country_iso2", "post_code"], "additionalProperties": false}, "paymentRequestedInfo": {"title": "paymentRequestedInfo", "description": "Информация о заказе предоставлена пользователем", "externalDocs": {"url": "https://core.telegram.org/constructor/paymentRequestedInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}, "name": {"type": "string", "x-tl-type": "string", "description": "Полное имя пользователя", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "phone": {"type": "string", "x-tl-type": "string", "description": "Номер телефона пользователя", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "email": {"type": "string", "x-tl-type": "string", "description": "Адрес электронной почты пользователя", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "shipping_address": {"type": "object", "x-tl-type": "PostAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["postAddress"]}}, "description": "Адрес доставки пользователя", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?PostAddress"}}, "required": ["_"], "additionalProperties": false}, "paymentSavedCredentialsCard": {"title": "paymentSavedCredentialsCard", "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentSavedCredentialsCard"]}, "id": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "webDocument": {"title": "webDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["webDocument"]}, "url": {"type": "string", "x-tl-type": "string"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "mime_type": {"type": "string", "x-tl-type": "string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "access_hash", "size", "mime_type", "attributes"], "additionalProperties": false}, "webDocumentNoProxy": {"title": "webDocumentNoProxy", "type": "object", "properties": {"_": {"type": "string", "enum": ["webDocumentNoProxy"]}, "url": {"type": "string", "x-tl-type": "string"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "mime_type": {"type": "string", "x-tl-type": "string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "size", "mime_type", "attributes"], "additionalProperties": false}, "inputWebDocument": {"title": "inputWebDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}, "url": {"type": "string", "x-tl-type": "string"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "mime_type": {"type": "string", "x-tl-type": "string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "size", "mime_type", "attributes"], "additionalProperties": false}, "inputWebFileLocation": {"title": "inputWebFileLocation", "description": "Местоположение удаленного файла HTTP(s)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWebFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebFileLocation"]}, "url": {"type": "string", "x-tl-type": "string", "description": "HTTP URL файла", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "url", "access_hash"], "additionalProperties": false}, "inputWebFileGeoPointLocation": {"title": "inputWebFileGeoPointLocation", "description": "Используется для загрузки сгенерированного сервером изображения с предварительным просмотром карты из [geoPoint](https://core.telegram.org/constructor/geoPoint.md), дополнительную информацию см. в документации по веб-файлам »](https://core.telegram.org/api/files.md#downloading-webfiles).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWebFileGeoPointLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebFileGeoPointLocation"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Создано на основе параметров `lat`, `long` и `accuracy_radius` объекта [geoPoint](https://core.telegram.org/constructor/geoPoint.md)", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа к [geoPoint](https://core.telegram.org/constructor/geoPoint.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ширина карты в пикселях до применения масштаба; 16-1024", "x-telegram-field-docs": true}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Высота карты в пикселях до применения масштаба; 16-1024", "x-telegram-field-docs": true}, "zoom": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Уровень масштабирования карты; 13-20", "x-telegram-field-docs": true}, "scale": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Масштаб карты; 1-3", "x-telegram-field-docs": true}}, "required": ["_", "geo_point", "access_hash", "w", "h", "zoom", "scale"], "additionalProperties": false}, "inputWebFileAudioAlbumThumbLocation": {"title": "inputWebFileAudioAlbumThumbLocation", "description": "Используется для загрузки обложки альбома для любого музыкального файла с помощью [upload.getWebFile](https://core.telegram.org/method/upload.getWebFile.md), дополнительную информацию см. в документации по веб-файлам »](https://core.telegram.org/api/files.md#downloading-webfiles).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWebFileAudioAlbumThumbLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebFileAudioAlbumThumbLocation"]}, "small": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Используется для возврата миниатюры с разрешением `100x100` (вместо стандартного `600x600`).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Аудиофайл, о котором идет речь: должен быть указан в секретных чатах NOT, вместо этого укажите поля `title` и `performer`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputDocument"}, "title": {"type": "string", "x-tl-type": "string", "description": "Название песни: следует использовать только в секретных чатах, в обычных чатах вместо этого укажите `document`, поскольку оно имеет более мягкие ограничения по скорости.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "performer": {"type": "string", "x-tl-type": "string", "description": "Исполнитель песни: следует использовать только в секретных чатах, в обычных чатах вместо этого укажите `document`, поскольку у него более мягкие ограничения по скорости.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_"], "additionalProperties": false}, "upload.webFile": {"title": "upload.webFile", "description": "Представляет собой фрагмент [HTTP веб-файла](https://core.telegram.org/api/files.md), загруженного через безопасные серверы MTProto Telegram.", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.webFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.webFile"]}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Размер файла", "x-telegram-field-docs": true}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "Тип пантомимы", "x-telegram-field-docs": true}, "file_type": {"type": "object", "x-tl-type": "storage.FileType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp"]}}, "description": "Тип файла", "x-telegram-field-docs": true}, "mtime": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Измененное время", "x-telegram-field-docs": true}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Данные", "x-telegram-field-docs": true}}, "required": ["_", "size", "mime_type", "file_type", "mtime", "bytes"], "additionalProperties": false}, "payments.paymentForm": {"title": "payments.paymentForm", "description": "Форма оплаты", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentForm"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentForm"]}, "can_save_credentials": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли пользователь выбрать сохранение учетных данных.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "password_missing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Указывает, что пользователь может сохранить платежные данные, но только после установки [пароля 2FA](https://core.telegram.org/api/srp.md) (в настоящее время у учетной записи нет [пароля 2FA](https://core.telegram.org/api/srp.md))", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор формы", "x-tl-type": "long", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор бота", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название формы", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Фото продукта", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?WebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Счет", "x-telegram-field-docs": true}, "provider_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор платежного провайдера.", "x-tl-type": "long", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "Форма оплаты URL", "x-telegram-field-docs": true}, "native_provider": {"type": "string", "x-tl-type": "string", "description": "Название платежного провайдера. Одно из следующих: - `stripe`", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "native_params": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Содержит информацию о поставщике платежей, если таковая имеется, для его поддержки без необходимости открытия URL. Объект JSON, который может содержать следующие поля: - `apple_pay_merchant_id`: Идентификатор продавца Apple Pay - `google_pay_public_key`: Открытый ключ Google Pay - `need_country`: True, если необходимо указать страну пользователя, - `need_zip`: True, если необходимо указать пользователя ZIP/почтовый индекс, - `need_cardholder_name`: True, если необходимо указать имя владельца карты\\", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?DataJSON"}, "additional_methods": {"type": "array", "items": {"type": "object", "x-tl-type": "PaymentFormMethod", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentFormMethod"]}}, "description": "Тип TL: PaymentFormMethod."}, "x-tl-type": "Vector<PaymentFormMethod>", "description": "Дополнительные способы оплаты", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<PaymentFormMethod>"}, "saved_info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Сохраненная информация о заказе на стороне сервера.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "saved_credentials": {"type": "array", "items": {"type": "object", "x-tl-type": "PaymentSavedCredentials", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentSavedCredentialsCard"]}}, "description": "Тип TL: PaymentSavedCredentials."}, "x-tl-type": "Vector<PaymentSavedCredentials>", "description": "Содержит информацию о сохраненных учетных данных карты.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<PaymentSavedCredentials>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "form_id", "bot_id", "title", "description", "invoice", "provider_id", "url", "users"], "additionalProperties": false}, "payments.paymentFormStars": {"title": "payments.paymentFormStars", "description": "Представляет собой форму оплаты для платежей с использованием [Telegram Stars, дополнительную информацию см. здесь »](https://core.telegram.org/api/stars.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentFormStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentFormStars"]}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор формы.", "x-tl-type": "long", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор бота.", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название формы", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Фото продукта", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?WebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Счет", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о пользователях, упомянутых в других полях.", "x-telegram-field-docs": true}}, "required": ["_", "form_id", "bot_id", "title", "description", "invoice", "users"], "additionalProperties": false}, "payments.paymentFormStarGift": {"title": "payments.paymentFormStarGift", "description": "Представляет собой форму оплаты [подарок, дополнительную информацию см. здесь »](https://core.telegram.org/api/gifts.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentFormStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentFormStarGift"]}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор формы.", "x-tl-type": "long", "x-telegram-field-docs": true}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Счет", "x-telegram-field-docs": true}}, "required": ["_", "form_id", "invoice"], "additionalProperties": false}, "payments.validatedRequestedInfo": {"title": "payments.validatedRequestedInfo", "description": "Проверенная информация, предоставленная пользователем", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.validatedRequestedInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.validatedRequestedInfo"]}, "id": {"type": "string", "x-tl-type": "string", "description": "идентификатор", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "shipping_options": {"type": "array", "items": {"type": "object", "x-tl-type": "ShippingOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shippingOption"]}}, "description": "Тип TL: ShippingOption."}, "x-tl-type": "Vector<ShippingOption>", "description": "Варианты доставки", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<ShippingOption>"}}, "required": ["_"], "additionalProperties": false}, "payments.paymentResult": {"title": "payments.paymentResult", "description": "Результат платежа", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentResult"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentResult"]}, "updates": {"type": "object", "x-tl-type": "Updates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage"]}}, "description": "Информация об оплате", "x-telegram-field-docs": true}}, "required": ["_", "updates"], "additionalProperties": false}, "payments.paymentVerificationNeeded": {"title": "payments.paymentVerificationNeeded", "description": "Платеж не прошел, необходима дополнительная проверка", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentVerificationNeeded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentVerificationNeeded"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL для дополнительной проверки платежных данных", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "payments.paymentReceipt": {"title": "payments.paymentReceipt", "description": "Квитанция", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentReceipt"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentReceipt"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата генерации", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор бота", "x-tl-type": "long", "x-telegram-field-docs": true}, "provider_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор поставщика", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Фото", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Счет", "x-telegram-field-docs": true}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Информация", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "shipping": {"type": "object", "x-tl-type": "ShippingOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shippingOption"]}}, "description": "Выбранный вариант доставки", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?ShippingOption"}, "tip_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Сумма чаевых", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?long"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая сумма в наименьших единицах валюты (целая, а не плавающая/двойная). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}, "credentials_title": {"type": "string", "x-tl-type": "string", "description": "Имя платежного реквизита", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "date", "bot_id", "provider_id", "title", "description", "invoice", "currency", "total_amount", "credentials_title", "users"], "additionalProperties": false}, "payments.paymentReceiptStars": {"title": "payments.paymentReceiptStars", "description": "Квитанция за [оплату, произведенную с помощью Telegram Stars](https://core.telegram.org/api/stars.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentReceiptStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentReceiptStars"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата генерации", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор бота", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Фото продукта", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Счет", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Валюта всегда `XTR`.", "x-telegram-field-docs": true}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}, "transaction_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор транзакции", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о пользователях, упомянутых в других полях.", "x-telegram-field-docs": true}}, "required": ["_", "date", "bot_id", "title", "description", "invoice", "currency", "total_amount", "transaction_id", "users"], "additionalProperties": false}, "payments.savedInfo": {"title": "payments.savedInfo", "description": "Сохраненная информация о заказе на стороне сервера.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.savedInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.savedInfo"]}, "has_saved_credentials": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Есть ли у пользователя сохраненные платежные данные", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "saved_info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Сохраненная информация о заказе на стороне сервера.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?PaymentRequestedInfo"}}, "required": ["_"], "additionalProperties": false}, "inputPaymentCredentialsSaved": {"title": "inputPaymentCredentialsSaved", "description": "Сохраненные платежные реквизиты", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsSaved"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsSaved"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор учетных данных", "x-telegram-field-docs": true}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Временный пароль", "x-telegram-field-docs": true}}, "required": ["_", "id", "tmp_password"], "additionalProperties": false}, "inputPaymentCredentials": {"title": "inputPaymentCredentials", "description": "Платежные данные", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentials"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentials"]}, "save": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Сохраните платежные данные для использования в будущем.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Платежные данные", "x-telegram-field-docs": true}}, "required": ["_", "data"], "additionalProperties": false}, "inputPaymentCredentialsApplePay": {"title": "inputPaymentCredentialsApplePay", "description": "Платежные данные Apple Pay", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsApplePay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsApplePay"]}, "payment_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Платежные данные", "x-telegram-field-docs": true}}, "required": ["_", "payment_data"], "additionalProperties": false}, "inputPaymentCredentialsGooglePay": {"title": "inputPaymentCredentialsGooglePay", "description": "Платежные данные Google Pay", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsGooglePay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsGooglePay"]}, "payment_token": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Платежный токен", "x-telegram-field-docs": true}}, "required": ["_", "payment_token"], "additionalProperties": false}, "account.tmpPassword": {"title": "account.tmpPassword", "description": "Временный платежный пароль", "externalDocs": {"url": "https://core.telegram.org/constructor/account.tmpPassword"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.tmpPassword"]}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Временный пароль", "x-telegram-field-docs": true}, "valid_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок действия", "x-telegram-field-docs": true}}, "required": ["_", "tmp_password", "valid_until"], "additionalProperties": false}, "shippingOption": {"title": "shippingOption", "description": "Вариант доставки", "externalDocs": {"url": "https://core.telegram.org/constructor/shippingOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["shippingOption"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор опции", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название", "x-telegram-field-docs": true}, "prices": {"type": "array", "items": {"type": "object", "x-tl-type": "LabeledPrice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["labeledPrice"]}}, "description": "Тип TL: LabeledPrice."}, "x-tl-type": "Vector<LabeledPrice>", "description": "Список ценовых частей", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "prices"], "additionalProperties": false}, "inputStickerSetItem": {"title": "inputStickerSetItem", "description": "Наклейка в наборе стикеров", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetItem"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetItem"]}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Наклейка", "x-telegram-field-docs": true}, "emoji": {"type": "string", "x-tl-type": "string", "description": "Связанные смайлы", "x-telegram-field-docs": true}, "mask_coords": {"type": "object", "x-tl-type": "MaskCoords", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["maskCoords"]}}, "description": "Координаты для наклейки маски", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MaskCoords"}, "keywords": {"type": "string", "x-tl-type": "string", "description": "Набор ключевых слов, разделенных запятыми (невозможно указать для стикеров-масок)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "document", "emoji"], "additionalProperties": false}, "inputPhoneCall": {"title": "inputPhoneCall", "description": "Идентифицирует [телефонный звонок](https://core.telegram.org/api/calls.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoneCall"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор вызова", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "phoneCallEmpty": {"title": "phoneCallEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "phoneCallWaiting": {"title": "phoneCallWaiting", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallWaiting"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}, "receive_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "protocol"], "additionalProperties": false}, "phoneCallRequested": {"title": "phoneCallRequested", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallRequested"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_a_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_hash", "protocol"], "additionalProperties": false}, "phoneCallAccepted": {"title": "phoneCallAccepted", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallAccepted"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_b": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_b", "protocol"], "additionalProperties": false}, "phoneCall": {"title": "phoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCall"]}, "p2p_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "conference_supported": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_a_or_b": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}, "connections": {"type": "array", "items": {"type": "object", "x-tl-type": "PhoneConnection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneConnection", "phoneConnectionWebrtc"]}}, "description": "Тип TL: PhoneConnection."}, "x-tl-type": "Vector<PhoneConnection>"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "custom_parameters": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON.", "x-tl-flag": "flags.7?DataJSON"}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_or_b", "key_fingerprint", "protocol", "connections", "start_date"], "additionalProperties": false}, "phoneCallDiscarded": {"title": "phoneCallDiscarded", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscarded"]}, "need_rating": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "need_debug": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reason": {"type": "object", "x-tl-type": "PhoneCallDiscardReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall"]}}, "description": "Тип TL: PhoneCallDiscardReason.", "x-tl-flag": "flags.0?PhoneCallDiscardReason"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "id"], "additionalProperties": false}, "phoneConnection": {"title": "phoneConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneConnection"]}, "tcp": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "ip": {"type": "string", "x-tl-type": "string"}, "ipv6": {"type": "string", "x-tl-type": "string"}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_tag": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "ip", "ipv6", "port", "peer_tag"], "additionalProperties": false}, "phoneConnectionWebrtc": {"title": "phoneConnectionWebrtc", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneConnectionWebrtc"]}, "turn": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "stun": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "ip": {"type": "string", "x-tl-type": "string"}, "ipv6": {"type": "string", "x-tl-type": "string"}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "username": {"type": "string", "x-tl-type": "string"}, "password": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "ip", "ipv6", "port", "username", "password"], "additionalProperties": false}, "phoneCallProtocol": {"title": "phoneCallProtocol", "description": "Информацию о протоколе для библиотеки VoIP см. [здесь »](https://core.telegram.org/api/calls.md#populating-phonecallprotocol) для получения подробной информации о том, как ее заполнить.", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallProtocol"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}, "udp_p2p": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Разрешить ли подключение P2P к другому участнику", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "udp_reflector": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Разрешить ли подключение другим участникам через серверы-рефлекторы", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "min_layer": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Минимальный уровень для удаленного libtgvoip", "x-telegram-field-docs": true}, "max_layer": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальный уровень для удаленного libtgvoip", "x-telegram-field-docs": true}, "library_versions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "При использовании [phone.requestCall](https://core.telegram.org/method/phone.requestCall.md) и [phone.acceptCall](https://core.telegram.org/method/phone.acceptCall.md)] укажите все версии библиотеки, поддерживаемые клиентом.  Сервер объединит и выберет лучшую версию библиотеки, поддерживаемую обоими узлами, возвращая только лучшее значение в результате [phone.acceptCall](https://core.telegram.org/method/phone.acceptCall.md) вызываемого абонента и в обновлении [phoneCallAccepted](https://core.telegram.org/constructor/phoneCallAccepted.md), полученном вызывающей стороной.", "x-telegram-field-docs": true}}, "required": ["_", "min_layer", "max_layer", "library_versions"], "additionalProperties": false}, "phone.phoneCall": {"title": "phone.phoneCall", "description": "Телефонный звонок через VoIP", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.phoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.phoneCall"]}, "phone_call": {"type": "object", "x-tl-type": "PhoneCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty", "phoneCallWaiting", "phoneCallRequested", "phoneCallAccepted", "phoneCall", "phoneCallDiscarded"]}}, "description": "Телефонный звонок через VoIP", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Участники телефонных звонков VoIP", "x-telegram-field-docs": true}}, "required": ["_", "phone_call", "users"], "additionalProperties": false}, "upload.cdnFileReuploadNeeded": {"title": "upload.cdnFileReuploadNeeded", "description": "Файл был удален из временного кеша RAM диска [CDN](https://core.telegram.org/cdn.md), и его необходимо загрузить заново.", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.cdnFileReuploadNeeded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.cdnFileReuploadNeeded"]}, "request_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен запроса (см. [CDN](https://core.telegram.org/cdn.md))", "x-telegram-field-docs": true}}, "required": ["_", "request_token"], "additionalProperties": false}, "upload.cdnFile": {"title": "upload.cdnFile", "description": "Представляет собой фрагмент файла [CDN](https://core.telegram.org/cdn.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.cdnFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.cdnFile"]}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Данные", "x-telegram-field-docs": true}}, "required": ["_", "bytes"], "additionalProperties": false}, "cdnPublicKey": {"title": "cdnPublicKey", "type": "object", "properties": {"_": {"type": "string", "enum": ["cdnPublicKey"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "public_key": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "dc_id", "public_key"], "additionalProperties": false}, "cdnConfig": {"title": "cdnConfig", "description": "Конфигурация для [CDN](https://core.telegram.org/cdn.md) загрузок файлов.", "externalDocs": {"url": "https://core.telegram.org/constructor/cdnConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["cdnConfig"]}, "public_keys": {"type": "array", "items": {"type": "object", "x-tl-type": "CdnPublicKey", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["cdnPublicKey"]}}, "description": "Тип TL: CdnPublicKey."}, "x-tl-type": "Vector<CdnPublicKey>", "description": "Вектор открытых ключей для использования **только** во время рукопожатий с [CDN](https://core.telegram.org/cdn.md) контроллерами домена.", "x-telegram-field-docs": true}}, "required": ["_", "public_keys"], "additionalProperties": false}, "langPackString": {"title": "langPackString", "description": "Переведенная строка локализации", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackString"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackString"]}, "key": {"type": "string", "x-tl-type": "string", "description": "Языковой ключ", "x-telegram-field-docs": true}, "value": {"type": "string", "x-tl-type": "string", "description": "Значение", "x-telegram-field-docs": true}}, "required": ["_", "key", "value"], "additionalProperties": false}, "langPackStringPluralized": {"title": "langPackStringPluralized", "description": "Строка языкового пакета, имеющая разные формы в зависимости от количества упоминаемых в ней объектов. См. [https://www.unicode.org/cldr/charts/latest/supplemental/language\\_plural\\_rules.html](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackStringPluralized"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackStringPluralized"]}, "key": {"type": "string", "x-tl-type": "string", "description": "Ключ локализации", "x-telegram-field-docs": true}, "zero_value": {"type": "string", "x-tl-type": "string", "description": "Значение для нулевых объектов", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "one_value": {"type": "string", "x-tl-type": "string", "description": "Стоимость одного объекта", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "two_value": {"type": "string", "x-tl-type": "string", "description": "Стоимость двух объектов", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "few_value": {"type": "string", "x-tl-type": "string", "description": "Стоимость нескольких объектов", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "many_value": {"type": "string", "x-tl-type": "string", "description": "Ценность для многих объектов", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "other_value": {"type": "string", "x-tl-type": "string", "description": "Значение по умолчанию", "x-telegram-field-docs": true}}, "required": ["_", "key", "other_value"], "additionalProperties": false}, "langPackStringDeleted": {"title": "langPackStringDeleted", "description": "Удалена строка локализации", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackStringDeleted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackStringDeleted"]}, "key": {"type": "string", "x-tl-type": "string", "description": "Ключ локализации", "x-telegram-field-docs": true}}, "required": ["_", "key"], "additionalProperties": false}, "langPackDifference": {"title": "langPackDifference", "description": "Изменения в пакете локализации приложения", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackDifference"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка", "x-telegram-field-docs": true}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Номер предыдущей версии", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новый номер версии", "x-telegram-field-docs": true}, "strings": {"type": "array", "items": {"type": "object", "x-tl-type": "LangPackString", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["langPackString", "langPackStringPluralized", "langPackStringDeleted"]}}, "description": "Тип TL: LangPackString."}, "x-tl-type": "Vector<LangPackString>", "description": "Локализованные строки", "x-telegram-field-docs": true}}, "required": ["_", "lang_code", "from_version", "version", "strings"], "additionalProperties": false}, "langPackLanguage": {"title": "langPackLanguage", "description": "Идентифицирует пакет локализации", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackLanguage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackLanguage"]}, "official": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли языковой пакет официальным", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Это пакет локализации для языка RTL?", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "beta": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Это бета-пакет локализации?", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "name": {"type": "string", "x-tl-type": "string", "description": "Название языка", "x-telegram-field-docs": true}, "native_name": {"type": "string", "x-tl-type": "string", "description": "Название языка на самом языке", "x-telegram-field-docs": true}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка (идентификатор пакета)", "x-telegram-field-docs": true}, "base_lang_code": {"type": "string", "x-tl-type": "string", "description": "Идентификатор базового языкового пакета; может быть пустым. Если строка отсутствует в языковом пакете, ее следует извлечь из базового языкового пакета. Не поддерживается в пользовательских языковых пакетах.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "plural_code": {"type": "string", "x-tl-type": "string", "description": "Код языка, который будет использоваться для применения форм множественного числа. См. [https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html) для получения дополнительной информации.", "x-telegram-field-docs": true}, "strings_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество неудаленных строк из языкового пакета", "x-telegram-field-docs": true}, "translated_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество переведенных строк из языкового пакета", "x-telegram-field-docs": true}, "translations_url": {"type": "string", "x-tl-type": "string", "description": "Ссылка на интерфейс языкового перевода; пусто для пользовательских языковых пакетов", "x-telegram-field-docs": true}}, "required": ["_", "name", "native_name", "lang_code", "plural_code", "strings_count", "translated_count", "translations_url"], "additionalProperties": false}, "channelAdminLogEventActionChangeTitle": {"title": "channelAdminLogEventActionChangeTitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeTitle"]}, "prev_value": {"type": "string", "x-tl-type": "string"}, "new_value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeAbout": {"title": "channelAdminLogEventActionChangeAbout", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeAbout"]}, "prev_value": {"type": "string", "x-tl-type": "string"}, "new_value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeUsername": {"title": "channelAdminLogEventActionChangeUsername", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeUsername"]}, "prev_value": {"type": "string", "x-tl-type": "string"}, "new_value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangePhoto": {"title": "channelAdminLogEventActionChangePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangePhoto"]}, "prev_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "new_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}}, "required": ["_", "prev_photo", "new_photo"], "additionalProperties": false}, "channelAdminLogEventActionToggleInvites": {"title": "channelAdminLogEventActionToggleInvites", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleInvites"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleSignatures": {"title": "channelAdminLogEventActionToggleSignatures", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSignatures"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionUpdatePinned": {"title": "channelAdminLogEventActionUpdatePinned", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionUpdatePinned"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionEditMessage": {"title": "channelAdminLogEventActionEditMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionEditMessage"]}, "prev_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "new_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "prev_message", "new_message"], "additionalProperties": false}, "channelAdminLogEventActionDeleteMessage": {"title": "channelAdminLogEventActionDeleteMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDeleteMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionParticipantJoin": {"title": "channelAdminLogEventActionParticipantJoin", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantJoin"]}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionParticipantLeave": {"title": "channelAdminLogEventActionParticipantLeave", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantLeave"]}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionParticipantInvite": {"title": "channelAdminLogEventActionParticipantInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantInvite"]}, "participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionParticipantToggleBan": {"title": "channelAdminLogEventActionParticipantToggleBan", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantToggleBan"]}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "prev_participant", "new_participant"], "additionalProperties": false}, "channelAdminLogEventActionParticipantToggleAdmin": {"title": "channelAdminLogEventActionParticipantToggleAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantToggleAdmin"]}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "prev_participant", "new_participant"], "additionalProperties": false}, "channelAdminLogEventActionChangeStickerSet": {"title": "channelAdminLogEventActionChangeStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeStickerSet"]}, "prev_stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Тип TL: InputStickerSet."}, "new_stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Тип TL: InputStickerSet."}}, "required": ["_", "prev_stickerset", "new_stickerset"], "additionalProperties": false}, "channelAdminLogEventActionTogglePreHistoryHidden": {"title": "channelAdminLogEventActionTogglePreHistoryHidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionTogglePreHistoryHidden"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionDefaultBannedRights": {"title": "channelAdminLogEventActionDefaultBannedRights", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDefaultBannedRights"]}, "prev_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}, "new_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}}, "required": ["_", "prev_banned_rights", "new_banned_rights"], "additionalProperties": false}, "channelAdminLogEventActionStopPoll": {"title": "channelAdminLogEventActionStopPoll", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionStopPoll"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionChangeLinkedChat": {"title": "channelAdminLogEventActionChangeLinkedChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeLinkedChat"]}, "prev_value": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "new_value": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeLocation": {"title": "channelAdminLogEventActionChangeLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeLocation"]}, "prev_value": {"type": "object", "x-tl-type": "ChannelLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty", "channelLocation"]}}, "description": "Тип TL: ChannelLocation."}, "new_value": {"type": "object", "x-tl-type": "ChannelLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty", "channelLocation"]}}, "description": "Тип TL: ChannelLocation."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleSlowMode": {"title": "channelAdminLogEventActionToggleSlowMode", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSlowMode"]}, "prev_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "new_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionStartGroupCall": {"title": "channelAdminLogEventActionStartGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionStartGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}}, "required": ["_", "call"], "additionalProperties": false}, "channelAdminLogEventActionDiscardGroupCall": {"title": "channelAdminLogEventActionDiscardGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDiscardGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}}, "required": ["_", "call"], "additionalProperties": false}, "channelAdminLogEventActionParticipantMute": {"title": "channelAdminLogEventActionParticipantMute", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantMute"]}, "participant": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionParticipantUnmute": {"title": "channelAdminLogEventActionParticipantUnmute", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantUnmute"]}, "participant": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionToggleGroupCallSetting": {"title": "channelAdminLogEventActionToggleGroupCallSetting", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleGroupCallSetting"]}, "join_muted": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "join_muted"], "additionalProperties": false}, "channelAdminLogEventActionParticipantJoinByInvite": {"title": "channelAdminLogEventActionParticipantJoinByInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantJoinByInvite"]}, "via_chatlist": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}}, "required": ["_", "invite"], "additionalProperties": false}, "channelAdminLogEventActionExportedInviteDelete": {"title": "channelAdminLogEventActionExportedInviteDelete", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionExportedInviteDelete"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}}, "required": ["_", "invite"], "additionalProperties": false}, "channelAdminLogEventActionExportedInviteRevoke": {"title": "channelAdminLogEventActionExportedInviteRevoke", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionExportedInviteRevoke"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}}, "required": ["_", "invite"], "additionalProperties": false}, "channelAdminLogEventActionExportedInviteEdit": {"title": "channelAdminLogEventActionExportedInviteEdit", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionExportedInviteEdit"]}, "prev_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}, "new_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}}, "required": ["_", "prev_invite", "new_invite"], "additionalProperties": false}, "channelAdminLogEventActionParticipantVolume": {"title": "channelAdminLogEventActionParticipantVolume", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantVolume"]}, "participant": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionChangeHistoryTTL": {"title": "channelAdminLogEventActionChangeHistoryTTL", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeHistoryTTL"]}, "prev_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "new_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionParticipantJoinByRequest": {"title": "channelAdminLogEventActionParticipantJoinByRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantJoinByRequest"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}, "approved_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "invite", "approved_by"], "additionalProperties": false}, "channelAdminLogEventActionToggleNoForwards": {"title": "channelAdminLogEventActionToggleNoForwards", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleNoForwards"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionSendMessage": {"title": "channelAdminLogEventActionSendMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionSendMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionChangeAvailableReactions": {"title": "channelAdminLogEventActionChangeAvailableReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeAvailableReactions"]}, "prev_value": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions."}, "new_value": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeUsernames": {"title": "channelAdminLogEventActionChangeUsernames", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeUsernames"]}, "prev_value": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}, "new_value": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleForum": {"title": "channelAdminLogEventActionToggleForum", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleForum"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionCreateTopic": {"title": "channelAdminLogEventActionCreateTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionCreateTopic"]}, "topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}}, "required": ["_", "topic"], "additionalProperties": false}, "channelAdminLogEventActionEditTopic": {"title": "channelAdminLogEventActionEditTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionEditTopic"]}, "prev_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "new_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}}, "required": ["_", "prev_topic", "new_topic"], "additionalProperties": false}, "channelAdminLogEventActionDeleteTopic": {"title": "channelAdminLogEventActionDeleteTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDeleteTopic"]}, "topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}}, "required": ["_", "topic"], "additionalProperties": false}, "channelAdminLogEventActionPinTopic": {"title": "channelAdminLogEventActionPinTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionPinTopic"]}, "prev_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic.", "x-tl-flag": "flags.0?ForumTopic"}, "new_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic.", "x-tl-flag": "flags.1?ForumTopic"}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionToggleAntiSpam": {"title": "channelAdminLogEventActionToggleAntiSpam", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleAntiSpam"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangePeerColor": {"title": "channelAdminLogEventActionChangePeerColor", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangePeerColor"]}, "prev_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}, "new_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeProfilePeerColor": {"title": "channelAdminLogEventActionChangeProfilePeerColor", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeProfilePeerColor"]}, "prev_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}, "new_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeWallpaper": {"title": "channelAdminLogEventActionChangeWallpaper", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeWallpaper"]}, "prev_value": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper."}, "new_value": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeEmojiStatus": {"title": "channelAdminLogEventActionChangeEmojiStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeEmojiStatus"]}, "prev_value": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}, "new_value": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeEmojiStickerSet": {"title": "channelAdminLogEventActionChangeEmojiStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeEmojiStickerSet"]}, "prev_stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Тип TL: InputStickerSet."}, "new_stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Тип TL: InputStickerSet."}}, "required": ["_", "prev_stickerset", "new_stickerset"], "additionalProperties": false}, "channelAdminLogEventActionToggleSignatureProfiles": {"title": "channelAdminLogEventActionToggleSignatureProfiles", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSignatureProfiles"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionParticipantSubExtend": {"title": "channelAdminLogEventActionParticipantSubExtend", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantSubExtend"]}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "prev_participant", "new_participant"], "additionalProperties": false}, "channelAdminLogEventActionToggleAutotranslation": {"title": "channelAdminLogEventActionToggleAutotranslation", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleAutotranslation"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionParticipantEditRank": {"title": "channelAdminLogEventActionParticipantEditRank", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantEditRank"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "prev_rank": {"type": "string", "x-tl-type": "string"}, "new_rank": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "user_id", "prev_rank", "new_rank"], "additionalProperties": false}, "channelAdminLogEvent": {"title": "channelAdminLogEvent", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEvent"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "action": {"type": "object", "x-tl-type": "ChannelAdminLogEventAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeTitle", "channelAdminLogEventActionChangeAbout", "channelAdminLogEventActionChangeUsername", "channelAdminLogEventActionChangePhoto", "channelAdminLogEventActionToggleInvites", "channelAdminLogEventActionToggleSignatures", "channelAdminLogEventActionUpdatePinned", "channelAdminLogEventActionEditMessage", "channelAdminLogEventActionDeleteMessage", "channelAdminLogEventActionParticipantJoin", "channelAdminLogEventActionParticipantLeave", "channelAdminLogEventActionParticipantInvite", "channelAdminLogEventActionParticipantToggleBan", "channelAdminLogEventActionParticipantToggleAdmin", "channelAdminLogEventActionChangeStickerSet", "channelAdminLogEventActionTogglePreHistoryHidden", "channelAdminLogEventActionDefaultBannedRights", "channelAdminLogEventActionStopPoll", "channelAdminLogEventActionChangeLinkedChat", "channelAdminLogEventActionChangeLocation", "channelAdminLogEventActionToggleSlowMode", "channelAdminLogEventActionStartGroupCall", "channelAdminLogEventActionDiscardGroupCall", "channelAdminLogEventActionParticipantMute", "channelAdminLogEventActionParticipantUnmute", "channelAdminLogEventActionToggleGroupCallSetting", "channelAdminLogEventActionParticipantJoinByInvite", "channelAdminLogEventActionExportedInviteDelete", "channelAdminLogEventActionExportedInviteRevoke", "channelAdminLogEventActionExportedInviteEdit", "channelAdminLogEventActionParticipantVolume", "channelAdminLogEventActionChangeHistoryTTL", "channelAdminLogEventActionParticipantJoinByRequest", "channelAdminLogEventActionToggleNoForwards", "channelAdminLogEventActionSendMessage", "channelAdminLogEventActionChangeAvailableReactions", "channelAdminLogEventActionChangeUsernames", "channelAdminLogEventActionToggleForum", "channelAdminLogEventActionCreateTopic", "channelAdminLogEventActionEditTopic", "channelAdminLogEventActionDeleteTopic", "channelAdminLogEventActionPinTopic", "channelAdminLogEventActionToggleAntiSpam", "channelAdminLogEventActionChangePeerColor", "channelAdminLogEventActionChangeProfilePeerColor", "channelAdminLogEventActionChangeWallpaper", "channelAdminLogEventActionChangeEmojiStatus", "channelAdminLogEventActionChangeEmojiStickerSet", "channelAdminLogEventActionToggleSignatureProfiles", "channelAdminLogEventActionParticipantSubExtend", "channelAdminLogEventActionToggleAutotranslation", "channelAdminLogEventActionParticipantEditRank"]}}, "description": "Тип TL: ChannelAdminLogEventAction."}}, "required": ["_", "id", "date", "user_id", "action"], "additionalProperties": false}, "channels.adminLogResults": {"title": "channels.adminLogResults", "description": "События журнала администратора", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.adminLogResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.adminLogResults"]}, "events": {"type": "array", "items": {"type": "object", "x-tl-type": "ChannelAdminLogEvent", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelAdminLogEvent"]}}, "description": "Тип TL: ChannelAdminLogEvent."}, "x-tl-type": "Vector<ChannelAdminLogEvent>", "description": "События журнала администратора", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в событиях", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в событиях", "x-telegram-field-docs": true}}, "required": ["_", "events", "chats", "users"], "additionalProperties": false}, "channelAdminLogEventsFilter": {"title": "channelAdminLogEventsFilter", "description": "Фильтровать только определенные события журнала администратора", "externalDocs": {"url": "https://core.telegram.org/constructor/channelAdminLogEventsFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventsFilter"]}, "join": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Присоединяйтесь к мероприятиям](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.md), включая [присоединение по ссылкам для приглашения](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite.md) и [запросы на присоединение](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "leave": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Покинуть мероприятия](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantLeave.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "invite": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Пригласить на мероприятия](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantInvite.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "ban": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Запретить мероприятия](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "unban": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Разблокировать мероприятия](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "kick": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Выкидывать события](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "unkick": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Отменить события](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleBan.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "promote": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Административные рекламные мероприятия](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "demote": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[События понижения в должности администратора](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantToggleAdmin.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "События изменения информации (когда [о](https://core.telegram.org/constructor/channelAdminLogEventActionChangeAbout.md), [связанный чат](https://core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.md), [местоположение](https://core.telegram.org/constructor/channelAdminLogEventActionChangeLocation.md), [фото](https://core.telegram.org/constructor/channelAdminLogEventActionChangePhoto.md), [набор стикеров](https://core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.md), [заголовок](https://core.telegram.org/constructor/channelAdminLogEventActionChangeTitle.md) или [имя пользователя](https://core.telegram.org/constructor/channelAdminLogEventActionChangeUsername.md), [slowmode](https://core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.md)], [история TTL](https://core.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL.md)] настройки канала получают изменено)", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "settings": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "События изменения настроек ([приглашения](https://core.telegram.org/constructor/channelAdminLogEventActionToggleInvites.md), [скрытая предыстория](https://core.telegram.org/constructor/channelAdminLogEventActionTogglePreHistoryHidden.md), [подписи](https://core.telegram.org/constructor/channelAdminLogEventActionToggleSignatures.md), [запрещенные права по умолчанию](https://core.telegram.org/constructor/channelAdminLogEventActionDefaultBannedRights.md), [события переключения форума](https://core.telegram.org/constructor/channelAdminLogEventActionToggleForum.md)))", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[События вывода сообщения](https://core.telegram.org/constructor/channelAdminLogEventActionUpdatePinned.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "edit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[События редактирования сообщения](https://core.telegram.org/constructor/channelAdminLogEventActionEditMessage.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "delete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[События удаления сообщения](https://core.telegram.org/constructor/channelAdminLogEventActionDeleteMessage.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "group_call": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "События группового звонка", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "invites": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Пригласить на мероприятия", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "send": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Сообщение было опубликовано в канале", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?true"}, "forums": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[Мероприятия, связанные с Форумом](https://core.telegram.org/api/forum.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "sub_extend": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[События продления подписки Telegram Star »](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantSubExtend.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "edit_rank": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "События, в которых пользовательский [тег (ранг) »](https://core.telegram.org/api/rank.md) участника был изменен ([channelAdminLogEventActionParticipantEditRank](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantEditRank.md)).", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?true"}}, "required": ["_"], "additionalProperties": false}, "popularContact": {"title": "popularContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["popularContact"]}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "importers": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "client_id", "importers"], "additionalProperties": false}, "messages.favedStickersNotModified": {"title": "messages.favedStickersNotModified", "description": "Новых избранных стикеров не найдено.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.favedStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.favedStickersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.favedStickers": {"title": "messages.favedStickers", "description": "Избранные стикеры", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.favedStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.favedStickers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "Эмодзи, связанные со стикерами", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Избранные стикеры", "x-telegram-field-docs": true}}, "required": ["_", "hash", "packs", "stickers"], "additionalProperties": false}, "recentMeUrlUnknown": {"title": "recentMeUrlUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlUnknown"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "recentMeUrlUser": {"title": "recentMeUrlUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlUser"]}, "url": {"type": "string", "x-tl-type": "string"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "url", "user_id"], "additionalProperties": false}, "recentMeUrlChat": {"title": "recentMeUrlChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlChat"]}, "url": {"type": "string", "x-tl-type": "string"}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "url", "chat_id"], "additionalProperties": false}, "recentMeUrlChatInvite": {"title": "recentMeUrlChatInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlChatInvite"]}, "url": {"type": "string", "x-tl-type": "string"}, "chat_invite": {"type": "object", "x-tl-type": "ChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteAlready", "chatInvite", "chatInvitePeek"]}}, "description": "Тип TL: ChatInvite."}}, "required": ["_", "url", "chat_invite"], "additionalProperties": false}, "recentMeUrlStickerSet": {"title": "recentMeUrlStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlStickerSet"]}, "url": {"type": "string", "x-tl-type": "string"}, "set": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "Тип TL: StickerSetCovered."}}, "required": ["_", "url", "set"], "additionalProperties": false}, "help.recentMeUrls": {"title": "help.recentMeUrls", "description": "Recent t.me URLs", "externalDocs": {"url": "https://core.telegram.org/constructor/help.recentMeUrls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.recentMeUrls"]}, "urls": {"type": "array", "items": {"type": "object", "x-tl-type": "RecentMeUrl", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["recentMeUrlUnknown", "recentMeUrlUser", "recentMeUrlChat", "recentMeUrlChatInvite", "recentMeUrlStickerSet"]}}, "description": "Тип TL: RecentMeUrl."}, "x-tl-type": "Vector<RecentMeUrl>", "description": "URLs", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "urls", "chats", "users"], "additionalProperties": false}, "inputSingleMedia": {"title": "inputSingleMedia", "description": "Отдельный носитель в [альбоме или сгруппированных носителях](https://core.telegram.org/api/files.md#albums-grouped-media), отправленный с помощью [messages.sendMultiMedia](https://core.telegram.org/method/messages.sendMultiMedia.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSingleMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSingleMedia"]}, "media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "СМИ", "x-telegram-field-docs": true}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Уникальный идентификатор клиентского носителя, необходимый для предотвращения повторной отправки сообщения. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "Подпись для СМИ", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "Сообщение [entities](https://core.telegram.org/api/entities.md) для стилизованного текста", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}}, "required": ["_", "media", "random_id", "message"], "additionalProperties": false}, "webAuthorization": {"title": "webAuthorization", "type": "object", "properties": {"_": {"type": "string", "enum": ["webAuthorization"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "domain": {"type": "string", "x-tl-type": "string"}, "browser": {"type": "string", "x-tl-type": "string"}, "platform": {"type": "string", "x-tl-type": "string"}, "date_created": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date_active": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "ip": {"type": "string", "x-tl-type": "string"}, "region": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "hash", "bot_id", "domain", "browser", "platform", "date_created", "date_active", "ip", "region"], "additionalProperties": false}, "account.webAuthorizations": {"title": "account.webAuthorizations", "description": "Веб-авторизация", "externalDocs": {"url": "https://core.telegram.org/constructor/account.webAuthorizations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.webAuthorizations"]}, "authorizations": {"type": "array", "items": {"type": "object", "x-tl-type": "WebAuthorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webAuthorization"]}}, "description": "Тип TL: WebAuthorization."}, "x-tl-type": "Vector<WebAuthorization>", "description": "Список веб-авторизации", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "authorizations", "users"], "additionalProperties": false}, "inputMessageID": {"title": "inputMessageID", "description": "Сообщение по идентификатору", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageID"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMessageReplyTo": {"title": "inputMessageReplyTo", "description": "Сообщение, на которое указанное сообщение отвечает", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageReplyTo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageReplyTo"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID сообщения, отвечающего на нужное нам сообщение", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMessagePinned": {"title": "inputMessagePinned", "description": "Закрепленное сообщение", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagePinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagePinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessageCallbackQuery": {"title": "inputMessageCallbackQuery", "description": "Используется ботами для получения информации о сообщении, вызвавшем запрос обратного вызова.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageCallbackQuery"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageCallbackQuery"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор запроса обратного вызова", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "query_id"], "additionalProperties": false}, "inputDialogPeer": {"title": "inputDialogPeer", "description": "Пэр", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDialogPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Пэр", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "inputDialogPeerFolder": {"title": "inputDialogPeerFolder", "description": "Все пиры в [папке пиров](https://core.telegram.org/api/folders.md#peer-folders)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDialogPeerFolder"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeerFolder"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true}}, "required": ["_", "folder_id"], "additionalProperties": false}, "inputDialogPeerCommunity": {"title": "inputDialogPeerCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeerCommunity"]}, "community": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "Тип TL: InputChannel."}}, "required": ["_", "community"], "additionalProperties": false}, "dialogPeer": {"title": "dialogPeer", "description": "Пэр", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Пэр", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "dialogPeerFolder": {"title": "dialogPeerFolder", "description": "[Папка коллег](https://core.telegram.org/api/folders.md#peer-folders)", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogPeerFolder"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogPeerFolder"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true}}, "required": ["_", "folder_id"], "additionalProperties": false}, "dialogPeerCommunity": {"title": "dialogPeerCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogPeerCommunity"]}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "community_id"], "additionalProperties": false}, "messages.foundStickerSetsNotModified": {"title": "messages.foundStickerSetsNotModified", "description": "Больше результатов не обнаружено", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickerSetsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickerSetsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.foundStickerSets": {"title": "messages.foundStickerSets", "description": "Найдены наборы стикеров", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickerSets"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickerSets"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "Тип TL: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "Найдены наборы стикеров", "x-telegram-field-docs": true}}, "required": ["_", "hash", "sets"], "additionalProperties": false}, "fileHash": {"title": "fileHash", "description": "SHA256 Хэш загруженного файла, который необходимо проверить на достоверность после загрузки.", "externalDocs": {"url": "https://core.telegram.org/constructor/fileHash"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["fileHash"]}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Смещение от точки начала вычисления хэша SHA-256.", "x-tl-type": "long", "x-telegram-field-docs": true}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "SHA-256 Хэш фрагмента файла, который необходимо проверить на достоверность после загрузки.", "x-telegram-field-docs": true}}, "required": ["_", "offset", "limit", "hash"], "additionalProperties": false}, "inputClientProxy": {"title": "inputClientProxy", "description": "Информация о [MTProxy](https://core.telegram.org/mtproto/mtproto-transports.md#transport-obfuscation), используемом для подключения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputClientProxy"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputClientProxy"]}, "address": {"type": "string", "x-tl-type": "string", "description": "Адрес прокси", "x-telegram-field-docs": true}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Прокси-порт", "x-telegram-field-docs": true}}, "required": ["_", "address", "port"], "additionalProperties": false}, "help.termsOfServiceUpdateEmpty": {"title": "help.termsOfServiceUpdateEmpty", "description": "В условия обслуживания Telegram не вносилось никаких изменений.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.termsOfServiceUpdateEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.termsOfServiceUpdateEmpty"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новые обновления TOS необходимо будет запрашивать с помощью [help.getTermsOfServiceUpdate](https://core.telegram.org/method/help.getTermsOfServiceUpdate.md) в течение `expires` секунд.", "x-telegram-field-docs": true}}, "required": ["_", "expires"], "additionalProperties": false}, "help.termsOfServiceUpdate": {"title": "help.termsOfServiceUpdate", "description": "Информация об обновлении условий обслуживания Telegram. Если условия обслуживания отклонены, то следует вызвать метод [account.deleteAccount](https://core.telegram.org/method/account.deleteAccount.md) с причиной «Отклонить обновление ToS».", "externalDocs": {"url": "https://core.telegram.org/constructor/help.termsOfServiceUpdate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.termsOfServiceUpdate"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Новые обновления TOS необходимо будет запрашивать с помощью [help.getTermsOfServiceUpdate](https://core.telegram.org/method/help.getTermsOfServiceUpdate.md) в течение `expires` секунд.", "x-telegram-field-docs": true}, "terms_of_service": {"type": "object", "x-tl-type": "help.TermsOfService", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.termsOfService"]}}, "description": "Новые условия обслуживания", "x-telegram-field-docs": true}}, "required": ["_", "expires", "terms_of_service"], "additionalProperties": false}, "inputSecureFileUploaded": {"title": "inputSecureFileUploaded", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "md5_checksum": {"type": "string", "x-tl-type": "string"}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "parts", "md5_checksum", "file_hash", "secret"], "additionalProperties": false}, "inputSecureFile": {"title": "inputSecureFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "secureFileEmpty": {"title": "secureFileEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "secureFile": {"title": "secureFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "access_hash", "size", "dc_id", "date", "file_hash", "secret"], "additionalProperties": false}, "secureData": {"title": "secureData", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureData"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "data_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "data", "data_hash", "secret"], "additionalProperties": false}, "securePlainPhone": {"title": "securePlainPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainPhone"]}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "phone"], "additionalProperties": false}, "securePlainEmail": {"title": "securePlainEmail", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainEmail"]}, "email": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "email"], "additionalProperties": false}, "secureValueTypePersonalDetails": {"title": "secureValueTypePersonalDetails", "description": "Личные данные", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePassport": {"title": "secureValueTypePassport", "description": "Паспорт", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePassport"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeDriverLicense": {"title": "secureValueTypeDriverLicense", "description": "Водительские права", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeDriverLicense"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeDriverLicense"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeIdentityCard": {"title": "secureValueTypeIdentityCard", "description": "Удостоверение личности", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeIdentityCard"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeIdentityCard"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeInternalPassport": {"title": "secureValueTypeInternalPassport", "description": "Внутренний [паспорт](https://core.telegram.org/passport.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeInternalPassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeInternalPassport"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeAddress": {"title": "secureValueTypeAddress", "description": "Адрес", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeAddress"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeAddress"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeUtilityBill": {"title": "secureValueTypeUtilityBill", "description": "Счет за коммунальные услуги", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeUtilityBill"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeUtilityBill"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeBankStatement": {"title": "secureValueTypeBankStatement", "description": "Выписка из банка", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeBankStatement"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeBankStatement"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeRentalAgreement": {"title": "secureValueTypeRentalAgreement", "description": "Договор аренды", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeRentalAgreement"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeRentalAgreement"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePassportRegistration": {"title": "secureValueTypePassportRegistration", "description": "Внутренняя регистрация [паспорт](https://core.telegram.org/passport.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePassportRegistration"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePassportRegistration"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeTemporaryRegistration": {"title": "secureValueTypeTemporaryRegistration", "description": "Временная регистрация", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeTemporaryRegistration"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePhone": {"title": "secureValueTypePhone", "description": "Телефон", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePhone"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeEmail": {"title": "secureValueTypeEmail", "description": "электронная почта", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeEmail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeEmail"]}}, "required": ["_"], "additionalProperties": false}, "secureValue": {"title": "secureValue", "description": "Безопасная ценность", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValue"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Безопасный тип значения [паспорт](https://core.telegram.org/passport.md)]", "x-telegram-field-docs": true}, "data": {"type": "object", "x-tl-type": "SecureData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureData"]}}, "description": "Зашифрованные данные элемента [Telegram Passport](https://core.telegram.org/passport.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?SecureData"}, "front_side": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Зашифрованный файл [паспорт](https://core.telegram.org/passport.md) на лицевой стороне документа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?SecureFile"}, "reverse_side": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Зашифрованный файл [паспорт](https://core.telegram.org/passport.md)] на обратной стороне документа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?SecureFile"}, "selfie": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Зашифрованный файл [passport](https://core.telegram.org/passport.md)] с селфи пользователя, держащего документ.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?SecureFile"}, "translation": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Тип TL: SecureFile."}, "x-tl-type": "Vector<SecureFile>", "description": "Массив зашифрованных файлов [passport](https://core.telegram.org/passport.md) с переведенными версиями предоставленных документов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<SecureFile>"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Тип TL: SecureFile."}, "x-tl-type": "Vector<SecureFile>", "description": "Массив зашифрованных файлов [passport](https://core.telegram.org/passport.md) с фотографиями документов", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<SecureFile>"}, "plain_data": {"type": "object", "x-tl-type": "SecurePlainData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePlainPhone", "securePlainEmail"]}}, "description": "Открытый текст проверен [данные паспорта](https://core.telegram.org/passport.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?SecurePlainData"}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш данных", "x-telegram-field-docs": true}}, "required": ["_", "type", "hash"], "additionalProperties": false}, "inputSecureValue": {"title": "inputSecureValue", "description": "Безопасное значение, [более подробную информацию см. в паспортных документах »](https://core.telegram.org/passport/encryption.md#encryption)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSecureValue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureValue"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Безопасный тип значения [паспорт](https://core.telegram.org/passport.md)]", "x-telegram-field-docs": true}, "data": {"type": "object", "x-tl-type": "SecureData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureData"]}}, "description": "Зашифрованные данные элемента [Telegram Passport](https://core.telegram.org/passport.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?SecureData"}, "front_side": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Зашифрованный файл [паспорт](https://core.telegram.org/passport.md) на лицевой стороне документа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputSecureFile"}, "reverse_side": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Зашифрованный файл [паспорт](https://core.telegram.org/passport.md)] на обратной стороне документа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputSecureFile"}, "selfie": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Зашифрованный файл [passport](https://core.telegram.org/passport.md)] с селфи пользователя, держащего документ.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputSecureFile"}, "translation": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Тип TL: InputSecureFile."}, "x-tl-type": "Vector<InputSecureFile>", "description": "Массив зашифрованных файлов [passport](https://core.telegram.org/passport.md) с переведенными версиями предоставленных документов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<InputSecureFile>"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Тип TL: InputSecureFile."}, "x-tl-type": "Vector<InputSecureFile>", "description": "Массив зашифрованных файлов [passport](https://core.telegram.org/passport.md) с фотографиями документов", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<InputSecureFile>"}, "plain_data": {"type": "object", "x-tl-type": "SecurePlainData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePlainPhone", "securePlainEmail"]}}, "description": "Открытый текст проверен [данные паспорта](https://core.telegram.org/passport.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?SecurePlainData"}}, "required": ["_", "type"], "additionalProperties": false}, "secureValueHash": {"title": "secureValueHash", "description": "Безопасный хеш значения", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueHash"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueHash"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Тип безопасного значения", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш", "x-telegram-field-docs": true}}, "required": ["_", "type", "hash"], "additionalProperties": false}, "secureValueErrorData": {"title": "secureValueErrorData", "description": "Представляет проблему в одном из полей данных, предоставленных пользователем. Ошибка считается устраненной при изменении значения поля.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorData"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Раздел паспорта Telegram пользователя, в котором имеется ошибка, один из [secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md), [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md), [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md), [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md), [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md), [secureValueTypeAddress](https://core.telegram.org/constructor/secureValueTypeAddress.md)", "x-telegram-field-docs": true}, "data_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш данных", "x-telegram-field-docs": true}, "field": {"type": "string", "x-tl-type": "string", "description": "Имя поля данных, в котором имеется ошибка", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "data_hash", "field", "text"], "additionalProperties": false}, "secureValueErrorFrontSide": {"title": "secureValueErrorFrontSide", "description": "Представляет проблему с лицевой стороной документа. Ошибка считается устраненной при изменении файла с лицевой стороны документа.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFrontSide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFrontSide"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Один из [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md), [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md), [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md), [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш файла", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorReverseSide": {"title": "secureValueErrorReverseSide", "description": "Указывает на проблему с обратной стороной документа. Ошибка считается устраненной при изменении файла с обратной стороной документа.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorReverseSide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorReverseSide"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Один из [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md), [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш файла", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorSelfie": {"title": "secureValueErrorSelfie", "description": "Представляет проблему с селфи с документом. Ошибка считается устраненной при изменении файла с селфи.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorSelfie"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorSelfie"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Один из [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md), [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md), [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md), [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш файла", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorFile": {"title": "secureValueErrorFile", "description": "Представляет проблему при сканировании документа. Ошибка считается устраненной при изменении файла со сканом документа.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFile"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Один из [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md), [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md), [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md), [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md), [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш файла", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorFiles": {"title": "secureValueErrorFiles", "description": "Представляет проблему со списком сканирований. Ошибка считается устраненной при изменении списка файлов, содержащих сканы.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFiles"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Один из [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md), [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md), [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md), [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md), [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "Хэш файла", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueError": {"title": "secureValueError", "description": "Ошибка безопасного значения", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueError"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueError"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Тип элемента, с которым возникла проблема", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "hash", "text"], "additionalProperties": false}, "secureValueErrorTranslationFile": {"title": "secureValueErrorTranslationFile", "description": "Представляет проблему с одним из файлов, составляющих перевод документа. Ошибка считается устраненной при изменении файла.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorTranslationFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorTranslationFile"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Один из [secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md), [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md), [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md), [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md), [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md), [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md), [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md), [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md), [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md), [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш файла", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorTranslationFiles": {"title": "secureValueErrorTranslationFiles", "description": "Представляет проблему с переведенной версией документа. Ошибка считается устраненной при изменении файла с переводом документа.", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorTranslationFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorTranslationFiles"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Один из [secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md), [secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md), [secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md), [secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md), [secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md), [secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md), [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md), [secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md), [secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md), [secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)", "x-telegram-field-docs": true}, "file_hash": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "Хэш", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Сообщение об ошибке", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureCredentialsEncrypted": {"title": "secureCredentialsEncrypted", "description": "Зашифрованные учетные данные, необходимые для расшифровки данных [паспорта телеграммы](https://core.telegram.org/passport.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/secureCredentialsEncrypted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureCredentialsEncrypted"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Зашифрованные JSON-сериализованные данные с уникальной полезной нагрузкой пользователя, хэшами данных и секретами, необходимыми для расшифровки и аутентификации EncryptedPassportElement, как описано в разделе [расшифровка данных »](https://core.telegram.org/passport.md#decrypting-data)", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Хэш данных для аутентификации данных, как описано в разделе [расшифровка данных»](https://core.telegram.org/passport.md#decrypting-data)", "x-telegram-field-docs": true}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Секрет, зашифрованный открытым ключом бота RSA, необходимый для расшифровки данных, как описано в разделе [расшифровка данных »](https://core.telegram.org/passport.md#decrypting-data).", "x-telegram-field-docs": true}}, "required": ["_", "data", "hash", "secret"], "additionalProperties": false}, "account.authorizationForm": {"title": "account.authorizationForm", "description": "[Telegram Passport](https://core.telegram.org/passport.md) форма авторизации", "externalDocs": {"url": "https://core.telegram.org/constructor/account.authorizationForm"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.authorizationForm"]}, "required_types": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureRequiredType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureRequiredType", "secureRequiredTypeOneOf"]}}, "description": "Тип TL: SecureRequiredType."}, "x-tl-type": "Vector<SecureRequiredType>", "description": "Требуются [Telegram Passport](https://core.telegram.org/passport.md) документы.", "x-telegram-field-docs": true}, "values": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValue"]}}, "description": "Тип TL: SecureValue."}, "x-tl-type": "Vector<SecureValue>", "description": "Уже отправлены документы [Telegram Passport](https://core.telegram.org/passport.md)]", "x-telegram-field-docs": true}, "errors": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueError", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueErrorData", "secureValueErrorFrontSide", "secureValueErrorReverseSide", "secureValueErrorSelfie", "secureValueErrorFile", "secureValueErrorFiles", "secureValueError", "secureValueErrorTranslationFile", "secureValueErrorTranslationFiles"]}}, "description": "Тип TL: SecureValueError."}, "x-tl-type": "Vector<SecureValueError>", "description": "[Ошибки Telegram Passport](https://core.telegram.org/passport.md)", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о боте, которому будет отправлена форма", "x-telegram-field-docs": true}, "privacy_policy_url": {"type": "string", "x-tl-type": "string", "description": "URL политики конфиденциальности сервиса", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "required_types", "values", "errors", "users"], "additionalProperties": false}, "account.sentEmailCode": {"title": "account.sentEmailCode", "description": "Отправленный код электронной почты", "externalDocs": {"url": "https://core.telegram.org/constructor/account.sentEmailCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.sentEmailCode"]}, "email_pattern": {"type": "string", "x-tl-type": "string", "description": "Электронная почта (на которую был отправлен код) должна соответствовать этому [шаблону](https://core.telegram.org/api/pattern.md)]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Длина проверочного кода", "x-telegram-field-docs": true}}, "required": ["_", "email_pattern", "length"], "additionalProperties": false}, "help.deepLinkInfoEmpty": {"title": "help.deepLinkInfoEmpty", "description": "Информация о глубокой ссылке пуста", "externalDocs": {"url": "https://core.telegram.org/constructor/help.deepLinkInfoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.deepLinkInfoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "help.deepLinkInfo": {"title": "help.deepLinkInfo", "description": "Информацию о глубокой ссылке см. [здесь для более подробной информации](https://core.telegram.org/api/links.md#unsupported-links)", "externalDocs": {"url": "https://core.telegram.org/constructor/help.deepLinkInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.deepLinkInfo"]}, "update_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Для анализа этой ссылки требуется обновление приложения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение, которое будет показано пользователю", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<MessageEntity>"}}, "required": ["_", "message"], "additionalProperties": false}, "savedPhoneContact": {"title": "savedPhoneContact", "description": "Сохраненный контакт", "externalDocs": {"url": "https://core.telegram.org/constructor/savedPhoneContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["savedPhoneContact"]}, "phone": {"type": "string", "x-tl-type": "string", "description": "Номер телефона", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "Имя", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Фамилия", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата добавления", "x-telegram-field-docs": true}}, "required": ["_", "phone", "first_name", "last_name", "date"], "additionalProperties": false}, "account.takeout": {"title": "account.takeout", "description": "Информация о выносе", "externalDocs": {"url": "https://core.telegram.org/constructor/account.takeout"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.takeout"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор Архиватора", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "passwordKdfAlgoUnknown": {"title": "passwordKdfAlgoUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown"]}}, "required": ["_"], "additionalProperties": false}, "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow": {"title": "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow", "type": "object", "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}, "salt1": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "salt2": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "g": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "p": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "salt1", "salt2", "g", "p"], "additionalProperties": false}, "securePasswordKdfAlgoUnknown": {"title": "securePasswordKdfAlgoUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoUnknown"]}}, "required": ["_"], "additionalProperties": false}, "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000": {"title": "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoPBKDF2HMACSHA512iter100000"]}, "salt": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "salt"], "additionalProperties": false}, "securePasswordKdfAlgoSHA512": {"title": "securePasswordKdfAlgoSHA512", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoSHA512"]}, "salt": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "salt"], "additionalProperties": false}, "secureSecretSettings": {"title": "secureSecretSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureSecretSettings"]}, "secure_algo": {"type": "object", "x-tl-type": "SecurePasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoUnknown", "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", "securePasswordKdfAlgoSHA512"]}}, "description": "Тип TL: SecurePasswordKdfAlgo."}, "secure_secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secure_secret_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "secure_algo", "secure_secret", "secure_secret_id"], "additionalProperties": false}, "inputCheckPasswordEmpty": {"title": "inputCheckPasswordEmpty", "description": "Нет пароля", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCheckPasswordEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCheckPasswordEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputCheckPasswordSRP": {"title": "inputCheckPasswordSRP", "description": "Конструктор для проверки валидности пароля 2FA SRP (см. [SRP](https://core.telegram.org/api/srp.md))", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCheckPasswordSRP"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCheckPasswordSRP"]}, "srp_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[SRP ID](https://core.telegram.org/api/srp.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "A": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "параметр `A` (см. [SRP](https://core.telegram.org/api/srp.md))", "x-telegram-field-docs": true}, "M1": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "параметр `M1` (см. [SRP](https://core.telegram.org/api/srp.md))", "x-telegram-field-docs": true}}, "required": ["_", "srp_id", "A", "M1"], "additionalProperties": false}, "secureRequiredType": {"title": "secureRequiredType", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureRequiredType"]}, "native_names": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "selfie_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "translation_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "Тип TL: SecureValueType."}}, "required": ["_", "type"], "additionalProperties": false}, "secureRequiredTypeOneOf": {"title": "secureRequiredTypeOneOf", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureRequiredTypeOneOf"]}, "types": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureRequiredType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureRequiredType", "secureRequiredTypeOneOf"]}}, "description": "Тип TL: SecureRequiredType."}, "x-tl-type": "Vector<SecureRequiredType>"}}, "required": ["_", "types"], "additionalProperties": false}, "help.passportConfigNotModified": {"title": "help.passportConfigNotModified", "description": "Конфигурация пароля не изменена", "externalDocs": {"url": "https://core.telegram.org/constructor/help.passportConfigNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.passportConfigNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.passportConfig": {"title": "help.passportConfig", "description": "Telegram [паспорт](https://core.telegram.org/passport.md) конфигурация", "externalDocs": {"url": "https://core.telegram.org/constructor/help.passportConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.passportConfig"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "countries_langs": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Локализация", "x-telegram-field-docs": true}}, "required": ["_", "hash", "countries_langs"], "additionalProperties": false}, "inputAppEvent": {"title": "inputAppEvent", "description": "Событие, произошедшее в приложении.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAppEvent"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAppEvent"]}, "time": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Точная временная метка события клиента", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "Тип мероприятия", "x-telegram-field-docs": true}, "peer": {"type": "string", "pattern": "^-?\\d+$", "description": "Произвольное числовое значение для более удобного выбора определенных типов событий или событий, относящихся к определенному объекту.", "x-tl-type": "long", "x-telegram-field-docs": true}, "data": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "Подробности мероприятия", "x-telegram-field-docs": true}}, "required": ["_", "time", "type", "peer", "data"], "additionalProperties": false}, "jsonObjectValue": {"title": "jsonObjectValue", "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonObjectValue"]}, "key": {"type": "string", "x-tl-type": "string"}, "value": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "Тип TL: JSONValue."}}, "required": ["_", "key", "value"], "additionalProperties": false}, "jsonNull": {"title": "jsonNull", "description": "нулевое значение JSON\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonNull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonNull"]}}, "required": ["_"], "additionalProperties": false}, "jsonBool": {"title": "jsonBool", "description": "JSON логическое значение\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonBool"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonBool"]}, "value": {"type": "boolean", "x-tl-type": "Bool", "description": "Значение", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonNumber": {"title": "jsonNumber", "description": "JSON числовое значение\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonNumber"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonNumber"]}, "value": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Значение", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonString": {"title": "jsonString", "description": "JSON строка\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonString"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonString"]}, "value": {"type": "string", "x-tl-type": "string", "description": "Значение", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonArray": {"title": "jsonArray", "description": "массив JSON\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonArray"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonArray"]}, "value": {"type": "array", "items": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "Тип TL: JSONValue."}, "x-tl-type": "Vector<JSONValue>", "description": "JSON значений", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonObject": {"title": "jsonObject", "description": "JSON значение объекта\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonObject"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonObject"]}, "value": {"type": "array", "items": {"type": "object", "x-tl-type": "JSONObjectValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonObjectValue"]}}, "description": "Тип TL: JSONObjectValue."}, "x-tl-type": "Vector<JSONObjectValue>", "description": "Ценности", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "pageTableCell": {"title": "pageTableCell", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageTableCell"]}, "header": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "align_center": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "align_right": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "valign_middle": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "valign_bottom": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText.", "x-tl-flag": "flags.7?RichText"}, "colspan": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "rowspan": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "pageTableRow": {"title": "pageTableRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageTableRow"]}, "cells": {"type": "array", "items": {"type": "object", "x-tl-type": "PageTableCell", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageTableCell"]}}, "description": "Тип TL: PageTableCell."}, "x-tl-type": "Vector<PageTableCell>"}}, "required": ["_", "cells"], "additionalProperties": false}, "pageCaption": {"title": "pageCaption", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageCaption"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "credit": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "credit"], "additionalProperties": false}, "pageListItemText": {"title": "pageListItemText", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListItemText"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageListItemBlocks": {"title": "pageListItemBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListItemBlocks"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}}, "required": ["_", "blocks"], "additionalProperties": false}, "pageListOrderedItemText": {"title": "pageListOrderedItemText", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemText"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "num": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "text"], "additionalProperties": false}, "pageListOrderedItemBlocks": {"title": "pageListOrderedItemBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemBlocks"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "num": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "blocks"], "additionalProperties": false}, "pageRelatedArticle": {"title": "pageRelatedArticle", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageRelatedArticle"]}, "url": {"type": "string", "x-tl-type": "string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "published_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "url", "webpage_id"], "additionalProperties": false}, "page": {"title": "page", "type": "object", "properties": {"_": {"type": "string", "enum": ["page"]}, "part": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "v2": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "url": {"type": "string", "x-tl-type": "string"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}}, "required": ["_", "url", "blocks", "photos", "documents"], "additionalProperties": false}, "help.supportName": {"title": "help.supportName", "description": "Локализованное имя для поддержки Telegram", "externalDocs": {"url": "https://core.telegram.org/constructor/help.supportName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.supportName"]}, "name": {"type": "string", "x-tl-type": "string", "description": "Локализованное имя", "x-telegram-field-docs": true}}, "required": ["_", "name"], "additionalProperties": false}, "help.userInfoEmpty": {"title": "help.userInfoEmpty", "description": "Внутреннее использование", "externalDocs": {"url": "https://core.telegram.org/constructor/help.userInfoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.userInfoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "help.userInfo": {"title": "help.userInfo", "description": "Внутреннее использование", "externalDocs": {"url": "https://core.telegram.org/constructor/help.userInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.userInfo"]}, "message": {"type": "string", "x-tl-type": "string", "description": "Информация", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}, "author": {"type": "string", "x-tl-type": "string", "description": "Автор", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата", "x-telegram-field-docs": true}}, "required": ["_", "message", "entities", "author", "date"], "additionalProperties": false}, "pollAnswer": {"title": "pollAnswer", "description": "Возможный ответ в опросе", "externalDocs": {"url": "https://core.telegram.org/constructor/pollAnswer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["pollAnswer"]}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Текстовое представление ответа (только [пользователи Premium](https://core.telegram.org/api/premium.md) могут использовать [пользовательские эмодзи](https://core.telegram.org/api/custom-emoji.md) здесь).", "x-telegram-field-docs": true}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Параметр, который необходимо передать в [messages.sendVote](https://core.telegram.org/method/messages.sendVote.md).", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Дополнительное медиа-вложение отображается рядом с ответом.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MessageMedia"}, "added_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Партнер, добавивший этот ответ; устанавливается только для ответов, динамически добавляемых в опрос с открытым ответом, см. [опросы »](https://core.telegram.org/api/poll.md#open-answer-polls)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Peer"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда этот ответ был добавлен; устанавливается только для ответов, динамически добавляемых в опрос с открытым ответом", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "text", "option"], "additionalProperties": false}, "inputPollAnswer": {"title": "inputPollAnswer", "description": "Вариант ответа для добавления в [опрос с открытым ответом »](https://core.telegram.org/api/poll.md#open-answer-polls)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPollAnswer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPollAnswer"]}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Текст ответа", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "Дополнительное медиа-вложение для отображения рядом с ответом", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputMedia"}}, "required": ["_", "text"], "additionalProperties": false}, "poll": {"title": "poll", "type": "object", "properties": {"_": {"type": "string", "enum": ["poll"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "public_voters": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "multiple_choice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "quiz": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "open_answers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "revoting_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "shuffle_answers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "hide_results_until_close": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "subscribers_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "question": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities."}, "answers": {"type": "array", "items": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "Тип TL: PollAnswer."}, "x-tl-type": "Vector<PollAnswer>"}, "close_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "close_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "countries_iso2": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.12?Vector<string>"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "question", "answers", "hash"], "additionalProperties": false}, "pollAnswerVoters": {"title": "pollAnswerVoters", "type": "object", "properties": {"_": {"type": "string", "enum": ["pollAnswerVoters"]}, "chosen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "correct": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "voters": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "recent_voters": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.2?Vector<Peer>"}}, "required": ["_", "option"], "additionalProperties": false}, "pollResults": {"title": "pollResults", "type": "object", "properties": {"_": {"type": "string", "enum": ["pollResults"]}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "has_unread_votes": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "can_view_stats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "PollAnswerVoters", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswerVoters"]}}, "description": "Тип TL: PollAnswerVoters."}, "x-tl-type": "Vector<PollAnswerVoters>", "x-tl-flag": "flags.1?Vector<PollAnswerVoters>"}, "total_voters": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "recent_voters": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.3?Vector<Peer>"}, "solution": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "solution_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.4?Vector<MessageEntity>"}, "solution_media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia.", "x-tl-flag": "flags.5?MessageMedia"}}, "required": ["_"], "additionalProperties": false}, "chatOnlines": {"title": "chatOnlines", "description": "Количество онлайн-пользователей в чате", "externalDocs": {"url": "https://core.telegram.org/constructor/chatOnlines"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatOnlines"]}, "onlines": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество онлайн-пользователей", "x-telegram-field-docs": true}}, "required": ["_", "onlines"], "additionalProperties": false}, "statsURL": {"title": "statsURL", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsURL"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "chatAdminRights": {"title": "chatAdminRights", "description": "Представляет права администратора в [канале/супергруппе](https://core.telegram.org/api/channel.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/chatAdminRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}, "change_info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может изменять описание [канала/супергруппы](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "post_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может публиковать сообщения на канале [channel](https://core.telegram.org/api/channel.md)].", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "edit_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может также редактировать сообщения от других администраторов в [канале](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "delete_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может также удалять сообщения от других администраторов в [канале](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "ban_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может блокировать пользователей из [канала/супергруппы](https://core.telegram.org/api/channel.md)].", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "invite_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может приглашать пользователей в [канал/супергруппу](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "pin_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может закреплять сообщения в [канал/супергруппа](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "add_admins": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может добавлять других администраторов с такими же (или более ограниченными) разрешениями в [канал/супергруппу](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "anonymous": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли этот администратор анонимным", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "manage_call": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может создавать и администрировать [видеочаты/прямые трансляции»](https://core.telegram.org/api/group-calls.md#video-chats-livestreams)", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "other": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Установите этот флаг, если ни один из других флагов не установлен, но вы все равно хотите, чтобы пользователь был администратором: если этот или любой другой флаг установлен, администратор может получить чат [журнал администратора](https://core.telegram.org/api/recent-actions.md), получить [статистику чата](https://core.telegram.org/api/stats.md), получить [статистику сообщений в каналах](https://core.telegram.org/api/stats.md), получить участников канала, увидеть анонимных администраторов в супергруппах и игнорировать медленный режим.", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "manage_topics": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может создавать, удалять или изменять [темы форума »](https://core.telegram.org/api/forum.md#forum-topics).", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "post_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может публиковать [истории](https://core.telegram.org/api/stories.md) как [канал](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.14?true"}, "edit_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может редактировать [истории](https://core.telegram.org/api/stories.md), опубликованные другими администраторами канала [канал](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "delete_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может удалять [истории](https://core.telegram.org/api/stories.md), опубликованные другими администраторами канала [channel](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?true"}, "manage_direct_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может управлять [монофорумом прямых сообщений »](https://core.telegram.org/api/monoforum.md) и [отклонять предлагаемые сообщения »](https://core.telegram.org/api/suggested-posts.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "manage_ranks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, администратор может изменять [тег участника »](https://core.telegram.org/api/rank.md) любого пользователя.", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "manage_linked_peers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "manage_welcome_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}}, "required": ["_"], "additionalProperties": false}, "chatBannedRights": {"title": "chatBannedRights", "description": "Представляет права обычного пользователя в [супергруппе/канале/чате](https://core.telegram.org/api/channel.md). В этом случае флаги инвертируются: если установлен, флаг **не позволяет** пользователю выполнять X.", "externalDocs": {"url": "https://core.telegram.org/constructor/chatBannedRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}, "view_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователю не разрешается просматривать сообщения в [супергруппе/канале/чате](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "send_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователю запрещено отправлять сообщения в [супергруппу/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "send_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять какие-либо медиафайлы в [супергруппу/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "send_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять стикеры в [супергруппу/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "send_gifs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "If set, does not allow a user to send gifs in a [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "send_games": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять игры в [супергруппу/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "send_inline": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может использовать встроенных ботов в группе [supergroup/chat](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "embed_links": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, не позволяет пользователю вставлять ссылки в сообщения [супергруппы/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "send_polls": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователю не разрешается отправлять опросы в [супергруппе/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "change_info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, не позволяет пользователю изменять описание [супергруппы/чата](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "invite_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователю не разрешается приглашать пользователей в [супергруппу/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "pin_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователю не разрешается закреплять сообщения в [супергруппе/чат](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "manage_topics": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователю запрещено создавать, удалять или изменять [темы форума »](https://core.telegram.org/api/forum.md#forum-topics).", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "send_photos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять фотографии в [супергруппу/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?true"}, "send_videos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять видео в группу [супергруппа/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.20?true"}, "send_roundvideos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять круглые видео в [супергруппу/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.21?true"}, "send_audios": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять аудиофайлы в папку [супергруппа/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.22?true"}, "send_voices": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять голосовые сообщения в группе [супергруппа/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.23?true"}, "send_docs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять документы в папку [супергруппа/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.24?true"}, "send_plain": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователь не может отправлять текстовые сообщения в группу [супергруппа/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?true"}, "edit_rank": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, пользователю не разрешается редактировать свой собственный [тег (ранг) »](https://core.telegram.org/api/rank.md) в [супергруппе/чат](https://core.telegram.org/api/channel.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.26?true"}, "send_reactions": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, не позволяет пользователю реагировать на сообщения в чате.", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?true"}, "manage_linked_peers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок действия указанных разрешений (вечным считается любое значение менее 30 секунд и более 366 дней).", "x-telegram-field-docs": true}}, "required": ["_", "until_date"], "additionalProperties": false}, "inputWallPaper": {"title": "inputWallPaper", "description": "[Обои](https://core.telegram.org/api/wallpapers.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaper"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaper"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Обои](https://core.telegram.org/api/wallpapers.md) ID", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputWallPaperSlug": {"title": "inputWallPaperSlug", "description": "[Обои](https://core.telegram.org/api/wallpapers.md) по слизню (уникальный идентификатор, полученный по [ссылка на обои »](https://core.telegram.org/api/links.md#wallpaper-links))", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaperSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaperSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "Уникальный идентификатор обоев", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputWallPaperNoFile": {"title": "inputWallPaperNoFile", "description": "[Обои](https://core.telegram.org/api/wallpapers.md) без хеша доступа к файлу, используются, например, при удалении (`unsave=true`) обоев с помощью [account.saveWallPaper](https://core.telegram.org/method/account.saveWallPaper.md), с указанием только идентификатора обоев.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaperNoFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaperNoFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор обоев", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "account.wallPapersNotModified": {"title": "account.wallPapersNotModified", "description": "Новых [обоев](https://core.telegram.org/api/wallpapers.md) не найдено", "externalDocs": {"url": "https://core.telegram.org/constructor/account.wallPapersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.wallPapersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.wallPapers": {"title": "account.wallPapers", "description": "Установлено [обои](https://core.telegram.org/api/wallpapers.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/account.wallPapers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.wallPapers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "wallpapers": {"type": "array", "items": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper."}, "x-tl-type": "Vector<WallPaper>", "description": "[Обои](https://core.telegram.org/api/wallpapers.md)", "x-telegram-field-docs": true}}, "required": ["_", "hash", "wallpapers"], "additionalProperties": false}, "codeSettings": {"title": "codeSettings", "description": "Настройки, используемые серверами Telegram для отправки кода подтверждения.\n\nПримеры реализации: [telegram для android](https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/src/main/java/org/telegram/ui/LoginActivity.java), [tdlib](https://github.com/tdlib/td/tree/master/td/telegram/SendCodeHelper.cpp).", "externalDocs": {"url": "https://core.telegram.org/constructor/codeSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["codeSettings"]}, "allow_flashcall": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Разрешить ли проверку телефона через [телефонные звонки](https://core.telegram.org/api/auth.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "current_number": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Передайте true, если номер телефона используется на текущем устройстве. Игнорируется, если allow_flashcall не установлен.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "allow_app_hash": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the [android SMS receiver APIs](https://developers.google.com/identity/sms-retriever/overview)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "allow_missed_call": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Поддерживает ли это устройство получение кода методом [auth.codeTypeMissedCall](https://core.telegram.org/constructor/auth.codeTypeMissedCall.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "allow_firebase": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Поддерживается ли аутентификация Firebase", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "unknown_number": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Установите этот флаг, если в текущем устройстве есть карта SIM, но невозможно проверить, соответствует ли указанный номер телефона номеру телефона SIM.", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "logout_tokens": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "Ранее сохраненные будущие токены аутентификации см. в [документации для получения дополнительной информации »](https://core.telegram.org/api/auth.md#future-auth-tokens)", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<bytes>"}, "token": {"type": "string", "x-tl-type": "string", "description": "Используется только официальными приложениями iOS для аутентификации Firebase: токен устройства для Apple Push.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?string"}, "app_sandbox": {"type": "boolean", "x-tl-type": "Bool", "description": "Используется только официальными приложениями iOS для аутентификации Firebase: будет ли использоваться сертификат песочницы во время передачи push-уведомления.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?Bool"}}, "required": ["_"], "additionalProperties": false}, "wallPaperSettings": {"title": "wallPaperSettings", "description": "[Обои](https://core.telegram.org/api/wallpapers.md) отрисовка информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaperSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}, "blur": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Для [изображений обоев »](https://core.telegram.org/api/wallpapers.md#image-wallpapers): если установлено, JPEG необходимо уменьшить до размера квадрата 450x450, а затем размыть по рамке с радиусом 12.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "motion": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, фон необходимо слегка перемещать при вращении устройства.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Используется для заливок [сплошная »](https://core.telegram.org/api/wallpapers.md#solid-fill), [градиент »](https://core.telegram.org/api/wallpapers.md#gradient-fill) и [произвольная градиентная заливка »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "second_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Используется для заливок [градиент »](https://core.telegram.org/api/wallpapers.md#gradient-fill) и [градиент произвольной формы »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "third_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Используется для заливок [произвольного градиента »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill).", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "fourth_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Используется для заливок [произвольного градиента »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?int"}, "intensity": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Используется для [обоев с рисунком »](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "rotation": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Угол поворота градиента по часовой стрелке, в градусах; 0-359. Должно всегда делиться на 45.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Если установлено, эти обои можно использовать в качестве обоев канала и они представлены указанными смайликами UTF-8.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?string"}}, "required": ["_"], "additionalProperties": false}, "autoDownloadSettings": {"title": "autoDownloadSettings", "description": "Настройки автозагрузки", "externalDocs": {"url": "https://core.telegram.org/constructor/autoDownloadSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}, "disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отключить автоматическую загрузку мультимедиа?", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "video_preload_large": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли предварительно загружать первые секунды видео, размер которых превышает указанный предел.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "audio_preload_next": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли предварительно загружать следующую звуковую дорожку при прослушивании музыки", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "phonecalls_less_data": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включить ли режим сохранения данных при телефонных звонках", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "stories_preload": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Стоит ли предварительно загружать [stories](https://core.telegram.org/api/stories.md); в частности, первые [documentAttributeVideo](https://core.telegram.org/constructor/documentAttributeVideo.md).`preload_prefix_size` байты сюжетных видеороликов должны быть предварительно загружены.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "photo_size_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальный размер фотографий для предварительной загрузки", "x-telegram-field-docs": true}, "video_size_max": {"type": "string", "pattern": "^-?\\d+$", "description": "Максимальный размер видео для предварительной загрузки", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_size_max": {"type": "string", "pattern": "^-?\\d+$", "description": "Максимальный размер других файлов для предварительной загрузки", "x-tl-type": "long", "x-telegram-field-docs": true}, "video_upload_maxbitrate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Максимальный рекомендуемый битрейт для **загрузки** видео", "x-telegram-field-docs": true}, "small_queue_active_operations_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ограничение, определяющее максимальное количество файлов, которые должны быть загружены параллельно с одного и того же контроллера домена для файлов размером менее 20 МБ.", "x-telegram-field-docs": true}, "large_queue_active_operations_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ограничение, определяющее максимальное количество файлов, которые должны быть загружены параллельно с одного и того же DC, для файлов размером более 20 МБ.", "x-telegram-field-docs": true}}, "required": ["_", "photo_size_max", "video_size_max", "file_size_max", "video_upload_maxbitrate", "small_queue_active_operations_max", "large_queue_active_operations_max"], "additionalProperties": false}, "account.autoDownloadSettings": {"title": "account.autoDownloadSettings", "description": "Настройки автозагрузки мультимедиа", "externalDocs": {"url": "https://core.telegram.org/constructor/account.autoDownloadSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.autoDownloadSettings"]}, "low": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "Предустановка низкого использования данных", "x-telegram-field-docs": true}, "medium": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "Предустановка среднего использования данных", "x-telegram-field-docs": true}, "high": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "Предустановка высокого использования данных", "x-telegram-field-docs": true}}, "required": ["_", "low", "medium", "high"], "additionalProperties": false}, "emojiKeyword": {"title": "emojiKeyword", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeyword"]}, "keyword": {"type": "string", "x-tl-type": "string"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "keyword", "emoticons"], "additionalProperties": false}, "emojiKeywordDeleted": {"title": "emojiKeywordDeleted", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeywordDeleted"]}, "keyword": {"type": "string", "x-tl-type": "string"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "keyword", "emoticons"], "additionalProperties": false}, "emojiKeywordsDifference": {"title": "emojiKeywordsDifference", "description": "Изменения в ключевых словах эмодзи", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiKeywordsDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeywordsDifference"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка для ключевых слов", "x-telegram-field-docs": true}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Предыдущая версия списка ключевых слов для смайликов", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущая версия списка ключевых слов для эмодзи", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiKeyword", "emojiKeywordDeleted"]}}, "description": "Тип TL: EmojiKeyword."}, "x-tl-type": "Vector<EmojiKeyword>", "description": "Эмодзи, связанные с ключевыми словами", "x-telegram-field-docs": true}}, "required": ["_", "lang_code", "from_version", "version", "keywords"], "additionalProperties": false}, "emojiURL": {"title": "emojiURL", "description": "HTTP URL, который можно использовать для автоматического входа в платформу перевода и предложения новых замен смайлов. URL будет действовать в течение 30 секунд после генерации.", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiURL"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiURL"]}, "url": {"type": "string", "x-tl-type": "string", "description": "HTTP URL, который можно использовать для автоматического входа в платформу перевода и предложения новых замен смайлов. URL будет действовать в течение 30 секунд после генерации.", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "emojiLanguage": {"title": "emojiLanguage", "description": "Язык эмодзи", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiLanguage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiLanguage"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Код языка", "x-telegram-field-docs": true}}, "required": ["_", "lang_code"], "additionalProperties": false}, "folder": {"title": "folder", "type": "object", "properties": {"_": {"type": "string", "enum": ["folder"]}, "autofill_new_broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "autofill_public_groups": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "autofill_new_correspondents": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto.", "x-tl-flag": "flags.3?ChatPhoto"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "inputFolderPeer": {"title": "inputFolderPeer", "description": "Заглянуть в папку", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFolderPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFolderPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Пэр", "x-telegram-field-docs": true}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор одноранговой папки, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true}}, "required": ["_", "peer", "folder_id"], "additionalProperties": false}, "folderPeer": {"title": "folderPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["folderPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "folder_id"], "additionalProperties": false}, "messages.searchCounter": {"title": "messages.searchCounter", "description": "Указывает, сколько результатов будет найдено вызовом [messages.search](https://core.telegram.org/method/messages.search.md) с теми же параметрами.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.searchCounter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.searchCounter"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, результаты могут быть неточными.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "filter": {"type": "object", "x-tl-type": "MessagesFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned", "inputMessagesFilterPoll"]}}, "description": "Предусмотрен фильтр сообщений", "x-telegram-field-docs": true}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество результатов, найденных на стороне сервера", "x-telegram-field-docs": true}}, "required": ["_", "filter", "count"], "additionalProperties": false}, "urlAuthResultRequest": {"title": "urlAuthResultRequest", "description": "Подробности о запросе на авторизацию, для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultRequest"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultRequest"]}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Хочет ли бот отправлять сообщения пользователю", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "request_phone_number": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Приложение/сайт запрашивает номер телефона пользователя; если пользователь согласен, установите `share_phone_number` при звонке [messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "match_codes_first": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Можно установить только в том случае, если также установлено `match_codes`; если установлено, клиенты должны попросить пользователя выбрать соответствующий код *перед* отображением остальной части пользовательского интерфейса подтверждения входа в систему и должны подтвердить выбор с помощью [messages.checkUrlAuthMatchCode](https://core.telegram.org/method/messages.checkUrlAuthMatchCode.md), прежде чем продолжить", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "is_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Установите, если запрос OAuth исходит от приложения, а не от веб-сайта; если установлено, `domain` необходимо заменить в запросе подтверждения на `verified_app_name` (если присутствует) или «Непроверенное приложение».", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "request_wallet": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "bot": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See [Linking your domain to the bot](https://core.telegram.org/widgets/login.md#linking-your-domain-to-the-bot) for more details.", "x-telegram-field-docs": true}, "domain": {"type": "string", "x-tl-type": "string", "description": "Доменное имя веб-сайта, на котором будет авторизоваться пользователь.", "x-telegram-field-docs": true}, "browser": {"type": "string", "x-tl-type": "string", "description": "Браузер, который пользователь использовал для отправки запроса OAuth.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Платформа (операционная система) пользователя, выполнившего запрос OAuth.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "ip": {"type": "string", "x-tl-type": "string", "description": "IP-адрес пользователя, отправляющего запрос OAuth.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "region": {"type": "string", "x-tl-type": "string", "description": "Местоположение пользователя, определяемое по IP-адресу", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "match_codes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Список смайлов или кодов, один из которых в настоящее время отображается на странице входа на веб-сайт/приложение; пользователь должен выбрать подходящий и передать его [messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md).`match_code`", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<string>"}, "user_id_hint": {"type": "string", "pattern": "^-?\\d+$", "description": "Может содержать идентификатор учетной записи, для которой был создан запрос на вход; если он соответствует учетной записи, вошедшей в систему, клиенты должны автоматически переключиться на эту учетную запись и повторно вызвать [messages.requestUrlAuth](https://core.telegram.org/method/messages.requestUrlAuth.md) перед отображением подсказки", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?long"}, "verified_app_name": {"type": "string", "x-tl-type": "string", "description": "Можно установить только в том случае, если установлен `is_app` и приложение проверено; необходимо заменить `domain` в запросе подтверждения, если оно присутствует", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?string"}, "tc_session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.9?long"}, "tc_client_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.10?string"}}, "required": ["_", "bot", "domain"], "additionalProperties": false}, "urlAuthResultAccepted": {"title": "urlAuthResultAccepted", "description": "Подробности о принятом запросе на авторизацию для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultAccepted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultAccepted"]}, "url": {"type": "string", "x-tl-type": "string", "description": "Если присутствует, URL для открытия во внешнем браузере (может использоваться пользовательская схема для прямого переключения на другое приложение); если он отсутствует, вход выполнен успешно, и клиенты должны просто показать всплывающее сообщение с подтверждением.  Всегда устанавливайте для [кнопка бота URL авторизация](https://core.telegram.org/api/url-authorization.md#bot-button-url-authorization) и [ссылка URL авторизация](https://core.telegram.org/api/url-authorization.md#link-url-authorization).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_"], "additionalProperties": false}, "urlAuthResultDefault": {"title": "urlAuthResultDefault", "description": "Подробности о принятом запросе на авторизацию для получения дополнительной информации [нажмите здесь »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultDefault"]}}, "required": ["_"], "additionalProperties": false}, "channelLocationEmpty": {"title": "channelLocationEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty"]}}, "required": ["_"], "additionalProperties": false}, "channelLocation": {"title": "channelLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelLocation"]}, "geo_point": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "geo_point", "address"], "additionalProperties": false}, "peerLocated": {"title": "peerLocated", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerLocated"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "distance": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "expires", "distance"], "additionalProperties": false}, "peerSelfLocated": {"title": "peerSelfLocated", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerSelfLocated"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "expires"], "additionalProperties": false}, "restrictionReason": {"title": "restrictionReason", "type": "object", "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}, "platform": {"type": "string", "x-tl-type": "string"}, "reason": {"type": "string", "x-tl-type": "string"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "platform", "reason", "text"], "additionalProperties": false}, "inputTheme": {"title": "inputTheme", "description": "Тема", "externalDocs": {"url": "https://core.telegram.org/constructor/inputTheme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTheme"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "идентификатор", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Доступ к хешу", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputThemeSlug": {"title": "inputThemeSlug", "description": "Тема по идентификатору темы", "externalDocs": {"url": "https://core.telegram.org/constructor/inputThemeSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputThemeSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "Уникальный идентификатор темы, полученный по [глубокой ссылке темы »](https://core.telegram.org/api/links.md#theme-links)", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "theme": {"title": "theme", "description": "Тема", "externalDocs": {"url": "https://core.telegram.org/constructor/theme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["theme"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли текущий пользователь создателем этой темы", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли это темой по умолчанию", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "for_chat": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Предполагается ли использовать эту тему в качестве [темы чата](https://telegram.org/blog/chat-themes-interactive-emoji-read-receipts)", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор темы", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа к теме", "x-tl-type": "long", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "Уникальный идентификатор темы", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название темы", "x-telegram-field-docs": true}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тема", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Document"}, "settings": {"type": "array", "items": {"type": "object", "x-tl-type": "ThemeSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["themeSettings"]}}, "description": "Тип TL: ThemeSettings."}, "x-tl-type": "Vector<ThemeSettings>", "description": "Настройки темы", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<ThemeSettings>"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Тематические смайлы", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?string"}, "installs_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество установок", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}}, "required": ["_", "id", "access_hash", "slug", "title"], "additionalProperties": false}, "account.themesNotModified": {"title": "account.themesNotModified", "description": "Новые темы не устанавливались", "externalDocs": {"url": "https://core.telegram.org/constructor/account.themesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.themesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.themes": {"title": "account.themes", "description": "Установленные темы", "externalDocs": {"url": "https://core.telegram.org/constructor/account.themes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.themes"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "themes": {"type": "array", "items": {"type": "object", "x-tl-type": "Theme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["theme"]}}, "description": "Тип TL: Theme."}, "x-tl-type": "Vector<Theme>", "description": "Темы", "x-telegram-field-docs": true}}, "required": ["_", "hash", "themes"], "additionalProperties": false}, "auth.loginToken": {"title": "auth.loginToken", "description": "Токен входа (для [входа по QR-коду](https://core.telegram.org/api/qr-login.md))", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loginToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loginToken"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок действия QR-кода", "x-telegram-field-docs": true}, "token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен для отображения в QR-коде", "x-telegram-field-docs": true}}, "required": ["_", "expires", "token"], "additionalProperties": false}, "auth.loginTokenMigrateTo": {"title": "auth.loginTokenMigrateTo", "description": "Повторите запрос к указанному контроллеру домена.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loginTokenMigrateTo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loginTokenMigrateTo"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор контроллера домена", "x-telegram-field-docs": true}, "token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Токен для входа в систему", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "token"], "additionalProperties": false}, "auth.loginTokenSuccess": {"title": "auth.loginTokenSuccess", "description": "Вход по токену (QR-коду) удался!", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loginTokenSuccess"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loginTokenSuccess"]}, "authorization": {"type": "object", "x-tl-type": "auth.Authorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.authorization", "auth.authorizationSignUpRequired"]}}, "description": "Информация об авторизации", "x-telegram-field-docs": true}}, "required": ["_", "authorization"], "additionalProperties": false}, "account.contentSettings": {"title": "account.contentSettings", "description": "Настройки конфиденциального контента", "externalDocs": {"url": "https://core.telegram.org/constructor/account.contentSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.contentSettings"]}, "sensitive_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включен ли просмотр конфиденциального (NSFW) контента.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "sensitive_can_change": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли текущий клиент изменить настройки конфиденциального контента для просмотра контента NSFW", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "messages.inactiveChats": {"title": "messages.inactiveChats", "description": "Неактивный список чатов", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.inactiveChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.inactiveChats"]}, "dates": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Когда чат был активен в последний раз", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Список чатов", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в списке чата", "x-telegram-field-docs": true}}, "required": ["_", "dates", "chats", "users"], "additionalProperties": false}, "baseThemeClassic": {"title": "baseThemeClassic", "description": "Классическая тема", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeClassic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeClassic"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeDay": {"title": "baseThemeDay", "description": "Тема дня", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeDay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeDay"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeNight": {"title": "baseThemeNight", "description": "Ночная тема", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeNight"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeNight"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeTinted": {"title": "baseThemeTinted", "description": "Тонированная тема", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeTinted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeTinted"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeArctic": {"title": "baseThemeArctic", "description": "Арктическая тема", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeArctic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeArctic"]}}, "required": ["_"], "additionalProperties": false}, "inputThemeSettings": {"title": "inputThemeSettings", "description": "Настройки темы", "externalDocs": {"url": "https://core.telegram.org/constructor/inputThemeSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputThemeSettings"]}, "message_colors_animated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, градиентная заливка произвольной формы должна анимироваться при каждом отправленном сообщении.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "base_theme": {"type": "object", "x-tl-type": "BaseTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["baseThemeClassic", "baseThemeDay", "baseThemeNight", "baseThemeTinted", "baseThemeArctic"]}}, "description": "Тема по умолчанию, на которой основана эта тема", "x-telegram-field-docs": true}, "accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Акцентный цвет, формат ARGB", "x-telegram-field-docs": true}, "outbox_accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Цвет акцента исходящих сообщений в формате ARGB", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "message_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Заливка, которая будет использоваться в качестве фона для исходящих сообщений, в формате RGB24.  Если предоставлен только один или два одинаковых цвета, описывает сплошную заливку фона.  Если указаны два разных цвета, описывает верхний и нижний цвета градиента 0 градусов. Если предоставлено три или четыре цвета, описывает произвольную градиентную заливку фона.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<int>"}, "wallpaper": {"type": "object", "x-tl-type": "InputWallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWallPaper", "inputWallPaperSlug", "inputWallPaperNoFile"]}}, "description": "[inputWallPaper](https://core.telegram.org/constructor/inputWallPaper.md) или [inputWallPaperSlug](https://core.telegram.org/constructor/inputWallPaper.md) при передаче файлов обоев для обоев [image](https://core.telegram.org/api/wallpapers.md#image-wallpapers) или [pattern](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers)], [inputWallPaperNoFile](https://core.telegram.org/constructor/inputWallPaperNoFile.md) с `id=0` в противном случае.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputWallPaper"}, "wallpaper_settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "[Обои](https://core.telegram.org/api/wallpapers.md) настройки.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?WallPaperSettings"}}, "required": ["_", "base_theme", "accent_color"], "additionalProperties": false}, "themeSettings": {"title": "themeSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["themeSettings"]}, "message_colors_animated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "base_theme": {"type": "object", "x-tl-type": "BaseTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["baseThemeClassic", "baseThemeDay", "baseThemeNight", "baseThemeTinted", "baseThemeArctic"]}}, "description": "Тип TL: BaseTheme."}, "accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "outbox_accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "message_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "Тип TL: WallPaper.", "x-tl-flag": "flags.1?WallPaper"}}, "required": ["_", "base_theme", "accent_color"], "additionalProperties": false}, "webPageAttributeTheme": {"title": "webPageAttributeTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeTheme"]}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "x-tl-flag": "flags.0?Vector<Document>"}, "settings": {"type": "object", "x-tl-type": "ThemeSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["themeSettings"]}}, "description": "Тип TL: ThemeSettings.", "x-tl-flag": "flags.1?ThemeSettings"}}, "required": ["_"], "additionalProperties": false}, "webPageAttributeStory": {"title": "webPageAttributeStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem.", "x-tl-flag": "flags.0?StoryItem"}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "webPageAttributeStickerSet": {"title": "webPageAttributeStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStickerSet"]}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>"}}, "required": ["_", "stickers"], "additionalProperties": false}, "webPageAttributeUniqueStarGift": {"title": "webPageAttributeUniqueStarGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeUniqueStarGift"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}}, "required": ["_", "gift"], "additionalProperties": false}, "webPageAttributeStarGiftCollection": {"title": "webPageAttributeStarGiftCollection", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStarGiftCollection"]}, "icons": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>"}}, "required": ["_", "icons"], "additionalProperties": false}, "webPageAttributeStarGiftAuction": {"title": "webPageAttributeStarGiftAuction", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStarGiftAuction"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "gift", "end_date"], "additionalProperties": false}, "webPageAttributeAiComposeTone": {"title": "webPageAttributeAiComposeTone", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeAiComposeTone"]}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "emoji_id"], "additionalProperties": false}, "messages.votesList": {"title": "messages.votesList", "description": "Как пользователи голосовали в опросе", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.votesList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.votesList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество голосов за все варианты (или только за выбранный `option`, если предусмотрено [messages.getPollVotes](https://core.telegram.org/method/messages.getPollVotes.md))", "x-telegram-field-docs": true}, "votes": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagePeerVote", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messagePeerVote", "messagePeerVoteInputOption", "messagePeerVoteMultiple"]}}, "description": "Тип TL: MessagePeerVote."}, "x-tl-type": "Vector<MessagePeerVote>", "description": "Информация о голосовании для каждого пользователя", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о пользователях, проголосовавших в опросе", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для использования со следующим запросом [messages.getPollVotes](https://core.telegram.org/method/messages.getPollVotes.md), пустая строка, если больше нет доступных результатов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "votes", "chats", "users"], "additionalProperties": false}, "bankCardOpenUrl": {"title": "bankCardOpenUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["bankCardOpenUrl"]}, "url": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url", "name"], "additionalProperties": false}, "payments.bankCardData": {"title": "payments.bankCardData", "description": "Информация о кредитной карте, предоставленная банком(ами), выдавшим карту.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.bankCardData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.bankCardData"]}, "title": {"type": "string", "x-tl-type": "string", "description": "Название кредитной карты", "x-telegram-field-docs": true}, "open_urls": {"type": "array", "items": {"type": "object", "x-tl-type": "BankCardOpenUrl", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["bankCardOpenUrl"]}}, "description": "Тип TL: BankCardOpenUrl."}, "x-tl-type": "Vector<BankCardOpenUrl>", "description": "Информация URL(ы), предоставленная банком(ами) карты.", "x-telegram-field-docs": true}}, "required": ["_", "title", "open_urls"], "additionalProperties": false}, "dialogFilter": {"title": "dialogFilter", "description": "Фильтр диалогов AKA [папка](https://core.telegram.org/api/folders.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilter"]}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включить ли все контакты в эту [папку](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включать ли все неконтакты в эту [папку](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "groups": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включить ли все группы в эту [папку](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включить ли все каналы в эту [папку](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "bots": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включить ли всех ботов в эту [папку](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "exclude_muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Исключить ли чаты с отключенным звуком из этой [папки](https://core.telegram.org/api/folders.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "exclude_read": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Исключить ли чаты чтения из этой [папки](https://core.telegram.org/api/folders.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "exclude_archived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Исключить ли архивные чаты из этой [папки](https://core.telegram.org/api/folders.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "title_noanimate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, любые анимированные смайлы, присутствующие в `title`, не должны быть анимированы и вместо этого должны быть заморожены на первом кадре.", "x-telegram-field-docs": true, "x-tl-flag": "flags.28?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор папки](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "[Имя папки](https://core.telegram.org/api/folders.md) (максимум 12 UTF-8 символов)", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи для использования в качестве значка папки.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?string"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор цвета для [тега папки, связанного с этой папкой, см. здесь »](https://core.telegram.org/api/folders.md#folder-tags) для получения дополнительной информации.", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?int"}, "pinned_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Закрепленные чаты, [папки](https://core.telegram.org/api/folders.md) могут содержать неограниченное количество закрепленных чатов.", "x-telegram-field-docs": true}, "include_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Включите следующие чаты в эту [папку](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true}, "exclude_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Исключите следующие чаты из этой [папки](https://core.telegram.org/api/folders.md)]", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "pinned_peers", "include_peers", "exclude_peers"], "additionalProperties": false}, "dialogFilterDefault": {"title": "dialogFilterDefault", "description": "Используется только при изменении порядка папок для указания папки по умолчанию (все чаты).", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterDefault"]}}, "required": ["_"], "additionalProperties": false}, "dialogFilterChatlist": {"title": "dialogFilterChatlist", "description": "Папка, импортированная с помощью [глубокой ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterChatlist"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterChatlist"]}, "has_my_invites": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Создал ли текущий пользователь [глубинные ссылки на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links), чтобы также поделиться этой папкой.", "x-telegram-field-docs": true, "x-tl-flag": "flags.26?true"}, "title_noanimate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, любые анимированные смайлы, присутствующие в `title`, не должны быть анимированы и вместо этого должны быть заморожены на первом кадре.", "x-telegram-field-docs": true, "x-tl-flag": "flags.28?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "идентификатор папки", "x-telegram-field-docs": true}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Имя папки (максимум 12 UTF-8 символов)", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи для использования в качестве значка папки.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?string"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор цвета для [тега папки, связанного с этой папкой, см. здесь »](https://core.telegram.org/api/folders.md#folder-tags) для получения дополнительной информации.", "x-telegram-field-docs": true, "x-tl-flag": "flags.27?int"}, "pinned_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Закрепленные чаты, [папки](https://core.telegram.org/api/folders.md) могут содержать неограниченное количество закрепленных чатов.", "x-telegram-field-docs": true}, "include_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Чаты, которые нужно добавить в папку", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "pinned_peers", "include_peers"], "additionalProperties": false}, "dialogFilterSuggested": {"title": "dialogFilterSuggested", "description": "Предлагается [папки](https://core.telegram.org/api/folders.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterSuggested"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterSuggested"]}, "filter": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "[Информация о папке](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "[Папка](https://core.telegram.org/api/folders.md) описание", "x-telegram-field-docs": true}}, "required": ["_", "filter", "description"], "additionalProperties": false}, "statsDateRangeDays": {"title": "statsDateRangeDays", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsDateRangeDays"]}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "min_date", "max_date"], "additionalProperties": false}, "statsAbsValueAndPrev": {"title": "statsAbsValueAndPrev", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}, "current": {"type": "number", "format": "double", "x-tl-type": "double"}, "previous": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "current", "previous"], "additionalProperties": false}, "statsPercentValue": {"title": "statsPercentValue", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsPercentValue"]}, "part": {"type": "number", "format": "double", "x-tl-type": "double"}, "total": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "part", "total"], "additionalProperties": false}, "statsGraphAsync": {"title": "statsGraphAsync", "description": "Этот [график статистики канала](https://core.telegram.org/api/stats.md) должен быть сгенерирован асинхронно с использованием [stats.loadAsyncGraph](https://core.telegram.org/method/stats.loadAsyncGraph.md), чтобы уменьшить нагрузку на сервер).", "externalDocs": {"url": "https://core.telegram.org/constructor/statsGraphAsync"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGraphAsync"]}, "token": {"type": "string", "x-tl-type": "string", "description": "Токен, используемый для получения асинхронного графика.", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "statsGraphError": {"title": "statsGraphError", "description": "Произошла ошибка при создании [графика статистики](https://core.telegram.org/api/stats.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/statsGraphError"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGraphError"]}, "error": {"type": "string", "x-tl-type": "string", "description": "Ошибка", "x-telegram-field-docs": true}}, "required": ["_", "error"], "additionalProperties": false}, "statsGraph": {"title": "statsGraph", "description": "[График статистики канала](https://core.telegram.org/api/stats.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/statsGraph"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGraph"]}, "json": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Статистические данные", "x-telegram-field-docs": true}, "zoom_token": {"type": "string", "x-tl-type": "string", "description": "Токен масштабирования", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "json"], "additionalProperties": false}, "stats.broadcastStats": {"title": "stats.broadcastStats", "description": "[Статистика канала](https://core.telegram.org/api/stats.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.broadcastStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.broadcastStats"]}, "period": {"type": "object", "x-tl-type": "StatsDateRangeDays", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsDateRangeDays"]}}, "description": "Рассматриваемый период", "x-telegram-field-docs": true}, "followers": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "Изменение количества подписчиков за рассматриваемый период", "x-telegram-field-docs": true}, "views_per_post": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_viewcount/postcount` для сообщений, опубликованных в течение рассматриваемого периода.  Обратите внимание, что в данном случае `current` относится к рассматриваемому `period` (от `min_date` до `max_date`), а `prev` относится к предыдущему периоду (от `(min_date - (max_date - min_date))` до `min_date`).", "x-telegram-field-docs": true}, "shares_per_post": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_sharecount/postcount` для сообщений, опубликованных в течение рассматриваемого периода.  Обратите внимание, что в этом случае `current` относится к рассматриваемому `period` (от `min_date` до `max_date`), а `prev` относится к предыдущему периоду (от `(min_date - (max_date - min_date))` до `min_date`).", "x-telegram-field-docs": true}, "reactions_per_post": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_reactions/postcount`, для сообщений, опубликованных в течение рассматриваемого периода.  Обратите внимание, что в этом случае `current` относится к рассматриваемому `period` (от `min_date` до `max_date`), а `prev` относится к предыдущему периоду (от `(min_date - (max_date - min_date))` до `min_date`).", "x-telegram-field-docs": true}, "views_per_story": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_views/storycount`, для сообщений, опубликованных в течение рассматриваемого периода.  Обратите внимание, что в этом случае `current` относится к рассматриваемому `period` (от `min_date` до `max_date`), а `prev` относится к предыдущему периоду (от `(min_date - (max_date - min_date))` до `min_date`).", "x-telegram-field-docs": true}, "shares_per_story": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_shares/storycount`, для сообщений, опубликованных в течение рассматриваемого периода.  Обратите внимание, что в этом случае `current` относится к рассматриваемому `period` (от `min_date` до `max_date`), а `prev` относится к предыдущему периоду (от `(min_date - (max_date - min_date))` до `min_date`).", "x-telegram-field-docs": true}, "reactions_per_story": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_reactions/storycount` для сообщений, опубликованных в течение рассматриваемого периода.  Обратите внимание, что в этом случае `current` относится к рассматриваемому `period` (от `min_date` до `max_date`), а `prev` относится к предыдущему периоду (от `(min_date - (max_date - min_date))` до `min_date`).", "x-telegram-field-docs": true}, "enabled_notifications": {"type": "object", "x-tl-type": "StatsPercentValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsPercentValue"]}}, "description": "Процент подписчиков с включенными уведомлениями", "x-telegram-field-docs": true}, "growth_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График роста канала (абсолютное количество подписчиков)", "x-telegram-field-docs": true}, "followers_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График роста подписчиков (относительное количество подписчиков)", "x-telegram-field-docs": true}, "mute_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График отключенных пользователей (относительный)", "x-telegram-field-docs": true}, "top_hours_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График просмотров в час (абсолютный)", "x-telegram-field-docs": true}, "interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График взаимодействий (абсолютный)", "x-telegram-field-docs": true}, "iv_interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График взаимодействий IV (абсолютный)", "x-telegram-field-docs": true}, "views_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "Просмотры по исходному графику (абсолютное значение)", "x-telegram-field-docs": true}, "new_followers_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "Новые подписчики по исходному графику (абсолютное значение)", "x-telegram-field-docs": true}, "languages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График языка абонента (круговая диаграмма)", "x-telegram-field-docs": true}, "reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График, показывающий количество реакций на публикации, отсортированные по эмоциям.", "x-telegram-field-docs": true}, "story_interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График, показывающий количество просмотров и репостов историй.", "x-telegram-field-docs": true}, "story_reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График, показывающий количество реакций на истории, сгруппированные по эмоциям.", "x-telegram-field-docs": true}, "recent_posts_interactions": {"type": "array", "items": {"type": "object", "x-tl-type": "PostInteractionCounters", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["postInteractionCountersMessage", "postInteractionCountersStory"]}}, "description": "Тип TL: PostInteractionCounters."}, "x-tl-type": "Vector<PostInteractionCounters>", "description": "Подробная статистика о количестве просмотров и репостов недавно отправленных сообщений и историй", "x-telegram-field-docs": true}}, "required": ["_", "period", "followers", "views_per_post", "shares_per_post", "reactions_per_post", "views_per_story", "shares_per_story", "reactions_per_story", "enabled_notifications", "growth_graph", "followers_graph", "mute_graph", "top_hours_graph", "interactions_graph", "iv_interactions_graph", "views_by_source_graph", "new_followers_by_source_graph", "languages_graph", "reactions_by_emotion_graph", "story_interactions_graph", "story_reactions_by_emotion_graph", "recent_posts_interactions"], "additionalProperties": false}, "help.promoDataEmpty": {"title": "help.promoDataEmpty", "description": "Нет информации о PSA/MTProxy.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.promoDataEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.promoDataEmpty"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Повторно получить информацию PSA/MTProxy через указанное количество секунд.", "x-telegram-field-docs": true}}, "required": ["_", "expires"], "additionalProperties": false}, "help.promoData": {"title": "help.promoData", "description": "Набор полезных предложений и партнер, спонсируемый PSA/MTProxy, см. [здесь »](https://core.telegram.org/api/config.md#suggestions) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.promoData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.promoData"]}, "proxy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Установите при подключении с использованием MTProxy, который настроил связанного узла (который будет передан в `peer`, i.e. канале, который спонсировал MTProxy), который должен быть закреплен вверху списка чата.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Unixtime, когда повторно вызывать [help.getPromoData](https://core.telegram.org/method/help.getPromoData.md).", "x-telegram-field-docs": true}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "MTProxy/PSA одноранговый узел", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Peer"}, "psa_type": {"type": "string", "x-tl-type": "string", "description": "Для объявлений общественной службы `peer`s указывает тип PSA.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "psa_message": {"type": "string", "x-tl-type": "string", "description": "Для общественных объявлений `peer`s содержит сам PSA.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "pending_suggestions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Содержит список [ожидающих предложений»](https://core.telegram.org/api/config.md#basic-suggestions).", "x-telegram-field-docs": true}, "dismissed_suggestions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Содержит список [перевернутых предложений»](https://core.telegram.org/api/config.md#inverted-suggestions).", "x-telegram-field-docs": true}, "custom_pending_suggestion": {"type": "object", "x-tl-type": "PendingSuggestion", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pendingSuggestion"]}}, "description": "Содержит список [пользовательских ожидающих предложений»](https://core.telegram.org/api/config.md#custom-suggestions).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?PendingSuggestion"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Информация о чате", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о пользователе", "x-telegram-field-docs": true}}, "required": ["_", "expires", "pending_suggestions", "dismissed_suggestions", "chats", "users"], "additionalProperties": false}, "videoSize": {"title": "videoSize", "description": "[анимированное изображение профиля](https://core.telegram.org/api/files.md#animated-profile-pictures) в формате MPEG4", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSize"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSize"]}, "type": {"type": "string", "x-tl-type": "string", "description": "[videoSize.type значение »](https://core.telegram.org/api/files.md#videosizetype-values)", "x-telegram-field-docs": true}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ширина видео", "x-telegram-field-docs": true}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Высота видео", "x-telegram-field-docs": true}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Размер файла", "x-telegram-field-docs": true}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Временная метка, которая должна отображаться пользователю в виде статического предварительного просмотра (секунды).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?double"}}, "required": ["_", "type", "w", "h", "size"], "additionalProperties": false}, "videoSizeEmojiMarkup": {"title": "videoSizeEmojiMarkup", "description": "[Анимированное изображение профиля](https://core.telegram.org/api/files.md#animated-profile-pictures), основанное на [собственном стикере-эмодзи](https://core.telegram.org/api/custom-emoji.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSizeEmojiMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSizeEmojiMarkup"]}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md): собственный стикер смайлика отображается в центре изображения профиля и занимает не более 67% его площади.", "x-tl-type": "long", "x-telegram-field-docs": true}, "background_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1, 2, 3 или 4 RBG-24 цвета, используемые для создания сплошного (1), градиентного (2) или градиента произвольной формы (3, 4) фона, аналогично тому, как генерируются [обои с заливкой](https://core.telegram.org/api/wallpapers.md#fill-types)]. Угол поворота градиентного фона равен 0.", "x-telegram-field-docs": true}}, "required": ["_", "emoji_id", "background_colors"], "additionalProperties": false}, "videoSizeStickerMarkup": {"title": "videoSizeStickerMarkup", "description": "[Анимированное изображение профиля](https://core.telegram.org/api/files.md#animated-profile-pictures) на основе [стикера](https://core.telegram.org/api/stickers.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSizeStickerMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSizeStickerMarkup"]}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "Набор наклеек", "x-telegram-field-docs": true}, "sticker_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор стикера", "x-tl-type": "long", "x-telegram-field-docs": true}, "background_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1, 2, 3 или 4 RBG-24 цвета, используемые для создания сплошного (1), градиентного (2) или градиента произвольной формы (3, 4) фона, аналогично тому, как генерируются [обои с заливкой](https://core.telegram.org/api/wallpapers.md#fill-types)]. Угол поворота градиентного фона равен 0.", "x-telegram-field-docs": true}}, "required": ["_", "stickerset", "sticker_id", "background_colors"], "additionalProperties": false}, "statsGroupTopPoster": {"title": "statsGroupTopPoster", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopPoster"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "avg_chars": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "messages", "avg_chars"], "additionalProperties": false}, "statsGroupTopAdmin": {"title": "statsGroupTopAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopAdmin"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "deleted": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "kicked": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "banned": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "deleted", "kicked", "banned"], "additionalProperties": false}, "statsGroupTopInviter": {"title": "statsGroupTopInviter", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopInviter"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invitations": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "invitations"], "additionalProperties": false}, "stats.megagroupStats": {"title": "stats.megagroupStats", "description": "Супергруппа [статистика](https://core.telegram.org/api/stats.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.megagroupStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.megagroupStats"]}, "period": {"type": "object", "x-tl-type": "StatsDateRangeDays", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsDateRangeDays"]}}, "description": "Рассматриваемый период", "x-telegram-field-docs": true}, "members": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "Изменение количества участников за рассматриваемый период", "x-telegram-field-docs": true}, "messages": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "Изменение номера сообщения за рассматриваемый период", "x-telegram-field-docs": true}, "viewers": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "Количество пользователей, просмотревших сообщения, в рассматриваемом диапазоне", "x-telegram-field-docs": true}, "posters": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "Количество пользователей, разместивших сообщения, в рассматриваемом диапазоне", "x-telegram-field-docs": true}, "growth_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График роста супергруппы (абсолютное количество подписчиков)", "x-telegram-field-docs": true}, "members_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "Рост числа участников (относительное количество подписчиков)", "x-telegram-field-docs": true}, "new_members_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "Новые участники по исходному графику", "x-telegram-field-docs": true}, "languages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График языка абонента (круговая диаграмма)", "x-telegram-field-docs": true}, "messages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График активности сообщений (составная гистограмма, тип сообщения)", "x-telegram-field-docs": true}, "actions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График активности группы (удаленные, измененные сообщения, заблокированные пользователи)", "x-telegram-field-docs": true}, "top_hours_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График активности в час (абсолютный)", "x-telegram-field-docs": true}, "weekdays_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График активности по дням недели (абсолютный)", "x-telegram-field-docs": true}, "top_posters": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopPoster", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopPoster"]}}, "description": "Тип TL: StatsGroupTopPoster."}, "x-tl-type": "Vector<StatsGroupTopPoster>", "description": "Информация о самых активных участниках группы", "x-telegram-field-docs": true}, "top_admins": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopAdmin", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopAdmin"]}}, "description": "Тип TL: StatsGroupTopAdmin."}, "x-tl-type": "Vector<StatsGroupTopAdmin>", "description": "Информация о наиболее активных администраторах группы", "x-telegram-field-docs": true}, "top_inviters": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopInviter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopInviter"]}}, "description": "Тип TL: StatsGroupTopInviter."}, "x-tl-type": "Vector<StatsGroupTopInviter>", "description": "Информация о наиболее активных приглашенных в группы", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о пользователях, упомянутых в статистике", "x-telegram-field-docs": true}}, "required": ["_", "period", "members", "messages", "viewers", "posters", "growth_graph", "members_graph", "new_members_by_source_graph", "languages_graph", "messages_graph", "actions_graph", "top_hours_graph", "weekdays_graph", "top_posters", "top_admins", "top_inviters", "users"], "additionalProperties": false}, "globalPrivacySettings": {"title": "globalPrivacySettings", "description": "Глобальные настройки конфиденциальности", "externalDocs": {"url": "https://core.telegram.org/constructor/globalPrivacySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["globalPrivacySettings"]}, "archive_and_mute_new_noncontact_peers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Архивировать и отключать новые чаты от пользователей, не входящих в контакты", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "keep_archived_unmuted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будут ли включенные чаты сохраняться в списке архивных чатов при получении нового сообщения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "keep_archived_folders": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Будут ли чаты без звука, которые всегда включены или закреплены в [папке](https://core.telegram.org/api/folders.md), сохраняться в списке архивных чатов при получении нового сообщения. Игнорируется, если установлено `keep_archived_unmuted`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "hide_read_marks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот флаг установлен, ключ [inputPrivacyKeyStatusTimestamp](https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.md) также будет применяться к возможности использовать [messages.getOutboxReadDate](https://core.telegram.org/method/messages.getOutboxReadDate.md) в сообщениях, отправленных нам.  Это означает, что пользователи, которые не могут видеть *нашу* точную дату последнего онлайн-соединения из-за текущего значения ключа [inputPrivacyKeyStatusTimestamp](https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.md)), получат ошибку `403 USER_PRIVACY_RESTRICTED` при вызове [messages.getOutboxReadDate](https://core.telegram.org/method/messages.getOutboxReadDate.md) для получения точной даты прочтения сообщения, которое они нам отправили.  Флаг [userFull](https://core.telegram.org/constructor/userFull.md).`read_dates_private` будет установлен для пользователей, у которых этот флаг включен.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "new_noncontact_peers_require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "См. [здесь дополнительную информацию об этом флаге »](https://core.telegram.org/api/privacy.md#require-premium-for-new-non-contact-users).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "display_gifts_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включает или отключает наш флаг [userFull](https://core.telegram.org/constructor/userFull.md).`display_gifts_button`: если флаг [userFull](https://core.telegram.org/constructor/userFull.md).`display_gifts_button` установлен как для нас, так и для другого пользователя, кнопка подарка всегда должна отображаться в текстовом поле в частных чатах с другим пользователем: после нажатия должен отображаться пользовательский интерфейс подарка, предлагающий пользователю варианты подарить подписки [Telegram Premium »](https://core.telegram.org/api/premium.md#gifting-telegram-premium) или [Подарки в Telegram »](https://core.telegram.org/api/gifts.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "noncontact_peers_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Если настроено, указывает количество [звездочек](https://core.telegram.org/api/stars.md), которые пользователи должны заплатить нам, чтобы отправить нам сообщение. Дополнительную информацию о платных сообщениях см. здесь »](https://core.telegram.org/api/paid-messages.md).", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?long"}, "disallowed_gifts": {"type": "object", "x-tl-type": "DisallowedGiftsSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["disallowedGiftsSettings"]}}, "description": "Запрещает получение определенных типов подарков.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?DisallowedGiftsSettings"}}, "required": ["_"], "additionalProperties": false}, "help.countryCode": {"title": "help.countryCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.countryCode"]}, "country_code": {"type": "string", "x-tl-type": "string"}, "prefixes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.0?Vector<string>"}, "patterns": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.1?Vector<string>"}}, "required": ["_", "country_code"], "additionalProperties": false}, "help.country": {"title": "help.country", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.country"]}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "iso2": {"type": "string", "x-tl-type": "string"}, "default_name": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "country_codes": {"type": "array", "items": {"type": "object", "x-tl-type": "help.CountryCode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.countryCode"]}}, "description": "Тип TL: help.CountryCode."}, "x-tl-type": "Vector<help.CountryCode>"}}, "required": ["_", "iso2", "default_name", "country_codes"], "additionalProperties": false}, "help.countriesListNotModified": {"title": "help.countriesListNotModified", "description": "Список стран не изменился", "externalDocs": {"url": "https://core.telegram.org/constructor/help.countriesListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.countriesListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.countriesList": {"title": "help.countriesList", "description": "Имя, код ISO, локализованное имя и телефонные коды/шаблоны всех доступных стран.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.countriesList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.countriesList"]}, "countries": {"type": "array", "items": {"type": "object", "x-tl-type": "help.Country", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.country"]}}, "description": "Тип TL: help.Country."}, "x-tl-type": "Vector<help.Country>", "description": "Имя, код ISO, локализованное имя и телефонные коды/шаблоны всех доступных стран.", "x-telegram-field-docs": true}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}}, "required": ["_", "countries", "hash"], "additionalProperties": false}, "messageViews": {"title": "messageViews", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageViews"]}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "replies": {"type": "object", "x-tl-type": "MessageReplies", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplies"]}}, "description": "Тип TL: MessageReplies.", "x-tl-flag": "flags.2?MessageReplies"}}, "required": ["_"], "additionalProperties": false}, "messages.messageViews": {"title": "messages.messageViews", "description": "Просмотр, счетчик пересылки + информация об ответах", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messageViews"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messageViews"]}, "views": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageViews", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageViews"]}}, "description": "Тип TL: MessageViews."}, "x-tl-type": "Vector<MessageViews>", "description": "Просмотр, счетчик пересылки + информация об ответах", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в конструкторе", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в конструкторе", "x-telegram-field-docs": true}}, "required": ["_", "views", "chats", "users"], "additionalProperties": false}, "messages.discussionMessage": {"title": "messages.discussionMessage", "description": "Информация о [цепочке сообщений](https://core.telegram.org/api/threads.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.discussionMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.discussionMessage"]}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Сообщения, с которых начинается поток. Сообщения возвращаются в обратном хронологическом порядке (i.e., в порядке убывания идентификатора сообщения).", "x-telegram-field-docs": true}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения последнего ответа в этой [теме](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор последнего прочитанного входящего сообщения в этой [теме](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор последнего прочитанного исходящего сообщения в этой [теме](https://core.telegram.org/api/threads.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество непрочитанных сообщений", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в конструкторе", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в конструкторе", "x-telegram-field-docs": true}}, "required": ["_", "messages", "unread_count", "chats", "users"], "additionalProperties": false}, "messageReplyHeader": {"title": "messageReplyHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReplyHeader"]}, "reply_to_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "forum_topic": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "quote": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "reply_to_ephemeral": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "reply_to_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "reply_to_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "reply_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "Тип TL: MessageFwdHeader.", "x-tl-flag": "flags.5?MessageFwdHeader"}, "reply_media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia.", "x-tl-flag": "flags.8?MessageMedia"}, "reply_to_top_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "quote_text": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}, "quote_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.7?Vector<MessageEntity>"}, "quote_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "todo_item_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "poll_option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.12?bytes"}, "quote_rich": {"type": "array", "items": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "x-tl-type": "Vector<RichText>", "x-tl-flag": "flags.14?Vector<RichText>"}}, "required": ["_"], "additionalProperties": false}, "messageReplyStoryHeader": {"title": "messageReplyStoryHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReplyStoryHeader"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "story_id"], "additionalProperties": false}, "messageReplies": {"title": "messageReplies", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReplies"]}, "comments": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "replies": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "replies_pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "recent_repliers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.1?Vector<Peer>"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}}, "required": ["_", "replies", "replies_pts"], "additionalProperties": false}, "peerBlocked": {"title": "peerBlocked", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerBlocked"]}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer_id", "date"], "additionalProperties": false}, "stats.messageStats": {"title": "stats.messageStats", "description": "Статистика сообщений", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.messageStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.messageStats"]}, "views_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График просмотра сообщений", "x-telegram-field-docs": true}, "reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График, показывающий количество реакций на истории, сгруппированные по эмоциям.", "x-telegram-field-docs": true}}, "required": ["_", "views_graph", "reactions_by_emotion_graph"], "additionalProperties": false}, "groupCallDiscarded": {"title": "groupCallDiscarded", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallDiscarded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "access_hash", "duration"], "additionalProperties": false}, "groupCall": {"title": "groupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCall"]}, "join_muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_change_join_muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "join_date_asc": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "schedule_start_subscribed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "can_start_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "record_video_active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "listeners_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "conference": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true"}, "messages_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "can_change_messages_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.18?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "stream_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "record_start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.7?int"}, "unmuted_video_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "unmuted_video_limit": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "invite_link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.20?long"}, "default_send_as": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.21?Peer"}}, "required": ["_", "id", "access_hash", "participants_count", "unmuted_video_limit", "version"], "additionalProperties": false}, "inputGroupCall": {"title": "inputGroupCall", "description": "Указывает на конкретный [групповой вызов](https://core.telegram.org/api/group-calls.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCall"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор группового вызова", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа к групповому вызову", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputGroupCallSlug": {"title": "inputGroupCallSlug", "description": "Определите [конференц-связь »](https://core.telegram.org/api/group-calls.md#conference-calls), используя ссылку из ссылки-приглашения.\n\nЭтот конструктор можно использовать только для конференц-связи. Его нельзя использовать для видеочатов/прямых трансляций, живых историй или любого другого типа группового вызова.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "Слайд из [ссылка на конференцию »](https://core.telegram.org/api/links.md#conference-links).", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputGroupCallInviteMessage": {"title": "inputGroupCallInviteMessage", "description": "Идентифицирует [конференц-связь »](https://core.telegram.org/api/group-calls.md#conference-calls), используя его [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md) служебное сообщение приглашения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallInviteMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallInviteMessage"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md).", "x-telegram-field-docs": true}}, "required": ["_", "msg_id"], "additionalProperties": false}, "groupCallParticipant": {"title": "groupCallParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}, "muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_self_unmute": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "just_joined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "versioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "muted_by_you": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "volume_by_admin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "self": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "video_joined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "active_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "source": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "volume": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.7?int"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.11?string"}, "raise_hand_rating": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "video": {"type": "object", "x-tl-type": "GroupCallParticipantVideo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideo"]}}, "description": "Тип TL: GroupCallParticipantVideo.", "x-tl-flag": "flags.6?GroupCallParticipantVideo"}, "presentation": {"type": "object", "x-tl-type": "GroupCallParticipantVideo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideo"]}}, "description": "Тип TL: GroupCallParticipantVideo.", "x-tl-flag": "flags.14?GroupCallParticipantVideo"}, "paid_stars_total": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.16?long"}}, "required": ["_", "peer", "date", "source"], "additionalProperties": false}, "phone.groupCall": {"title": "phone.groupCall", "description": "Содержит информацию о групповом вызове и начальную страницу участника, см. [получение информации о групповом вызове »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call).", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCall"]}, "call": {"type": "object", "x-tl-type": "GroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDiscarded", "groupCall"]}}, "description": "Информация о групповом звонке", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}, "x-tl-type": "Vector<GroupCallParticipant>", "description": "Неполный список участников.", "x-telegram-field-docs": true}, "participants_next_offset": {"type": "string", "x-tl-type": "string", "description": "Следующее смещение, которое будет использоваться при выборе оставшихся участников с помощью [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md)", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в векторе участников", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в векторе участников", "x-telegram-field-docs": true}}, "required": ["_", "call", "participants", "participants_next_offset", "chats", "users"], "additionalProperties": false}, "phone.groupParticipants": {"title": "phone.groupParticipants", "description": "Содержит страницу участников группового звонка, см. [получение информации о групповом звонке »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call).", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupParticipants"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество участников", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}, "x-tl-type": "Vector<GroupCallParticipant>", "description": "Список участников", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Если он не пуст, указанный список участников является неполным, и можно получить больше участников, указав этот параметр как `offset` в [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущая версия списка участников, используемая для применения и обнаружения пробелов в версионных обновлениях [updateGroupCallParticipants](https://core.telegram.org/constructor/updateGroupCallParticipants.md)].", "x-telegram-field-docs": true}}, "required": ["_", "count", "participants", "next_offset", "chats", "users", "version"], "additionalProperties": false}, "inlineQueryPeerTypeSameBotPM": {"title": "inlineQueryPeerTypeSameBotPM", "description": "Тип пира: приватный чат с самим ботом", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeSameBotPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypePM": {"title": "inlineQueryPeerTypePM", "description": "Тип пира: приватный чат", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypePM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypePM"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeChat": {"title": "inlineQueryPeerTypeChat", "description": "Тип узла: [чат](https://core.telegram.org/api/channel.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeChat"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeMegagroup": {"title": "inlineQueryPeerTypeMegagroup", "description": "Тип узла: [супергруппа](https://core.telegram.org/api/channel.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeMegagroup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeMegagroup"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeBroadcast": {"title": "inlineQueryPeerTypeBroadcast", "description": "Тип узла: [канал](https://core.telegram.org/api/channel.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeBroadcast"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeBroadcast"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeBotPM": {"title": "inlineQueryPeerTypeBotPM", "description": "Тип пира: приватный чат с ботом.", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeBotPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeBotPM"]}}, "required": ["_"], "additionalProperties": false}, "messages.historyImport": {"title": "messages.historyImport", "description": "Идентификатор конкретного [сеанса импорта чата, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/import.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.historyImport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.historyImport"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Идентификатор импорта истории](https://core.telegram.org/api/import.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "messages.historyImportParsed": {"title": "messages.historyImportParsed", "description": "Содержит информацию о файле экспорта чата [созданном зарубежным приложением чата, нажмите здесь для получения дополнительной информации](https://core.telegram.org/api/import.md).\nЕсли ни один из флагов `pm` или `group` не установлен, указанный экспорт чата был создан из чата неизвестного типа.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.historyImportParsed"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.historyImportParsed"]}, "pm": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Файл экспорта чата был создан на основе приватного чата.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "group": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Файл экспорта чата был создан на основе группового чата.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "title": {"type": "string", "x-tl-type": "string", "description": "Название чата.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}}, "required": ["_"], "additionalProperties": false}, "messages.affectedFoundMessages": {"title": "messages.affectedFoundMessages", "description": "Сообщения найдены и затронуты изменениями", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.affectedFoundMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.affectedFoundMessages"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Количество событий после генерации](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Количество сгенерированных событий](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если больше нуля, запрос необходимо повторить, чтобы удалить больше сообщений.", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы затронутых сообщений", "x-telegram-field-docs": true}}, "required": ["_", "pts", "pts_count", "offset", "messages"], "additionalProperties": false}, "chatInviteImporter": {"title": "chatInviteImporter", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteImporter"]}, "requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "via_chatlist": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "approved_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "messages.exportedChatInvites": {"title": "messages.exportedChatInvites", "description": "Информация о приглашениях в чат, экспортированных определенным администратором.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.exportedChatInvites"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.exportedChatInvites"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество приглашений, экспортированных администратором", "x-telegram-field-docs": true}, "invites": {"type": "array", "items": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Тип TL: ExportedChatInvite."}, "x-tl-type": "Vector<ExportedChatInvite>", "description": "Экспортированные приглашения", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация об администраторе", "x-telegram-field-docs": true}}, "required": ["_", "count", "invites", "users"], "additionalProperties": false}, "messages.exportedChatInvite": {"title": "messages.exportedChatInvite", "description": "Информация о приглашении в чат", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.exportedChatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.exportedChatInvite"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Информация о приглашении в чат", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "invite", "users"], "additionalProperties": false}, "messages.exportedChatInviteReplaced": {"title": "messages.exportedChatInviteReplaced", "description": "Указанное приглашение в чат было заменено другим.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.exportedChatInviteReplaced"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.exportedChatInviteReplaced"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Замененное приглашение в чат", "x-telegram-field-docs": true}, "new_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "Приглашение, которое заменяет предыдущее приглашение.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "invite", "new_invite", "users"], "additionalProperties": false}, "messages.chatInviteImporters": {"title": "messages.chatInviteImporters", "description": "Информация о пользователях, которые присоединились к чату по конкретному приглашению в чат.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatInviteImporters"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatInviteImporters"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество присоединившихся пользователей", "x-telegram-field-docs": true}, "importers": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatInviteImporter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteImporter"]}}, "description": "Тип TL: ChatInviteImporter."}, "x-tl-type": "Vector<ChatInviteImporter>", "description": "Пользователи, присоединившиеся", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, присоединившиеся", "x-telegram-field-docs": true}}, "required": ["_", "count", "importers", "users"], "additionalProperties": false}, "chatAdminWithInvites": {"title": "chatAdminWithInvites", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatAdminWithInvites"]}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invites_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "revoked_invites_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "admin_id", "invites_count", "revoked_invites_count"], "additionalProperties": false}, "messages.chatAdminsWithInvites": {"title": "messages.chatAdminsWithInvites", "description": "Информация о приглашениях в чат, сгенерированных администраторами.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatAdminsWithInvites"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatAdminsWithInvites"]}, "admins": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatAdminWithInvites", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminWithInvites"]}}, "description": "Тип TL: ChatAdminWithInvites."}, "x-tl-type": "Vector<ChatAdminWithInvites>", "description": "Информация о приглашениях в чат, сгенерированных администраторами.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "admins", "users"], "additionalProperties": false}, "messages.checkedHistoryImportPeer": {"title": "messages.checkedHistoryImportPeer", "description": "Содержит текст подтверждения, который будет показан пользователю при [импорте истории чата, нажмите здесь для получения дополнительной информации »](https://core.telegram.org/api/import.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.checkedHistoryImportPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.checkedHistoryImportPeer"]}, "confirm_text": {"type": "string", "x-tl-type": "string", "description": "Текст подтверждения, который будет показан пользователю при [импорте истории чата»](https://core.telegram.org/api/import.md).", "x-telegram-field-docs": true}}, "required": ["_", "confirm_text"], "additionalProperties": false}, "phone.joinAsPeers": {"title": "phone.joinAsPeers", "description": "Содержит одноранговые узлы, которые можно использовать для присоединения к видеочату/прямой трансляции, см. [присоединение от имени принадлежащих каналов»](https://core.telegram.org/api/group-calls.md#joining-a-group-call-on-behalf-of-owned-channels).", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.joinAsPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.joinAsPeers"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Сверстники", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в векторе сверстников", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в векторе сверстников", "x-telegram-field-docs": true}}, "required": ["_", "peers", "chats", "users"], "additionalProperties": false}, "phone.exportedGroupCallInvite": {"title": "phone.exportedGroupCallInvite", "description": "Приглашение на групповой звонок или прямую трансляцию", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.exportedGroupCallInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.exportedGroupCallInvite"]}, "link": {"type": "string", "x-tl-type": "string", "description": "Ссылка для приглашения", "x-telegram-field-docs": true}}, "required": ["_", "link"], "additionalProperties": false}, "groupCallParticipantVideoSourceGroup": {"title": "groupCallParticipantVideoSourceGroup", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideoSourceGroup"]}, "semantics": {"type": "string", "x-tl-type": "string"}, "sources": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "semantics", "sources"], "additionalProperties": false}, "groupCallParticipantVideo": {"title": "groupCallParticipantVideo", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideo"]}, "paused": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "endpoint": {"type": "string", "x-tl-type": "string"}, "source_groups": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipantVideoSourceGroup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideoSourceGroup"]}}, "description": "Тип TL: GroupCallParticipantVideoSourceGroup."}, "x-tl-type": "Vector<GroupCallParticipantVideoSourceGroup>"}, "audio_source": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "endpoint", "source_groups"], "additionalProperties": false}, "stickers.suggestedShortName": {"title": "stickers.suggestedShortName", "description": "Рекомендуемое короткое название для стикерпака", "externalDocs": {"url": "https://core.telegram.org/constructor/stickers.suggestedShortName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickers.suggestedShortName"]}, "short_name": {"type": "string", "x-tl-type": "string", "description": "Предлагаемое короткое имя", "x-telegram-field-docs": true}}, "required": ["_", "short_name"], "additionalProperties": false}, "botCommandScopeDefault": {"title": "botCommandScopeDefault", "description": "Команды будут действительны во всех диалогах.", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeDefault"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeUsers": {"title": "botCommandScopeUsers", "description": "Указанные команды бота будут действительны только во всех приватных чатах с пользователями.", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeUsers"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeChats": {"title": "botCommandScopeChats", "description": "Указанные команды бота будут действительны во всех [группах и супергруппах](https://core.telegram.org/api/channel.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeChats"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeChatAdmins": {"title": "botCommandScopeChatAdmins", "description": "Указанные команды бота будут действительны только для администраторов чата, во всех [группах и супергруппах](https://core.telegram.org/api/channel.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeChatAdmins"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeChatAdmins"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopePeer": {"title": "botCommandScopePeer", "description": "Указанные команды бота будут действительны только в конкретном диалоге.", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopePeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopePeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Диалог", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "botCommandScopePeerAdmins": {"title": "botCommandScopePeerAdmins", "description": "Указанные команды бота будут действительны для всех администраторов указанной [группы или супергруппы](https://core.telegram.org/api/channel.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopePeerAdmins"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopePeerAdmins"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Чат", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "botCommandScopePeerUser": {"title": "botCommandScopePeerUser", "description": "Указанные команды бота будут действительны только для конкретного пользователя в указанной [группе или супергруппе](https://core.telegram.org/api/channel.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopePeerUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopePeerUser"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Чат", "x-telegram-field-docs": true}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Пользователь", "x-telegram-field-docs": true}}, "required": ["_", "peer", "user_id"], "additionalProperties": false}, "account.resetPasswordFailedWait": {"title": "account.resetPasswordFailedWait", "description": "Недавно вы запросили сброс пароля, который был отменен. Подождите до указанной даты, прежде чем запрашивать повторный сброс.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.resetPasswordFailedWait"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.resetPasswordFailedWait"]}, "retry_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Подождите до этой даты, прежде чем запрашивать еще один сброс.", "x-telegram-field-docs": true}}, "required": ["_", "retry_date"], "additionalProperties": false}, "account.resetPasswordRequestedWait": {"title": "account.resetPasswordRequestedWait", "description": "Вы успешно запросили сброс пароля. Подождите указанную дату, прежде чем завершить сброс.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.resetPasswordRequestedWait"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.resetPasswordRequestedWait"]}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дождитесь этой даты, прежде чем завершить сброс.", "x-telegram-field-docs": true}}, "required": ["_", "until_date"], "additionalProperties": false}, "account.resetPasswordOk": {"title": "account.resetPasswordOk", "description": "Пароль 2FA был успешно сброшен.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.resetPasswordOk"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.resetPasswordOk"]}}, "required": ["_"], "additionalProperties": false}, "chatTheme": {"title": "chatTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatTheme"]}, "emoticon": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "emoticon"], "additionalProperties": false}, "chatThemeUniqueGift": {"title": "chatThemeUniqueGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatThemeUniqueGift"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "theme_settings": {"type": "array", "items": {"type": "object", "x-tl-type": "ThemeSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["themeSettings"]}}, "description": "Тип TL: ThemeSettings."}, "x-tl-type": "Vector<ThemeSettings>"}}, "required": ["_", "gift", "theme_settings"], "additionalProperties": false}, "account.chatThemesNotModified": {"title": "account.chatThemesNotModified", "description": "Доступные темы чата не были изменены.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.chatThemesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.chatThemesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.chatThemes": {"title": "account.chatThemes", "description": "Доступны [темы чата](https://core.telegram.org/api/themes.md#chat-themes)", "externalDocs": {"url": "https://core.telegram.org/constructor/account.chatThemes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.chatThemes"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш для передачи методу, который вернул этот конструктор, чтобы избежать повторного получения результата, если он не изменился.", "x-tl-type": "long", "x-telegram-field-docs": true}, "themes": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatTheme", "chatThemeUniqueGift"]}}, "description": "Тип TL: ChatTheme."}, "x-tl-type": "Vector<ChatTheme>", "description": "Темы.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в поле `themes`.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в поле `themes`.", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Следующее смещение для нумерации страниц.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "hash", "themes", "chats", "users"], "additionalProperties": false}, "sponsoredMessage": {"title": "sponsoredMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["sponsoredMessage"]}, "recommended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "can_report": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "url": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.6?Photo"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia.", "x-tl-flag": "flags.14?MessageMedia"}, "color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags.13?PeerColor"}, "button_text": {"type": "string", "x-tl-type": "string"}, "sponsor_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.7?string"}, "additional_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.8?string"}, "min_display_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "max_display_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}}, "required": ["_", "random_id", "url", "title", "message", "button_text"], "additionalProperties": false}, "messages.sponsoredMessages": {"title": "messages.sponsoredMessages", "description": "Набор рекламных сообщений, связанных с каналом.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sponsoredMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sponsoredMessages"]}, "posts_between": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если установлено, указывает минимальное количество сообщений между отображаемыми рекламными сообщениями; в противном случае после всех обычных сообщений должно отображаться только одно рекламное сообщение.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "start_delay": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для [спонсорских сообщений для показа в видеороликах канала»](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements) — количество секунд ожидания перед показом первой рекламы.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "between_delay": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для [спонсируемых сообщений для показа в видеороликах канала»](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements) — количество секунд ожидания после скрытия предыдущего объявления перед показом следующего объявления.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "first_after_posts": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "SponsoredMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sponsoredMessage"]}}, "description": "Тип TL: SponsoredMessage."}, "x-tl-type": "Vector<SponsoredMessage>", "description": "Рекламные сообщения", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в рекламных сообщениях", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в рекламных сообщениях", "x-telegram-field-docs": true}}, "required": ["_", "messages", "chats", "users"], "additionalProperties": false}, "messages.sponsoredMessagesEmpty": {"title": "messages.sponsoredMessagesEmpty", "description": "Спонсорские сообщения недоступны.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sponsoredMessagesEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sponsoredMessagesEmpty"]}}, "required": ["_"], "additionalProperties": false}, "searchResultsCalendarPeriod": {"title": "searchResultsCalendarPeriod", "type": "object", "properties": {"_": {"type": "string", "enum": ["searchResultsCalendarPeriod"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "min_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "date", "min_msg_id", "max_msg_id", "count"], "additionalProperties": false}, "messages.searchResultsCalendar": {"title": "messages.searchResultsCalendar", "description": "Информация о найденных сообщениях, отправленных в определенный день", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.searchResultsCalendar"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.searchResultsCalendar"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, это означает, что результаты могут быть неточными.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов, соответствующих запросу", "x-telegram-field-docs": true}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Начальная временная метка прикрепленных сообщений", "x-telegram-field-docs": true}, "min_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Конечная временная метка прикрепленных сообщений", "x-telegram-field-docs": true}, "offset_id_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Указывает абсолютную позицию `messages[0]` в общем наборе результатов с количеством `count`.  Это полезно, например, если нам нужно отобразить счетчик `progress/total` (например, `photo 134 of 200`, для всех медиафайлов в чате мы могли бы просто использовать `photo ${offset_id_offset} of ${count}`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "periods": {"type": "array", "items": {"type": "object", "x-tl-type": "SearchResultsCalendarPeriod", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchResultsCalendarPeriod"]}}, "description": "Тип TL: SearchResultsCalendarPeriod."}, "x-tl-type": "Vector<SearchResultsCalendarPeriod>", "description": "Используется для разделения `messages` по дням: возвращается несколько конструкторов [SearchResultsCalendarPeriod](https://core.telegram.org/type/SearchResultsCalendarPeriod.md), каждый из которых содержит информацию о первом, последнем и общем количестве сообщений, соответствующих фильтру, которые были отправлены в определенный день.   Эту информацию можно легко использовать для разделения возвращаемых `messages` по дням.", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Сообщения", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "count", "min_date", "min_msg_id", "periods", "messages", "chats", "users"], "additionalProperties": false}, "searchResultPosition": {"title": "searchResultPosition", "type": "object", "properties": {"_": {"type": "string", "enum": ["searchResultPosition"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "msg_id", "date", "offset"], "additionalProperties": false}, "messages.searchResultsPositions": {"title": "messages.searchResultsPositions", "description": "Информация о редких позициях сообщений", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.searchResultsPositions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.searchResultsPositions"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество найденных сообщений", "x-telegram-field-docs": true}, "positions": {"type": "array", "items": {"type": "object", "x-tl-type": "SearchResultsPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchResultPosition"]}}, "description": "Тип TL: SearchResultsPosition."}, "x-tl-type": "Vector<SearchResultsPosition>", "description": "Список позиций сообщений", "x-telegram-field-docs": true}}, "required": ["_", "count", "positions"], "additionalProperties": false}, "channels.sendAsPeers": {"title": "channels.sendAsPeers", "description": "Список пиров, которые можно использовать для отправки сообщений в определенной группе.", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sendAsPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sendAsPeers"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "SendAsPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendAsPeer"]}}, "description": "Тип TL: SendAsPeer."}, "x-tl-type": "Vector<SendAsPeer>", "description": "Пиры, которые можно использовать для отправки сообщений группе.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "peers", "chats", "users"], "additionalProperties": false}, "users.userFull": {"title": "users.userFull", "description": "Полная информация о пользователе", "externalDocs": {"url": "https://core.telegram.org/constructor/users.userFull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.userFull"]}, "full_user": {"type": "object", "x-tl-type": "UserFull", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userFull"]}}, "description": "Полная информация о пользователе", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "full_user", "chats", "users"], "additionalProperties": false}, "messages.peerSettings": {"title": "messages.peerSettings", "description": "Настройки пиров", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.peerSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.peerSettings"]}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "Настройки пиров", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "settings", "chats", "users"], "additionalProperties": false}, "auth.loggedOut": {"title": "auth.loggedOut", "description": "[Токен будущей авторизации »](https://core.telegram.org/api/auth.md#future-auth-tokens), который будет использоваться при последующих авторизациях", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loggedOut"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loggedOut"]}, "future_auth_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Токен будущей авторизации »](https://core.telegram.org/api/auth.md#future-auth-tokens), который будет использоваться при последующих авторизациях", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?bytes"}}, "required": ["_"], "additionalProperties": false}, "reactionCount": {"title": "reactionCount", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionCount"]}, "chosen_order": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "reaction", "count"], "additionalProperties": false}, "messageReactions": {"title": "messageReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReactions"]}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_see_list": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "reactions_as_tags": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "ReactionCount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionCount"]}}, "description": "Тип TL: ReactionCount."}, "x-tl-type": "Vector<ReactionCount>"}, "recent_reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagePeerReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messagePeerReaction"]}}, "description": "Тип TL: MessagePeerReaction."}, "x-tl-type": "Vector<MessagePeerReaction>", "x-tl-flag": "flags.1?Vector<MessagePeerReaction>"}, "top_reactors": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageReactor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactor"]}}, "description": "Тип TL: MessageReactor."}, "x-tl-type": "Vector<MessageReactor>", "x-tl-flag": "flags.4?Vector<MessageReactor>"}}, "required": ["_", "results"], "additionalProperties": false}, "messages.messageReactionsList": {"title": "messages.messageReactionsList", "description": "Список пиров, которые отреагировали на конкретное сообщение", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messageReactionsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messageReactionsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество реакций, соответствующих запросу", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagePeerReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messagePeerReaction"]}}, "description": "Тип TL: MessagePeerReaction."}, "x-tl-type": "Vector<MessagePeerReaction>", "description": "Список пиров, которые отреагировали на конкретное сообщение", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Если установлено, указывает следующее смещение, которое будет использоваться для загрузки дополнительных результатов путем вызова [messages.getMessageReactionsList](https://core.telegram.org/method/messages.getMessageReactionsList.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "reactions", "chats", "users"], "additionalProperties": false}, "availableReaction": {"title": "availableReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["availableReaction"]}, "inactive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "reaction": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "static_icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "appear_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "select_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "activate_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "effect_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "around_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.1?Document"}, "center_icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.1?Document"}}, "required": ["_", "reaction", "title", "static_icon", "appear_animation", "select_animation", "activate_animation", "effect_animation"], "additionalProperties": false}, "messages.availableReactionsNotModified": {"title": "messages.availableReactionsNotModified", "description": "Новых реакций нет.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableReactionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableReactionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.availableReactions": {"title": "messages.availableReactions", "description": "Анимации и метаданные, связанные с [реакциями на сообщения »](https://core.telegram.org/api/reactions.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableReactions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableReactions"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "AvailableReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["availableReaction"]}}, "description": "Тип TL: AvailableReaction."}, "x-tl-type": "Vector<AvailableReaction>", "description": "Анимации и метаданные, связанные с [реакциями на сообщения »](https://core.telegram.org/api/reactions.md)", "x-telegram-field-docs": true}}, "required": ["_", "hash", "reactions"], "additionalProperties": false}, "messagePeerReaction": {"title": "messagePeerReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerReaction"]}, "big": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}}, "required": ["_", "peer_id", "date", "reaction"], "additionalProperties": false}, "groupCallStreamChannel": {"title": "groupCallStreamChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallStreamChannel"]}, "channel": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "scale": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "last_timestamp_ms": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "channel", "scale", "last_timestamp_ms"], "additionalProperties": false}, "phone.groupCallStreamChannels": {"title": "phone.groupCallStreamChannels", "description": "Содержит доступные каналы группового вызова в режиме RTMP, см. [воспроизведение прямой трансляции RTMP »](https://core.telegram.org/api/group-calls.md#rtmp-mode).", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCallStreamChannels"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCallStreamChannels"]}, "channels": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallStreamChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallStreamChannel"]}}, "description": "Тип TL: GroupCallStreamChannel."}, "x-tl-type": "Vector<GroupCallStreamChannel>", "description": "Доступны RTMP потоковые каналы; может быть пустым, пока внешний издатель не отправляет медиафайлы", "x-telegram-field-docs": true}}, "required": ["_", "channels"], "additionalProperties": false}, "phone.groupCallStreamRtmpUrl": {"title": "phone.groupCallStreamRtmpUrl", "description": "Содержит RTMP публикацию URL и секретный ключ потока, см. [создание и публикация прямой трансляции RTMP »](https://core.telegram.org/api/group-calls.md#creating-and-publishing-an-rtmp-livestream).", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCallStreamRtmpUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCallStreamRtmpUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "RTMP URL", "x-telegram-field-docs": true}, "key": {"type": "string", "x-tl-type": "string", "description": "Секретный ключ потока", "x-telegram-field-docs": true}}, "required": ["_", "url", "key"], "additionalProperties": false}, "attachMenuBotIconColor": {"title": "attachMenuBotIconColor", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotIconColor"]}, "name": {"type": "string", "x-tl-type": "string"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "name", "color"], "additionalProperties": false}, "attachMenuBotIcon": {"title": "attachMenuBotIcon", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotIcon"]}, "name": {"type": "string", "x-tl-type": "string"}, "icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "colors": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuBotIconColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBotIconColor"]}}, "description": "Тип TL: AttachMenuBotIconColor."}, "x-tl-type": "Vector<AttachMenuBotIconColor>", "x-tl-flag": "flags.0?Vector<AttachMenuBotIconColor>"}}, "required": ["_", "name", "icon"], "additionalProperties": false}, "attachMenuBot": {"title": "attachMenuBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBot"]}, "inactive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "has_settings": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "show_in_attach_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "show_in_side_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "side_menu_disclaimer_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "short_name": {"type": "string", "x-tl-type": "string"}, "peer_types": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeSameBotPM", "attachMenuPeerTypeBotPM", "attachMenuPeerTypePM", "attachMenuPeerTypeChat", "attachMenuPeerTypeBroadcast"]}}, "description": "Тип TL: AttachMenuPeerType."}, "x-tl-type": "Vector<AttachMenuPeerType>", "x-tl-flag": "flags.3?Vector<AttachMenuPeerType>"}, "icons": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuBotIcon", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBotIcon"]}}, "description": "Тип TL: AttachMenuBotIcon."}, "x-tl-type": "Vector<AttachMenuBotIcon>"}}, "required": ["_", "bot_id", "short_name", "icons"], "additionalProperties": false}, "attachMenuBotsNotModified": {"title": "attachMenuBotsNotModified", "description": "Список мини-приложений ботов не изменился", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBotsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuBots": {"title": "attachMenuBots", "description": "Представляет собой список [мини-приложений ботов, которые можно запустить из меню вложений »](https://core.telegram.org/api/bots/attach.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBots"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "bots": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuBot", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBot"]}}, "description": "Тип TL: AttachMenuBot."}, "x-tl-type": "Vector<AttachMenuBot>", "description": "Список [мини-приложений ботов, которые можно запустить из меню вложений »](https://core.telegram.org/api/bots/attach.md)", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о связанных пользователях/ботах", "x-telegram-field-docs": true}}, "required": ["_", "hash", "bots", "users"], "additionalProperties": false}, "attachMenuBotsBot": {"title": "attachMenuBotsBot", "description": "Представляет собой [мини-приложение-бот, которое можно запустить из меню вложений »](https://core.telegram.org/api/bots/attach.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBotsBot"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotsBot"]}, "bot": {"type": "object", "x-tl-type": "AttachMenuBot", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBot"]}}, "description": "Представляет собой [мини-приложение-бот, которое можно запустить из меню вложений »](https://core.telegram.org/api/bots/attach.md)\\", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о связанных пользователях и ботах", "x-telegram-field-docs": true}}, "required": ["_", "bot", "users"], "additionalProperties": false}, "webViewResultUrl": {"title": "webViewResultUrl", "description": "Содержит веб-просмотр URL с добавленными соответствующими параметрами темы и информации о пользователе.", "externalDocs": {"url": "https://core.telegram.org/constructor/webViewResultUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["webViewResultUrl"]}, "fullsize": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, приложение необходимо открывать в полноразмерном режиме, а не в компактном.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, приложение должно открываться в полноэкранном режиме.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "same_origin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор сеанса веб-просмотра (возвращается только [мини-приложениями встроенных кнопок](https://core.telegram.org/api/bots/webapps.md#inline-button-mini-apps), [мини-приложениями кнопок меню](https://core.telegram.org/api/bots/webapps.md#menu-button-mini-apps), [мини-приложениями меню вложений](https://core.telegram.org/api/bots/webapps.md#attachment-menu-mini-apps)).", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "url": {"type": "string", "x-tl-type": "string", "description": "Веб-просмотр URL, чтобы открыть", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "webViewMessageSent": {"title": "webViewMessageSent", "description": "Информация об отправленном встроенном сообщении веб-просмотра", "externalDocs": {"url": "https://core.telegram.org/constructor/webViewMessageSent"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["webViewMessageSent"]}, "msg_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "Идентификатор сообщения", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputBotInlineMessageID"}}, "required": ["_"], "additionalProperties": false}, "botMenuButtonDefault": {"title": "botMenuButtonDefault", "description": "Заполнитель [кнопка меню бота](https://core.telegram.org/api/bots/menu.md) никогда не возвращался пользователям: дополнительную информацию см. в документации](https://core.telegram.org/api/bots/menu.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButtonDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButtonDefault"]}}, "required": ["_"], "additionalProperties": false}, "botMenuButtonCommands": {"title": "botMenuButtonCommands", "description": "[Кнопка меню бота](https://core.telegram.org/api/bots/menu.md), при нажатии которой открывается список команд бота.", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButtonCommands"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButtonCommands"]}}, "required": ["_"], "additionalProperties": false}, "botMenuButton": {"title": "botMenuButton", "description": "[Кнопка меню бота](https://core.telegram.org/api/bots/menu.md), при нажатии которой открывается [веб-приложение](https://core.telegram.org/api/bots/webapps.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButton"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButton"]}, "text": {"type": "string", "x-tl-type": "string", "description": "Название будет отображаться на кнопке меню вместо «Меню».", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "URL [веб-приложения](https://core.telegram.org/api/bots/webapps.md), которое открывается, когда пользователь нажимает кнопку", "x-telegram-field-docs": true}}, "required": ["_", "text", "url"], "additionalProperties": false}, "account.savedRingtonesNotModified": {"title": "account.savedRingtonesNotModified", "description": "Список звуков уведомлений не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtonesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtonesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.savedRingtones": {"title": "account.savedRingtones", "description": "Список сохраненных звуков уведомлений", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtones"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtones"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "ringtones": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Сохраненные звуки уведомлений", "x-telegram-field-docs": true}}, "required": ["_", "hash", "ringtones"], "additionalProperties": false}, "notificationSoundDefault": {"title": "notificationSoundDefault", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault"]}}, "required": ["_"], "additionalProperties": false}, "notificationSoundNone": {"title": "notificationSoundNone", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundNone"]}}, "required": ["_"], "additionalProperties": false}, "notificationSoundLocal": {"title": "notificationSoundLocal", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundLocal"]}, "title": {"type": "string", "x-tl-type": "string"}, "data": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title", "data"], "additionalProperties": false}, "notificationSoundRingtone": {"title": "notificationSoundRingtone", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundRingtone"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "account.savedRingtone": {"title": "account.savedRingtone", "description": "Звук уведомления уже был в формате MP3 и был сохранен без каких-либо изменений.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtone"]}}, "required": ["_"], "additionalProperties": false}, "account.savedRingtoneConverted": {"title": "account.savedRingtoneConverted", "description": "Звук уведомления не был в формате MP3 и был успешно преобразован и сохранен. Теперь используйте возвращенный [Документ](https://core.telegram.org/type/Document.md), чтобы ссылаться на звук уведомления.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtoneConverted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtoneConverted"]}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Преобразованный звук уведомления", "x-telegram-field-docs": true}}, "required": ["_", "document"], "additionalProperties": false}, "attachMenuPeerTypeSameBotPM": {"title": "attachMenuPeerTypeSameBotPM", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeSameBotPM"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeBotPM": {"title": "attachMenuPeerTypeBotPM", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeBotPM"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypePM": {"title": "attachMenuPeerTypePM", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypePM"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeChat": {"title": "attachMenuPeerTypeChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeChat"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeBroadcast": {"title": "attachMenuPeerTypeBroadcast", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeBroadcast"]}}, "required": ["_"], "additionalProperties": false}, "inputInvoiceMessage": {"title": "inputInvoiceMessage", "description": "Счет-фактура, содержащийся в сообщении [messageMediaInvoice](https://core.telegram.org/constructor/messageMediaInvoice.md) или [платный носитель »](https://core.telegram.org/api/paid-media.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Чат, куда был отправлен счет/оплаченный носитель", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id"], "additionalProperties": false}, "inputInvoiceSlug": {"title": "inputInvoiceSlug", "description": "Ссылка на счет-фактуру, взятая из [глубинной ссылки счета-фактуры](https://core.telegram.org/api/links.md#invoice-links) или из [`premium_invoice_slug` параметра конфигурации приложения »](https://core.telegram.org/api/config.md#premium-invoice-slug)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "Ссылка на счет-фактуру", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputInvoicePremiumGiftCode": {"title": "inputInvoicePremiumGiftCode", "description": "Используется, если пользователь желает создать канал/супергруппу [giveaway](https://core.telegram.org/api/giveaways.md) или отправить несколько [подарочных кодов](https://core.telegram.org/api/giveaways.md) членам канала/супергруппы в обмен на [boosts](https://core.telegram.org/api/boost.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoicePremiumGiftCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoicePremiumGiftCode"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "Должно быть заполнено [inputStorePaymentPremiumGiveaway](https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway.md) для [giveaways](https://core.telegram.org/api/giveaways.md) и [inputStorePaymentPremiumGiftCode](https://core.telegram.org/constructor/inputStorePaymentPremiumGiftCode.md) для [gifts](https://core.telegram.org/api/giveaways.md).", "x-telegram-field-docs": true}, "option": {"type": "object", "x-tl-type": "PremiumGiftCodeOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["premiumGiftCodeOption"]}}, "description": "Должно быть заполнено одним из вариантов раздачи, возвращаемых [payments.getPremiumGiftCodeOptions](https://core.telegram.org/method/payments.getPremiumGiftCodeOptions.md), дополнительную информацию см. в документации [giveaways »](https://core.telegram.org/api/giveaways.md)].", "x-telegram-field-docs": true}}, "required": ["_", "purpose", "option"], "additionalProperties": false}, "inputInvoiceStars": {"title": "inputInvoiceStars", "description": "Используется для пополнения баланса [Telegram Stars](https://core.telegram.org/api/stars.md) текущего аккаунта или чужого аккаунта, а также для начала розыгрыша [Telegram Star »](https://core.telegram.org/api/giveaways.md#star-giveaways).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStars"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "[inputStorePaymentStarsGiveaway](https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway.md), [inputStorePaymentStarsTopup](https://core.telegram.org/constructor/inputStorePaymentStarsTopup.md) или [inputStorePaymentStarsGift](https://core.telegram.org/constructor/inputStorePaymentStarsGift.md).", "x-telegram-field-docs": true}}, "required": ["_", "purpose"], "additionalProperties": false}, "inputInvoiceChatInviteSubscription": {"title": "inputInvoiceChatInviteSubscription", "description": "Используется для оплаты [подписки Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceChatInviteSubscription"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceChatInviteSubscription"]}, "hash": {"type": "string", "x-tl-type": "string", "description": "[Пригласительная ссылка подписки Telegram Star »](https://core.telegram.org/api/stars.md#star-subscriptions)", "x-telegram-field-docs": true}}, "required": ["_", "hash"], "additionalProperties": false}, "inputInvoiceStarGift": {"title": "inputInvoiceStarGift", "description": "Используется для покупки [Подарок Telegram Star, дополнительную информацию см. здесь »](https://core.telegram.org/api/gifts.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGift"]}, "hide_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, ваше имя будет скрыто, если целевой пользователь решит отобразить подарок в своем профиле (он все равно увидит, что вы отправили подарок).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "include_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Также заплатите за возможное повышение класса подарка до [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Получатель подарка.", "x-telegram-field-docs": true}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор подарка от [starGift](https://core.telegram.org/constructor/starGift.md).`id`", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Дополнительное сообщение, прикрепленное к подарку.  Максимальная длина этого поля указана в [stargifts_message_length_max значение конфигурации клиента »](https://core.telegram.org/api/config.md#stargifts-message-length-max).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "peer", "gift_id"], "additionalProperties": false}, "inputInvoiceStarGiftUpgrade": {"title": "inputInvoiceStarGiftUpgrade", "description": "Используется для [платы за улучшение подарка до коллекционного подарка](https://core.telegram.org/api/gifts.md#upgrade-a-gift-to-a-collectible-gift). Дополнительную информацию о полном процессе см. в документации [коллекционные подарки »](https://core.telegram.org/api/gifts.md#collectible-gifts)).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftUpgrade"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftUpgrade"]}, "keep_original_details": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Установите этот флаг, чтобы сохранить исходный текст подарка, отправителя и получателя в обновленном подарке в качестве атрибута [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "Идентификатор полученного подарка для улучшения.", "x-telegram-field-docs": true}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputInvoiceStarGiftTransfer": {"title": "inputInvoiceStarGiftTransfer", "description": "Используется для [платы за передачу коллекционного подарка другому участнику](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts), дополнительную информацию см. в документации [подарки »](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts)].", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftTransfer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftTransfer"]}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "Идентификатор полученного подарка", "x-telegram-field-docs": true}, "to_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Узел назначения", "x-telegram-field-docs": true}}, "required": ["_", "stargift", "to_id"], "additionalProperties": false}, "inputInvoicePremiumGiftStars": {"title": "inputInvoicePremiumGiftStars", "description": "Используется для подарка подписки [Telegram Premium](https://core.telegram.org/api/premium.md) другому пользователю при оплате с помощью [Telegram Stars](https://core.telegram.org/api/stars.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoicePremiumGiftStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoicePremiumGiftStars"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Кто получит подарочную подписку.", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность подписки в месяцах должна быть одним из вариантов с `currency == \"XTR\"`, возвращаемым [payments.getPremiumGiftCodeOptions](https://core.telegram.org/method/payments.getPremiumGiftCodeOptions.md).", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Сообщение, прикрепленное к подарку.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "user_id", "months"], "additionalProperties": false}, "inputInvoiceBusinessBotTransferStars": {"title": "inputInvoiceBusinessBotTransferStars", "description": "Переведите звезды с баланса учетной записи пользователя [подключенного к бизнес-боту](https://core.telegram.org/api/bots/connected-business-bots.md), на баланс [бизнес-бота](https://core.telegram.org/api/bots/connected-business-bots.md), подробнее о полном потоке см. [здесь »](https://core.telegram.org/api/stars.md#transferring-stars-from-a-business-account-to-the-business-bot).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceBusinessBotTransferStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceBusinessBotTransferStars"]}, "bot": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Всегда [inputUserSelf](https://core.telegram.org/constructor/inputUserSelf.md).", "x-telegram-field-docs": true}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество звезд для передачи.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "bot", "stars"], "additionalProperties": false}, "inputInvoiceStarGiftResale": {"title": "inputInvoiceStarGiftResale", "description": "Используется для покупки [коллекционного подарка](https://core.telegram.org/api/gifts.md#collectible-gifts), который в настоящее время продается, см. [здесь](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) дополнительную информацию о полном потоке.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftResale"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftResale"]}, "ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Купите подарок, используя TON.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "show_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "slug": {"type": "string", "x-tl-type": "string", "description": "Слизень подарка купить.", "x-telegram-field-docs": true}, "to_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Получатель подарка.", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "slug", "to_id"], "additionalProperties": false}, "inputInvoiceStarGiftPrepaidUpgrade": {"title": "inputInvoiceStarGiftPrepaidUpgrade", "description": "[Отдельно вносите предоплату за улучшение подарка»](https://core.telegram.org/api/gifts.md#prepaying-for-someone-elses-upgrade).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftPrepaidUpgrade"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftPrepaidUpgrade"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Сверстник, которому принадлежит подарок.", "x-telegram-field-docs": true}, "hash": {"type": "string", "x-tl-type": "string", "description": "Хэш обновления из [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md).`prepaid_upgrade_hash` или [savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`prepaid_upgrade_hash`.", "x-telegram-field-docs": true}}, "required": ["_", "peer", "hash"], "additionalProperties": false}, "inputInvoicePremiumAuthCode": {"title": "inputInvoicePremiumAuthCode", "description": "Используется для оплаты кодов входа. В случае высокой стоимости SMS кодов проверки для страны/провайдера пользователя см. [здесь »](https://core.telegram.org/api/auth.md#paid-auth) дополнительную информацию.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoicePremiumAuthCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoicePremiumAuthCode"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "Должен содержать [inputStorePaymentAuthCode](https://core.telegram.org/constructor/inputStorePaymentAuthCode.md).", "x-telegram-field-docs": true}}, "required": ["_", "purpose"], "additionalProperties": false}, "inputInvoiceStarGiftDropOriginalDetails": {"title": "inputInvoiceStarGiftDropOriginalDetails", "description": "Используется для оплаты удаления атрибута [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md) из коллекционного подарка, полный текст см. здесь [здесь »](https://core.telegram.org/api/gifts.md#dropping-the-original-details-of-an-upgraded-gift).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftDropOriginalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftDropOriginalDetails"]}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "Коллекционный подарок, атрибут [starGiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md)] которого следует удалить.", "x-telegram-field-docs": true}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputInvoiceStarGiftAuctionBid": {"title": "inputInvoiceStarGiftAuctionBid", "description": "Используется для размещения ставки на [аукционе коллекционных подарков »](https://core.telegram.org/api/auctions.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftAuctionBid"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftAuctionBid"]}, "hide_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, ваше имя будет скрыто, если узел назначения решит отобразить подарок в своем профиле (он все равно увидит, что вы отправили подарок).     Не следует устанавливать при обновлении существующей ставки, поскольку значение для существующих ставок изменить нельзя.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "update_bid": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Должен быть установлен при увеличении уже существующей ставки.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Идентификатор пользователя или канала (только если установлен [channelFull](https://core.telegram.org/constructor/channelFull.md).`stargifts_available`), который получит подарок.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputPeer"}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор подарка от [starGift](https://core.telegram.org/constructor/starGift.md).`id`", "x-tl-type": "long", "x-telegram-field-docs": true}, "bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая сумма ставки в [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Необязательное сообщение, которое будет прикреплено к подарку, если мы выиграем этот раунд: максимальная длина этого поля указана в [stargifts_message_length_max значении конфигурации клиента »](https://core.telegram.org/api/config.md#stargifts-message-length-max).     Не следует устанавливать при обновлении существующей ставки, поскольку значение для существующих ставок изменить нельзя.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "gift_id", "bid_amount"], "additionalProperties": false}, "payments.exportedInvoice": {"title": "payments.exportedInvoice", "description": "Экспортировано [глубинная ссылка на счет](https://core.telegram.org/api/links.md#invoice-links)", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.exportedInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.exportedInvoice"]}, "url": {"type": "string", "x-tl-type": "string", "description": "Экспортировано [глубинная ссылка на счет](https://core.telegram.org/api/links.md#invoice-links)", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "messages.transcribedAudio": {"title": "messages.transcribedAudio", "description": "[Расшифровка текста из голосового сообщения »](https://core.telegram.org/api/transcribe.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.transcribedAudio"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.transcribedAudio"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Независимо от того, является ли транскрипция частичной, поскольку транскрипция аудио все еще выполняется, если этот параметр установлен, пользователь может получать дальнейшие [updateTranscribedAudio](https://core.telegram.org/constructor/updateTranscribedAudio.md) обновления с обновленной транскрипцией.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор транскрипции", "x-tl-type": "long", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Расшифрованный текст", "x-telegram-field-docs": true}, "trial_remains_num": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для пользователей, не являющихся [Premium](https://core.telegram.org/api/premium.md), будет установлен этот флаг, указывающий оставшиеся транскрипции в течение бесплатного пробного периода.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "trial_remains_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Для пользователей, не являющихся [Premium](https://core.telegram.org/api/premium.md), будет установлен этот флаг, указывающий дату, когда счетчик `trial_remains_num` будет сброшен до максимального значения [transcribe_audio_trial_weekly_number](https://core.telegram.org/api/config.md#transcribe-audio-trial-weekly-number).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "transcription_id", "text"], "additionalProperties": false}, "help.premiumPromo": {"title": "help.premiumPromo", "description": "Информация о промо-акции Telegram Premium\n\nОбратите внимание, что поля `video_sections`+`videos` представляют собой список видео и соответствующие идентификаторы премиум-функций.\nОни эквивалентны разделу => видеословарю с ключами от `video_section` и значениями от `videos`.\nКлавиши в `video_sections` соответствуют определенному идентификатору функции, и соответствующий рекламный видеоролик должен отображаться при нажатии на соответствующую строку функции.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.premiumPromo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.premiumPromo"]}, "status_text": {"type": "string", "x-tl-type": "string", "description": "Описание текущего состояния подписки пользователя Telegram Premium", "x-telegram-field-docs": true}, "status_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}, "video_sections": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Список [идентификаторов премиум-функций »](https://core.telegram.org/api/premium.md), связанных с каждым видео.", "x-telegram-field-docs": true}, "videos": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Список видео", "x-telegram-field-docs": true}, "period_options": {"type": "array", "items": {"type": "object", "x-tl-type": "PremiumSubscriptionOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["premiumSubscriptionOption"]}}, "description": "Тип TL: PremiumSubscriptionOption."}, "x-tl-type": "Vector<PremiumSubscriptionOption>", "description": "Варианты подписки Telegram Premium", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Сопутствующая информация о пользователе", "x-telegram-field-docs": true}}, "required": ["_", "status_text", "status_entities", "video_sections", "videos", "period_options", "users"], "additionalProperties": false}, "inputStorePaymentPremiumSubscription": {"title": "inputStorePaymentPremiumSubscription", "description": "Информация о покупке Telegram Premium", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentPremiumSubscription"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription"]}, "restore": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Передайте true, если это восстановление покупки Telegram Premium; только для App Store", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Передайте true, если это обновление ежемесячной подписки до годовой; только для App Store", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "inputStorePaymentGiftPremium": {"title": "inputStorePaymentGiftPremium", "description": "Информация о подаренной покупке Telegram Premium", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentGiftPremium"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentGiftPremium"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Пользователь, которому была подарена подписка Telegram Premium", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Цена продукта в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentPremiumGiftCode": {"title": "inputStorePaymentPremiumGiftCode", "description": "Используется для дарения подписки [Telegram Premium](https://core.telegram.org/api/premium.md) только некоторым конкретным подписчикам канала/супергруппы или некоторым нашим контактам. Дополнительную информацию о подарках и подарках см. здесь [здесь »](https://core.telegram.org/api/giveaways.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentPremiumGiftCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumGiftCode"]}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Пользователи, которые получат подписки [Telegram Premium](https://core.telegram.org/api/premium.md).", "x-telegram-field-docs": true}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Если установлено, подарки будут отправляться от имени канала/супергруппы, администратором которой мы являемся, что также будет назначать ему некоторые [повышения](https://core.telegram.org/api/boost.md)]. В противном случае подарок будет отправлен непосредственно от вошедшего в систему пользователя, и мы получим дополнительные [слоты повышения](https://core.telegram.org/api/boost.md). См. [здесь »](https://core.telegram.org/api/giveaways.md) дополнительную информацию о подарках и подарках.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputPeer"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Сообщение, прикрепленное к подарку", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "users", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentPremiumGiveaway": {"title": "inputStorePaymentPremiumGiveaway", "description": "Используется для оплаты [раздачи подарков, дополнительную информацию см. здесь »](https://core.telegram.org/api/giveaways.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, в розыгрыше смогут участвовать только новые подписчики, начиная с даты создания розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, победители розыгрыша являются общедоступными и будут перечислены в сообщении [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md), которое будет автоматически отправлено на канал после завершения розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Канал/супергруппа, запускающая розыгрыш, к которому должен присоединиться пользователь для участия, который получит розыгрыш [boosts](https://core.telegram.org/api/boost.md); см. [здесь »](https://core.telegram.org/api/giveaways.md) дополнительную информацию о подарках.", "x-telegram-field-docs": true}, "additional_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Здесь можно указать дополнительные каналы, к которым пользователь должен присоединиться для участия в розыгрыше.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<InputPeer>"}, "countries_iso2": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Набор пользователей, которые могут участвовать в розыгрыше, можно ограничить, передав здесь явный белый список, включающий до [giveaway_countries_max](https://core.telegram.org/api/config.md#giveaway-countries-max) стран, указанных в виде двухбуквенных кодов стран ISO 3166-1 альфа-2.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<string>"}, "prize_description": {"type": "string", "x-tl-type": "string", "description": "Может содержать текстовое описание дополнительных призов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор, чтобы избежать повторной отправки подарка. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long", "x-telegram-field-docs": true}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата окончания розыгрыша должна быть не позднее [giveaway_period_max](https://core.telegram.org/api/config.md#giveaway-period-max) секунд в будущем; см. [здесь »](https://core.telegram.org/api/giveaways.md) дополнительную информацию о подарках.", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "boost_peer", "random_id", "until_date", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsTopup": {"title": "inputStorePaymentStarsTopup", "description": "Используется для пополнения [баланса Telegram Stars](https://core.telegram.org/api/stars.md) текущего аккаунта.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsTopup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsTopup"]}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество звезд для пополнения", "x-tl-type": "long", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}, "spend_purpose_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Должен быть заполнен пиром, на котором процесс пополнения был инициирован из-за нехватки средств (i.e. бот для бот-платежей, канал для платных медиа/реакций и т. д.); оставьте этот флаг незаполненным, если поток пополнения не был инициирован при попытке потратить больше звезд, чем доступно в настоящее время на балансе учетной записи.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputPeer"}}, "required": ["_", "stars", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsGift": {"title": "inputStorePaymentStarsGift", "description": "Раньше дарил [Telegram Stars](https://core.telegram.org/api/stars.md) другу.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsGift"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Пользователь, которому должны быть подарены звезды.", "x-telegram-field-docs": true}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество звезд в подарок", "x-tl-type": "long", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "stars", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsGiveaway": {"title": "inputStorePaymentStarsGiveaway", "description": "Используется для оплаты [розыгрыша звезд, дополнительную информацию см. здесь »](https://core.telegram.org/api/giveaways.md#star-giveaways).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, в розыгрыше смогут участвовать только новые подписчики, начиная с даты создания розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, победители розыгрыша являются общедоступными и будут перечислены в сообщении [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md), которое будет автоматически отправлено на канал после завершения розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Общее количество разыгрываемых звезд Telegram (каждый пользователь получит `stars/users` звезд).", "x-tl-type": "long", "x-telegram-field-docs": true}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Канал/супергруппа, запускающая розыгрыш, к которому должен присоединиться пользователь для участия, который получит розыгрыш [boosts](https://core.telegram.org/api/boost.md); см. [здесь »](https://core.telegram.org/api/giveaways.md) дополнительную информацию о подарках.", "x-telegram-field-docs": true}, "additional_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Здесь можно указать дополнительные каналы, к которым пользователь должен присоединиться для участия в розыгрыше.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<InputPeer>"}, "countries_iso2": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Набор пользователей, которые могут участвовать в розыгрыше, можно ограничить, передав здесь явный белый список, включающий до [giveaway_countries_max](https://core.telegram.org/api/config.md#giveaway-countries-max) стран, указанных в виде двухбуквенных кодов стран ISO 3166-1 альфа-2.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<string>"}, "prize_description": {"type": "string", "x-tl-type": "string", "description": "Может содержать текстовое описание дополнительных призов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Случайный идентификатор, чтобы избежать повторной отправки подарка. См. [здесь »](https://core.telegram.org/api/updates.md#updatemessageid-updates) дополнительную информацию о дедупликации случайных идентификаторов и сопоставлении updateMessageID.", "x-tl-type": "long", "x-telegram-field-docs": true}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата окончания розыгрыша должна быть не позднее [giveaway_period_max](https://core.telegram.org/api/config.md#giveaway-period-max) секунд в будущем; см. [здесь »](https://core.telegram.org/api/giveaways.md) дополнительную информацию о подарках.", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}, "users": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество победителей.", "x-telegram-field-docs": true}}, "required": ["_", "stars", "boost_peer", "random_id", "until_date", "currency", "amount", "users"], "additionalProperties": false}, "inputStorePaymentAuthCode": {"title": "inputStorePaymentAuthCode", "description": "Указывает на оплату кода входа.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentAuthCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentAuthCode"]}, "restore": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Установите этот флаг, чтобы восстановить ранее совершенную покупку.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона.", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "`phone_code_hash` возвращается [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md).", "x-telegram-field-docs": true}, "premium_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность в днях подписки [Telegram Premium](https://core.telegram.org/api/premium.md), предоставляемой в результате этой покупки, как указано в [auth.sentCodePaymentRequired](https://core.telegram.org/constructor/auth.sentCodePaymentRequired.md).`premium_days`.", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Цена продукта в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "phone_code_hash", "premium_days", "currency", "amount"], "additionalProperties": false}, "paymentFormMethod": {"title": "paymentFormMethod", "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentFormMethod"]}, "url": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url", "title"], "additionalProperties": false}, "emojiStatusEmpty": {"title": "emojiStatusEmpty", "description": "Статус смайлика не установлен", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatusEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty"]}}, "required": ["_"], "additionalProperties": false}, "emojiStatus": {"title": "emojiStatus", "description": "[статус смайлика](https://core.telegram.org/api/emoji-status.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatus"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Пользовательский идентификатор документа эмодзи](https://core.telegram.org/api/custom-emoji.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если установлено, статус эмодзи будет активен до указанного unixtime.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "document_id"], "additionalProperties": false}, "emojiStatusCollectible": {"title": "emojiStatusCollectible", "description": "Собственный или [размещенный коллекционный подарок »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) в качестве статуса смайлика.\n\n**Невозможно** передать в [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md), его необходимо сначала преобразовать в [inputEmojiStatusCollectible](https://core.telegram.org/constructor/inputEmojiStatusCollectible.md), прежде чем передавать его этому методу.", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatusCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatusCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор коллекционного предмета (из [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`id`).", "x-tl-type": "long", "x-telegram-field-docs": true}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор [пользовательского смайлика](https://core.telegram.org/api/custom-emoji.md), обозначающего статус.", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название коллекционного предмета.", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "Уникальный идентификатор предмета коллекционирования, который можно использовать для создания [ссылки на подарок коллекционного предмета »](https://core.telegram.org/api/links.md#collectible-gift-link) для текущего предмета коллекционирования или для получения дополнительной информации о предмете коллекционирования с помощью [payments.getUniqueStarGift](https://core.telegram.org/method/payments.getUniqueStarGift.md).", "x-telegram-field-docs": true}, "pattern_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор узора, который будет применен к фону профиля, связанный с [starGiftAttributePattern](https://core.telegram.org/constructor/starGiftAttributePattern.md) из подарка в `slug`.", "x-tl-type": "long", "x-telegram-field-docs": true}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Цвет центра фона профиля в формате RGB24 из подарка [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md).", "x-telegram-field-docs": true}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Цвет краев фона профиля в формате RGB24 из файла подарка [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md).", "x-telegram-field-docs": true}, "pattern_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Цвет `pattern_document_id`, нанесенный на фон профиля в формате RGB24, из подарка [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md).", "x-telegram-field-docs": true}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Цвет текста на фоне профиля в формате RGB24 из файла подарка [starGiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md).", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если установлено, статус эмодзи будет активен до указанного unixtime.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "collectible_id", "document_id", "title", "slug", "pattern_document_id", "center_color", "edge_color", "pattern_color", "text_color"], "additionalProperties": false}, "inputEmojiStatusCollectible": {"title": "inputEmojiStatusCollectible", "description": "Собственный или [размещенный коллекционный подарок »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) в качестве статуса смайлика: может использоваться только в [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md), никогда не возвращается API.\n\nОбратите внимание, что после установки статус вместо этого будет возвращен пользователям в виде конструктора [emojiStatusCollectible](https://core.telegram.org/constructor/emojiStatusCollectible.md) (который **нельзя** передать в [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md) и должен быть сначала преобразован в [inputEmojiStatusCollectible](https://core.telegram.org/constructor/inputEmojiStatusCollectible.md)).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEmojiStatusCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEmojiStatusCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор коллекционного предмета (из [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`id`).", "x-tl-type": "long", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если установлено, статус эмодзи будет активен до указанного unixtime.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "collectible_id"], "additionalProperties": false}, "account.emojiStatusesNotModified": {"title": "account.emojiStatusesNotModified", "description": "Серверный список [статусов эмодзи](https://core.telegram.org/api/emoji-status.md) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emojiStatusesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emojiStatusesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.emojiStatuses": {"title": "account.emojiStatuses", "description": "Список [статусов смайликов](https://core.telegram.org/api/emoji-status.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emojiStatuses"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emojiStatuses"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "statuses": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}, "x-tl-type": "Vector<EmojiStatus>", "description": "[Статусы эмодзи](https://core.telegram.org/api/emoji-status.md)", "x-telegram-field-docs": true}}, "required": ["_", "hash", "statuses"], "additionalProperties": false}, "reactionEmpty": {"title": "reactionEmpty", "description": "Никакой реакции", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "reactionEmoji": {"title": "reactionEmoji", "description": "Нормальная реакция на сообщение смайлика", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionEmoji"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "reactionCustomEmoji": {"title": "reactionCustomEmoji", "description": "[Пользовательский эмодзи](https://core.telegram.org/api/custom-emoji.md), реакция на сообщение", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionCustomEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionCustomEmoji"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Пользовательский идентификатор документа эмодзи](https://core.telegram.org/api/custom-emoji.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "document_id"], "additionalProperties": false}, "reactionPaid": {"title": "reactionPaid", "description": "Представляет собой [платную реакцию Telegram Star»](https://core.telegram.org/api/reactions.md#paid-reactions).", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionPaid"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionPaid"]}}, "required": ["_"], "additionalProperties": false}, "chatReactionsNone": {"title": "chatReactionsNone", "description": "Никакие реакции не допускаются", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsNone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsNone"]}}, "required": ["_"], "additionalProperties": false}, "chatReactionsAll": {"title": "chatReactionsAll", "description": "Разрешены все реакции или все нестандартные реакции.", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsAll"]}, "allow_custom": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Разрешить ли пользовательские реакции", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "chatReactionsSome": {"title": "chatReactionsSome", "description": "Некоторые реакции разрешены", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsSome"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsSome"]}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}, "x-tl-type": "Vector<Reaction>", "description": "Разрешенный набор реакций: в поле конфигурации [reactions_in_chat_max](https://core.telegram.org/api/config.md#reactions-in-chat-max) указано максимальное количество реакций, которое можно указать в этом поле.", "x-telegram-field-docs": true}}, "required": ["_", "reactions"], "additionalProperties": false}, "messages.reactionsNotModified": {"title": "messages.reactionsNotModified", "description": "Серверный список [реакций на сообщения](https://core.telegram.org/api/reactions.md) не изменился", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.reactionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.reactionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.reactions": {"title": "messages.reactions", "description": "Список [реакций на сообщения](https://core.telegram.org/api/reactions.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.reactions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.reactions"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш, используемый для кэширования, также может быть локально восстановлен с использованием алгоритма, указанного [здесь »](https://core.telegram.org/api/reactions.md#recent-reactions).", "x-tl-type": "long", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}, "x-tl-type": "Vector<Reaction>", "description": "Реакции", "x-telegram-field-docs": true}}, "required": ["_", "hash", "reactions"], "additionalProperties": false}, "emailVerifyPurposeLoginSetup": {"title": "emailVerifyPurposeLoginSetup", "description": "Цель подтверждения электронной почты: настроить адрес электронной почты для входа.", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerifyPurposeLoginSetup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerifyPurposeLoginSetup"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш телефонного кода, указанный в [документации](https://core.telegram.org/api/auth.md#email-verification)", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "phone_code_hash"], "additionalProperties": false}, "emailVerifyPurposeLoginChange": {"title": "emailVerifyPurposeLoginChange", "description": "Цель подтверждения электронной почты: изменить адрес электронной почты для входа.", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerifyPurposeLoginChange"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerifyPurposeLoginChange"]}}, "required": ["_"], "additionalProperties": false}, "emailVerifyPurposePassport": {"title": "emailVerifyPurposePassport", "description": "Подтвердите адрес электронной почты для использования в [telegram Passport](https://core.telegram.org/api/passport.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerifyPurposePassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerifyPurposePassport"]}}, "required": ["_"], "additionalProperties": false}, "emailVerificationCode": {"title": "emailVerificationCode", "description": "Код подтверждения электронной почты", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerificationCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerificationCode"]}, "code": {"type": "string", "x-tl-type": "string", "description": "Получен код подтверждения", "x-telegram-field-docs": true}}, "required": ["_", "code"], "additionalProperties": false}, "emailVerificationGoogle": {"title": "emailVerificationGoogle", "description": "Токен подтверждения адреса электронной почты Google ID", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerificationGoogle"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerificationGoogle"]}, "token": {"type": "string", "x-tl-type": "string", "description": "Токен", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "emailVerificationApple": {"title": "emailVerificationApple", "description": "Токен подтверждения электронной почты Apple ID", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerificationApple"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerificationApple"]}, "token": {"type": "string", "x-tl-type": "string", "description": "Токен", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "account.emailVerified": {"title": "account.emailVerified", "description": "Электронная почта была подтверждена правильно.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emailVerified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emailVerified"]}, "email": {"type": "string", "x-tl-type": "string", "description": "Подтвержденный адрес электронной почты.", "x-telegram-field-docs": true}}, "required": ["_", "email"], "additionalProperties": false}, "account.emailVerifiedLogin": {"title": "account.emailVerifiedLogin", "description": "Электронная почта была подтверждена правильно, и на нее только что был отправлен код для входа.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emailVerifiedLogin"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emailVerifiedLogin"]}, "email": {"type": "string", "x-tl-type": "string", "description": "Подтвержденный адрес электронной почты.", "x-telegram-field-docs": true}, "sent_code": {"type": "object", "x-tl-type": "auth.SentCode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired"]}}, "description": "Информация об отправленном [коде для входа](https://core.telegram.org/api/auth.md)", "x-telegram-field-docs": true}}, "required": ["_", "email", "sent_code"], "additionalProperties": false}, "premiumSubscriptionOption": {"title": "premiumSubscriptionOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["premiumSubscriptionOption"]}, "current": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_purchase_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "transaction": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bot_url": {"type": "string", "x-tl-type": "string"}, "store_product": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "months", "currency", "amount", "bot_url"], "additionalProperties": false}, "sendAsPeer": {"title": "sendAsPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["sendAsPeer"]}, "premium_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "messageExtendedMediaPreview": {"title": "messageExtendedMediaPreview", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview"]}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "thumb": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize.", "x-tl-flag": "flags.1?PhotoSize"}, "video_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "messageExtendedMedia": {"title": "messageExtendedMedia", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageExtendedMedia"]}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia."}}, "required": ["_", "media"], "additionalProperties": false}, "stickerKeyword": {"title": "stickerKeyword", "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerKeyword"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "keyword": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "document_id", "keyword"], "additionalProperties": false}, "username": {"title": "username", "type": "object", "properties": {"_": {"type": "string", "enum": ["username"]}, "editable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "deletable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "username": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "username"], "additionalProperties": false}, "forumTopicDeleted": {"title": "forumTopicDeleted", "type": "object", "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "forumTopic": {"title": "forumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["forumTopic"]}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "short": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "title_missing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "title": {"type": "string", "x-tl-type": "string"}, "icon_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_mentions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_poll_votes_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "Тип TL: PeerNotifySettings."}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage.", "x-tl-flag": "flags.4?DraftMessage"}}, "required": ["_", "id", "date", "peer", "title", "icon_color", "top_message", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "unread_mentions_count", "unread_reactions_count", "unread_poll_votes_count", "from_id", "notify_settings"], "additionalProperties": false}, "messages.forumTopics": {"title": "messages.forumTopics", "description": "Содержит информацию о нескольких [темах форума](https://core.telegram.org/api/forum.md#forum-topics)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.forumTopics"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.forumTopics"]}, "order_by_create_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Упорядочиваются ли возвращаемые темы по дате создания; если установлено, при нумерации страниц по `offset_date` следует использовать [forumTopic](https://core.telegram.org/constructor/forumTopic.md).`date`; в противном случае темы упорядочены по дате последнего сообщения, поэтому разбивайте страницы по `date` [сообщения](https://core.telegram.org/type/Message.md), на которые ссылается [forumTopic](https://core.telegram.org/constructor/forumTopic.md).`top_message`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "top_icons": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.1?Vector<long>"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество тем, соответствующих запросу; может быть больше, чем темы, содержащиеся в `topics`, в этом случае требуется [нумерация страниц](https://core.telegram.org/api/offsets.md).", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "Темы форума", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Связанные сообщения (содержит сообщения, упомянутые [forumTopic](https://core.telegram.org/constructor/forumTopic.md).`top_message`).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Похожие чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Связанные пользователи", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Количество событий после генерации](https://core.telegram.org/api/updates.md)", "x-telegram-field-docs": true}}, "required": ["_", "count", "topics", "messages", "chats", "users", "pts"], "additionalProperties": false}, "defaultHistoryTTL": {"title": "defaultHistoryTTL", "description": "Содержит информацию о значении по умолчанию параметра «Время жизни», применяемом ко всем новым чатам.", "externalDocs": {"url": "https://core.telegram.org/constructor/defaultHistoryTTL"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["defaultHistoryTTL"]}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Настройка срока жизни применяется ко всем новым чатам.", "x-telegram-field-docs": true}}, "required": ["_", "period"], "additionalProperties": false}, "exportedContactToken": {"title": "exportedContactToken", "description": "Описывает [ссылку на временный профиль](https://core.telegram.org/api/links.md#temporary-profile-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedContactToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedContactToken"]}, "url": {"type": "string", "x-tl-type": "string", "description": "[Ссылка на временный профиль](https://core.telegram.org/api/links.md#temporary-profile-links).", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок его годности", "x-telegram-field-docs": true}}, "required": ["_", "url", "expires"], "additionalProperties": false}, "requestPeerTypeUser": {"title": "requestPeerTypeUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeUser"]}, "bot": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}, "premium": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeChat": {"title": "requestPeerTypeChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeChat"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bot_participant": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "has_username": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}, "forum": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.4?Bool"}, "user_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.1?ChatAdminRights"}, "bot_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.2?ChatAdminRights"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeBroadcast": {"title": "requestPeerTypeBroadcast", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeBroadcast"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "has_username": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}, "user_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.1?ChatAdminRights"}, "bot_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.2?ChatAdminRights"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeCreateBot": {"title": "requestPeerTypeCreateBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeCreateBot"]}, "bot_managed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "suggested_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "suggested_username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_"], "additionalProperties": false}, "emojiListNotModified": {"title": "emojiListNotModified", "description": "Список [пользовательских смайлов](https://core.telegram.org/api/custom-emoji.md) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "emojiList": {"title": "emojiList", "description": "Представляет собой список [пользовательских смайлов](https://core.telegram.org/api/custom-emoji.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiList"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "document_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Пользовательские идентификаторы смайлов", "x-telegram-field-docs": true}}, "required": ["_", "hash", "document_id"], "additionalProperties": false}, "emojiGroup": {"title": "emojiGroup", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroup"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "title", "icon_emoji_id", "emoticons"], "additionalProperties": false}, "emojiGroupGreeting": {"title": "emojiGroupGreeting", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroupGreeting"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "title", "icon_emoji_id", "emoticons"], "additionalProperties": false}, "emojiGroupPremium": {"title": "emojiGroupPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroupPremium"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "title", "icon_emoji_id"], "additionalProperties": false}, "messages.emojiGroupsNotModified": {"title": "messages.emojiGroupsNotModified", "description": "Список [категорий смайликов](https://core.telegram.org/api/emoji-categories.md) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGroupsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGroupsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.emojiGroups": {"title": "messages.emojiGroups", "description": "Представляет список [категорий эмодзи](https://core.telegram.org/api/emoji-categories.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGroups"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGroups"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "groups": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiGroup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiGroup", "emojiGroupGreeting", "emojiGroupPremium"]}}, "description": "Тип TL: EmojiGroup."}, "x-tl-type": "Vector<EmojiGroup>", "description": "Список [категорий смайликов](https://core.telegram.org/api/emoji-categories.md).", "x-telegram-field-docs": true}}, "required": ["_", "hash", "groups"], "additionalProperties": false}, "textWithEntities": {"title": "textWithEntities", "description": "Стилизованный текст с [сущностями сообщения](https://core.telegram.org/api/entities.md)\n\n<!-- блоки схемы -->\n#### [Сквозная схема](https://core.telegram.org/schema/end-to-end.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/textWithEntities"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}, "text": {"type": "string", "x-tl-type": "string", "description": "Текст", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}}, "required": ["_", "text", "entities"], "additionalProperties": false}, "messages.translateResult": {"title": "messages.translateResult", "description": "Переведенный текст с помощью [entities](https://core.telegram.org/api/entities.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.translateResult"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.translateResult"]}, "result": {"type": "array", "items": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities."}, "x-tl-type": "Vector<TextWithEntities>", "description": "Text+[entities](https://core.telegram.org/api/entities.md), для каждого входного сообщения.", "x-telegram-field-docs": true}}, "required": ["_", "result"], "additionalProperties": false}, "autoSaveSettings": {"title": "autoSaveSettings", "description": "Настройки автосохранения мультимедиа", "externalDocs": {"url": "https://core.telegram.org/constructor/autoSaveSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}, "photos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Должны ли фотографии автоматически сохраняться в галерее.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "videos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Следует ли автоматически сохранять видео в галерее.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "video_max_size": {"type": "string", "pattern": "^-?\\d+$", "description": "Если установлено, задает ограничение размера для автоматически сохраняемых видео.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}}, "required": ["_"], "additionalProperties": false}, "autoSaveException": {"title": "autoSaveException", "type": "object", "properties": {"_": {"type": "string", "enum": ["autoSaveException"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "Тип TL: AutoSaveSettings."}}, "required": ["_", "peer", "settings"], "additionalProperties": false}, "account.autoSaveSettings": {"title": "account.autoSaveSettings", "description": "Содержит настройки автосохранения мультимедиа.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.autoSaveSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.autoSaveSettings"]}, "users_settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "Настройки автосохранения мультимедиа по умолчанию для частных чатов", "x-telegram-field-docs": true}, "chats_settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "Настройки автосохранения мультимедиа по умолчанию для [групп и супергрупп](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true}, "broadcasts_settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "Настройки автосохранения мультимедиа по умолчанию для [каналов](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true}, "exceptions": {"type": "array", "items": {"type": "object", "x-tl-type": "AutoSaveException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveException"]}}, "description": "Тип TL: AutoSaveException."}, "x-tl-type": "Vector<AutoSaveException>", "description": "Детальные настройки автосохранения для отдельных узлов", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в настройках детального автосохранения для конкретного узла.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в настройках детального автосохранения для конкретного узла.", "x-telegram-field-docs": true}}, "required": ["_", "users_settings", "chats_settings", "broadcasts_settings", "exceptions", "chats", "users"], "additionalProperties": false}, "help.appConfigNotModified": {"title": "help.appConfigNotModified", "description": "Параметры конфигурации клиента не изменились", "externalDocs": {"url": "https://core.telegram.org/constructor/help.appConfigNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.appConfigNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.appConfig": {"title": "help.appConfig", "description": "Содержит различные [параметры конфигурации клиента](https://core.telegram.org/api/config.md#client-configuration)", "externalDocs": {"url": "https://core.telegram.org/constructor/help.appConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.appConfig"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "config": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "[Параметры конфигурации клиента](https://core.telegram.org/api/config.md#client-configuration)", "x-telegram-field-docs": true}}, "required": ["_", "hash", "config"], "additionalProperties": false}, "inputBotAppID": {"title": "inputBotAppID", "description": "Используется для получения информации о [мини-приложении с прямой ссылкой](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps) по его идентификатору.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotAppID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotAppID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[прямая ссылка Мини-приложение](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps) ID.", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа, полученный из конструктора [botApp](https://core.telegram.org/constructor/botApp.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputBotAppShortName": {"title": "inputBotAppShortName", "description": "Используется для получения информации о [прямая ссылка мини-приложения](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps) по его короткому имени.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotAppShortName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotAppShortName"]}, "bot_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Идентификатор бота, которому принадлежит мини-приложение бота.", "x-telegram-field-docs": true}, "short_name": {"type": "string", "x-tl-type": "string", "description": "Короткое имя, полученное из [глубинной ссылки на мини-приложение Direct](https://core.telegram.org/api/links.md#direct-mini-app-links)]", "x-telegram-field-docs": true}}, "required": ["_", "bot_id", "short_name"], "additionalProperties": false}, "botAppNotModified": {"title": "botAppNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["botAppNotModified"]}}, "required": ["_"], "additionalProperties": false}, "botApp": {"title": "botApp", "type": "object", "properties": {"_": {"type": "string", "enum": ["botApp"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "short_name": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.0?Document"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "access_hash", "short_name", "title", "description", "photo", "hash"], "additionalProperties": false}, "messages.botApp": {"title": "messages.botApp", "description": "Содержит информацию о [прямая ссылка мини-приложение](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botApp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botApp"]}, "inactive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли веб-приложение никогда не использованным пользователем, и перед его открытием у пользователя необходимо запросить подтверждение.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Бот запрашивает разрешение на отправку сообщений пользователю: если пользователь согласен, установите флаг `write_allowed` при вызове [messages.requestAppWebView](https://core.telegram.org/method/messages.requestAppWebView.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_settings": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Флаг устарел, его можно игнорировать.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "app": {"type": "object", "x-tl-type": "BotApp", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botAppNotModified", "botApp"]}}, "description": "Информация о приложении-боте", "x-telegram-field-docs": true}}, "required": ["_", "app"], "additionalProperties": false}, "inlineBotWebView": {"title": "inlineBotWebView", "description": "Указывает кнопку [мини-приложение встроенного режима](https://core.telegram.org/api/bots/webapps.md#inline-mode-mini-apps), отображаемую над списком результатов встроенного запроса.", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineBotWebView"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineBotWebView"]}, "text": {"type": "string", "x-tl-type": "string", "description": "Текст кнопки", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "Веб-приложение URL", "x-telegram-field-docs": true}}, "required": ["_", "text", "url"], "additionalProperties": false}, "readParticipantDate": {"title": "readParticipantDate", "description": "Содержит информацию о том, когда определенный участник прочитал сообщение.", "externalDocs": {"url": "https://core.telegram.org/constructor/readParticipantDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["readParticipantDate"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя", "x-tl-type": "long", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда пользователь прочитал сообщение", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "inputChatlistDialogFilter": {"title": "inputChatlistDialogFilter", "description": "Идентификатор папки", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatlistDialogFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatlistDialogFilter"]}, "filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор папки](https://core.telegram.org/api/folders.md)", "x-telegram-field-docs": true}}, "required": ["_", "filter_id"], "additionalProperties": false}, "exportedChatlistInvite": {"title": "exportedChatlistInvite", "description": "Экспортировано [глубокая ссылка на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedChatlistInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedChatlistInvite"]}, "title": {"type": "string", "x-tl-type": "string", "description": "Название ссылки", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "Глубокая ссылка на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links).", "x-telegram-field-docs": true}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Аналоги для импорта", "x-telegram-field-docs": true}}, "required": ["_", "title", "url", "peers"], "additionalProperties": false}, "chatlists.exportedChatlistInvite": {"title": "chatlists.exportedChatlistInvite", "description": "Информация об экспортированной глубокой ссылке на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.exportedChatlistInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.exportedChatlistInvite"]}, "filter": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "Идентификатор папки", "x-telegram-field-docs": true}, "invite": {"type": "object", "x-tl-type": "ExportedChatlistInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["exportedChatlistInvite"]}}, "description": "Экспортированная глубокая ссылка на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links).", "x-telegram-field-docs": true}}, "required": ["_", "filter", "invite"], "additionalProperties": false}, "chatlists.exportedInvites": {"title": "chatlists.exportedInvites", "description": "Информация о нескольких глубоких ссылках на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.exportedInvites"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.exportedInvites"]}, "invites": {"type": "array", "items": {"type": "object", "x-tl-type": "ExportedChatlistInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["exportedChatlistInvite"]}}, "description": "Тип TL: ExportedChatlistInvite."}, "x-tl-type": "Vector<ExportedChatlistInvite>", "description": "Глубокие ссылки на папку чата »](https://core.telegram.org/api/links.md#chat-folder-links).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Сопутствующая информация чата", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Сопутствующая информация о пользователе", "x-telegram-field-docs": true}}, "required": ["_", "invites", "chats", "users"], "additionalProperties": false}, "chatlists.chatlistInviteAlready": {"title": "chatlists.chatlistInviteAlready", "description": "Обновлена информация о [глубинной ссылке на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links), которую мы уже импортировали.", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.chatlistInviteAlready"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.chatlistInviteAlready"]}, "filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор импортированной папки", "x-telegram-field-docs": true}, "missing_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Новые пиры, которые будут импортированы", "x-telegram-field-docs": true}, "already_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Аналоги, которые уже были импортированы", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Сопутствующая информация чата", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Сопутствующая информация о пользователе", "x-telegram-field-docs": true}}, "required": ["_", "filter_id", "missing_peers", "already_peers", "chats", "users"], "additionalProperties": false}, "chatlists.chatlistInvite": {"title": "chatlists.chatlistInvite", "description": "Информация о [глубинной ссылке на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.chatlistInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.chatlistInvite"]}, "title_noanimate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, любые анимированные смайлы, присутствующие в `title`, не должны быть анимированы и вместо этого должны быть заморожены на первом кадре.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Название ссылки", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи для использования в качестве значка папки.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Супергруппы и каналы, к которым можно присоединиться", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Сопутствующая информация чата", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Сопутствующая информация о пользователе", "x-telegram-field-docs": true}}, "required": ["_", "title", "peers", "chats", "users"], "additionalProperties": false}, "chatlists.chatlistUpdates": {"title": "chatlists.chatlistUpdates", "description": "Обновлена информация о [глубинной ссылке на папку чата»](https://core.telegram.org/api/links.md#chat-folder-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.chatlistUpdates"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.chatlistUpdates"]}, "missing_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "x-tl-type": "Vector<Peer>", "description": "Новые коллеги, к которым можно присоединиться", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Сопутствующая информация чата", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Сопутствующая информация о пользователе", "x-telegram-field-docs": true}}, "required": ["_", "missing_peers", "chats", "users"], "additionalProperties": false}, "bots.botInfo": {"title": "bots.botInfo", "description": "Локализованная информация о боте.", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.botInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.botInfo"]}, "name": {"type": "string", "x-tl-type": "string", "description": "Имя бота", "x-telegram-field-docs": true}, "about": {"type": "string", "x-tl-type": "string", "description": "Бот про текст", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Описание бота", "x-telegram-field-docs": true}}, "required": ["_", "name", "about", "description"], "additionalProperties": false}, "messagePeerVote": {"title": "messagePeerVote", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerVote"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "option", "date"], "additionalProperties": false}, "messagePeerVoteInputOption": {"title": "messagePeerVoteInputOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerVoteInputOption"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "date"], "additionalProperties": false}, "messagePeerVoteMultiple": {"title": "messagePeerVoteMultiple", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerVoteMultiple"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "options": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "options", "date"], "additionalProperties": false}, "storyViews": {"title": "storyViews", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyViews"]}, "has_viewers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "views_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "ReactionCount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionCount"]}}, "description": "Тип TL: ReactionCount."}, "x-tl-type": "Vector<ReactionCount>", "x-tl-flag": "flags.3?Vector<ReactionCount>"}, "reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "recent_viewers": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.0?Vector<long>"}}, "required": ["_", "views_count"], "additionalProperties": false}, "storyItemDeleted": {"title": "storyItemDeleted", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyItemDeleted"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "storyItemSkipped": {"title": "storyItemSkipped", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyItemSkipped"]}, "close_friends": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "live": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "date", "expire_date"], "additionalProperties": false}, "storyItem": {"title": "storyItem", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyItem"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "public": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "close_friends": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "edited": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "selected_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.18?Peer"}, "fwd_from": {"type": "object", "x-tl-type": "StoryFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyFwdHeader"]}}, "description": "Тип TL: StoryFwdHeader.", "x-tl-flag": "flags.17?StoryFwdHeader"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia."}, "media_areas": {"type": "array", "items": {"type": "object", "x-tl-type": "MediaArea", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaVenue", "inputMediaAreaVenue", "mediaAreaGeoPoint", "mediaAreaSuggestedReaction", "mediaAreaChannelPost", "inputMediaAreaChannelPost", "mediaAreaUrl", "mediaAreaWeather", "mediaAreaStarGift"]}}, "description": "Тип TL: MediaArea."}, "x-tl-type": "Vector<MediaArea>", "x-tl-flag": "flags.14?Vector<MediaArea>"}, "privacy": {"type": "array", "items": {"type": "object", "x-tl-type": "PrivacyRule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts", "privacyValueAllowAll", "privacyValueAllowUsers", "privacyValueDisallowContacts", "privacyValueDisallowAll", "privacyValueDisallowUsers", "privacyValueAllowChatParticipants", "privacyValueDisallowChatParticipants", "privacyValueAllowCloseFriends", "privacyValueAllowPremium", "privacyValueAllowBots", "privacyValueDisallowBots"]}}, "description": "Тип TL: PrivacyRule."}, "x-tl-type": "Vector<PrivacyRule>", "x-tl-flag": "flags.2?Vector<PrivacyRule>"}, "views": {"type": "object", "x-tl-type": "StoryViews", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyViews"]}}, "description": "Тип TL: StoryViews.", "x-tl-flag": "flags.3?StoryViews"}, "sent_reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction.", "x-tl-flag": "flags.15?Reaction"}, "albums": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.19?Vector<int>"}, "music": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.20?Document"}}, "required": ["_", "id", "date", "expire_date", "media"], "additionalProperties": false}, "stories.allStoriesNotModified": {"title": "stories.allStoriesNotModified", "description": "Список активных (или активных и скрытых) [историй](https://core.telegram.org/api/stories.md#watching-stories) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.allStoriesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.allStoriesNotModified"]}, "state": {"type": "string", "x-tl-type": "string", "description": "Состояние, которое следует использовать для запроса обновлений", "x-telegram-field-docs": true}, "stealth_mode": {"type": "object", "x-tl-type": "StoriesStealthMode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}}, "description": "Текущая информация о [скрытом режиме](https://core.telegram.org/api/stories.md#stealth-mode)]", "x-telegram-field-docs": true}}, "required": ["_", "state", "stealth_mode"], "additionalProperties": false}, "stories.allStories": {"title": "stories.allStories", "description": "Полный список активных (или активных и скрытых) [историй](https://core.telegram.org/api/stories.md#watching-stories).", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.allStories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.allStories"]}, "has_more": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Можно ли получить дополнительные результаты, как [описано здесь »](https://core.telegram.org/api/stories.md#watching-stories).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество активных (или активных и скрытых) историй", "x-telegram-field-docs": true}, "state": {"type": "string", "x-tl-type": "string", "description": "Состояние, используемое для нумерации страниц", "x-telegram-field-docs": true}, "peer_stories": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "Тип TL: PeerStories."}, "x-tl-type": "Vector<PeerStories>", "description": "Истории", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "stealth_mode": {"type": "object", "x-tl-type": "StoriesStealthMode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}}, "description": "Текущая информация о [скрытом режиме](https://core.telegram.org/api/stories.md#stealth-mode)]", "x-telegram-field-docs": true}}, "required": ["_", "count", "state", "peer_stories", "chats", "users", "stealth_mode"], "additionalProperties": false}, "stories.stories": {"title": "stories.stories", "description": "Список [историй](https://core.telegram.org/api/stories.md#pinned-or-archived-stories)", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.stories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.stories"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество историй, которые можно получить", "x-telegram-field-docs": true}, "stories": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}, "x-tl-type": "Vector<StoryItem>", "description": "Истории", "x-telegram-field-docs": true}, "pinned_to_top": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Идентификаторы закрепленных историй.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<int>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "count", "stories", "chats", "users"], "additionalProperties": false}, "storyView": {"title": "storyView", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyView"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction.", "x-tl-flag": "flags.2?Reaction"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "storyViewPublicForward": {"title": "storyViewPublicForward", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyViewPublicForward"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "storyViewPublicRepost": {"title": "storyViewPublicRepost", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyViewPublicRepost"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer_id", "story"], "additionalProperties": false}, "stories.storyViewsList": {"title": "stories.storyViewsList", "description": "Счетчики реакций и просмотров для [истории](https://core.telegram.org/api/stories.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.storyViewsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.storyViewsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов, которые можно получить", "x-telegram-field-docs": true}, "views_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество просмотров истории", "x-telegram-field-docs": true}, "forwards_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество пересылок/репостов историй", "x-telegram-field-docs": true}, "reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество реакций, добавленных в историю", "x-telegram-field-docs": true}, "views": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryView", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyView", "storyViewPublicForward", "storyViewPublicRepost"]}}, "description": "Тип TL: StoryView."}, "x-tl-type": "Vector<StoryView>", "description": "Дата просмотра истории и информация о реакции", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "views_count", "forwards_count", "reactions_count", "views", "chats", "users"], "additionalProperties": false}, "stories.storyViews": {"title": "stories.storyViews", "description": "Счетчики реакций и просмотров для списка [историй](https://core.telegram.org/api/stories.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.storyViews"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.storyViews"]}, "views": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryViews", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyViews"]}}, "description": "Тип TL: StoryViews."}, "x-tl-type": "Vector<StoryViews>", "description": "Просмотр даты и информации о реакциях нескольких историй", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "views", "users"], "additionalProperties": false}, "inputReplyToMessage": {"title": "inputReplyToMessage", "description": "Ответ на сообщение.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToMessage"]}, "reply_to_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения, на которое нужно ответить.", "x-telegram-field-docs": true}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Это поле должно содержать идентификатор темы **только** при ответе на сообщения в темах форума, отличных от темы «Общая» (установлено i.e. `reply_to_msg_id` и `reply_to_msg_id != topicID` и `topicID != 1`).   Если сообщение с ответом будет удалено до завершения выполнения метода, значение в этом поле будет использоваться для отправки сообщения в правильную тему, а не в тему «Общая».", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "reply_to_peer_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Используется для ответа на сообщения, отправленные в другой чат (указанный здесь), может использоваться только для чатов и сообщений, не относящихся к `protected`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputPeer"}, "quote_text": {"type": "string", "x-tl-type": "string", "description": "Используется для цитирования ответа только на определенный раздел (указанный здесь) исходного сообщения. Максимальная длина UTF-8 для котировок указана в конфигурационном ключе [quote_length_max](https://core.telegram.org/api/config.md#quote-length-max).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "quote_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md) из поля `quote_text`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<MessageEntity>"}, "quote_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение сообщения `quote_text` внутри исходного сообщения (в [UTF-16 кодовых единицах](https://core.telegram.org/api/entities.md#entity-length)).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "monoforum_peer_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Должен быть установлен идентификатор темы при ответе на сообщение в [теме монофорума](https://core.telegram.org/api/monoforum.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?InputPeer"}, "todo_item_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Можно настроить ответ на указанный элемент списка дел »](https://core.telegram.org/api/todo.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?int"}, "poll_option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Если установлено, сообщение отправляется как [ответ на конкретный вариант ответа на опрос »](https://core.telegram.org/api/poll.md#replying-to-poll-options), содержащий `option` байты желаемого ответа.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?bytes"}, "quote_rich": {"type": "array", "items": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "x-tl-type": "Vector<RichText>", "x-tl-flag": "flags.8?Vector<RichText>"}}, "required": ["_", "reply_to_msg_id"], "additionalProperties": false}, "inputReplyToStory": {"title": "inputReplyToStory", "description": "Ответ на историю.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToStory"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Отправитель истории", "x-telegram-field-docs": true}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор истории, на которую нужно ответить.", "x-telegram-field-docs": true}}, "required": ["_", "peer", "story_id"], "additionalProperties": false}, "inputReplyToMonoForum": {"title": "inputReplyToMonoForum", "description": "Используется для отправки сообщений в [тему монофорума](https://core.telegram.org/api/monoforum.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToMonoForum"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToMonoForum"]}, "monoforum_peer_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Идентификатор темы.", "x-telegram-field-docs": true}}, "required": ["_", "monoforum_peer_id"], "additionalProperties": false}, "inputReplyToEphemeralMessage": {"title": "inputReplyToEphemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToEphemeralMessage"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "exportedStoryLink": {"title": "exportedStoryLink", "description": "Представляет собой [глубокую ссылку на историю](https://core.telegram.org/api/stories.md#story-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedStoryLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedStoryLink"]}, "link": {"type": "string", "x-tl-type": "string", "description": "[Глубокая ссылка на историю](https://core.telegram.org/api/stories.md#story-links).", "x-telegram-field-docs": true}}, "required": ["_", "link"], "additionalProperties": false}, "storiesStealthMode": {"title": "storiesStealthMode", "type": "object", "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}, "active_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "cooldown_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_"], "additionalProperties": false}, "mediaAreaCoordinates": {"title": "mediaAreaCoordinates", "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}, "x": {"type": "number", "format": "double", "x-tl-type": "double"}, "y": {"type": "number", "format": "double", "x-tl-type": "double"}, "w": {"type": "number", "format": "double", "x-tl-type": "double"}, "h": {"type": "number", "format": "double", "x-tl-type": "double"}, "rotation": {"type": "number", "format": "double", "x-tl-type": "double"}, "radius": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.0?double"}}, "required": ["_", "x", "y", "w", "h", "rotation"], "additionalProperties": false}, "mediaAreaVenue": {"title": "mediaAreaVenue", "description": "Представляет тег местоположения, прикрепленный к [истории](https://core.telegram.org/api/stories.md)], с дополнительной информацией о месте проведения.", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaVenue"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Размер и расположение медиа-области соответствуют наклейке с местоположением поверх медиа-истории.", "x-telegram-field-docs": true}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Координаты места проведения", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название места проведения", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "Адрес", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "Поставщик места проведения: в настоящее время требуется поддержка только «foursquare».", "x-telegram-field-docs": true}, "venue_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор заведения в базе данных провайдера", "x-telegram-field-docs": true}, "venue_type": {"type": "string", "x-tl-type": "string", "description": "Тип площадки в базе данных провайдера", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "geo", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "inputMediaAreaVenue": {"title": "inputMediaAreaVenue", "description": "Представляет собой [тег местоположения](https://core.telegram.org/api/stories.md#media-areas), прикрепленный к [истории](https://core.telegram.org/api/stories.md)], с дополнительной информацией о месте проведения.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaAreaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaAreaVenue"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Размер и расположение медиа-области соответствуют наклейке с местоположением поверх медиа-истории.", "x-telegram-field-docs": true}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "`query_id` из [messages.botResults](https://core.telegram.org/constructor/messages.botResults.md), см. [здесь »](https://core.telegram.org/api/stories.md#media-areas) для получения дополнительной информации.", "x-tl-type": "long", "x-telegram-field-docs": true}, "result_id": {"type": "string", "x-tl-type": "string", "description": "`id` выбранного результата, см. [здесь »](https://core.telegram.org/api/stories.md#media-areas) для получения дополнительной информации.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "query_id", "result_id"], "additionalProperties": false}, "mediaAreaGeoPoint": {"title": "mediaAreaGeoPoint", "description": "Представляет тег геолокации, прикрепленный к файлу [story](https://core.telegram.org/api/stories.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaGeoPoint"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Размер и положение медиа-области соответствуют наклейке с местоположением поверх медиа-истории.", "x-telegram-field-docs": true}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Координаты тега геолокации.", "x-telegram-field-docs": true}, "address": {"type": "object", "x-tl-type": "GeoPointAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointAddress"]}}, "description": "Необязательное текстовое представление адреса.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?GeoPointAddress"}}, "required": ["_", "coordinates", "geo"], "additionalProperties": false}, "mediaAreaSuggestedReaction": {"title": "mediaAreaSuggestedReaction", "description": "Представляет собой реакционный пузырь.", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaSuggestedReaction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaSuggestedReaction"]}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Имеет ли реакционный пузырь темный фон.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "flipped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Отражается ли пузырь реакции (подробнее см. [здесь »](https://core.telegram.org/api/stories.md#reactions)).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Координаты медиа-области, соответствующей кнопке реакции.", "x-telegram-field-docs": true}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Реакция, которая должна быть отправлена при нажатии на эту область.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "reaction"], "additionalProperties": false}, "mediaAreaChannelPost": {"title": "mediaAreaChannelPost", "description": "Представляет публикацию канала.", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaChannelPost"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaChannelPost"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Размер и расположение медиа-области соответствуют наклейке с местоположением поверх медиа-истории.", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Канал, на котором размещено сообщение", "x-tl-type": "long", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID сообщения канала", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "channel_id", "msg_id"], "additionalProperties": false}, "inputMediaAreaChannelPost": {"title": "inputMediaAreaChannelPost", "description": "Представляет публикацию канала", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaAreaChannelPost"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaAreaChannelPost"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Размер и расположение медиа-области соответствуют наклейке с местоположением поверх медиа-истории.", "x-telegram-field-docs": true}, "channel": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "Канал, на котором размещено сообщение", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID сообщения канала", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "channel", "msg_id"], "additionalProperties": false}, "mediaAreaUrl": {"title": "mediaAreaUrl", "description": "Представляет [URL медиа-область](https://core.telegram.org/api/stories.md#urls).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaUrl"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Размер и расположение медиа-области, соответствующие кнопке URL в верхней части медиа-истории.", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "URL, чтобы открыться при нажатии.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "url"], "additionalProperties": false}, "mediaAreaWeather": {"title": "mediaAreaWeather", "description": "Представляет собой [виджет погоды »](https://core.telegram.org/api/stories.md#weather).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaWeather"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaWeather"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Размер и расположение медиа-области, соответствующие виджету поверх медиа-истории.", "x-telegram-field-docs": true}, "emoji": {"type": "string", "x-tl-type": "string", "description": "Смайлики погоды должны отображаться как [анимированные смайлики](https://core.telegram.org/api/animated-emojis.md).", "x-telegram-field-docs": true}, "temperature_c": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Температура в градусах Цельсия.", "x-telegram-field-docs": true}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ARGB цвет фона.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "emoji", "temperature_c", "color"], "additionalProperties": false}, "mediaAreaStarGift": {"title": "mediaAreaStarGift", "description": "Представляет собой [коллекционный подарок»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaStarGift"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Координаты медиаплощадки.", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "`slug` из [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`, это можно разрешить как [указанное здесь »](https://core.telegram.org/api/gifts.md#sharing-and-getting-info-about-a-collectible-gift).", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "slug"], "additionalProperties": false}, "peerStories": {"title": "peerStories", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerStories"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "max_read_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "stories": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}, "x-tl-type": "Vector<StoryItem>"}}, "required": ["_", "peer", "stories"], "additionalProperties": false}, "stories.peerStories": {"title": "stories.peerStories", "description": "[Активный список историй](https://core.telegram.org/api/stories.md#watching-stories) конкретного сверстника.", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.peerStories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.peerStories"]}, "stories": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "Истории", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "stories", "chats", "users"], "additionalProperties": false}, "messages.webPage": {"title": "messages.webPage", "description": "Представляет веб-страницу мгновенного просмотра.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.webPage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.webPage"]}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "Веб-страница мгновенного просмотра.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые на веб-странице.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые на веб-странице.", "x-telegram-field-docs": true}}, "required": ["_", "webpage", "chats", "users"], "additionalProperties": false}, "premiumGiftCodeOption": {"title": "premiumGiftCodeOption", "description": "Содержит информацию о опции [раздача/подарок](https://core.telegram.org/api/giveaways.md)].", "externalDocs": {"url": "https://core.telegram.org/constructor/premiumGiftCodeOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premiumGiftCodeOption"]}, "users": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество пользователей, которые смогут активировать подарочные коды.", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность в месяцах каждой подаренной подписки [Telegram Premium](https://core.telegram.org/api/premium.md).", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "Идентификатор продукта магазина, связанного с опцией, только официальные приложения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "store_quantity": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Сколько раз товар магазина должен быть оплачен", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "users", "months", "currency", "amount"], "additionalProperties": false}, "payments.checkedGiftCode": {"title": "payments.checkedGiftCode", "description": "Содержит информацию о [ссылка на подарочный код Telegram Premium](https://core.telegram.org/api/links.md#premium-giftcode-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkedGiftCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkedGiftCode"]}, "via_giveaway": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Был ли этот подарочный код создан пользователем [giveaway](https://core.telegram.org/api/giveaways.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Узел, создавший подарочный код.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Peer"}, "giveaway_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения о розыгрыше в канале, указанном в `from_id`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "to_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Целевой пользователь подарка.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата создания подарочного кода.", "x-telegram-field-docs": true}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Продолжительность подаренной подписки Telegram Premium, в днях.", "x-telegram-field-docs": true}, "used_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда был импортирован подарочный код, если он был импортирован.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "date", "days", "chats", "users"], "additionalProperties": false}, "payments.giveawayInfo": {"title": "payments.giveawayInfo", "description": "Содержит информацию о продолжающейся розыгрыше [розыгрыша](https://core.telegram.org/api/giveaways.md).\n\nЕсли ни один из флагов `participating`, `joined_too_early_date`, `admin_disallowed_chat_id` или `disallowed_country` не установлен, пользователь в данный момент не участвует в розыгрыше, но может принять участие, присоединившись ко всем каналам, указанным в поле [messageMediaGiveaway](https://core.telegram.org/constructor/messageMediaGiveaway.md).`channels`.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.giveawayInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.giveawayInfo"]}, "participating": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Текущий пользователь участвует в розыгрыше.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "preparing_results": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, раздача завершена и результаты подготавливаются.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда начался розыгрыш", "x-telegram-field-docs": true}, "joined_too_early_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущий пользователь не может участвовать в розыгрыше, поскольку он уже был участником канала на момент начала розыгрыша, а при запуске розыгрыша был установлен `only_new_subscribers`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "admin_disallowed_chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Если установлено, текущий пользователь не может участвовать в розыгрыше, поскольку он является администратором одного из каналов (идентификатор, указанный в этом флаге), создавшего розыгрыш.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "disallowed_country": {"type": "string", "x-tl-type": "string", "description": "Если установлено, текущий пользователь не может участвовать в этой розыгрыше, поскольку его номер телефона находится в указанной запрещенной стране (указанной в виде двухбуквенного кода страны ISO 3166-1 альфа-2).", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}}, "required": ["_", "start_date"], "additionalProperties": false}, "payments.giveawayInfoResults": {"title": "payments.giveawayInfoResults", "description": "Акция [розыгрыш](https://core.telegram.org/api/giveaways.md) завершилась.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.giveawayInfoResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.giveawayInfoResults"]}, "winner": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Являемся ли мы одними из победителей этого розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Был ли розыгрыш отменен и был ли он полностью возвращен.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата начала розыгрыша", "x-telegram-field-docs": true}, "gift_code_slug": {"type": "string", "x-tl-type": "string", "description": "Если мы являемся одним из победителей этого розыгрыша, содержащего [код подарка премиум-класса](https://core.telegram.org/api/links.md#premium-giftcode-links), см. [здесь »](https://core.telegram.org/api/giveaways.md) для получения дополнительной информации о полном потоке розыгрыша.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "stars_prize": {"type": "string", "pattern": "^-?\\d+$", "description": "Если мы являемся одним из победителей этой [раздачи Telegram Star](https://core.telegram.org/api/giveaways.md#star-giveaways), то число [Telegram Stars](https://core.telegram.org/api/stars.md), которое мы выиграли.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?long"}, "finish_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата окончания розыгрыша. Может быть больше даты окончания, указанной в параметрах розыгрыша.", "x-telegram-field-docs": true}, "winners_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество победителей в розыгрыше", "x-telegram-field-docs": true}, "activated_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество победителей, активировавших свои [подарочные коды](https://core.telegram.org/api/links.md#premium-giftcode-links).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}}, "required": ["_", "start_date", "finish_date", "winners_count"], "additionalProperties": false}, "prepaidGiveaway": {"title": "prepaidGiveaway", "type": "object", "properties": {"_": {"type": "string", "enum": ["prepaidGiveaway"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "months", "quantity", "date"], "additionalProperties": false}, "prepaidStarsGiveaway": {"title": "prepaidStarsGiveaway", "type": "object", "properties": {"_": {"type": "string", "enum": ["prepaidStarsGiveaway"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "stars", "quantity", "boosts", "date"], "additionalProperties": false}, "boost": {"title": "boost", "type": "object", "properties": {"_": {"type": "string", "enum": ["boost"]}, "gift": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "giveaway": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "unclaimed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "id": {"type": "string", "x-tl-type": "string"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "giveaway_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "used_gift_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "multiplier": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.6?long"}}, "required": ["_", "id", "date", "expires"], "additionalProperties": false}, "premium.boostsList": {"title": "premium.boostsList", "description": "Список [повышений](https://core.telegram.org/api/boost.md), которые были применены к одноранговому узлу несколькими пользователями.", "externalDocs": {"url": "https://core.telegram.org/constructor/premium.boostsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premium.boostsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов", "x-telegram-field-docs": true}, "boosts": {"type": "array", "items": {"type": "object", "x-tl-type": "Boost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["boost"]}}, "description": "Тип TL: Boost."}, "x-tl-type": "Vector<Boost>", "description": "[Усиление](https://core.telegram.org/api/boost.md)", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение, которое можно использовать для [нумерации страниц](https://core.telegram.org/api/offsets.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "count", "boosts", "users"], "additionalProperties": false}, "myBoost": {"title": "myBoost", "type": "object", "properties": {"_": {"type": "string", "enum": ["myBoost"]}, "slot": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "cooldown_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "slot", "date", "expires"], "additionalProperties": false}, "premium.myBoosts": {"title": "premium.myBoosts", "description": "Список пиров, которых мы в настоящее время [продвигаем](https://core.telegram.org/api/boost.md), и сколько [слотов повышения](https://core.telegram.org/api/boost.md) у нас осталось.", "externalDocs": {"url": "https://core.telegram.org/constructor/premium.myBoosts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premium.myBoosts"]}, "my_boosts": {"type": "array", "items": {"type": "object", "x-tl-type": "MyBoost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["myBoost"]}}, "description": "Тип TL: MyBoost."}, "x-tl-type": "Vector<MyBoost>", "description": "Информация об усиленных узлах и оставшихся слотах повышения.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Связанные чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "my_boosts", "chats", "users"], "additionalProperties": false}, "premium.boostsStatus": {"title": "premium.boostsStatus", "description": "Содержит информацию о текущем [статусе повышения](https://core.telegram.org/api/boost.md) узла.", "externalDocs": {"url": "https://core.telegram.org/constructor/premium.boostsStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premium.boostsStatus"]}, "my_boost": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Независимо от того, раскручиваем ли мы в данный момент этот канал/супергруппу, также будет установлено `my_boost_slots`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "level": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущий уровень усиления канала/супергруппы.", "x-telegram-field-docs": true}, "current_level_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество усилений, полученных на текущем уровне.", "x-telegram-field-docs": true}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество полученных на данный момент усилений.", "x-telegram-field-docs": true}, "gift_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество бонусов, полученных от созданных Telegram Premium [подарочные коды](https://core.telegram.org/api/giveaways.md) и [розыгрыши](https://core.telegram.org/api/giveaways.md); возвращается только администраторам канала/супергруппы.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "next_level_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество усилений, необходимое для достижения следующего уровня; если его нет, следующий уровень недоступен.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "premium_audience": {"type": "object", "x-tl-type": "StatsPercentValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsPercentValue"]}}, "description": "Возвращается только администраторам канала/супергруппы: содержит приблизительное количество Премиум-пользователей, подписанных на канал/супергруппу, относительно общего количества подписчиков.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?StatsPercentValue"}, "boost_url": {"type": "string", "x-tl-type": "string", "description": "[Boost deep link»](https://core.telegram.org/api/links.md#boost-links), которую можно использовать для продвижения чата.", "x-telegram-field-docs": true}, "prepaid_giveaways": {"type": "array", "items": {"type": "object", "x-tl-type": "PrepaidGiveaway", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["prepaidGiveaway", "prepaidStarsGiveaway"]}}, "description": "Тип TL: PrepaidGiveaway."}, "x-tl-type": "Vector<PrepaidGiveaway>", "description": "Список предоплаченных [розыгрышей](https://core.telegram.org/api/giveaways.md), доступных для чата; возвращается только администраторам канала/супергруппы.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<PrepaidGiveaway>"}, "my_boost_slots": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Указывает, какой из наших [слотов повышения](https://core.telegram.org/api/boost.md) мы назначили этому узлу (заполняется, если установлено `my_boost`).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<int>"}}, "required": ["_", "level", "current_level_boosts", "boosts", "boost_url"], "additionalProperties": false}, "storyFwdHeader": {"title": "storyFwdHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyFwdHeader"]}, "modified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "from": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "from_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "postInteractionCountersMessage": {"title": "postInteractionCountersMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["postInteractionCountersMessage"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reactions": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "msg_id", "views", "forwards", "reactions"], "additionalProperties": false}, "postInteractionCountersStory": {"title": "postInteractionCountersStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["postInteractionCountersStory"]}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reactions": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "story_id", "views", "forwards", "reactions"], "additionalProperties": false}, "stats.storyStats": {"title": "stats.storyStats", "description": "Содержит [статистику](https://core.telegram.org/api/stats.md) о [истории](https://core.telegram.org/api/stories.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.storyStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.storyStats"]}, "views_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График, показывающий количество просмотров и репостов историй.", "x-telegram-field-docs": true}, "reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "Гистограмма, содержащая количество реакций на историю, сгруппированных по «эмоциям» (i.e. Положительные, Негативные, Другие и т. д.).", "x-telegram-field-docs": true}}, "required": ["_", "views_graph", "reactions_by_emotion_graph"], "additionalProperties": false}, "publicForwardMessage": {"title": "publicForwardMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["publicForwardMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "publicForwardStory": {"title": "publicForwardStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["publicForwardStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer", "story"], "additionalProperties": false}, "stats.publicForwards": {"title": "stats.publicForwards", "description": "Содержит информацию о пересылках [истории](https://core.telegram.org/api/stories.md) в виде сообщений в публичные чаты и репостов по публичным каналам.", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.publicForwards"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.publicForwards"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов", "x-telegram-field-docs": true}, "forwards": {"type": "array", "items": {"type": "object", "x-tl-type": "PublicForward", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["publicForwardMessage", "publicForwardStory"]}}, "description": "Тип TL: PublicForward."}, "x-tl-type": "Vector<PublicForward>", "description": "Информация о продолжении истории.", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение, используемое для [нумерации страниц](https://core.telegram.org/api/offsets.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "count", "forwards", "chats", "users"], "additionalProperties": false}, "peerColor": {"title": "peerColor", "description": "Представляет [цветовую палитру »](https://core.telegram.org/api/colors.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/peerColor"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerColor"]}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Идентификатор цветовой палитры, см. здесь »](https://core.telegram.org/api/colors.md) для получения дополнительной информации; если не установлено, следует использовать палитру по умолчанию.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "background_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Необязательный [пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md), используемый для создания шаблона.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?long"}}, "required": ["_"], "additionalProperties": false}, "peerColorCollectible": {"title": "peerColorCollectible", "description": "Представляет [цветовую палитру »](https://core.telegram.org/api/colors.md), связанную с [коллекционным подарком »](https://core.telegram.org/api/gifts.md#collectible-gifts), дополнительную информацию см. [здесь »](https://core.telegram.org/api/colors.md#collectible-gift-palettes).", "externalDocs": {"url": "https://core.telegram.org/constructor/peerColorCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerColorCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "x-tl-type": "long", "x-telegram-field-docs": true}, "gift_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Идентификатор пользовательского смайлика»](https://core.telegram.org/api/custom-emoji.md) коллекционного подарка: единственная копия этого пользовательского смайлика должна отображаться как есть (без перекрашивания, в отличие от `background_emoji_id`) в правом верхнем углу палитры.", "x-tl-type": "long", "x-telegram-field-docs": true}, "background_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Пользовательский идентификатор смайлика»](https://core.telegram.org/api/custom-emoji.md), используемый для создания шаблона.", "x-tl-type": "long", "x-telegram-field-docs": true}, "accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Цвет акцента в формате RGB24, используемый для фона ответов и имени пользователя в сообщениях.", "x-telegram-field-docs": true}, "colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1–3 RGB24 цвета, которые будут использоваться в полосе ответа.", "x-telegram-field-docs": true}, "dark_accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Цвет акцента в формате RGB24, используемый для фона ответов и имени пользователя в сообщениях в темном режиме (возврат к `accent_color`, если он отсутствует).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "dark_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "1–3 цвета RGB24 для использования в полосе ответа в темном режиме (возврат к `colors`, если отсутствует).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<int>"}}, "required": ["_", "collectible_id", "gift_emoji_id", "background_emoji_id", "accent_color", "colors"], "additionalProperties": false}, "inputPeerColorCollectible": {"title": "inputPeerColorCollectible", "description": "Представляет [цветовую палитру »](https://core.telegram.org/api/colors.md), связанную с [коллекционным подарком »](https://core.telegram.org/api/gifts.md#collectible-gifts), дополнительную информацию см. [здесь »](https://core.telegram.org/api/colors.md#collectible-gift-palettes).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerColorCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerColorCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "collectible_id"], "additionalProperties": false}, "help.peerColorSet": {"title": "help.peerColorSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorSet"]}, "colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "colors"], "additionalProperties": false}, "help.peerColorProfileSet": {"title": "help.peerColorProfileSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorProfileSet"]}, "palette_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "bg_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "story_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "palette_colors", "bg_colors", "story_colors"], "additionalProperties": false}, "help.peerColorOption": {"title": "help.peerColorOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorOption"]}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "color_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "colors": {"type": "object", "x-tl-type": "help.PeerColorSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.peerColorSet", "help.peerColorProfileSet"]}}, "description": "Тип TL: help.PeerColorSet.", "x-tl-flag": "flags.1?help.PeerColorSet"}, "dark_colors": {"type": "object", "x-tl-type": "help.PeerColorSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.peerColorSet", "help.peerColorProfileSet"]}}, "description": "Тип TL: help.PeerColorSet.", "x-tl-flag": "flags.2?help.PeerColorSet"}, "channel_min_level": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "group_min_level": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "color_id"], "additionalProperties": false}, "help.peerColorsNotModified": {"title": "help.peerColorsNotModified", "description": "Список цветовых палитр не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.peerColorsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColorsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.peerColors": {"title": "help.peerColors", "description": "Содержит информацию о нескольких [цветовых палитрах»](https://core.telegram.org/api/colors.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/help.peerColors"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.peerColors"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "colors": {"type": "array", "items": {"type": "object", "x-tl-type": "help.PeerColorOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.peerColorOption"]}}, "description": "Тип TL: help.PeerColorOption."}, "x-tl-type": "Vector<help.PeerColorOption>", "description": "Используемые [цветовые палитры](https://core.telegram.org/api/colors.md).", "x-telegram-field-docs": true}}, "required": ["_", "hash", "colors"], "additionalProperties": false}, "storyReaction": {"title": "storyReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyReaction"]}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}}, "required": ["_", "peer_id", "date", "reaction"], "additionalProperties": false}, "storyReactionPublicForward": {"title": "storyReactionPublicForward", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyReactionPublicForward"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "storyReactionPublicRepost": {"title": "storyReactionPublicRepost", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyReactionPublicRepost"]}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer_id", "story"], "additionalProperties": false}, "stories.storyReactionsList": {"title": "stories.storyReactionsList", "description": "Список коллег, которые отреагировали на конкретную [историю](https://core.telegram.org/api/stories.md) или связались с ней", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.storyReactionsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.storyReactionsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество реакций, соответствующих запросу", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyReaction", "storyReactionPublicForward", "storyReactionPublicRepost"]}}, "description": "Тип TL: StoryReaction."}, "x-tl-type": "Vector<StoryReaction>", "description": "Список сверстников, которые отреагировали на конкретную историю или взаимодействовали с ней", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Если установлено, указывает следующее смещение, которое будет использоваться для загрузки дополнительных результатов путем вызова [stories.getStoryReactionsList](https://core.telegram.org/method/stories.getStoryReactionsList.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "reactions", "chats", "users"], "additionalProperties": false}, "savedDialog": {"title": "savedDialog", "type": "object", "properties": {"_": {"type": "string", "enum": ["savedDialog"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "top_message"], "additionalProperties": false}, "monoForumDialog": {"title": "monoForumDialog", "type": "object", "properties": {"_": {"type": "string", "enum": ["monoForumDialog"]}, "unread_mark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "nopaid_messages_exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage.", "x-tl-flag": "flags.1?DraftMessage"}}, "required": ["_", "peer", "top_message", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "unread_reactions_count"], "additionalProperties": false}, "messages.savedDialogs": {"title": "messages.savedDialogs", "description": "Представляет некоторые [диалоги сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedDialogs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedDialogs"]}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedDialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["savedDialog", "monoForumDialog"]}}, "description": "Тип TL: SavedDialog."}, "x-tl-type": "Vector<SavedDialog>", "description": "[Диалоги сохраненных сообщений »](https://core.telegram.org/api/saved-messages.md).", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список последних сообщений из каждого сохраненного диалога", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.savedDialogsSlice": {"title": "messages.savedDialogsSlice", "description": "Неполный список [сохранённых диалогов сообщений»](https://core.telegram.org/api/saved-messages.md) с сообщениями и вспомогательными данными.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedDialogsSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedDialogsSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество сохраненных диалогов сообщений", "x-telegram-field-docs": true}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedDialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["savedDialog", "monoForumDialog"]}}, "description": "Тип TL: SavedDialog."}, "x-tl-type": "Vector<SavedDialog>", "description": "Список сохраненных диалогов сообщений", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Список последних сообщений из диалогов", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "count", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.savedDialogsNotModified": {"title": "messages.savedDialogsNotModified", "description": "Сохраненные диалоги не изменились", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedDialogsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedDialogsNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество [сохраненных диалогов](https://core.telegram.org/api/saved-messages.md), найденных на стороне сервера по запросу", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "savedReactionTag": {"title": "savedReactionTag", "type": "object", "properties": {"_": {"type": "string", "enum": ["savedReactionTag"]}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "reaction", "count"], "additionalProperties": false}, "messages.savedReactionTagsNotModified": {"title": "messages.savedReactionTagsNotModified", "description": "Список [тег реакции »](https://core.telegram.org/api/saved-messages.md#tags) имен, назначенных пользователем, не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedReactionTagsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedReactionTagsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.savedReactionTags": {"title": "messages.savedReactionTags", "description": "Список [тег реакции »](https://core.telegram.org/api/saved-messages.md#tags) имен, назначенных пользователем.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedReactionTags"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedReactionTags"]}, "tags": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedReactionTag", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["savedReactionTag"]}}, "description": "Тип TL: SavedReactionTag."}, "x-tl-type": "Vector<SavedReactionTag>", "description": "Сохраненные теги реакций.", "x-telegram-field-docs": true}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation). При необходимости также можно регенерировать вручную, используя [пользовательский алгоритм, указанный здесь »](https://core.telegram.org/api/saved-messages.md#tags).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "tags", "hash"], "additionalProperties": false}, "outboxReadDate": {"title": "outboxReadDate", "description": "Точная дата прочтения личного сообщения, которое мы отправили другому пользователю.", "externalDocs": {"url": "https://core.telegram.org/constructor/outboxReadDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["outboxReadDate"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "UNIX временная метка с датой прочтения.", "x-telegram-field-docs": true}}, "required": ["_", "date"], "additionalProperties": false}, "smsjobs.eligibleToJoin": {"title": "smsjobs.eligibleToJoin", "description": "SMS право на работу", "externalDocs": {"url": "https://core.telegram.org/constructor/smsjobs.eligibleToJoin"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsjobs.eligibleToJoin"]}, "terms_url": {"type": "string", "x-tl-type": "string", "description": "Условия обслуживания URL", "x-telegram-field-docs": true}, "monthly_sent_sms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Ежемесячные отправленные СМС", "x-telegram-field-docs": true}}, "required": ["_", "terms_url", "monthly_sent_sms"], "additionalProperties": false}, "smsjobs.status": {"title": "smsjobs.status", "description": "Статус", "externalDocs": {"url": "https://core.telegram.org/constructor/smsjobs.status"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsjobs.status"]}, "allow_international": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Разрешить международные номера", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "recent_sent": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Недавно отправлено", "x-telegram-field-docs": true}, "recent_since": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Поскольку", "x-telegram-field-docs": true}, "recent_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Осталось", "x-telegram-field-docs": true}, "total_sent": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Всего отправлено", "x-telegram-field-docs": true}, "total_since": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Всего с", "x-telegram-field-docs": true}, "last_gift_slug": {"type": "string", "x-tl-type": "string", "description": "Последний подарок, глубокая ссылка", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "terms_url": {"type": "string", "x-tl-type": "string", "description": "Условия обслуживания URL", "x-telegram-field-docs": true}}, "required": ["_", "recent_sent", "recent_since", "recent_remains", "total_sent", "total_since", "terms_url"], "additionalProperties": false}, "smsJob": {"title": "smsJob", "description": "Информация о вакансии SMS.", "externalDocs": {"url": "https://core.telegram.org/constructor/smsJob"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsJob"]}, "job_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор вакансии", "x-telegram-field-docs": true}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Номер телефона пункта назначения", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "Текст", "x-telegram-field-docs": true}}, "required": ["_", "job_id", "phone_number", "text"], "additionalProperties": false}, "businessWeeklyOpen": {"title": "businessWeeklyOpen", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessWeeklyOpen"]}, "start_minute": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_minute": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "start_minute", "end_minute"], "additionalProperties": false}, "businessWorkHours": {"title": "businessWorkHours", "description": "Указывает набор часов работы Telegram Business](https://core.telegram.org/api/business.md#opening-hours).", "externalDocs": {"url": "https://core.telegram.org/constructor/businessWorkHours"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["businessWorkHours"]}, "open_now": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Игнорируется, если установлено при вызове [account.updateBusinessWorkHours](https://core.telegram.org/method/account.updateBusinessWorkHours.md), возвращается сервером только в [userFull](https://core.telegram.org/constructor/userFull.md).`business_work_hours`, указывая, открыто ли предприятие в настоящее время в соответствии с текущим временем и значениями в `weekly_open` и `timezone`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "timezone_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор одного из часовых поясов, возвращаемый [help.getTimezonesList](https://core.telegram.org/method/help.getTimezonesList.md).     Идентификатор часового пояса содержит [timezone](https://core.telegram.org/constructor/timezone.md).`id`, удобочитаемое локализованное название часового пояса доступно в [timezone](https://core.telegram.org/constructor/timezone.md).`name`, а поле [timezone](https://core.telegram.org/constructor/timezone.md).`utc_offset` содержит смещение UTC в секундах, которое может отображаться клиентом в формате чч:мм вместе с удобочитаемым именем. (i.e. `$name UTC -01:00`).", "x-telegram-field-docs": true}, "weekly_open": {"type": "array", "items": {"type": "object", "x-tl-type": "BusinessWeeklyOpen", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessWeeklyOpen"]}}, "description": "Тип TL: BusinessWeeklyOpen."}, "x-tl-type": "Vector<BusinessWeeklyOpen>", "description": "Список временных интервалов (максимум 28), представленных [businessWeeklyOpen »](https://core.telegram.org/constructor/businessWeeklyOpen.md), с указанием часов работы их предприятий.", "x-telegram-field-docs": true}}, "required": ["_", "timezone_id", "weekly_open"], "additionalProperties": false}, "businessLocation": {"title": "businessLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessLocation"]}, "geo_point": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint.", "x-tl-flag": "flags.0?GeoPoint"}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "address"], "additionalProperties": false}, "inputBusinessRecipients": {"title": "inputBusinessRecipients", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.4?Vector<InputUser>"}}, "required": ["_"], "additionalProperties": false}, "businessRecipients": {"title": "businessRecipients", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.4?Vector<long>"}}, "required": ["_"], "additionalProperties": false}, "businessAwayMessageScheduleAlways": {"title": "businessAwayMessageScheduleAlways", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleAlways"]}}, "required": ["_"], "additionalProperties": false}, "businessAwayMessageScheduleOutsideWorkHours": {"title": "businessAwayMessageScheduleOutsideWorkHours", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleOutsideWorkHours"]}}, "required": ["_"], "additionalProperties": false}, "businessAwayMessageScheduleCustom": {"title": "businessAwayMessageScheduleCustom", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleCustom"]}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "start_date", "end_date"], "additionalProperties": false}, "inputBusinessGreetingMessage": {"title": "inputBusinessGreetingMessage", "description": "Описывает [Деловое приветствие Telegram](https://core.telegram.org/api/business.md#greeting-messages), которое автоматически отправляется новым пользователям, пишущим нам лично в первый раз или после определенного периода бездействия.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessGreetingMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessGreetingMessage"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор [ярлыка быстрого ответа, содержащего приветственные сообщения для отправки, см. здесь » для получения дополнительной информации](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-telegram-field-docs": true}, "recipients": {"type": "object", "x-tl-type": "InputBusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBusinessRecipients"]}}, "description": "Разрешенные получатели приветственных сообщений.", "x-telegram-field-docs": true}, "no_activity_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество дней, по истечении которых приватный чат будет считаться неактивным; в настоящее время должно быть одним из 7, 14, 21 или 28.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut_id", "recipients", "no_activity_days"], "additionalProperties": false}, "businessGreetingMessage": {"title": "businessGreetingMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessGreetingMessage"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "recipients": {"type": "object", "x-tl-type": "BusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}}, "description": "Тип TL: BusinessRecipients."}, "no_activity_days": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id", "recipients", "no_activity_days"], "additionalProperties": false}, "inputBusinessAwayMessage": {"title": "inputBusinessAwayMessage", "description": "Описывает [сообщение Telegram Business out](https://core.telegram.org/api/business.md#away-messages), которое автоматически отправляется пользователям, пишущим нам, когда мы не в сети, в часы закрытия, когда мы в отпуске или в какой-либо другой настраиваемый период времени, когда мы не можем немедленно ответить пользователю.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessAwayMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessAwayMessage"]}, "offline_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, сообщения не будут отправляться, если учетная запись была онлайн в течение последних 10 минут.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор [ярлыка быстрого ответа, содержащего сообщения об отсутствии для отправки, см. здесь » для получения дополнительной информации](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "x-telegram-field-docs": true}, "schedule": {"type": "object", "x-tl-type": "BusinessAwayMessageSchedule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleAlways", "businessAwayMessageScheduleOutsideWorkHours", "businessAwayMessageScheduleCustom"]}}, "description": "Указывает, когда следует отправлять сообщения об отсутствии.", "x-telegram-field-docs": true}, "recipients": {"type": "object", "x-tl-type": "InputBusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBusinessRecipients"]}}, "description": "Разрешенные получатели удаленных сообщений.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut_id", "schedule", "recipients"], "additionalProperties": false}, "businessAwayMessage": {"title": "businessAwayMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessage"]}, "offline_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "schedule": {"type": "object", "x-tl-type": "BusinessAwayMessageSchedule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleAlways", "businessAwayMessageScheduleOutsideWorkHours", "businessAwayMessageScheduleCustom"]}}, "description": "Тип TL: BusinessAwayMessageSchedule."}, "recipients": {"type": "object", "x-tl-type": "BusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}}, "description": "Тип TL: BusinessRecipients."}}, "required": ["_", "shortcut_id", "schedule", "recipients"], "additionalProperties": false}, "timezone": {"title": "timezone", "type": "object", "properties": {"_": {"type": "string", "enum": ["timezone"]}, "id": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}, "utc_offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "name", "utc_offset"], "additionalProperties": false}, "help.timezonesListNotModified": {"title": "help.timezonesListNotModified", "description": "Список часовых поясов не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/help.timezonesListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.timezonesListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.timezonesList": {"title": "help.timezonesList", "description": "Информация о часовом поясе, которую можно использовать в других местах API, например, для установки [Часы работы Telegram Business »](https://core.telegram.org/api/business.md#opening-hours).", "externalDocs": {"url": "https://core.telegram.org/constructor/help.timezonesList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.timezonesList"]}, "timezones": {"type": "array", "items": {"type": "object", "x-tl-type": "Timezone", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["timezone"]}}, "description": "Тип TL: Timezone."}, "x-tl-type": "Vector<Timezone>", "description": "Часовые пояса", "x-telegram-field-docs": true}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}}, "required": ["_", "timezones", "hash"], "additionalProperties": false}, "quickReply": {"title": "quickReply", "type": "object", "properties": {"_": {"type": "string", "enum": ["quickReply"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "shortcut": {"type": "string", "x-tl-type": "string"}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id", "shortcut", "top_message", "count"], "additionalProperties": false}, "inputQuickReplyShortcut": {"title": "inputQuickReplyShortcut", "description": "Выбирает [ярлык быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts) по имени.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputQuickReplyShortcut"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputQuickReplyShortcut"]}, "shortcut": {"type": "string", "x-tl-type": "string", "description": "Имя ярлыка.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut"], "additionalProperties": false}, "inputQuickReplyShortcutId": {"title": "inputQuickReplyShortcutId", "description": "Выбирает [ярлык быстрого ответа](https://core.telegram.org/api/business.md#quick-reply-shortcuts) по его числовому идентификатору.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputQuickReplyShortcutId"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputQuickReplyShortcutId"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор ярлыка.", "x-telegram-field-docs": true}}, "required": ["_", "shortcut_id"], "additionalProperties": false}, "messages.quickReplies": {"title": "messages.quickReplies", "description": "Информация о [ярлыках быстрого ответа»](https://core.telegram.org/api/business.md#quick-reply-shortcuts).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.quickReplies"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.quickReplies"]}, "quick_replies": {"type": "array", "items": {"type": "object", "x-tl-type": "QuickReply", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["quickReply"]}}, "description": "Тип TL: QuickReply."}, "x-tl-type": "Vector<QuickReply>", "description": "Ярлыки быстрого ответа.", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "Сообщения, упомянутые в `quick_replies`.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "quick_replies", "messages", "chats", "users"], "additionalProperties": false}, "messages.quickRepliesNotModified": {"title": "messages.quickRepliesNotModified", "description": "Информация о [ярлыках быстрого ответа»](https://core.telegram.org/api/business.md#quick-reply-shortcuts) не изменилась.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.quickRepliesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.quickRepliesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "connectedBot": {"title": "connectedBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["connectedBot"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "recipients": {"type": "object", "x-tl-type": "BusinessBotRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessBotRecipients"]}}, "description": "Тип TL: BusinessBotRecipients."}, "rights": {"type": "object", "x-tl-type": "BusinessBotRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}}, "description": "Тип TL: BusinessBotRights."}, "device": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "location": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "bot_id", "recipients", "rights"], "additionalProperties": false}, "account.connectedBots": {"title": "account.connectedBots", "description": "Информация о подключенных в настоящее время [бизнес-ботах](https://core.telegram.org/api/bots/connected-business-bots.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/account.connectedBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.connectedBots"]}, "connected_bots": {"type": "array", "items": {"type": "object", "x-tl-type": "ConnectedBot", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["connectedBot"]}}, "description": "Тип TL: ConnectedBot."}, "x-tl-type": "Vector<ConnectedBot>", "description": "Информация о подключенных ботах", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о боте", "x-telegram-field-docs": true}}, "required": ["_", "connected_bots", "users"], "additionalProperties": false}, "messages.dialogFilters": {"title": "messages.dialogFilters", "description": "[Папки и теги папок](https://core.telegram.org/api/folders.md) информация", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogFilters"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogFilters"]}, "tags_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Включены ли [теги папок](https://core.telegram.org/api/folders.md#folder-tags).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "filters": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "Тип TL: DialogFilter."}, "x-tl-type": "Vector<DialogFilter>", "description": "Папки.", "x-telegram-field-docs": true}}, "required": ["_", "filters"], "additionalProperties": false}, "birthday": {"title": "birthday", "description": "[День рождения](https://core.telegram.org/api/profile.md#birthday)информация для пользователя.\n\nТакже используется для приглашения пользователей подарить [подписку Telegram Premium »](https://core.telegram.org/api/premium.md#gifting-telegram-premium) другим пользователям, дни рождения которых находятся в диапазоне +1/-1 день, относящемся к текущему дню.", "externalDocs": {"url": "https://core.telegram.org/constructor/birthday"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["birthday"]}, "day": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "День рождения", "x-telegram-field-docs": true}, "month": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Месяц рождения", "x-telegram-field-docs": true}, "year": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "(Необязательно) год рождения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "day", "month"], "additionalProperties": false}, "botBusinessConnection": {"title": "botBusinessConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["botBusinessConnection"]}, "disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "connection_id": {"type": "string", "x-tl-type": "string"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rights": {"type": "object", "x-tl-type": "BusinessBotRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}}, "description": "Тип TL: BusinessBotRights.", "x-tl-flag": "flags.2?BusinessBotRights"}}, "required": ["_", "connection_id", "user_id", "dc_id", "date"], "additionalProperties": false}, "inputBusinessIntro": {"title": "inputBusinessIntro", "description": "[Введение в Telegram Business»](https://core.telegram.org/api/business.md#business-introduction).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessIntro"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessIntro"]}, "title": {"type": "string", "x-tl-type": "string", "description": "Название вступительного сообщения", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "Введение в профиль", "x-telegram-field-docs": true}, "sticker": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Дополнительное введение [наклейка](https://core.telegram.org/api/stickers.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputDocument"}}, "required": ["_", "title", "description"], "additionalProperties": false}, "businessIntro": {"title": "businessIntro", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessIntro"]}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "sticker": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document.", "x-tl-flag": "flags.0?Document"}}, "required": ["_", "title", "description"], "additionalProperties": false}, "messages.myStickers": {"title": "messages.myStickers", "description": "Список [наборов стикеров, принадлежащих текущему аккаунту »](https://core.telegram.org/api/stickers.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.myStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.myStickers"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество принадлежащих наборов наклеек.", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "Тип TL: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "Наборы стикеров", "x-telegram-field-docs": true}}, "required": ["_", "count", "sets"], "additionalProperties": false}, "inputCollectibleUsername": {"title": "inputCollectibleUsername", "description": "Представляет собой [коллекционный фрагмент имени пользователя](https://core.telegram.org/api/fragment.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCollectibleUsername"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCollectibleUsername"]}, "username": {"type": "string", "x-tl-type": "string", "description": "Имя пользователя", "x-telegram-field-docs": true}}, "required": ["_", "username"], "additionalProperties": false}, "inputCollectiblePhone": {"title": "inputCollectiblePhone", "description": "Представляет собой [коллекционный фрагмент номера телефона](https://core.telegram.org/api/fragment.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCollectiblePhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCollectiblePhone"]}, "phone": {"type": "string", "x-tl-type": "string", "description": "Номер телефона", "x-telegram-field-docs": true}}, "required": ["_", "phone"], "additionalProperties": false}, "fragment.collectibleInfo": {"title": "fragment.collectibleInfo", "description": "Информация о [фрагменте коллекционного предмета](https://core.telegram.org/api/fragment.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/fragment.collectibleInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["fragment.collectibleInfo"]}, "purchase_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата покупки (unixtime)", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный номер ISO 4217 [код валюты ](https://core.telegram.org/bots/payments.md#supported-currencies) для `amount`", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}, "crypto_currency": {"type": "string", "x-tl-type": "string", "description": "Название криптовалюты.", "x-telegram-field-docs": true}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Цена в наименьших единицах криптовалюты.", "x-tl-type": "long", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "[Фрагмент](https://fragment.com) URL с дополнительной информацией о предмете коллекционирования", "x-telegram-field-docs": true}}, "required": ["_", "purchase_date", "currency", "amount", "crypto_currency", "crypto_amount", "url"], "additionalProperties": false}, "inputBusinessBotRecipients": {"title": "inputBusinessBotRecipients", "description": "Указывает частные чаты, с которыми может взаимодействовать [подключенный бизнес-бот »](https://core.telegram.org/api/bots/connected-business-bots.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessBotRecipients"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessBotRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Выбирает все существующие приватные чаты.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Выбирает все новые частные чаты.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Выбирает все приватные чаты с контактами.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Выбирает все приватные чаты без контактов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, то выбираются все приватные чаты, *кроме* выбранных `existing_chats`, `new_chats`, `contacts`, `non_contacts` и `users`.  Обратите внимание: если этот флаг установлен, любые значения, переданные в `exclude_users`, будут объединены и перемещены сервером в `users`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Явно выбранные приватные чаты.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<InputUser>"}, "exclude_users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Идентификаторы приватных чатов, которые всегда исключаются.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<InputUser>"}}, "required": ["_"], "additionalProperties": false}, "businessBotRecipients": {"title": "businessBotRecipients", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessBotRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.4?Vector<long>"}, "exclude_users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.6?Vector<long>"}}, "required": ["_"], "additionalProperties": false}, "contactBirthday": {"title": "contactBirthday", "type": "object", "properties": {"_": {"type": "string", "enum": ["contactBirthday"]}, "contact_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "Тип TL: Birthday."}}, "required": ["_", "contact_id", "birthday"], "additionalProperties": false}, "contacts.contactBirthdays": {"title": "contacts.contactBirthdays", "description": "Информация о днях рождения наших контактов.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.contactBirthdays"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.contactBirthdays"]}, "contacts": {"type": "array", "items": {"type": "object", "x-tl-type": "ContactBirthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["contactBirthday"]}}, "description": "Тип TL: ContactBirthday."}, "x-tl-type": "Vector<ContactBirthday>", "description": "Информация о дне рождения", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о пользователе", "x-telegram-field-docs": true}}, "required": ["_", "contacts", "users"], "additionalProperties": false}, "missingInvitee": {"title": "missingInvitee", "type": "object", "properties": {"_": {"type": "string", "enum": ["missingInvitee"]}, "premium_would_allow_invite": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "premium_required_for_pm": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "messages.invitedUsers": {"title": "messages.invitedUsers", "description": "Содержит информацию об успешно или неуспешно [приглашенных »](https://core.telegram.org/api/invites.md#direct-invites) пользователях.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.invitedUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.invitedUsers"]}, "updates": {"type": "object", "x-tl-type": "Updates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage"]}}, "description": "Список обновлений об успешно приглашенных пользователях (и, в конечном итоге, информация о созданной группе)", "x-telegram-field-docs": true}, "missing_invitees": {"type": "array", "items": {"type": "object", "x-tl-type": "MissingInvitee", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["missingInvitee"]}}, "description": "Тип TL: MissingInvitee."}, "x-tl-type": "Vector<MissingInvitee>", "description": "Список пользователей, которых не удалось пригласить, а также причину, по которой их не удалось пригласить.", "x-telegram-field-docs": true}}, "required": ["_", "updates", "missing_invitees"], "additionalProperties": false}, "inputBusinessChatLink": {"title": "inputBusinessChatLink", "description": "Содержит информацию о [глубинной ссылке на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links), которая будет создана текущей учетной записью.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessChatLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessChatLink"]}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение для предварительного заполнения поля ввода сообщения.", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}, "title": {"type": "string", "x-tl-type": "string", "description": "Читаемое человеком название ссылки для упрощения управления в пользовательском интерфейсе (видно только создателю ссылки).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "message"], "additionalProperties": false}, "businessChatLink": {"title": "businessChatLink", "description": "Содержит информацию о [глубинной ссылке на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links), созданной текущей учетной записью.", "externalDocs": {"url": "https://core.telegram.org/constructor/businessChatLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["businessChatLink"]}, "link": {"type": "string", "x-tl-type": "string", "description": "[Глубокая ссылка на бизнес-чат](https://core.telegram.org/api/links.md#business-chat-links).", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение для предварительного заполнения поля ввода сообщения.", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}, "title": {"type": "string", "x-tl-type": "string", "description": "Читаемое человеком название ссылки для упрощения управления в пользовательском интерфейсе (видно только создателю ссылки).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Сколько раз ссылка была разрешена (нажата/сканирована/и т. д.).", "x-telegram-field-docs": true}}, "required": ["_", "link", "message", "views"], "additionalProperties": false}, "account.businessChatLinks": {"title": "account.businessChatLinks", "description": "Содержит информацию о [глубинных ссылках на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links), созданных текущей учетной записью.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.businessChatLinks"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.businessChatLinks"]}, "links": {"type": "array", "items": {"type": "object", "x-tl-type": "BusinessChatLink", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessChatLink"]}}, "description": "Тип TL: BusinessChatLink."}, "x-tl-type": "Vector<BusinessChatLink>", "description": "Ссылки", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "links", "chats", "users"], "additionalProperties": false}, "account.resolvedBusinessChatLinks": {"title": "account.resolvedBusinessChatLinks", "description": "Содержит информацию об одной решенной [глубинной ссылке на бизнес-чат »](https://core.telegram.org/api/business.md#business-chat-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/account.resolvedBusinessChatLinks"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.resolvedBusinessChatLinks"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Целевой узел", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "Сообщение для предварительного заполнения поля ввода сообщения.", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[Объекты сообщений для стилизованного текста](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "peer", "message", "chats", "users"], "additionalProperties": false}, "requestedPeerUser": {"title": "requestedPeerUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestedPeerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "first_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "last_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "user_id"], "additionalProperties": false}, "requestedPeerChat": {"title": "requestedPeerChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestedPeerChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "requestedPeerChannel": {"title": "requestedPeerChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestedPeerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "sponsoredMessageReportOption": {"title": "sponsoredMessageReportOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["sponsoredMessageReportOption"]}, "text": {"type": "string", "x-tl-type": "string"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "text", "option"], "additionalProperties": false}, "channels.sponsoredMessageReportResultChooseOption": {"title": "channels.sponsoredMessageReportResultChooseOption", "description": "Пользователь должен выбрать опцию отчета из локализованных опций, доступных в `options`, и после выбора [messages.reportSponsoredMessage](https://core.telegram.org/method/messages.reportSponsoredMessage.md) необходимо вызвать снова, передав поле `option` опции в параметр `option` метода.", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sponsoredMessageReportResultChooseOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sponsoredMessageReportResultChooseOption"]}, "title": {"type": "string", "x-tl-type": "string", "description": "Название всплывающего окна выбора опции.", "x-telegram-field-docs": true}, "options": {"type": "array", "items": {"type": "object", "x-tl-type": "SponsoredMessageReportOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sponsoredMessageReportOption"]}}, "description": "Тип TL: SponsoredMessageReportOption."}, "x-tl-type": "Vector<SponsoredMessageReportOption>", "description": "Локализованный список опций.", "x-telegram-field-docs": true}}, "required": ["_", "title", "options"], "additionalProperties": false}, "channels.sponsoredMessageReportResultAdsHidden": {"title": "channels.sponsoredMessageReportResultAdsHidden", "description": "Рекламные сообщения были скрыты для пользователя во всех чатах.", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sponsoredMessageReportResultAdsHidden"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sponsoredMessageReportResultAdsHidden"]}}, "required": ["_"], "additionalProperties": false}, "channels.sponsoredMessageReportResultReported": {"title": "channels.sponsoredMessageReportResultReported", "description": "Спонсорское сообщение было успешно отправлено.", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sponsoredMessageReportResultReported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sponsoredMessageReportResultReported"]}}, "required": ["_"], "additionalProperties": false}, "reactionNotificationsFromContacts": {"title": "reactionNotificationsFromContacts", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts"]}}, "required": ["_"], "additionalProperties": false}, "reactionNotificationsFromAll": {"title": "reactionNotificationsFromAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromAll"]}}, "required": ["_"], "additionalProperties": false}, "reactionsNotifySettings": {"title": "reactionsNotifySettings", "description": "Настройки уведомлений о реакциях см. [здесь »](https://core.telegram.org/api/reactions.md#notifications-about-reactions) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionsNotifySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionsNotifySettings"]}, "messages_notify_from": {"type": "object", "x-tl-type": "ReactionNotificationsFrom", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts", "reactionNotificationsFromAll"]}}, "description": "Настройки уведомлений о реакциях на сообщения, если они не установлены, полностью отключают уведомления/обновления о реакциях на сообщения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?ReactionNotificationsFrom"}, "stories_notify_from": {"type": "object", "x-tl-type": "ReactionNotificationsFrom", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts", "reactionNotificationsFromAll"]}}, "description": "Настройки уведомлений о реакциях историй, если они не установлены, полностью отключают уведомления/обновления о реакциях на истории.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?ReactionNotificationsFrom"}, "poll_votes_notify_from": {"type": "object", "x-tl-type": "ReactionNotificationsFrom", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts", "reactionNotificationsFromAll"]}}, "description": "[Неанонимное голосование по опросу»](https://core.telegram.org/api/poll.md#unread-poll-votes) настройки уведомлений, если не установлено, полностью отключает уведомления/обновления о голосах, поданных в неанонимных опросах пользователя.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?ReactionNotificationsFrom"}, "sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "[Звук уведомлений о реакциях »](https://core.telegram.org/api/ringtones.md)", "x-telegram-field-docs": true}, "show_previews": {"type": "boolean", "x-tl-type": "Bool", "description": "Если установлено значение false, [push-уведомления »](https://core.telegram.org/api/push-updates.md) о реакции на сообщение/историю будут иметь только тип `REACT_HIDDEN`/`REACT_STORY_HIDDEN`, без какой-либо информации об истории, на которую отреагировали, или самой реакции.", "x-telegram-field-docs": true}}, "required": ["_", "sound", "show_previews"], "additionalProperties": false}, "availableEffect": {"title": "availableEffect", "type": "object", "properties": {"_": {"type": "string", "enum": ["availableEffect"]}, "premium_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticon": {"type": "string", "x-tl-type": "string"}, "static_icon_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "effect_sticker_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "effect_animation_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "required": ["_", "id", "emoticon", "effect_sticker_id"], "additionalProperties": false}, "messages.availableEffectsNotModified": {"title": "messages.availableEffectsNotModified", "description": "Полный список доступных [эффектов анимированных сообщений»](https://core.telegram.org/api/effects.md) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableEffectsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableEffectsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.availableEffects": {"title": "messages.availableEffects", "description": "Полный список доступных для использования [эффектов анимированных сообщений»](https://core.telegram.org/api/effects.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableEffects"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableEffects"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "effects": {"type": "array", "items": {"type": "object", "x-tl-type": "AvailableEffect", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["availableEffect"]}}, "description": "Тип TL: AvailableEffect."}, "x-tl-type": "Vector<AvailableEffect>", "description": "Эффекты сообщений", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Документы указаны в конструкторах `effects`.", "x-telegram-field-docs": true}}, "required": ["_", "hash", "effects", "documents"], "additionalProperties": false}, "factCheck": {"title": "factCheck", "description": "Представляет собой [проверку фактов»](https://core.telegram.org/api/factcheck.md), созданную независимой проверкой фактов.", "externalDocs": {"url": "https://core.telegram.org/constructor/factCheck"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["factCheck"]}, "need_check": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, поля `country`/`text` **не** будут установлены, и проверка фактов должна быть получена клиентом вручную (если она еще не кэширована с ключом, указанным в `hash`) с использованием связанных запросов [messages.getFactCheck](https://core.telegram.org/method/messages.getFactCheck.md), когда сообщение с проверкой фактов прокручивается в поле зрения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "country": {"type": "string", "x-tl-type": "string", "description": "Двухбуквенный код ISO 3166-1 альфа-2 страны, для которой должна быть показана проверка фактов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Проверка фактов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "hash"], "additionalProperties": false}, "starsTransactionPeerUnsupported": {"title": "starsTransactionPeerUnsupported", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerAppStore": {"title": "starsTransactionPeerAppStore", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAppStore"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerPlayMarket": {"title": "starsTransactionPeerPlayMarket", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerPlayMarket"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerPremiumBot": {"title": "starsTransactionPeerPremiumBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerPremiumBot"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerFragment": {"title": "starsTransactionPeerFragment", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerFragment"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeer": {"title": "starsTransactionPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "starsTransactionPeerAds": {"title": "starsTransactionPeerAds", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAds"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerAPI": {"title": "starsTransactionPeerAPI", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAPI"]}}, "required": ["_"], "additionalProperties": false}, "starsTopupOption": {"title": "starsTopupOption", "description": "[Вариант пополнения Telegram Stars](https://core.telegram.org/api/stars.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsTopupOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTopupOption"]}, "extended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, опция должна отображаться только в полном списке опций пополнения счета.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество звезд Telegram.", "x-tl-type": "long", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "Идентификатор продукта магазина, связанного с опцией, только официальные приложения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Цена продукта в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars", "currency", "amount"], "additionalProperties": false}, "starsTransaction": {"title": "starsTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransaction"]}, "refund": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "failed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "gift": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "reaction": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "stargift_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.18?true"}, "business_transfer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "stargift_resale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.22?true"}, "posts_search": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "stargift_prepaid_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true"}, "stargift_drop_original_details": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "phonegroup_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "stargift_auction_bid": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "offer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "id": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "StarsTransactionPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerUnsupported", "starsTransactionPeerAppStore", "starsTransactionPeerPlayMarket", "starsTransactionPeerPremiumBot", "starsTransactionPeerFragment", "starsTransactionPeer", "starsTransactionPeerAds", "starsTransactionPeerAPI"]}}, "description": "Тип TL: StarsTransactionPeer."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.2?WebDocument"}, "transaction_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "transaction_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "bot_payload": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.7?bytes"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.8?int"}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia."}, "x-tl-type": "Vector<MessageMedia>", "x-tl-flag": "flags.9?Vector<MessageMedia>"}, "subscription_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.12?int"}, "giveaway_post_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.13?int"}, "stargift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift.", "x-tl-flag": "flags.14?StarGift"}, "floodskip_number": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "starref_commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.16?int"}, "starref_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.17?Peer"}, "starref_amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount.", "x-tl-flag": "flags.17?StarsAmount"}, "paid_messages": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.19?int"}, "premium_gift_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int"}, "ads_proceeds_from_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.23?int"}, "ads_proceeds_to_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.23?int"}}, "required": ["_", "id", "amount", "date", "peer"], "additionalProperties": false}, "payments.starsStatus": {"title": "payments.starsStatus", "description": "Информация о текущих [подписках, балансе и истории транзакций Telegram Star»](https://core.telegram.org/api/stars.md#balance-and-transaction-history).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsStatus"]}, "balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Текущий баланс Telegram Star.", "x-telegram-field-docs": true}, "subscriptions": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsSubscription", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsSubscription"]}}, "description": "Тип TL: StarsSubscription."}, "x-tl-type": "Vector<StarsSubscription>", "description": "Информация о текущих подписках Telegram Star возвращается только при вызове [payments.getStarsTransactions](https://core.telegram.org/method/payments.getStarsTransactions.md) и [payments.getStarsSubscriptions](https://core.telegram.org/method/payments.getStarsSubscriptions.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<StarsSubscription>"}, "subscriptions_next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц подписок: можно использовать и возвращается только при вызове [payments.getStarsSubscriptions](https://core.telegram.org/method/payments.getStarsSubscriptions.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "subscriptions_missing_balance": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество Telegram Stars, которое пользователь должен купить, чтобы иметь возможность продлить истекшие подписки в ближайшее время (i.e. Текущего баланса недостаточно для продления всех истекших подписок).", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?long"}, "history": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsTransaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsTransaction"]}}, "description": "Тип TL: StarsTransaction."}, "x-tl-type": "Vector<StarsTransaction>", "description": "Список транзакций Telegram Star (частичный, если установлен `next_offset`).", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<StarsTransaction>"}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение, которое нужно использовать для получения дополнительных транзакций из истории транзакций с помощью [payments.getStarsTransactions](https://core.telegram.org/method/payments.getStarsTransactions.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в `history`.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в `history`.", "x-telegram-field-docs": true}}, "required": ["_", "balance", "chats", "users"], "additionalProperties": false}, "foundStory": {"title": "foundStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["foundStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer", "story"], "additionalProperties": false}, "stories.foundStories": {"title": "stories.foundStories", "description": "Истории, найденные с помощью [глобального поиска историй »](https://core.telegram.org/api/stories.md#searching-stories).", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.foundStories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.foundStories"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов, найденных по запросу.", "x-telegram-field-docs": true}, "stories": {"type": "array", "items": {"type": "object", "x-tl-type": "FoundStory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["foundStory"]}}, "description": "Тип TL: FoundStory."}, "x-tl-type": "Vector<FoundStory>", "description": "Соответствующие истории.", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение используется для загрузки следующей страницы. Если оно не установлено, это последняя страница.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}}, "required": ["_", "count", "stories", "chats", "users"], "additionalProperties": false}, "geoPointAddress": {"title": "geoPointAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["geoPointAddress"]}, "country_iso2": {"type": "string", "x-tl-type": "string"}, "state": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "city": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "street": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "country_iso2"], "additionalProperties": false}, "starsRevenueStatus": {"title": "starsRevenueStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsRevenueStatus"]}, "withdrawal_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "current_balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "available_balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "overall_revenue": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "next_withdrawal_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "current_balance", "available_balance", "overall_revenue"], "additionalProperties": false}, "payments.starsRevenueStats": {"title": "payments.starsRevenueStats", "description": "[Статистика доходов звезд см. здесь »](https://core.telegram.org/api/stars.md) для получения дополнительной информации.\n\nОбратите внимание, что все балансы, суммы в валюте и значения графиков указаны в звездах.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsRevenueStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsRevenueStats"]}, "top_hours_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "Для статистики доходов от рекламы используйте график показов рекламы.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?StatsGraph"}, "revenue_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График звездного дохода (количество заработанных звезд)", "x-telegram-field-docs": true}, "status": {"type": "object", "x-tl-type": "StarsRevenueStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRevenueStatus"]}}, "description": "Текущий баланс, текущий выводимый баланс и общее количество заработанных Telegram Stars", "x-telegram-field-docs": true}, "usd_rate": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Текущий коэффициент конверсии Telegram Stars в USD", "x-telegram-field-docs": true}}, "required": ["_", "revenue_graph", "status", "usd_rate"], "additionalProperties": false}, "payments.starsRevenueWithdrawalUrl": {"title": "payments.starsRevenueWithdrawalUrl", "description": "Содержит URL, который можно использовать для [вывода доходов Telegram Star](https://core.telegram.org/api/stars.md#withdrawing-revenue).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsRevenueWithdrawalUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsRevenueWithdrawalUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "Содержит URL, который можно использовать для [вывода доходов Telegram Star](https://core.telegram.org/api/stars.md#withdrawing-revenue).", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "payments.starsRevenueAdsAccountUrl": {"title": "payments.starsRevenueAdsAccountUrl", "description": "Содержит URL, ведущую на страницу, где пользователь сможет размещать рекламу канала/бота, оплачивая его с помощью [Telegram Stars](https://core.telegram.org/api/stars.md#paying-for-ads).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsRevenueAdsAccountUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsRevenueAdsAccountUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL, чтобы открыть.", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "inputStarsTransaction": {"title": "inputStarsTransaction", "description": "Используется для получения информации о [транзакции Telegram Star »](https://core.telegram.org/api/stars.md#balance-and-transaction-history).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStarsTransaction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStarsTransaction"]}, "refund": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, извлекается информация о транзакции возврата для этой транзакции.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор транзакции.", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "starsGiftOption": {"title": "starsGiftOption", "description": "[Вариант подарка Telegram Stars](https://core.telegram.org/api/stars.md#buying-or-gifting-stars).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsGiftOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsGiftOption"]}, "extended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, опция должна отображаться только в полном списке опций пополнения счета.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество звезд Telegram.", "x-tl-type": "long", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "Идентификатор продукта магазина, связанного с опцией, только официальные приложения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Цена продукта в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars", "currency", "amount"], "additionalProperties": false}, "bots.popularAppBots": {"title": "bots.popularAppBots", "description": "Популярные [Основные мини-приложения](https://core.telegram.org/api/bots/webapps.md#main-mini-apps), которые можно использовать на вкладке [приложения глобального поиска»](https://core.telegram.org/api/search.md#apps-tab).", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.popularAppBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.popularAppBots"]}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Боты, связанные с каждым [основным мини-приложением, см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-apps) для получения дополнительной информации.", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "botPreviewMedia": {"title": "botPreviewMedia", "description": "Представляет собой [медиа для предварительного просмотра основного мини-приложения, дополнительную информацию см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).", "externalDocs": {"url": "https://core.telegram.org/constructor/botPreviewMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botPreviewMedia"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Когда этот носитель последний раз обновлялся.", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Настоящее фото/видео.", "x-telegram-field-docs": true}}, "required": ["_", "date", "media"], "additionalProperties": false}, "bots.previewInfo": {"title": "bots.previewInfo", "description": "Содержит информацию о [превью главного мини-приложения, дополнительную информацию см. здесь »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews).", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.previewInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.previewInfo"]}, "media": {"type": "array", "items": {"type": "object", "x-tl-type": "BotPreviewMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botPreviewMedia"]}}, "description": "Тип TL: BotPreviewMedia."}, "x-tl-type": "Vector<BotPreviewMedia>", "description": "Все медиафайлы предварительного просмотра для кода языка переданы в [bots.getPreviewInfo](https://core.telegram.org/method/bots.getPreviewInfo.md).", "x-telegram-field-docs": true}, "lang_codes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "Все доступные коды языков, для которых были загружены медиафайлы предварительного просмотра (независимо от кода языка, переданного в [bots.getPreviewInfo](https://core.telegram.org/method/bots.getPreviewInfo.md)).", "x-telegram-field-docs": true}}, "required": ["_", "media", "lang_codes"], "additionalProperties": false}, "starsSubscriptionPricing": {"title": "starsSubscriptionPricing", "description": "Стоимость [подписки на Telegram Star»](https://core.telegram.org/api/invites.md#paid-invite-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsSubscriptionPricing"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsSubscriptionPricing"]}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Пользователь должен платить `amount` звезд каждые `period` секунды, чтобы получить и сохранить доступ к каналу.  В настоящее время единственным разрешенным периодом подписки является `30*24*60*60`, i.e. с пользователя будет списываться сумма звезд каждый месяц.", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Стоимость подписки в Telegram Stars.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "period", "amount"], "additionalProperties": false}, "starsSubscription": {"title": "starsSubscription", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsSubscription"]}, "canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_refulfill": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "missing_balance": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "bot_canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "id": {"type": "string", "x-tl-type": "string"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pricing": {"type": "object", "x-tl-type": "StarsSubscriptionPricing", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsSubscriptionPricing"]}}, "description": "Тип TL: StarsSubscriptionPricing."}, "chat_invite_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.5?WebDocument"}, "invoice_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}}, "required": ["_", "id", "peer", "until_date", "pricing"], "additionalProperties": false}, "messageReactor": {"title": "messageReactor", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReactor"]}, "top": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "anonymous": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.3?Peer"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "count"], "additionalProperties": false}, "starsGiveawayOption": {"title": "starsGiveawayOption", "description": "Содержит информацию о опции [Раздача Telegram Star](https://core.telegram.org/api/giveaways.md#star-giveaways).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsGiveawayOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsGiveawayOption"]}, "extended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, этот параметр должен отображаться только в полном списке вариантов раздачи (i.e. Они должны быть добавлены в список только тогда, когда пользователь нажимает кнопку развертывания).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если этот параметр установлен, этот параметр должен быть предварительно выбран по умолчанию в списке параметров.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество Telegram Stars, которое будет распределено между победителями", "x-tl-type": "long", "x-telegram-field-docs": true}, "yearly_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Сколько раз чат будет усилен в течение одного года, если установлен флаг [inputStorePaymentStarsGiveaway](https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway.md).`boost_peer`", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "Идентификатор продукта магазина, связанного с опцией, только официальные приложения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies)", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Общая цена в наименьших единицах валюты (целое, а не плавающее/двойное). Например, по цене `US$ 1.45` пройдите `amount = 145`. См. параметр exp в [currencies.json](https://core.telegram.org/bots/payments/currencies.json), он показывает количество цифр после десятичной точки для каждой валюты (2 для большинства валют).", "x-tl-type": "long", "x-telegram-field-docs": true}, "winners": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsGiveawayWinnersOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsGiveawayWinnersOption"]}}, "description": "Тип TL: StarsGiveawayWinnersOption."}, "x-tl-type": "Vector<StarsGiveawayWinnersOption>", "description": "Допускаются варианты количества победителей розыгрыша.", "x-telegram-field-docs": true}}, "required": ["_", "stars", "yearly_boosts", "currency", "amount", "winners"], "additionalProperties": false}, "starsGiveawayWinnersOption": {"title": "starsGiveawayWinnersOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsGiveawayWinnersOption"]}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "users": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "per_user_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "users", "per_user_stars"], "additionalProperties": false}, "starGift": {"title": "starGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGift"]}, "limited": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "sold_out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "birthday": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "limited_per_user": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "peer_color_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "auction": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "new": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "sticker": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "availability_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "availability_total": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "availability_resale": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "convert_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "first_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "last_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "upgrade_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "resell_min_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "released_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.6?Peer"}, "per_user_total": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.8?int"}, "per_user_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.8?int"}, "locked_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "auction_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.11?string"}, "gifts_per_round": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "auction_start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "upgrade_variants": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.12?int"}, "background": {"type": "object", "x-tl-type": "StarGiftBackground", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftBackground"]}}, "description": "Тип TL: StarGiftBackground.", "x-tl-flag": "flags.13?StarGiftBackground"}}, "required": ["_", "id", "sticker", "stars", "convert_stars"], "additionalProperties": false}, "starGiftUnique": {"title": "starGiftUnique", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftUnique"]}, "require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "resale_ton_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "theme_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "burned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "crafted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true"}, "onchain_sale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "fixed_sale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "my_sale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "offer_min_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "fee_bps": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "slug": {"type": "string", "x-tl-type": "string"}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "owner_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "owner_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "owner_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>"}, "availability_issued": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "availability_total": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "gift_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "resell_amount": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "x-tl-type": "Vector<StarsAmount>", "x-tl-flag": "flags.4?Vector<StarsAmount>"}, "released_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.5?Peer"}, "value_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "value_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.8?string"}, "value_usd_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "theme_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.10?Peer"}, "peer_color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags.11?PeerColor"}, "host_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.12?Peer"}, "offer_min_stars": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.13?int"}, "craft_chance_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.16?int"}}, "required": ["_", "id", "gift_id", "title", "slug", "num", "attributes", "availability_issued", "availability_total"], "additionalProperties": false}, "payments.starGiftsNotModified": {"title": "payments.starGiftsNotModified", "description": "Список доступных [подарков»](https://core.telegram.org/api/gifts.md) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "payments.starGifts": {"title": "payments.starGifts", "description": "В наличии [подарки»](https://core.telegram.org/api/gifts.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGifts"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "gifts": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "x-tl-type": "Vector<StarGift>", "description": "Список доступных подарков.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в поле `gifts`.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в поле `gifts`.", "x-telegram-field-docs": true}}, "required": ["_", "hash", "gifts", "chats", "users"], "additionalProperties": false}, "messageReportOption": {"title": "messageReportOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReportOption"]}, "text": {"type": "string", "x-tl-type": "string"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "text", "option"], "additionalProperties": false}, "reportResultChooseOption": {"title": "reportResultChooseOption", "description": "Пользователь должен выбрать одну из следующих опций, а затем [messages.report](https://core.telegram.org/method/messages.report.md) необходимо повторно вызвать, передав идентификатор опции `option` в [messages.report](https://core.telegram.org/method/messages.report.md).`option`.", "externalDocs": {"url": "https://core.telegram.org/constructor/reportResultChooseOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reportResultChooseOption"]}, "title": {"type": "string", "x-tl-type": "string", "description": "Название всплывающего окна с опцией", "x-telegram-field-docs": true}, "options": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageReportOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReportOption"]}}, "description": "Тип TL: MessageReportOption."}, "x-tl-type": "Vector<MessageReportOption>", "description": "Доступные параметры, представленные в виде пунктов меню.", "x-telegram-field-docs": true}}, "required": ["_", "title", "options"], "additionalProperties": false}, "reportResultAddComment": {"title": "reportResultAddComment", "description": "Пользователь должен ввести дополнительный комментарий для модераторов, а затем необходимо повторно вызвать [messages.report](https://core.telegram.org/method/messages.report.md), передав комментарий [messages.report](https://core.telegram.org/method/messages.report.md).`message`.", "externalDocs": {"url": "https://core.telegram.org/constructor/reportResultAddComment"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reportResultAddComment"]}, "optional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли пользователь пропустить этот шаг, передав пустой `message` в [messages.report](https://core.telegram.org/method/messages.report.md), или непустой `message` является обязательным.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Метод [messages.report](https://core.telegram.org/method/messages.report.md) необходимо вызвать повторно, передав эту опцию в `option`.", "x-telegram-field-docs": true}}, "required": ["_", "option"], "additionalProperties": false}, "reportResultReported": {"title": "reportResultReported", "description": "Отчет успешно отправлен, дальнейших действий не требуется.", "externalDocs": {"url": "https://core.telegram.org/constructor/reportResultReported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reportResultReported"]}}, "required": ["_"], "additionalProperties": false}, "messages.botPreparedInlineMessage": {"title": "messages.botPreparedInlineMessage", "description": "Представляет собой [подготовленное встроенное сообщение, сохраненное ботом, для отправки пользователю через веб-приложение »](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botPreparedInlineMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botPreparedInlineMessage"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор сохраненного сообщения, который будет передан в поле `id` события [web_app_send_prepared_message »](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)", "x-telegram-field-docs": true}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Срок действия сообщения", "x-telegram-field-docs": true}}, "required": ["_", "id", "expire_date"], "additionalProperties": false}, "messages.preparedInlineMessage": {"title": "messages.preparedInlineMessage", "description": "Представляет собой [подготовленное встроенное сообщение, полученное через мини-приложение бота, которое можно отправить в некоторые чаты »](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.preparedInlineMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.preparedInlineMessage"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "`query_id` для перехода к [messages.sendInlineBotResult](https://core.telegram.org/method/messages.sendInlineBotResult.md)", "x-tl-type": "long", "x-telegram-field-docs": true}, "result": {"type": "object", "x-tl-type": "BotInlineResult", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInlineResult", "botInlineMediaResult"]}}, "description": "Содержимое сообщения, которое будет показано в предварительном просмотре", "x-telegram-field-docs": true}, "peer_types": {"type": "array", "items": {"type": "object", "x-tl-type": "InlineQueryPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM", "inlineQueryPeerTypePM", "inlineQueryPeerTypeChat", "inlineQueryPeerTypeMegagroup", "inlineQueryPeerTypeBroadcast", "inlineQueryPeerTypeBotPM"]}}, "description": "Тип TL: InlineQueryPeerType."}, "x-tl-type": "Vector<InlineQueryPeerType>", "description": "Типы чатов, куда можно отправить это сообщение", "x-telegram-field-docs": true}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Кэширование достоверности результатов", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в результатах", "x-telegram-field-docs": true}}, "required": ["_", "query_id", "result", "peer_types", "cache_time", "users"], "additionalProperties": false}, "botAppSettings": {"title": "botAppSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["botAppSettings"]}, "placeholder_path": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "background_dark_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "header_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "header_dark_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_"], "additionalProperties": false}, "starRefProgram": {"title": "starRefProgram", "description": "Информация о [партнерской программе, предлагаемой ботом](https://core.telegram.org/api/bots/referrals.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/starRefProgram"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starRefProgram"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ID бота, предлагающего программу", "x-tl-type": "long", "x-telegram-field-docs": true}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Партнер получает комиссию в размере [starRefProgram](https://core.telegram.org/constructor/starRefProgram.md).`commission_permille`‰ [Telegram Stars](https://core.telegram.org/api/stars.md)] за каждую транзакцию в мини-приложении, совершенную пользователями, которых он пригласил.", "x-telegram-field-docs": true}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Партнер получает комиссию за каждую транзакцию в мини-приложении, совершенную привлеченными им пользователями, в течение `duration_months` месяцев после импорта реферальной ссылки при первом запуске бота.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Момент времени (временная метка Unix), когда партнерская программа будет закрыта (необязательно, если не установлено, закрытие партнерской программы не запланировано)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "daily_revenue_per_user": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Сумма ежедневного дохода с одного пользователя в Telegram Stars бота, создавшего партнёрскую программу.  Чтобы получить приблизительный доход на одного привлеченного пользователя, умножьте это значение на `commission_permille` и разделите на `1000`.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?StarsAmount"}}, "required": ["_", "bot_id", "commission_permille"], "additionalProperties": false}, "connectedBotStarRef": {"title": "connectedBotStarRef", "type": "object", "properties": {"_": {"type": "string", "enum": ["connectedBotStarRef"]}, "revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "participants": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "revenue": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "url", "date", "bot_id", "commission_permille", "participants", "revenue"], "additionalProperties": false}, "payments.connectedStarRefBots": {"title": "payments.connectedStarRefBots", "description": "Активный [филиалы](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.connectedStarRefBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.connectedStarRefBots"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество активных филиалов", "x-telegram-field-docs": true}, "connected_bots": {"type": "array", "items": {"type": "object", "x-tl-type": "ConnectedBotStarRef", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["connectedBotStarRef"]}}, "description": "Тип TL: ConnectedBotStarRef."}, "x-tl-type": "Vector<ConnectedBotStarRef>", "description": "Принадлежности", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Коллеги, упомянутые в `connected_bots`", "x-telegram-field-docs": true}}, "required": ["_", "count", "connected_bots", "users"], "additionalProperties": false}, "payments.suggestedStarRefBots": {"title": "payments.suggestedStarRefBots", "description": "Список предлагаемых [мини-приложений](https://core.telegram.org/api/bots/webapps.md) с доступными [партнерскими программами](https://core.telegram.org/api/bots/referrals.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.suggestedStarRefBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.suggestedStarRefBots"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов (для нумерации страниц)", "x-telegram-field-docs": true}, "suggested_bots": {"type": "array", "items": {"type": "object", "x-tl-type": "StarRefProgram", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starRefProgram"]}}, "description": "Тип TL: StarRefProgram."}, "x-tl-type": "Vector<StarRefProgram>", "description": "Предлагаемые партнерские программы (полный или частичный список можно получить с помощью нумерации страниц)", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Коллеги, упомянутые в `suggested_bots`", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Следующее смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "suggested_bots", "users"], "additionalProperties": false}, "starsAmount": {"title": "starsAmount", "description": "Описывает реальное (i.e. возможно десятичное) количество [Telegram Stars](https://core.telegram.org/api/stars.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsAmount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsAmount"]}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Целое количество Telegram Stars.", "x-tl-type": "long", "x-telegram-field-docs": true}, "nanos": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Десятичное количество звезд Telegram, выраженное в нанозвездах (i.e. 1 нанозвезда равна `1/1_000_000_000`-й (одной миллиардной) звезды Telegram).  Это поле также может быть отрицательным (допустимый диапазон от `-999_999_999` до `999_999_999`).", "x-telegram-field-docs": true}}, "required": ["_", "amount", "nanos"], "additionalProperties": false}, "starsTonAmount": {"title": "starsTonAmount", "description": "Описывает количество граммов в нанограммах (i.e. `1/1_000_000_000` грамма).", "externalDocs": {"url": "https://core.telegram.org/constructor/starsTonAmount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTonAmount"]}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Сумма в нанограммах.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "amount"], "additionalProperties": false}, "messages.foundStickersNotModified": {"title": "messages.foundStickersNotModified", "description": "По указанному запросу не найдено новых стикеров", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickersNotModified"]}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_"], "additionalProperties": false}, "messages.foundStickers": {"title": "messages.foundStickers", "description": "Найдены стикеры", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickers"]}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Смещение для [нумерации страниц](https://core.telegram.org/api/offsets.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш, используемый для кеширования, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Найдены стикеры", "x-telegram-field-docs": true}}, "required": ["_", "hash", "stickers"], "additionalProperties": false}, "botVerifierSettings": {"title": "botVerifierSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["botVerifierSettings"]}, "can_modify_custom_description": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "company": {"type": "string", "x-tl-type": "string"}, "custom_description": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "icon", "company"], "additionalProperties": false}, "botVerification": {"title": "botVerification", "type": "object", "properties": {"_": {"type": "string", "enum": ["botVerification"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "description": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities."}}, "required": ["_", "bot_id", "icon", "description"], "additionalProperties": false}, "starGiftAttributeModel": {"title": "starGiftAttributeModel", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel"]}, "crafted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "name": {"type": "string", "x-tl-type": "string"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "rarity": {"type": "object", "x-tl-type": "StarGiftAttributeRarity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary"]}}, "description": "Тип TL: StarGiftAttributeRarity."}}, "required": ["_", "name", "document", "rarity"], "additionalProperties": false}, "starGiftAttributePattern": {"title": "starGiftAttributePattern", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributePattern"]}, "name": {"type": "string", "x-tl-type": "string"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "rarity": {"type": "object", "x-tl-type": "StarGiftAttributeRarity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary"]}}, "description": "Тип TL: StarGiftAttributeRarity."}}, "required": ["_", "name", "document", "rarity"], "additionalProperties": false}, "starGiftAttributeBackdrop": {"title": "starGiftAttributeBackdrop", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeBackdrop"]}, "name": {"type": "string", "x-tl-type": "string"}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pattern_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rarity": {"type": "object", "x-tl-type": "StarGiftAttributeRarity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary"]}}, "description": "Тип TL: StarGiftAttributeRarity."}}, "required": ["_", "name", "backdrop_id", "center_color", "edge_color", "pattern_color", "text_color", "rarity"], "additionalProperties": false}, "starGiftAttributeOriginalDetails": {"title": "starGiftAttributeOriginalDetails", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeOriginalDetails"]}, "sender_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "recipient_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "recipient_id", "date"], "additionalProperties": false}, "payments.starGiftUpgradePreview": {"title": "payments.starGiftUpgradePreview", "description": "Предварительный просмотр возможных атрибутов (выбранных случайно), которые [подарок »](https://core.telegram.org/api/gifts.md) может получить после улучшения его до [коллекционного подарка »](https://core.telegram.org/api/gifts.md#collectible-gifts), см. [здесь »](https://core.telegram.org/api/gifts.md#collectible-gifts) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftUpgradePreview"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftUpgradePreview"]}, "sample_attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>", "description": "Возможные атрибуты подарка", "x-telegram-field-docs": true}, "prices": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftUpgradePrice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftUpgradePrice"]}}, "description": "Тип TL: StarGiftUpgradePrice."}, "x-tl-type": "Vector<StarGiftUpgradePrice>", "description": "Содержит аналогичный список цен и временных меток обновлений, не такой детальный, как в `next_prices` (i.e. Цены различаются примерно на 1 месяц), который используется в основном для масштабирования графика цен и для отображения более общего будущего обзора цены обновления.", "x-telegram-field-docs": true}, "next_prices": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftUpgradePrice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftUpgradePrice"]}}, "description": "Тип TL: StarGiftUpgradePrice."}, "x-tl-type": "Vector<StarGiftUpgradePrice>", "description": "Содержит текущую цену обновления и список будущих цен, каждая из которых связана с отметкой времени UNIX, которая указывает, когда цена вступает в силу (текущая цена действительна только до тех пор, пока не вступит в силу следующая, и так далее для всех цен в списке).", "x-telegram-field-docs": true}}, "required": ["_", "sample_attributes", "prices", "next_prices"], "additionalProperties": false}, "users.users": {"title": "users.users", "description": "Описывает список пользователей (или ботов).", "externalDocs": {"url": "https://core.telegram.org/constructor/users.users"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.users"]}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "users.usersSlice": {"title": "users.usersSlice", "description": "Описывает неполный список пользователей.", "externalDocs": {"url": "https://core.telegram.org/constructor/users.usersSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.usersSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество пользователей (больше, чем пользователи, указанные в `users`)", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Подгруппа пользователей.", "x-telegram-field-docs": true}}, "required": ["_", "count", "users"], "additionalProperties": false}, "payments.uniqueStarGift": {"title": "payments.uniqueStarGift", "description": "Представляет собой [коллекционный подарок»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.uniqueStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.uniqueStarGift"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Конструктор [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в поле `gift`.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в поле `gift`.", "x-telegram-field-docs": true}}, "required": ["_", "gift", "chats", "users"], "additionalProperties": false}, "messages.webPagePreview": {"title": "messages.webPagePreview", "description": "Представляет предварительный просмотр веб-страницы.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.webPagePreview"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.webPagePreview"]}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "[messageMediaWebPage](https://core.telegram.org/constructor/messageMediaWebPage.md) или [messageMediaEmpty](https://core.telegram.org/constructor/messageMediaEmpty.md), если предварительный просмотр отсутствует.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в поле `gift`.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в объекте `media`.", "x-telegram-field-docs": true}}, "required": ["_", "media", "chats", "users"], "additionalProperties": false}, "savedStarGift": {"title": "savedStarGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["savedStarGift"]}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "unsaved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "can_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "pinned_to_top": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "upgrade_separate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.1?Peer"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.2?TextWithEntities"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "saved_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.11?long"}, "convert_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "upgrade_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.6?long"}, "can_export_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.7?int"}, "transfer_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "can_transfer_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.13?int"}, "can_resell_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.14?int"}, "collection_id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.15?Vector<int>"}, "prepaid_upgrade_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "drop_original_details_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "gift_num": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.19?int"}, "can_craft_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int"}}, "required": ["_", "date", "gift"], "additionalProperties": false}, "payments.savedStarGifts": {"title": "payments.savedStarGifts", "description": "Представляет собой список [подарков](https://core.telegram.org/api/gifts.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.savedStarGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.savedStarGifts"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов (может быть меньше возвращаемого `gifts`, в этом случае будет установлено `next_offset`).", "x-telegram-field-docs": true}, "chat_notifications_enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Тройное значение: может быть не установлено, установлено и истинно, установлено и ложно.  Может быть установлено только для наших каналов: значение указывает, включили ли мы уведомления о подарках](https://core.telegram.org/api/gifts.md#notifications-for-received-channel-gifts) для этого канала.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Bool"}, "gifts": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["savedStarGift"]}}, "description": "Тип TL: SavedStarGift."}, "x-tl-type": "Vector<SavedStarGift>", "description": "Подарки", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для перехода к [payments.getSavedStarGifts](https://core.telegram.org/method/payments.getSavedStarGifts.md) для получения следующей страницы результатов.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Каналы, упомянутые в `gifts`", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в `gifts`", "x-telegram-field-docs": true}}, "required": ["_", "count", "gifts", "chats", "users"], "additionalProperties": false}, "inputSavedStarGiftUser": {"title": "inputSavedStarGiftUser", "description": "Подарок получен в приватном чате с другим пользователем.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSavedStarGiftUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор [messageService](https://core.telegram.org/constructor/messageService.md) с [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md) с подарком.", "x-telegram-field-docs": true}}, "required": ["_", "msg_id"], "additionalProperties": false}, "inputSavedStarGiftChat": {"title": "inputSavedStarGiftChat", "description": "Подарок, полученный нашим каналом.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSavedStarGiftChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftChat"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Канал.", "x-telegram-field-docs": true}, "saved_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор подарка должен быть `saved_id` конструктора [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "saved_id"], "additionalProperties": false}, "inputSavedStarGiftSlug": {"title": "inputSavedStarGiftSlug", "description": "Указывает на [коллекционный подарок, полученный по ссылке на коллекционный подарок »](https://core.telegram.org/api/links.md#collectible-gift-link).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSavedStarGiftSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "Слизняк по ссылке.", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "payments.starGiftWithdrawalUrl": {"title": "payments.starGiftWithdrawalUrl", "description": "URL, который можно использовать для импорта экспортированного NFT во фрагмент.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftWithdrawalUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftWithdrawalUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL, чтобы открыть.", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "paidReactionPrivacyDefault": {"title": "paidReactionPrivacyDefault", "description": "Использует конфиденциальность реакции по умолчанию, установленную с помощью [messages.togglePaidReactionPrivacy](https://core.telegram.org/method/messages.togglePaidReactionPrivacy.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyDefault"]}}, "required": ["_"], "additionalProperties": false}, "paidReactionPrivacyAnonymous": {"title": "paidReactionPrivacyAnonymous", "description": "Отправляйте платные реакции анонимно.", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyAnonymous"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyAnonymous"]}}, "required": ["_"], "additionalProperties": false}, "paidReactionPrivacyPeer": {"title": "paidReactionPrivacyPeer", "description": "Отправляйте платные реакции от имени указанного узла, полученные с помощью [channels.getSendAs](https://core.telegram.org/method/channels.getSendAs.md) с установленным флагом `for_paid_reactions`.", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Узел для отправки реакций как.", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "account.paidMessagesRevenue": {"title": "account.paidMessagesRevenue", "description": "Общее количество невозвращенных [Telegram Stars](https://core.telegram.org/api/stars.md), которые пользователь потратил на отправку нам сообщений напрямую или через канал, см. [здесь »](https://core.telegram.org/api/paid-messages.md) для получения дополнительной информации о платных сообщениях.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.paidMessagesRevenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.paidMessagesRevenue"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Сумма в [Звездах](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount"], "additionalProperties": false}, "requirementToContactEmpty": {"title": "requirementToContactEmpty", "description": "С этим пользователем можно свободно связаться.", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactEmpty"]}}, "required": ["_"], "additionalProperties": false}, "requirementToContactPremium": {"title": "requirementToContactPremium", "description": "Этот пользователь требует, чтобы мы купили подписку [Premium](https://core.telegram.org/api/premium.md), чтобы связаться с ним.", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactPremium"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactPremium"]}}, "required": ["_"], "additionalProperties": false}, "requirementToContactPaidMessages": {"title": "requirementToContactPaidMessages", "description": "Этот пользователь требует, чтобы мы заплатили указанную сумму [Telegram Stars](https://core.telegram.org/api/stars.md), чтобы отправить ему сообщение, см. [здесь »](https://core.telegram.org/api/paid-messages.md) полный текст.", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactPaidMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactPaidMessages"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Необходимое количество [Telegram Stars](https://core.telegram.org/api/stars.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount"], "additionalProperties": false}, "businessBotRights": {"title": "businessBotRights", "description": "[Права бизнес-ботов](https://core.telegram.org/api/bots/connected-business-bots.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/businessBotRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}, "reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот отправлять и редактировать сообщения в приватных чатах, в которые за последние 24 часа поступали сообщения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "read_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот отмечать входящие личные сообщения как прочитанные.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "delete_sent_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот удалять отправленные им сообщения.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "delete_received_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот удалять полученные личные сообщения в управляемых чатах.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "edit_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот редактировать имя и фамилию бизнес-аккаунта.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "edit_bio": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот редактировать биографию бизнес-аккаунта.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "edit_profile_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот редактировать фотографию профиля бизнес-аккаунта.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "edit_username": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот редактировать имя пользователя бизнес-аккаунта.", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "view_gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот просматривать подарки и количество Telegram Stars, принадлежащих бизнес-аккаунту.", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "sell_gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот конвертировать обычные подарки, принадлежащие бизнес-аккаунту, в Telegram Stars.", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "change_gift_settings": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот изменять настройки конфиденциальности, относящиеся к подаркам для бизнес-аккаунта.", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "transfer_and_upgrade_gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот передавать и улучшать подарки, принадлежащие бизнес-аккаунту.", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "transfer_stars": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот передавать Telegram Stars, полученные бизнес-аккаунтом, на свой аккаунт, или использовать их для прокачки и передачи подарков.", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "manage_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Может ли бот публиковать, редактировать и удалять истории от имени бизнес-аккаунта.", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}}, "required": ["_"], "additionalProperties": false}, "disallowedGiftsSettings": {"title": "disallowedGiftsSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["disallowedGiftsSettings"]}, "disallow_unlimited_stargifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "disallow_limited_stargifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "disallow_unique_stargifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "disallow_premium_gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "disallow_stargifts_from_channels": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}}, "required": ["_"], "additionalProperties": false}, "sponsoredPeer": {"title": "sponsoredPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["sponsoredPeer"]}, "random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "sponsor_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "additional_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "random_id", "peer"], "additionalProperties": false}, "contacts.sponsoredPeersEmpty": {"title": "contacts.sponsoredPeersEmpty", "description": "По этому запросу нет спонсируемых аналогов.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.sponsoredPeersEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.sponsoredPeersEmpty"]}}, "required": ["_"], "additionalProperties": false}, "contacts.sponsoredPeers": {"title": "contacts.sponsoredPeers", "description": "Спонсируемые коллеги.", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.sponsoredPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.sponsoredPeers"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "SponsoredPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sponsoredPeer"]}}, "description": "Тип TL: SponsoredPeer."}, "x-tl-type": "Vector<SponsoredPeer>", "description": "Спонсируемые коллеги.", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Информация о спонсируемых чатах и каналах", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Информация о спонсируемых пользователях", "x-telegram-field-docs": true}}, "required": ["_", "peers", "chats", "users"], "additionalProperties": false}, "starGiftAttributeIdModel": {"title": "starGiftAttributeIdModel", "description": "Идентификатор модели [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftAttributeIdModel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdModel"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Наклейка](https://core.telegram.org/api/stickers.md), представляющая улучшенный подарок.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "document_id"], "additionalProperties": false}, "starGiftAttributeIdPattern": {"title": "starGiftAttributeIdPattern", "description": "Идентификатор выкройки [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftAttributeIdPattern"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdPattern"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Наклейка](https://core.telegram.org/api/stickers.md), представляющая символ", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "document_id"], "additionalProperties": false}, "starGiftAttributeIdBackdrop": {"title": "starGiftAttributeIdBackdrop", "description": "Идентификатор фона [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftAttributeIdBackdrop"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdBackdrop"]}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Уникальный идентификатор фона.", "x-telegram-field-docs": true}}, "required": ["_", "backdrop_id"], "additionalProperties": false}, "starGiftAttributeCounter": {"title": "starGiftAttributeCounter", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeCounter"]}, "attribute": {"type": "object", "x-tl-type": "StarGiftAttributeId", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeIdModel", "starGiftAttributeIdPattern", "starGiftAttributeIdBackdrop"]}}, "description": "Тип TL: StarGiftAttributeId."}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "attribute", "count"], "additionalProperties": false}, "payments.resaleStarGifts": {"title": "payments.resaleStarGifts", "description": "Список подарков, которые сейчас продаются в [перепродаже »](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.resaleStarGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.resaleStarGifts"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество результатов.", "x-telegram-field-docs": true}, "gifts": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "x-tl-type": "Vector<StarGift>", "description": "Коллекционные подарки при перепродаже (может быть меньше `count`, в этом случае будет установлено `next_offset`).", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "Смещение для нумерации страниц. Передайте его в [payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`offset`, чтобы получить следующие результаты.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>", "description": "Возможные атрибуты подарка, устанавливаются только если установлено [payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`attributes_hash` (при первом вызове оно должно быть равно `0`).", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<StarGiftAttribute>"}, "attributes_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш поля `attributes`, передайте его в [payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`attributes_hash`, чтобы не возвращать какие-либо атрибуты (флаг не установлен), если они не изменились.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?long"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в атрибутах.", "x-telegram-field-docs": true}, "counters": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttributeCounter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeCounter"]}}, "description": "Тип TL: StarGiftAttributeCounter."}, "x-tl-type": "Vector<StarGiftAttributeCounter>", "description": "Указывает общее количество подарков, имеющих определенный атрибут, устанавливается только в том случае, если [payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`offset` пусто (поскольку это поле относится не к текущей странице результатов, а ко всем из них, оно возвращается только на первой странице).", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<StarGiftAttributeCounter>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в атрибутах.", "x-telegram-field-docs": true}}, "required": ["_", "count", "gifts", "chats", "users"], "additionalProperties": false}, "stories.canSendStoryCount": {"title": "stories.canSendStoryCount", "description": "Содержит количество доступных активных слотов для историй (равное значению [`story_expiring_limit_*` параметра конфигурации клиента](https://core.telegram.org/api/config.md#story-expiring-limit-default) минус количество активных в данный момент историй).", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.canSendStoryCount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.canSendStoryCount"]}, "count_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Оставшиеся активные сюжетные слоты.", "x-telegram-field-docs": true}}, "required": ["_", "count_remains"], "additionalProperties": false}, "pendingSuggestion": {"title": "pendingSuggestion", "type": "object", "properties": {"_": {"type": "string", "enum": ["pendingSuggestion"]}, "suggestion": {"type": "string", "x-tl-type": "string"}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities."}, "description": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities."}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "suggestion", "title", "description", "url"], "additionalProperties": false}, "todoItem": {"title": "todoItem", "description": "Элемент [списка дел »](https://core.telegram.org/api/todo.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/todoItem"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["todoItem"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор элемента, положительное (ненулевое) целое число, уникальное в текущем списке.", "x-telegram-field-docs": true}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Текст элемента, максимальная длина равна [todo_item_length_max »](https://core.telegram.org/api/config.md#todo-item-length-max).", "x-telegram-field-docs": true}}, "required": ["_", "id", "title"], "additionalProperties": false}, "todoList": {"title": "todoList", "type": "object", "properties": {"_": {"type": "string", "enum": ["todoList"]}, "others_can_append": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "others_can_complete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities."}, "list": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoItem"]}}, "description": "Тип TL: TodoItem."}, "x-tl-type": "Vector<TodoItem>"}}, "required": ["_", "title", "list"], "additionalProperties": false}, "todoCompletion": {"title": "todoCompletion", "type": "object", "properties": {"_": {"type": "string", "enum": ["todoCompletion"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "completed_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "completed_by", "date"], "additionalProperties": false}, "suggestedPost": {"title": "suggestedPost", "description": "Содержит информацию о [предлагаемом сообщении »](https://core.telegram.org/api/suggested-posts.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/suggestedPost"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["suggestedPost"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Был ли предложенный пост принят.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "rejected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Был ли предложенный пост отклонен.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Цена предлагаемого поста.", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?StarsAmount"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата планирования.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_"], "additionalProperties": false}, "starsRating": {"title": "starsRating", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsRating"]}, "level": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "current_level_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "next_level_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "level", "current_level_stars", "stars"], "additionalProperties": false}, "starGiftCollection": {"title": "starGiftCollection", "description": "Представляет собой [звездную коллекцию подарков»](https://core.telegram.org/api/gifts.md#gift-collections).", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftCollection"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftCollection"]}, "collection_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор коллекции.", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название сборника.", "x-telegram-field-docs": true}, "icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Дополнительная иконка для коллекции, взятая из первого подарка коллекции.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Document"}, "gifts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество подарков в коллекции.", "x-telegram-field-docs": true}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Поле для использования **вместо `collection_id`** при создании хеша для передачи в [payments.getStarGiftCollections](https://core.telegram.org/method/payments.getStarGiftCollections.md).", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "collection_id", "title", "gifts_count", "hash"], "additionalProperties": false}, "payments.starGiftCollectionsNotModified": {"title": "payments.starGiftCollectionsNotModified", "description": "Список [звездных коллекций подарков»](https://core.telegram.org/api/gifts.md#gift-collections) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftCollectionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftCollectionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "payments.starGiftCollections": {"title": "payments.starGiftCollections", "description": "Представляет собой список [коллекций звездных подарков»](https://core.telegram.org/api/gifts.md#gift-collections).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftCollections"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftCollections"]}, "collections": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftCollection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftCollection"]}}, "description": "Тип TL: StarGiftCollection."}, "x-tl-type": "Vector<StarGiftCollection>", "description": "Звездные подарочные коллекции.", "x-telegram-field-docs": true}}, "required": ["_", "collections"], "additionalProperties": false}, "storyAlbum": {"title": "storyAlbum", "description": "Представляет собой [альбом историй »](https://core.telegram.org/api/stories.md#story-albums).", "externalDocs": {"url": "https://core.telegram.org/constructor/storyAlbum"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["storyAlbum"]}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор альбома.", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Название альбома.", "x-telegram-field-docs": true}, "icon_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Фото из первой истории альбома, если это фото.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Photo"}, "icon_video": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Видео из первой истории альбома, если это видео.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Document"}}, "required": ["_", "album_id", "title"], "additionalProperties": false}, "stories.albumsNotModified": {"title": "stories.albumsNotModified", "description": "[Список альбомов историй »](https://core.telegram.org/api/stories.md#story-albums) не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.albumsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.albumsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "stories.albums": {"title": "stories.albums", "description": "[Альбомы рассказов»](https://core.telegram.org/api/stories.md#story-albums).", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.albums"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.albums"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш для перехода к [stories.getAlbums](https://core.telegram.org/method/stories.getAlbums.md), чтобы не возвращать результаты, если они не изменились.", "x-tl-type": "long", "x-telegram-field-docs": true}, "albums": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryAlbum", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyAlbum"]}}, "description": "Тип TL: StoryAlbum."}, "x-tl-type": "Vector<StoryAlbum>", "description": "Альбомы.", "x-telegram-field-docs": true}}, "required": ["_", "hash", "albums"], "additionalProperties": false}, "searchPostsFlood": {"title": "searchPostsFlood", "description": "Указывает, требует ли указанный [глобальный поиск сообщений »](https://core.telegram.org/api/search.md#posts-tab) оплату.", "externalDocs": {"url": "https://core.telegram.org/constructor/searchPostsFlood"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["searchPostsFlood"]}, "query_is_free": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Указанный запрос является бесплатным (и он **не будет использовать свободные места поиска**).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "total_daily": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество ежедневных бесплатных поисковых мест.", "x-telegram-field-docs": true}, "remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Оставшееся количество свободных мест поиска.", "x-telegram-field-docs": true}, "wait_till": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если слотов поиска больше нет, указывает unixtime, когда будут доступны дополнительные слоты поиска.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Количество [Telegram Stars](https://core.telegram.org/api/stars.md), которое нужно заплатить за каждый небесплатный поиск.", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "total_daily", "remains", "stars_amount"], "additionalProperties": false}, "payments.uniqueStarGiftValueInfo": {"title": "payments.uniqueStarGiftValueInfo", "description": "Информация о стоимости [коллекционного подарка»](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.uniqueStarGiftValueInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.uniqueStarGiftValueInfo"]}, "last_sale_on_fragment": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, последняя продажа была завершена на Fragment.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "value_is_average": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, `value` рассчитывается на основе средней стоимости проданных подарков одного типа. В противном случае цена зависит от продажной цены подарка.", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Трехбуквенный код ISO 4217 [код валюты](https://core.telegram.org/bots/payments.md#supported-currencies) (локализованная бумажная валюта, используемая для представления цен и оценок цен в этом конструкторе).", "x-telegram-field-docs": true}, "value": {"type": "string", "pattern": "^-?\\d+$", "description": "Ориентировочная стоимость подарка в наименьшей единице валюты, указанной в `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true}, "initial_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата первоначальной покупки подарка.", "x-telegram-field-docs": true}, "initial_sale_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Начальная цена покупки в Stars.", "x-tl-type": "long", "x-telegram-field-docs": true}, "initial_sale_price": {"type": "string", "pattern": "^-?\\d+$", "description": "Начальная цена покупки в наименьшей единице валюты, указанной в `currency` (автоматически конвертируется из `initial_sale_stars`).", "x-tl-type": "long", "x-telegram-field-docs": true}, "last_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата последней перепродажи подарка.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "last_sale_price": {"type": "string", "pattern": "^-?\\d+$", "description": "Последняя цена перепродажи в наименьшей единице валюты, указанной в `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "floor_price": {"type": "string", "pattern": "^-?\\d+$", "description": "Текущая минимальная цена коллекционных подарков одного типа в наименьшей единице валюты, указанной в `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "average_price": {"type": "string", "pattern": "^-?\\d+$", "description": "Текущая средняя цена продажи коллекционных подарков одного типа в наименьшей единице валюты, указанной в `currency`.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?long"}, "listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество подарков одного типа, которые сейчас перепродаются в Telegram.", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "fragment_listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество подарков одного типа, которые в настоящее время перепродаются на фрагменте.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "fragment_listed_url": {"type": "string", "x-tl-type": "string", "description": "Фрагментная ссылка на список подарков того же типа, которые в настоящее время перепродаются на фрагменте.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?string"}}, "required": ["_", "currency", "value", "initial_sale_date", "initial_sale_stars", "initial_sale_price"], "additionalProperties": false}, "profileTabPosts": {"title": "profileTabPosts", "description": "Представляет вкладку [истории](https://core.telegram.org/api/stories.md) на странице профиля.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabPosts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabPosts"]}}, "required": ["_"], "additionalProperties": false}, "profileTabGifts": {"title": "profileTabGifts", "description": "Представляет вкладку [подарки](https://core.telegram.org/api/gifts.md) на странице профиля.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabGifts"]}}, "required": ["_"], "additionalProperties": false}, "profileTabMedia": {"title": "profileTabMedia", "description": "Представляет вкладку мультимедиа на странице профиля.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabMedia"]}}, "required": ["_"], "additionalProperties": false}, "profileTabFiles": {"title": "profileTabFiles", "description": "Представляет вкладку «Общие файлы» профиля.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabFiles"]}}, "required": ["_"], "additionalProperties": false}, "profileTabMusic": {"title": "profileTabMusic", "description": "Представляет вкладку [музыка](https://core.telegram.org/api/profile.md#music) на странице профиля.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabMusic"]}}, "required": ["_"], "additionalProperties": false}, "profileTabVoice": {"title": "profileTabVoice", "description": "Представляет вкладку голосовых сообщений на странице профиля.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabVoice"]}}, "required": ["_"], "additionalProperties": false}, "profileTabLinks": {"title": "profileTabLinks", "description": "Представляет вкладку общих ссылок на странице профиля.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabLinks"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabLinks"]}}, "required": ["_"], "additionalProperties": false}, "profileTabGifs": {"title": "profileTabGifs", "description": "Represents the gifs tab of a profile page.", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabGifs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabGifs"]}}, "required": ["_"], "additionalProperties": false}, "users.savedMusicNotModified": {"title": "users.savedMusicNotModified", "description": "Эта подгруппа песен, закрепленная в настоящее время в профиле пользователя, не изменилась, см. [здесь »](https://core.telegram.org/api/profile.md#music) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/users.savedMusicNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.savedMusicNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество песен в профиле пользователя.", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "users.savedMusic": {"title": "users.savedMusic", "description": "Список песен, закрепленных в настоящее время в профиле пользователя, см. [здесь »](https://core.telegram.org/api/profile.md#music) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/users.savedMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.savedMusic"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее количество песен (может быть больше `documents` в зависимости от переданного `limit` и максимального значения по умолчанию `limit`; в этом случае требуется нумерация страниц).", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>", "description": "Песни.", "x-telegram-field-docs": true}}, "required": ["_", "count", "documents"], "additionalProperties": false}, "account.savedMusicIdsNotModified": {"title": "account.savedMusicIdsNotModified", "description": "Список идентификаторов песен ([document](https://core.telegram.org/constructor/document.md).`id`s), закрепленных в настоящее время в нашем профиле, не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedMusicIdsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedMusicIdsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.savedMusicIds": {"title": "account.savedMusicIds", "description": "Список идентификаторов песен ([document](https://core.telegram.org/constructor/document.md).`id`s), закрепленных в настоящее время в нашем профиле, см. [здесь »](https://core.telegram.org/api/profile.md#music) для получения дополнительной информации.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedMusicIds"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedMusicIds"]}, "ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Полный список [документ](https://core.telegram.org/constructor/document.md).`id`s", "x-telegram-field-docs": true}}, "required": ["_", "ids"], "additionalProperties": false}, "payments.checkCanSendGiftResultOk": {"title": "payments.checkCanSendGiftResultOk", "description": "Указанный подарок можно отправить.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkCanSendGiftResultOk"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkCanSendGiftResultOk"]}}, "required": ["_"], "additionalProperties": false}, "payments.checkCanSendGiftResultFail": {"title": "payments.checkCanSendGiftResultFail", "description": "Указанный подарок пока не может быть отправлен по указанной причине.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkCanSendGiftResultFail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkCanSendGiftResultFail"]}, "reason": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Причина, по которой его еще нельзя отправить.", "x-telegram-field-docs": true}}, "required": ["_", "reason"], "additionalProperties": false}, "inputChatThemeEmpty": {"title": "inputChatThemeEmpty", "description": "Удалите любую настроенную тему.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatThemeEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatThemeEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatTheme": {"title": "inputChatTheme", "description": "Установите тему чата на основе смайлов, возвращаемую [account.getChatThemes](https://core.telegram.org/method/account.getChatThemes.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatTheme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatTheme"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Эмодзи.", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputChatThemeUniqueGift": {"title": "inputChatThemeUniqueGift", "description": "Установите тему на основе собственного или [размещенного коллекционного подарка »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), возвращенного [account.getUniqueGiftChatThemes](https://core.telegram.org/method/account.getUniqueGiftChatThemes.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatThemeUniqueGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatThemeUniqueGift"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "Слаг из [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`.", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "starGiftUpgradePrice": {"title": "starGiftUpgradePrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftUpgradePrice"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "upgrade_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "date", "upgrade_stars"], "additionalProperties": false}, "groupCallMessage": {"title": "groupCallMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallMessage"]}, "from_admin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities."}, "paid_message_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "id", "from_id", "date", "message"], "additionalProperties": false}, "groupCallDonor": {"title": "groupCallDonor", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallDonor"]}, "top": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.3?Peer"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "stars"], "additionalProperties": false}, "phone.groupCallStars": {"title": "phone.groupCallStars", "description": "Содержит общую сумму пожертвований прямой трансляции и основных спонсоров, см. [платные пожертвования прямой трансляции »](https://core.telegram.org/api/group-calls.md#paid-live-story-donations).", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCallStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCallStars"]}, "total_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Всего звезд пожертвовано на живую историю", "x-tl-type": "long", "x-telegram-field-docs": true}, "top_donors": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallDonor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDonor"]}}, "description": "Тип TL: GroupCallDonor."}, "x-tl-type": "Vector<GroupCallDonor>", "description": "Лучшие доноры", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Чаты, упомянутые в `top_donors`", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Пользователи, упомянутые в `top_donors`", "x-telegram-field-docs": true}}, "required": ["_", "total_stars", "top_donors", "chats", "users"], "additionalProperties": false}, "recentStory": {"title": "recentStory", "description": "Сводка [активных историй »](https://core.telegram.org/api/stories.md#recent-story-summaries) узла, встроенная в [user](https://core.telegram.org/constructor/user.md).`stories_max_id` и [channel](https://core.telegram.org/constructor/channel.md).`stories_max_id` и возвращенная [stories.getPeerMaxIDs](https://core.telegram.org/method/stories.getPeerMaxIDs.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/recentStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["recentStory"]}, "live": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Транслирует ли узел в данный момент [живую историю»](https://core.telegram.org/api/stories.md#live-stories).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Если установлено `live`, идентификатор активного узла [живая история »](https://core.telegram.org/api/stories.md#live-stories); в противном случае — идентификатор максимальной активной истории узла.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_"], "additionalProperties": false}, "auctionBidLevel": {"title": "auctionBidLevel", "type": "object", "properties": {"_": {"type": "string", "enum": ["auctionBidLevel"]}, "pos": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "pos", "amount", "date"], "additionalProperties": false}, "starGiftAuctionStateNotModified": {"title": "starGiftAuctionStateNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAuctionState": {"title": "starGiftAuctionState", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionState"]}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "min_bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bid_levels": {"type": "array", "items": {"type": "object", "x-tl-type": "AuctionBidLevel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auctionBidLevel"]}}, "description": "Тип TL: AuctionBidLevel."}, "x-tl-type": "Vector<AuctionBidLevel>"}, "top_bidders": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}, "next_round_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "last_gift_num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "gifts_left": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "current_round": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "total_rounds": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rounds": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAuctionRound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRound", "starGiftAuctionRoundExtendable"]}}, "description": "Тип TL: StarGiftAuctionRound."}, "x-tl-type": "Vector<StarGiftAuctionRound>"}}, "required": ["_", "version", "start_date", "end_date", "min_bid_amount", "bid_levels", "top_bidders", "next_round_at", "last_gift_num", "gifts_left", "current_round", "total_rounds", "rounds"], "additionalProperties": false}, "starGiftAuctionStateFinished": {"title": "starGiftAuctionStateFinished", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateFinished"]}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "average_price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "fragment_listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "fragment_listed_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "start_date", "end_date", "average_price"], "additionalProperties": false}, "starGiftAuctionUserState": {"title": "starGiftAuctionUserState", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}, "returned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "bid_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "min_bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "bid_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.0?Peer"}, "acquired_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "acquired_count"], "additionalProperties": false}, "payments.starGiftAuctionState": {"title": "payments.starGiftAuctionState", "description": "Описывает [аукцион коллекционных подарков»](https://core.telegram.org/api/auctions.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftAuctionState"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftAuctionState"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Подарок в настоящее время распространяется на аукционе.", "x-telegram-field-docs": true}, "state": {"type": "object", "x-tl-type": "StarGiftAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified", "starGiftAuctionState", "starGiftAuctionStateFinished"]}}, "description": "Состояние аукциона.", "x-telegram-field-docs": true}, "user_state": {"type": "object", "x-tl-type": "StarGiftAuctionUserState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}}, "description": "Состояние аукциона, связанное с текущим пользователем (i.e. информация о размещенных ставках, выигранных подарках и т. д.).", "x-telegram-field-docs": true}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Повторно вызовите метод [payments.getStarGiftAuctionState](https://core.telegram.org/method/payments.getStarGiftAuctionState.md) через `timeout` секунд, чтобы продолжать получать обновления аукциона, см. [здесь »](https://core.telegram.org/api/auctions.md) для получения дополнительной информации о полном потоке.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}}, "required": ["_", "gift", "state", "user_state", "timeout", "users", "chats"], "additionalProperties": false}, "starGiftAuctionAcquiredGift": {"title": "starGiftAuctionAcquiredGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionAcquiredGift"]}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "round": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pos": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тип TL: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}, "gift_num": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_", "peer", "date", "bid_amount", "round", "pos"], "additionalProperties": false}, "payments.starGiftAuctionAcquiredGifts": {"title": "payments.starGiftAuctionAcquiredGifts", "description": "Описывает все подарки, которые текущий пользователь выиграл на [аукционе](https://core.telegram.org/api/auctions.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftAuctionAcquiredGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftAuctionAcquiredGifts"]}, "gifts": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAuctionAcquiredGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionAcquiredGift"]}}, "description": "Тип TL: StarGiftAuctionAcquiredGift."}, "x-tl-type": "Vector<StarGiftAuctionAcquiredGift>", "description": "Подарки", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}}, "required": ["_", "gifts", "users", "chats"], "additionalProperties": false}, "starGiftActiveAuctionState": {"title": "starGiftActiveAuctionState", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftActiveAuctionState"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "state": {"type": "object", "x-tl-type": "StarGiftAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified", "starGiftAuctionState", "starGiftAuctionStateFinished"]}}, "description": "Тип TL: StarGiftAuctionState."}, "user_state": {"type": "object", "x-tl-type": "StarGiftAuctionUserState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}}, "description": "Тип TL: StarGiftAuctionUserState."}}, "required": ["_", "gift", "state", "user_state"], "additionalProperties": false}, "payments.starGiftActiveAuctionsNotModified": {"title": "payments.starGiftActiveAuctionsNotModified", "description": "Список активных на данный момент [аукционов подарков](https://core.telegram.org/api/auctions.md) **на которых пользователь сделал ставку** не изменился.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftActiveAuctionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftActiveAuctionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "payments.starGiftActiveAuctions": {"title": "payments.starGiftActiveAuctions", "description": "Описывает все активные в настоящий момент [аукционы подарков](https://core.telegram.org/api/auctions.md) **на которых пользователь сделал ставку**.", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftActiveAuctions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftActiveAuctions"]}, "auctions": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftActiveAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftActiveAuctionState"]}}, "description": "Тип TL: StarGiftActiveAuctionState."}, "x-tl-type": "Vector<StarGiftActiveAuctionState>", "description": "Аукционы, на которых пользователь сделал ставку", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "Упомянутые чаты", "x-telegram-field-docs": true}}, "required": ["_", "auctions", "users", "chats"], "additionalProperties": false}, "inputStarGiftAuction": {"title": "inputStarGiftAuction", "description": "Используется для получения [аукционов](https://core.telegram.org/api/auctions.md) с использованием идентификатора связанного [коллекционного подарка](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStarGiftAuction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStarGiftAuction"]}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Коллекционный подарочный ID](https://core.telegram.org/api/gifts.md#collectible-gifts)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "gift_id"], "additionalProperties": false}, "inputStarGiftAuctionSlug": {"title": "inputStarGiftAuctionSlug", "description": "Используется для получения [аукционов](https://core.telegram.org/api/auctions.md) с использованием [фрагмента глубокой ссылки аукциона»](https://core.telegram.org/api/links.md#auction-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStarGiftAuctionSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStarGiftAuctionSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "[Ссылка на глубокую ссылку аукциона »](https://core.telegram.org/api/links.md#auction-links).", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "passkey": {"title": "passkey", "description": "Удобочитаемая информация о ключе доступа, связанном с учетной записью, возвращаемая при [создании ключа доступа »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) или [перечислении ключей доступа »](https://core.telegram.org/api/passkeys.md#list-passkeys).", "externalDocs": {"url": "https://core.telegram.org/constructor/passkey"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["passkey"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Уникальный идентификатор ключа доступа, который можно использовать, например, в [account.deletePasskey](https://core.telegram.org/method/account.deletePasskey.md).", "x-telegram-field-docs": true}, "name": {"type": "string", "x-tl-type": "string", "description": "Удобочитаемое имя пароля", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата создания ключа доступа", "x-telegram-field-docs": true}, "software_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор [пользовательского смайлика](https://core.telegram.org/api/custom-emoji.md), используемого в качестве значка для программного обеспечения или менеджера паролей, создавшего ключ доступа.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "last_usage_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Дата, когда ключ доступа последний раз использовался для входа в систему", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "id", "name", "date"], "additionalProperties": false}, "account.passkeys": {"title": "account.passkeys", "description": "Список [паролей »](https://core.telegram.org/api/passkeys.md#list-passkeys), связанных с текущей учетной записью.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passkeys"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passkeys"]}, "passkeys": {"type": "array", "items": {"type": "object", "x-tl-type": "Passkey", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passkey"]}}, "description": "Тип TL: Passkey."}, "x-tl-type": "Vector<Passkey>", "description": "Список паролей, которые можно использовать для входа в текущую учетную запись", "x-telegram-field-docs": true}}, "required": ["_", "passkeys"], "additionalProperties": false}, "account.passkeyRegistrationOptions": {"title": "account.passkeyRegistrationOptions", "description": "Варианты регистрации пароля см. [здесь »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) для получения дополнительной информации о полном процессе.", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passkeyRegistrationOptions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passkeyRegistrationOptions"]}, "options": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Объект в кодировке JSON, поле `publicKey` которого содержит объект [`PublicKeyCredentialCreationOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions).", "x-telegram-field-docs": true}}, "required": ["_", "options"], "additionalProperties": false}, "auth.passkeyLoginOptions": {"title": "auth.passkeyLoginOptions", "description": "Варианты входа в систему с паролем см. [здесь »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey) для получения дополнительной информации о полном процессе.", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.passkeyLoginOptions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.passkeyLoginOptions"]}, "options": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Объект в кодировке JSON, поле `publicKey` которого содержит объект [`PublicKeyCredentialRequestOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions).", "x-telegram-field-docs": true}}, "required": ["_", "options"], "additionalProperties": false}, "inputPasskeyResponseRegister": {"title": "inputPasskeyResponseRegister", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPasskeyResponseRegister"]}, "client_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}, "attestation_data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "client_data", "attestation_data"], "additionalProperties": false}, "inputPasskeyResponseLogin": {"title": "inputPasskeyResponseLogin", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPasskeyResponseLogin"]}, "client_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}, "authenticator_data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "signature": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "user_handle": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "client_data", "authenticator_data", "signature", "user_handle"], "additionalProperties": false}, "inputPasskeyCredentialPublicKey": {"title": "inputPasskeyCredentialPublicKey", "description": "Учетные данные ключа доступа с открытым ключом, используемые как для регистрации, так и для входа в систему, см. [создание ключа доступа »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) и [вход в систему с помощью ключа доступа »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey) для полных потоков.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPasskeyCredentialPublicKey"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPasskeyCredentialPublicKey"]}, "id": {"type": "string", "x-tl-type": "string", "description": "Поле `id` в [PublicKeyCredential](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential), передается как есть без декодирования base64url при использовании представления JSON", "x-telegram-field-docs": true}, "raw_id": {"type": "string", "x-tl-type": "string", "description": "Поле `rawId` в [PublicKeyCredential](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential), передается как есть без декодирования base64url при использовании представления JSON", "x-telegram-field-docs": true}, "response": {"type": "object", "x-tl-type": "InputPasskeyResponse", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPasskeyResponseRegister", "inputPasskeyResponseLogin"]}}, "description": "Регистрация или ответ на вход.", "x-telegram-field-docs": true}}, "required": ["_", "id", "raw_id", "response"], "additionalProperties": false}, "starGiftBackground": {"title": "starGiftBackground", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftBackground"]}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "center_color", "edge_color", "text_color"], "additionalProperties": false}, "starGiftAuctionRound": {"title": "starGiftAuctionRound", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRound"]}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "num", "duration"], "additionalProperties": false}, "starGiftAuctionRoundExtendable": {"title": "starGiftAuctionRoundExtendable", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRoundExtendable"]}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extend_top": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extend_window": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "num", "duration", "extend_top", "extend_window"], "additionalProperties": false}, "payments.starGiftUpgradeAttributes": {"title": "payments.starGiftUpgradeAttributes", "description": "Список только коллекционных атрибутов, которые могут появиться для типа подарка после его повышения до [коллекционный подарок »](https://core.telegram.org/api/gifts.md#collectible-gifts).", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftUpgradeAttributes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftUpgradeAttributes"]}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>", "description": "Полный список возможных атрибутов, которые могут быть назначены, когда подарки указанного типа превращаются в [коллекционные подарки »](https://core.telegram.org/api/gifts.md#collectible-gifts), включая модели, предназначенные только для крафта, отмеченные [starGiftAttributeModel](https://core.telegram.org/constructor/starGiftAttributeModel.md).`crafted`.", "x-telegram-field-docs": true}}, "required": ["_", "attributes"], "additionalProperties": false}, "messages.emojiGameOutcome": {"title": "messages.emojiGameOutcome", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameOutcome"]}, "seed": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "stake_ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "seed", "stake_ton_amount", "ton_amount"], "additionalProperties": false}, "messages.emojiGameUnavailable": {"title": "messages.emojiGameUnavailable", "description": "Информация об игре в кости.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGameUnavailable"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameUnavailable"]}}, "required": ["_"], "additionalProperties": false}, "messages.emojiGameDiceInfo": {"title": "messages.emojiGameDiceInfo", "description": "Информация об игре в кости.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGameDiceInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameDiceInfo"]}, "game_hash": {"type": "string", "x-tl-type": "string", "description": "Хэш игры.", "x-telegram-field-docs": true}, "prev_stake": {"type": "string", "pattern": "^-?\\d+$", "description": "Предыдущая ставка.", "x-tl-type": "long", "x-telegram-field-docs": true}, "current_streak": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Текущая серия.", "x-telegram-field-docs": true}, "params": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Параметры.", "x-telegram-field-docs": true}, "plays_left": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Играет слева.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "game_hash", "prev_stake", "current_streak", "params"], "additionalProperties": false}, "starGiftAttributeRarity": {"title": "starGiftAttributeRarity", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity"]}, "permille": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "permille"], "additionalProperties": false}, "starGiftAttributeRarityUncommon": {"title": "starGiftAttributeRarityUncommon", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityUncommon"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityRare": {"title": "starGiftAttributeRarityRare", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityRare"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityEpic": {"title": "starGiftAttributeRarityEpic", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityEpic"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityLegendary": {"title": "starGiftAttributeRarityLegendary", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityLegendary"]}}, "required": ["_"], "additionalProperties": false}, "keyboardButtonStyle": {"title": "keyboardButtonStyle", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardButtonStyle"]}, "bg_primary": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bg_danger": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "bg_success": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}}, "required": ["_"], "additionalProperties": false}, "inputMessageReadMetric": {"title": "inputMessageReadMetric", "description": "Прочтите метрику для показа одного сообщения, описывающую, как долго сообщение было видно в окне просмотра чата.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageReadMetric"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageReadMetric"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Идентификатор сообщения", "x-telegram-field-docs": true}, "view_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Для этого воздействия создан случайный ненулевой 64-битный идентификатор.", "x-tl-type": "long", "x-telegram-field-docs": true}, "time_in_view_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Общее время воздействия в миллисекундах хотя бы одного пикселя сообщения после льготного периода входа в 300 мс.", "x-telegram-field-docs": true}, "active_time_in_view_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Часть `time_in_view_ms` накопилась за время активности пользователя", "x-telegram-field-docs": true}, "height_to_viewport_ratio_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "`round(max_message_height * 1000 / max_viewport_height)`, может превышать 1000, если сообщение выше области просмотра.", "x-telegram-field-docs": true}, "seen_range_ratio_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "`round(max_seen_vertical_range * 1000 / max_message_height)`, ограничено диапазоном 0–1000.", "x-telegram-field-docs": true}, "recommendation_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "recommendation_rank": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "recommendation_role": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "surface": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "event_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "msg_id", "view_id", "time_in_view_ms", "active_time_in_view_ms", "height_to_viewport_ratio_permille", "seen_range_ratio_permille"], "additionalProperties": false}, "bots.exportedBotToken": {"title": "bots.exportedBotToken", "description": "Токен бота [управляемого бота »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot), экспортированный ботом-менеджером.", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.exportedBotToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.exportedBotToken"]}, "token": {"type": "string", "x-tl-type": "string", "description": "Токен управляемого бота", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "bots.requestedButton": {"title": "bots.requestedButton", "description": "Содержит идентификатор запроса, который бот должен передать в [мини-приложение](https://core.telegram.org/api/bots/webapps.md) после подготовки кнопки запроса однорангового узла с помощью [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md), дополнительную информацию см. [здесь »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps).", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.requestedButton"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.requestedButton"]}, "webapp_req_id": {"type": "string", "x-tl-type": "string", "description": "Идентификатор запроса мини-приложения, который будет передан ботом в мини-приложение, а затем обратно в [bots.getRequestedWebViewButton](https://core.telegram.org/method/bots.getRequestedWebViewButton.md) и [messages.sendBotRequestedPeer](https://core.telegram.org/method/messages.sendBotRequestedPeer.md)]", "x-telegram-field-docs": true}}, "required": ["_", "webapp_req_id"], "additionalProperties": false}, "messages.composedMessageWithAI": {"title": "messages.composedMessageWithAI", "description": "Представляет сообщение, измененное искусственным интеллектом.", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.composedMessageWithAI"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.composedMessageWithAI"]}, "result_text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Модифицированное сообщение.", "x-telegram-field-docs": true}, "diff_text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Если включен **только** режим корректуры ([messages.composeMessageWithAI](https://core.telegram.org/method/messages.composeMessageWithAI.md).`proofread`), это поле будет заполнено «предварительно визуализированной» разницей между текстом старого и нового сообщения с использованием **только** [diffentities »](https://core.telegram.org/api/entities.md#diff-entities).", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "result_text"], "additionalProperties": false}, "stats.pollStats": {"title": "stats.pollStats", "description": "[Статистика](https://core.telegram.org/api/stats.md#poll-statistics) для опроса, отправленного в сообщении.", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.pollStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.pollStats"]}, "votes_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "График, показывающий количество голосов, поданных в опросе, с течением времени.", "x-telegram-field-docs": true}}, "required": ["_", "votes_graph"], "additionalProperties": false}, "inputAiComposeToneDefault": {"title": "inputAiComposeToneDefault", "description": "Ссылается на встроенный по умолчанию [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) по его строковому идентификатору.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAiComposeToneDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneDefault"]}, "tone": {"type": "string", "x-tl-type": "string", "description": "Строковый идентификатор встроенного тона, возвращаемый в [aiComposeToneDefault](https://core.telegram.org/constructor/aiComposeToneDefault.md).`tone`", "x-telegram-field-docs": true}}, "required": ["_", "tone"], "additionalProperties": false}, "inputAiComposeToneID": {"title": "inputAiComposeToneID", "description": "Ссылается на пользовательский тон композитора AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) по его идентификатору и хэшу доступа.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAiComposeToneID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор тона, возвращаемый в [aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`id`", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Тон [хеш доступа](https://core.telegram.org/api/peers.md#access-hash), как возвращается в [aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`access_hash`]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputAiComposeToneSlug": {"title": "inputAiComposeToneSlug", "description": "Ссылается на пользовательский [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) по его общедоступному фрагменту, который используется при открытии ссылки [AI Compose Tone »](https://core.telegram.org/api/links.md#ai-compose-tone-links).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAiComposeToneSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "Ссылка публичного тона, возвращаемая в [aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`slug`", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputAiComposeToneSingleUse": {"title": "inputAiComposeToneSingleUse", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneSingleUse"]}, "custom_prompt": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "custom_prompt"], "additionalProperties": false}, "aiComposeTone": {"title": "aiComposeTone", "description": "Пользовательский [композитор AI-сообщений »](https://core.telegram.org/api/ai.md#ai-compose-tones), используемый для перефразирования сообщений в определенном стиле с помощью [AI-композитора сообщений](https://core.telegram.org/api/ai.md#compose-messages).", "externalDocs": {"url": "https://core.telegram.org/constructor/aiComposeTone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aiComposeTone"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Является ли текущий пользователь создателем этого тона", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор тона", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Хэш доступа к тону", "x-tl-type": "long", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "Уникальный фрагмент тона, используемый для обмена и установки тона через [ссылки на создание тона AI »](https://core.telegram.org/api/links.md#ai-compose-tone-links)", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Понятное для человека название тона длиной до [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 символов.", "x-telegram-field-docs": true}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md) значка тона", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?long"}, "prompt": {"type": "string", "x-tl-type": "string", "description": "Подсказка, описывающая, как ИИ должен перефразировать сообщения, используя этот тон, длиной до [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 символов; присутствует только для тонов, созданных текущим пользователем", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "installs_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Количество пользователей, установивших этот тон", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "author_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Идентификатор пользователя, создавшего этот тон, если он опубликован автором.", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?long"}, "example_english": {"type": "object", "x-tl-type": "AiComposeToneExample", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["aiComposeToneExample"]}}, "description": "Пример, показывающий, как образец сообщения на английском языке перефразируется этим тоном; используйте [aicompose.getToneExample](https://core.telegram.org/method/aicompose.getToneExample.md), чтобы получить больше примеров.", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?AiComposeToneExample"}}, "required": ["_", "id", "access_hash", "slug", "title"], "additionalProperties": false}, "aiComposeToneDefault": {"title": "aiComposeToneDefault", "description": "Встроенный по умолчанию [композиторский тон AI »](https://core.telegram.org/api/ai.md#ai-compose-tones), идентифицируемый строковым идентификатором, а не числовым идентификатором.", "externalDocs": {"url": "https://core.telegram.org/constructor/aiComposeToneDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aiComposeToneDefault"]}, "tone": {"type": "string", "x-tl-type": "string", "description": "Строковый идентификатор встроенного тона, который будет передан в [inputAiComposeToneDefault](https://core.telegram.org/constructor/inputAiComposeToneDefault.md)", "x-telegram-field-docs": true}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Пользовательский идентификатор смайлика](https://core.telegram.org/api/custom-emoji.md) значка тона", "x-tl-type": "long", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "Локализованное, понятное человеку название тона", "x-telegram-field-docs": true}}, "required": ["_", "tone", "emoji_id", "title"], "additionalProperties": false}, "aicompose.tonesNotModified": {"title": "aicompose.tonesNotModified", "description": "Список сохраненных [композиторских тонов AI»](https://core.telegram.org/api/ai.md#ai-compose-tones) не изменился с момента его последней загрузки (i.e. `hash`, переданный в [aicompose.getTones](https://core.telegram.org/method/aicompose.getTones.md), все еще действителен).", "externalDocs": {"url": "https://core.telegram.org/constructor/aicompose.tonesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aicompose.tonesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "aicompose.tones": {"title": "aicompose.tones", "description": "Список сохраненных [композиторских тонов AI»](https://core.telegram.org/api/ai.md#ai-compose-tones) текущего пользователя.", "externalDocs": {"url": "https://core.telegram.org/constructor/aicompose.tones"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aicompose.tones"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Хеш для нумерации страниц, для получения дополнительной информации нажмите здесь](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "tones": {"type": "array", "items": {"type": "object", "x-tl-type": "AiComposeTone", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["aiComposeTone", "aiComposeToneDefault"]}}, "description": "Тип TL: AiComposeTone."}, "x-tl-type": "Vector<AiComposeTone>", "description": "Сохраненные мелодии AI-композитора.", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Упомянутые пользователи (i.e. авторы тонов)", "x-telegram-field-docs": true}}, "required": ["_", "hash", "tones", "users"], "additionalProperties": false}, "aiComposeToneExample": {"title": "aiComposeToneExample", "description": "Пример, показывающий, как [тон композитора AI »](https://core.telegram.org/api/ai.md#ai-compose-tones) перефразирует сообщение, используемый в качестве предварительного просмотра в средстве выбора тона.", "externalDocs": {"url": "https://core.telegram.org/constructor/aiComposeToneExample"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aiComposeToneExample"]}, "from": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Исходный, непреобразованный образец сообщения", "x-telegram-field-docs": true}, "to": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "Тот же пример сообщения после перефразирования этим тоном", "x-telegram-field-docs": true}}, "required": ["_", "from", "to"], "additionalProperties": false}, "bots.accessSettings": {"title": "bots.accessSettings", "description": "Настройки ограничения доступа для [управляемого бота»](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot).", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.accessSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.accessSettings"]}, "restricted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Если установлено, только владелец и пользователи в `add_users` могут получить доступ к управляемому боту.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "add_users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>", "description": "Дополнительные пользователи (максимум 10, не считая владельца), которые могут получить доступ к управляемому боту; присутствует только тогда, когда установлено `restricted`", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<User>"}}, "required": ["_"], "additionalProperties": false}, "messages.chatInviteJoinResultOk": {"title": "messages.chatInviteJoinResultOk", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatInviteJoinResultOk"]}, "updates": {"type": "object", "x-tl-type": "Updates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage"]}}, "description": "Тип TL: Updates."}}, "required": ["_", "updates"], "additionalProperties": false}, "messages.chatInviteJoinResultWebView": {"title": "messages.chatInviteJoinResultWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatInviteJoinResultWebView"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "bot_id", "query_id", "users"], "additionalProperties": false}, "joinChatBotResultApproved": {"title": "joinChatBotResultApproved", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultApproved"]}}, "required": ["_"], "additionalProperties": false}, "joinChatBotResultDeclined": {"title": "joinChatBotResultDeclined", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultDeclined"]}}, "required": ["_"], "additionalProperties": false}, "joinChatBotResultQueued": {"title": "joinChatBotResultQueued", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultQueued"]}}, "required": ["_"], "additionalProperties": false}, "joinChatBotResultWebView": {"title": "joinChatBotResultWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultWebView"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "webDomainException": {"title": "webDomainException", "type": "object", "properties": {"_": {"type": "string", "enum": ["webDomainException"]}, "domain": {"type": "string", "x-tl-type": "string"}, "url": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "favicon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "domain", "url", "title"], "additionalProperties": false}, "account.webBrowserSettingsNotModified": {"title": "account.webBrowserSettingsNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["account.webBrowserSettingsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.webBrowserSettings": {"title": "account.webBrowserSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["account.webBrowserSettings"]}, "open_external_browser": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "display_close_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "external_exceptions": {"type": "array", "items": {"type": "object", "x-tl-type": "WebDomainException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDomainException"]}}, "description": "Тип TL: WebDomainException."}, "x-tl-type": "Vector<WebDomainException>"}, "inapp_exceptions": {"type": "array", "items": {"type": "object", "x-tl-type": "WebDomainException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDomainException"]}}, "description": "Тип TL: WebDomainException."}, "x-tl-type": "Vector<WebDomainException>"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "external_exceptions", "inapp_exceptions", "hash"], "additionalProperties": false}, "inputRichFilePhoto": {"title": "inputRichFilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichFilePhoto"]}, "id": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Тип TL: InputPhoto."}}, "required": ["_", "id", "photo"], "additionalProperties": false}, "inputRichFileDocument": {"title": "inputRichFileDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichFileDocument"]}, "id": {"type": "string", "x-tl-type": "string"}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Тип TL: InputDocument."}}, "required": ["_", "id", "document"], "additionalProperties": false}, "inputRichMessage": {"title": "inputRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichMessage"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "noautolink": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "Тип TL: InputPhoto."}, "x-tl-type": "Vector<InputPhoto>", "x-tl-flag": "flags.2?Vector<InputPhoto>"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "Тип TL: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "x-tl-flag": "flags.3?Vector<InputDocument>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.4?Vector<InputUser>"}}, "required": ["_", "blocks"], "additionalProperties": false}, "inputRichMessageHTML": {"title": "inputRichMessageHTML", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichMessageHTML"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "noautolink": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "html": {"type": "string", "x-tl-type": "string"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "InputRichFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichFilePhoto", "inputRichFileDocument"]}}, "description": "Тип TL: InputRichFile."}, "x-tl-type": "Vector<InputRichFile>", "x-tl-flag": "flags.2?Vector<InputRichFile>"}}, "required": ["_", "html"], "additionalProperties": false}, "inputRichMessageMarkdown": {"title": "inputRichMessageMarkdown", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichMessageMarkdown"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "noautolink": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "markdown": {"type": "string", "x-tl-type": "string"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "InputRichFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichFilePhoto", "inputRichFileDocument"]}}, "description": "Тип TL: InputRichFile."}, "x-tl-type": "Vector<InputRichFile>", "x-tl-flag": "flags.2?Vector<InputRichFile>"}}, "required": ["_", "markdown"], "additionalProperties": false}, "richMessage": {"title": "richMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["richMessage"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "part": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "x-tl-type": "Vector<Document>"}}, "required": ["_", "blocks", "photos", "documents"], "additionalProperties": false}, "communityPeer": {"title": "communityPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityPeer"]}, "can_view_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "visible": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "communityPeerRequest": {"title": "communityPeerRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityPeerRequest"]}, "visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "requested_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "requested_by", "date"], "additionalProperties": false}, "communities.peerLinkRequests": {"title": "communities.peerLinkRequests", "type": "object", "properties": {"_": {"type": "string", "enum": ["communities.peerLinkRequests"]}, "total_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "requests": {"type": "array", "items": {"type": "object", "x-tl-type": "CommunityPeerRequest", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["communityPeerRequest"]}}, "description": "Тип TL: CommunityPeerRequest."}, "x-tl-type": "Vector<CommunityPeerRequest>"}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "total_count", "requests", "chats", "users"], "additionalProperties": false}, "ephemeralMessage": {"title": "ephemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "welcome_template": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer.", "x-tl-flag": "flags.9?Peer"}, "receiver_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "Тип TL: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.2?Vector<MessageEntity>"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "Тип TL: MessageMedia.", "x-tl-flag": "flags.3?MessageMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.4?ReplyMarkup"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Тип TL: MessageReplyHeader.", "x-tl-flag": "flags.6?MessageReplyHeader"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage.", "x-tl-flag": "flags.8?RichMessage"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.10?long"}, "anchor_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}}, "required": ["_", "id", "from_id", "receiver_id", "date", "message"], "additionalProperties": false}, "communities.participantJoinedChats": {"title": "communities.participantJoinedChats", "type": "object", "properties": {"_": {"type": "string", "enum": ["communities.participantJoinedChats"]}, "creator_chat_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}, "joined_chat_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "creator_chat_ids", "joined_chat_ids", "chats", "users"], "additionalProperties": false}, "messages.translatedRichMessage": {"title": "messages.translatedRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.translatedRichMessage"]}, "result": {"type": "array", "items": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}, "x-tl-type": "Vector<RichMessage>"}}, "required": ["_", "result"], "additionalProperties": false}, "messages.composedRichMessageWithAI": {"title": "messages.composedRichMessageWithAI", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.composedRichMessageWithAI"]}, "result": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}}, "required": ["_", "result"], "additionalProperties": false}, "buttonTypeDefault": {"title": "buttonTypeDefault", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeDefault"]}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestPhone": {"title": "buttonTypeRequestPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestPhone"]}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestGeoLocation": {"title": "buttonTypeRequestGeoLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestGeoLocation"]}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestPoll": {"title": "buttonTypeRequestPoll", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestPoll"]}, "quiz": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestPeer": {"title": "buttonTypeRequestPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestPeer"]}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_type": {"type": "object", "x-tl-type": "RequestPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot"]}}, "description": "Тип TL: RequestPeerType."}, "max_quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "button_id", "peer_type", "max_quantity"], "additionalProperties": false}, "inputButtonTypeRequestPeer": {"title": "inputButtonTypeRequestPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputButtonTypeRequestPeer"]}, "name_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "username_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "photo_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_type": {"type": "object", "x-tl-type": "RequestPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot"]}}, "description": "Тип TL: RequestPeerType."}, "max_quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "button_id", "peer_type", "max_quantity"], "additionalProperties": false}, "buttonTypeSimpleWebView": {"title": "buttonTypeSimpleWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeSimpleWebView"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeUrl": {"title": "inlineButtonTypeUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeUrlAuth": {"title": "inlineButtonTypeUrlAuth", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrlAuth"]}, "fwd_text": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "url": {"type": "string", "x-tl-type": "string"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "url", "button_id"], "additionalProperties": false}, "inputInlineButtonTypeUrlAuth": {"title": "inputInlineButtonTypeUrlAuth", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInlineButtonTypeUrlAuth"]}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "fwd_text": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "url": {"type": "string", "x-tl-type": "string"}, "bot": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser.", "x-tl-flag": "flags.2?InputUser"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeWebView": {"title": "inlineButtonTypeWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeWebView"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeCallback": {"title": "inlineButtonTypeCallback", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeCallback"]}, "requires_password": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "data"], "additionalProperties": false}, "inlineButtonTypeGame": {"title": "inlineButtonTypeGame", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeGame"]}}, "required": ["_"], "additionalProperties": false}, "inlineButtonTypeBuy": {"title": "inlineButtonTypeBuy", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeBuy"]}}, "required": ["_"], "additionalProperties": false}, "inlineButtonTypeSwitchInline": {"title": "inlineButtonTypeSwitchInline", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeSwitchInline"]}, "same_peer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "query": {"type": "string", "x-tl-type": "string"}, "peer_types": {"type": "array", "items": {"type": "object", "x-tl-type": "InlineQueryPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM", "inlineQueryPeerTypePM", "inlineQueryPeerTypeChat", "inlineQueryPeerTypeMegagroup", "inlineQueryPeerTypeBroadcast", "inlineQueryPeerTypeBotPM"]}}, "description": "Тип TL: InlineQueryPeerType."}, "x-tl-type": "Vector<InlineQueryPeerType>", "x-tl-flag": "flags.1?Vector<InlineQueryPeerType>"}}, "required": ["_", "query"], "additionalProperties": false}, "inlineButtonTypeUserProfile": {"title": "inlineButtonTypeUserProfile", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUserProfile"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "inputInlineButtonTypeUserProfile": {"title": "inputInlineButtonTypeUserProfile", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInlineButtonTypeUserProfile"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "Тип TL: InputUser."}}, "required": ["_", "user_id"], "additionalProperties": false}, "inlineButtonTypeCopy": {"title": "inlineButtonTypeCopy", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeCopy"]}, "copy_text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "copy_text"], "additionalProperties": false}, "inlineButtonTypeDisabled": {"title": "inlineButtonTypeDisabled", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeDisabled"]}}, "required": ["_"], "additionalProperties": false}, "keyboardInlineButton": {"title": "keyboardInlineButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardInlineButton"]}, "style": {"type": "object", "x-tl-type": "KeyboardButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButtonStyle"]}}, "description": "Тип TL: KeyboardButtonStyle.", "x-tl-flag": "flags.10?KeyboardButtonStyle"}, "text": {"type": "string", "x-tl-type": "string"}, "type": {"type": "object", "x-tl-type": "InlineButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl", "inlineButtonTypeUrlAuth", "inputInlineButtonTypeUrlAuth", "inlineButtonTypeWebView", "inlineButtonTypeCallback", "inlineButtonTypeGame", "inlineButtonTypeBuy", "inlineButtonTypeSwitchInline", "inlineButtonTypeUserProfile", "inputInlineButtonTypeUserProfile", "inlineButtonTypeCopy", "inlineButtonTypeDisabled"]}}, "description": "Тип TL: InlineButtonType."}}, "required": ["_", "text", "type"], "additionalProperties": false}, "keyboardInlineButtonRow": {"title": "keyboardInlineButtonRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardInlineButtonRow"]}, "buttons": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardInlineButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardInlineButton"]}}, "description": "Тип TL: KeyboardInlineButton."}, "x-tl-type": "Vector<KeyboardInlineButton>"}}, "required": ["_", "buttons"], "additionalProperties": false}, "richButtonStyle": {"title": "richButtonStyle", "type": "object", "properties": {"_": {"type": "string", "enum": ["richButtonStyle"]}, "bg_primary": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bg_danger": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "bg_success": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "link": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}}, "required": ["_"], "additionalProperties": false}, "pageButton": {"title": "pageButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageButton"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "type": {"type": "object", "x-tl-type": "InlineButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl", "inlineButtonTypeUrlAuth", "inputInlineButtonTypeUrlAuth", "inlineButtonTypeWebView", "inlineButtonTypeCallback", "inlineButtonTypeGame", "inlineButtonTypeBuy", "inlineButtonTypeSwitchInline", "inlineButtonTypeUserProfile", "inputInlineButtonTypeUserProfile", "inlineButtonTypeCopy", "inlineButtonTypeDisabled"]}}, "description": "Тип TL: InlineButtonType."}, "style": {"type": "object", "x-tl-type": "RichButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richButtonStyle"]}}, "description": "Тип TL: RichButtonStyle.", "x-tl-flag": "flags.0?RichButtonStyle"}}, "required": ["_", "text", "type"], "additionalProperties": false}, "ephemeral.welcomeMessagesNotModified": {"title": "ephemeral.welcomeMessagesNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["ephemeral.welcomeMessagesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "ephemeral.welcomeMessages": {"title": "ephemeral.welcomeMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["ephemeral.welcomeMessages"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}, "x-tl-type": "Vector<EphemeralMessage>"}}, "required": ["_", "hash", "messages"], "additionalProperties": false}, "currencyRate": {"title": "currencyRate", "type": "object", "properties": {"_": {"type": "string", "enum": ["currencyRate"]}, "currency": {"type": "string", "x-tl-type": "string"}, "rate": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "currency", "rate"], "additionalProperties": false}, "payments.currencyRates": {"title": "payments.currencyRates", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.currencyRates"]}, "rates": {"type": "array", "items": {"type": "object", "x-tl-type": "CurrencyRate", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["currencyRate"]}}, "description": "Тип TL: CurrencyRate."}, "x-tl-type": "Vector<CurrencyRate>"}}, "required": ["_", "rates"], "additionalProperties": false}, "toncenter.apiResponse": {"title": "toncenter.apiResponse", "type": "object", "properties": {"_": {"type": "string", "enum": ["toncenter.apiResponse"]}, "response": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}}, "required": ["_", "response"], "additionalProperties": false}, "toncenter.streamingUrl": {"title": "toncenter.streamingUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["toncenter.streamingUrl"]}, "url": {"type": "string", "x-tl-type": "string"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "url", "expires"], "additionalProperties": false}, "onrampMethodAvailability": {"title": "onrampMethodAvailability", "type": "object", "properties": {"_": {"type": "string", "enum": ["onrampMethodAvailability"]}, "available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "payment_method": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "payment_method"], "additionalProperties": false}, "onrampProviderInfo": {"title": "onrampProviderInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["onrampProviderInfo"]}, "supports_base_currencies": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "supports_limits": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "supports_quote": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}, "crypto_currencies": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "id", "name", "crypto_currencies"], "additionalProperties": false}, "onrampAvailability": {"title": "onrampAvailability", "type": "object", "properties": {"_": {"type": "string", "enum": ["onrampAvailability"]}, "allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "buy_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "country_code": {"type": "string", "x-tl-type": "string"}, "state": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "methods": {"type": "array", "items": {"type": "object", "x-tl-type": "OnrampMethodAvailability", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["onrampMethodAvailability"]}}, "description": "Тип TL: OnrampMethodAvailability."}, "x-tl-type": "Vector<OnrampMethodAvailability>"}}, "required": ["_", "country_code", "methods"], "additionalProperties": false}, "onrampLimits": {"title": "onrampLimits", "type": "object", "properties": {"_": {"type": "string", "enum": ["onrampLimits"]}, "base_currency": {"type": "string", "x-tl-type": "string"}, "base_min_amount": {"type": "string", "x-tl-type": "string"}, "base_max_amount": {"type": "string", "x-tl-type": "string"}, "crypto_min_amount": {"type": "string", "x-tl-type": "string"}, "crypto_max_amount": {"type": "string", "x-tl-type": "string"}, "payment_method": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "base_currency", "base_min_amount", "base_max_amount", "crypto_min_amount", "crypto_max_amount", "payment_method"], "additionalProperties": false}, "onrampQuote": {"title": "onrampQuote", "type": "object", "properties": {"_": {"type": "string", "enum": ["onrampQuote"]}, "base_currency": {"type": "string", "x-tl-type": "string"}, "base_amount": {"type": "string", "x-tl-type": "string"}, "crypto_currency": {"type": "string", "x-tl-type": "string"}, "crypto_amount": {"type": "string", "x-tl-type": "string"}, "crypto_price": {"type": "string", "x-tl-type": "string"}, "fee_amount": {"type": "string", "x-tl-type": "string"}, "extra_fee_amount": {"type": "string", "x-tl-type": "string"}, "network_fee_amount": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "x-tl-type": "string"}, "payment_method": {"type": "string", "x-tl-type": "string"}, "expires_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "base_currency", "base_amount", "crypto_currency", "crypto_amount", "crypto_price", "fee_amount", "extra_fee_amount", "network_fee_amount", "total_amount", "payment_method", "expires_date"], "additionalProperties": false}, "onrampSession": {"title": "onrampSession", "type": "object", "properties": {"_": {"type": "string", "enum": ["onrampSession"]}, "provider": {"type": "string", "x-tl-type": "string"}, "session_id": {"type": "string", "x-tl-type": "string"}, "url": {"type": "string", "x-tl-type": "string"}, "expires_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "provider", "session_id", "url", "expires_date"], "additionalProperties": false}, "walletStateEmpty": {"title": "walletStateEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStateEmpty"]}, "creating": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "walletState": {"title": "walletState", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletState"]}, "backup_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_export_phrase": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_enable_backup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "address": {"type": "string", "x-tl-type": "string"}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "balance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "address", "public_key", "balance"], "additionalProperties": false}, "walletUserAddress": {"title": "walletUserAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletUserAddress"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "address": {"type": "string", "x-tl-type": "string"}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "address", "public_key"], "additionalProperties": false}, "wallet.userAddresses": {"title": "wallet.userAddresses", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.userAddresses"]}, "addresses": {"type": "array", "items": {"type": "object", "x-tl-type": "WalletUserAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletUserAddress"]}}, "description": "Тип TL: WalletUserAddress."}, "x-tl-type": "Vector<WalletUserAddress>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "addresses", "users"], "additionalProperties": false}, "walletTransactionPeerUser": {"title": "walletTransactionPeerUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "address"], "additionalProperties": false}, "walletTransactionPeerAddress": {"title": "walletTransactionPeerAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerAddress"]}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "address"], "additionalProperties": false}, "walletTransactionPeerOnramp": {"title": "walletTransactionPeerOnramp", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerOnramp"]}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "provider_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "address", "provider_name"], "additionalProperties": false}, "walletTransactionPeerUnsupported": {"title": "walletTransactionPeerUnsupported", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "walletTransactionPeerChannel": {"title": "walletTransactionPeerChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "channel_id", "address"], "additionalProperties": false}, "walletTransactionPeerTelegramGift": {"title": "walletTransactionPeerTelegramGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerTelegramGift"]}, "own_profile": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "walletTransactionPeerOnchainGift": {"title": "walletTransactionPeerOnchainGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerOnchainGift"]}, "action": {"type": "object", "x-tl-type": "WalletOnchainGiftAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionBuy", "walletOnchainGiftActionDelist", "walletOnchainGiftActionChangePrice", "walletOnchainGiftActionOfferCreate", "walletOnchainGiftActionOfferAccept", "walletOnchainGiftActionOfferCancel", "walletOnchainGiftActionOfferDecline", "walletOnchainGiftActionOfferExpire"]}}, "description": "Тип TL: WalletOnchainGiftAction."}}, "required": ["_", "action"], "additionalProperties": false}, "walletTransactionPeerStaking": {"title": "walletTransactionPeerStaking", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerStaking"]}, "action": {"type": "object", "x-tl-type": "WalletStakingAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletStakingActionDeposit", "walletStakingActionWithdraw", "walletStakingActionWithdrawPending"]}}, "description": "Тип TL: WalletStakingAction."}}, "required": ["_", "action"], "additionalProperties": false}, "walletTransaction": {"title": "walletTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransaction"]}, "incoming": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "gasless": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "failed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "key_change": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "comment_encrypted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "suspected_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "id": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "fee": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "WalletTransactionPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerUser", "walletTransactionPeerAddress", "walletTransactionPeerOnramp", "walletTransactionPeerUnsupported", "walletTransactionPeerChannel", "walletTransactionPeerTelegramGift", "walletTransactionPeerOnchainGift", "walletTransactionPeerStaking"]}}, "description": "Тип TL: WalletTransactionPeer."}, "comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "tx_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "nft": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem.", "x-tl-flag": "flags.7?wallet.NftItem"}}, "required": ["_", "id", "amount", "fee", "date", "peer"], "additionalProperties": false}, "wallet.transactions": {"title": "wallet.transactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.transactions"]}, "balance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "transactions": {"type": "array", "items": {"type": "object", "x-tl-type": "WalletTransaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletTransaction"]}}, "description": "Тип TL: WalletTransaction."}, "x-tl-type": "Vector<WalletTransaction>"}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "balance", "transactions", "chats", "users"], "additionalProperties": false}, "wallet.secretPhraseParts": {"title": "wallet.secretPhraseParts", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.secretPhraseParts"]}, "token": {"type": "string", "x-tl-type": "string"}, "dcs": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "token", "dcs"], "additionalProperties": false}, "wallet.encryptedSecretPhrasePart": {"title": "wallet.encryptedSecretPhrasePart", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.encryptedSecretPhrasePart"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "data"], "additionalProperties": false}, "wallet.holderDc": {"title": "wallet.holderDc", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.holderDc"]}, "dc": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "dc", "public_key"], "additionalProperties": false}, "wallet.proofChallenge": {"title": "wallet.proofChallenge", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.proofChallenge"]}, "payload": {"type": "string", "x-tl-type": "string"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "domain": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "payload", "expires", "domain"], "additionalProperties": false}, "walletOwnershipProof": {"title": "walletOwnershipProof", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOwnershipProof"]}, "timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "signature": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "timestamp", "signature"], "additionalProperties": false}, "inputWalletNew": {"title": "inputWalletNew", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWalletNew"]}}, "required": ["_"], "additionalProperties": false}, "inputWalletImported": {"title": "inputWalletImported", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWalletImported"]}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "anchor_public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "proof": {"type": "object", "x-tl-type": "WalletOwnershipProof", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletOwnershipProof"]}}, "description": "Тип TL: WalletOwnershipProof."}}, "required": ["_", "public_key", "proof"], "additionalProperties": false}, "tonConnectManifest": {"title": "tonConnectManifest", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectManifest"]}, "url": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}, "icon": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.0?WebDocument"}}, "required": ["_", "url", "name"], "additionalProperties": false}, "tonConnectSession": {"title": "tonConnectSession", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "closing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dapp_client_id": {"type": "string", "x-tl-type": "string"}, "client_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "nonce": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "manifest": {"type": "object", "x-tl-type": "TonConnectManifest", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectManifest"]}}, "description": "Тип TL: TonConnectManifest.", "x-tl-flag": "flags.4?TonConnectManifest"}, "manifest_error": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "dapp_client_id", "nonce", "date"], "additionalProperties": false}, "wallet.tonConnectChallenge": {"title": "wallet.tonConnectChallenge", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.tonConnectChallenge"]}, "challenge": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "event_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "challenge", "event_id"], "additionalProperties": false}, "tonConnectNextEventId": {"title": "tonConnectNextEventId", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectNextEventId"]}, "event_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "event_id"], "additionalProperties": false}, "tonConnectRequest": {"title": "tonConnectRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectRequest"]}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "topic": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "trace_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "session_id", "msg_id", "body", "expires"], "additionalProperties": false}, "wallet.tonConnectPending": {"title": "wallet.tonConnectPending", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.tonConnectPending"]}, "session": {"type": "object", "x-tl-type": "TonConnectSession", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}}, "description": "Тип TL: TonConnectSession."}, "requests": {"type": "array", "items": {"type": "object", "x-tl-type": "TonConnectRequest", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectRequest"]}}, "description": "Тип TL: TonConnectRequest."}, "x-tl-type": "Vector<TonConnectRequest>"}}, "required": ["_", "session", "requests"], "additionalProperties": false}, "wallet.tonConnectSessions": {"title": "wallet.tonConnectSessions", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.tonConnectSessions"]}, "sessions": {"type": "array", "items": {"type": "object", "x-tl-type": "TonConnectSession", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}}, "description": "Тип TL: TonConnectSession."}, "x-tl-type": "Vector<TonConnectSession>"}}, "required": ["_", "sessions"], "additionalProperties": false}, "wallet.existingBalance": {"title": "wallet.existingBalance", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.existingBalance"]}, "has_balance": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "wallet.nftAttribute": {"title": "wallet.nftAttribute", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.nftAttribute"]}, "trait_type": {"type": "string", "x-tl-type": "string"}, "value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "trait_type", "value"], "additionalProperties": false}, "wallet.nftItem": {"title": "wallet.nftItem", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}, "collection_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "address": {"type": "string", "x-tl-type": "string"}, "owner_address": {"type": "string", "x-tl-type": "string"}, "index": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "image": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.3?WebDocument"}, "image_small": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.4?WebDocument"}, "content_url": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.5?WebDocument"}, "lottie": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.6?WebDocument"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "wallet.NftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftAttribute"]}}, "description": "Тип TL: wallet.NftAttribute."}, "x-tl-type": "Vector<wallet.NftAttribute>", "x-tl-flag": "flags.7?Vector<wallet.NftAttribute>"}, "extra": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON.", "x-tl-flag": "flags.8?DataJSON"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift.", "x-tl-flag": "flags.9?StarGift"}}, "required": ["_", "address", "owner_address", "index"], "additionalProperties": false}, "wallet.nftItems": {"title": "wallet.nftItems", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.nftItems"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem."}, "x-tl-type": "Vector<wallet.NftItem>"}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "items"], "additionalProperties": false}, "auth.firebasePnvIntent": {"title": "auth.firebasePnvIntent", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.firebasePnvIntent"]}, "nonce": {"type": "string", "x-tl-type": "string"}, "digital_credential_payload": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "nonce", "digital_credential_payload"], "additionalProperties": false}, "inputTonConnectOauthSession": {"title": "inputTonConnectOauthSession", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTonConnectOauthSession"]}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "challenge_answer": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "proof": {"type": "object", "x-tl-type": "WalletOwnershipProof", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletOwnershipProof"]}}, "description": "Тип TL: WalletOwnershipProof."}}, "required": ["_", "session_id", "challenge_answer", "body", "proof"], "additionalProperties": false}, "exportedNoPaidMessagesToken": {"title": "exportedNoPaidMessagesToken", "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedNoPaidMessagesToken"]}, "token": {"type": "string", "x-tl-type": "string"}, "url": {"type": "string", "x-tl-type": "string"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "token", "url"], "additionalProperties": false}, "shareThemeDefault": {"title": "shareThemeDefault", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeDefault"]}}, "required": ["_"], "additionalProperties": false}, "shareThemeEmojiBackdrop": {"title": "shareThemeEmojiBackdrop", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeEmojiBackdrop"]}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "emojis": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "Тип TL: Reaction."}, "x-tl-type": "Vector<Reaction>", "x-tl-flag": "flags.1?Vector<Reaction>"}}, "required": ["_"], "additionalProperties": false}, "shareThemeGift": {"title": "shareThemeGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeGift"]}, "stargift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputShareThemeGift": {"title": "inputShareThemeGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputShareThemeGift"]}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "Тип TL: InputSavedStarGift."}}, "required": ["_", "stargift"], "additionalProperties": false}, "shareThemeBackdropOption": {"title": "shareThemeBackdropOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeBackdropOption"]}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "name": {"type": "string", "x-tl-type": "string"}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pattern_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "backdrop_id", "name", "center_color", "edge_color", "pattern_color", "text_color"], "additionalProperties": false}, "shareThemeBackdropsNotModified": {"title": "shareThemeBackdropsNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeBackdropsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "shareThemeBackdrops": {"title": "shareThemeBackdrops", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeBackdrops"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "backdrops": {"type": "array", "items": {"type": "object", "x-tl-type": "ShareThemeBackdropOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shareThemeBackdropOption"]}}, "description": "Тип TL: ShareThemeBackdropOption."}, "x-tl-type": "Vector<ShareThemeBackdropOption>"}}, "required": ["_", "hash", "backdrops"], "additionalProperties": false}, "inputWalletCardSticker": {"title": "inputWalletCardSticker", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWalletCardSticker"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Тип TL: MediaAreaCoordinates."}, "nft_address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "coordinates", "nft_address"], "additionalProperties": false}, "wallet.cardSticker": {"title": "wallet.cardSticker", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.cardSticker"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Тип TL: MediaAreaCoordinates."}, "nft": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem."}}, "required": ["_", "coordinates", "nft"], "additionalProperties": false}, "wallet.card": {"title": "wallet.card", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.card"]}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "wallet.CardSticker", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.cardSticker"]}}, "description": "Тип TL: wallet.CardSticker."}, "x-tl-type": "Vector<wallet.CardSticker>", "x-tl-flag": "flags.0?Vector<wallet.CardSticker>"}, "bg_nft_item": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem.", "x-tl-flag": "flags.1?wallet.NftItem"}, "address": {"type": "string", "x-tl-type": "string"}, "balance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "address", "balance"], "additionalProperties": false}, "payments.starGiftDepositPayload": {"title": "payments.starGiftDepositPayload", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftDepositPayload"]}, "nft_address": {"type": "string", "x-tl-type": "string"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "nft_address", "payload", "amount"], "additionalProperties": false}, "userWallet": {"title": "userWallet", "type": "object", "properties": {"_": {"type": "string", "enum": ["userWallet"]}, "address": {"type": "string", "x-tl-type": "string"}, "balance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "state_init": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}}, "required": ["_", "address", "balance"], "additionalProperties": false}, "widgetQueryTypeData": {"title": "widgetQueryTypeData", "type": "object", "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData"]}, "with_wallet": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "widgetQueryTypeSignData": {"title": "widgetQueryTypeSignData", "type": "object", "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeSignData"]}, "wallet": {"type": "object", "x-tl-type": "UserWallet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userWallet"]}}, "description": "Тип TL: UserWallet."}, "sign_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "Тип TL: DataJSON."}}, "required": ["_", "wallet", "sign_data"], "additionalProperties": false}, "widgetQueryTypeSentTransaction": {"title": "widgetQueryTypeSentTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeSentTransaction"]}, "wallet": {"type": "object", "x-tl-type": "UserWallet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userWallet"]}}, "description": "Тип TL: UserWallet."}, "msg_hash": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "wallet", "msg_hash"], "additionalProperties": false}, "messages.botWidgetQueryAnswer": {"title": "messages.botWidgetQueryAnswer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botWidgetQueryAnswer"]}, "result": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_"], "additionalProperties": false}, "messages.widgetPublicDataNotModified": {"title": "messages.widgetPublicDataNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.widgetPublicDataNotModified"]}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "period"], "additionalProperties": false}, "messages.widgetPublicData": {"title": "messages.widgetPublicData", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.widgetPublicData"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "x-tl-type": "string"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "hash", "data", "period"], "additionalProperties": false}, "walletOnchainGiftActionBuy": {"title": "walletOnchainGiftActionBuy", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionBuy"]}}, "required": ["_"], "additionalProperties": false}, "walletOnchainGiftActionDelist": {"title": "walletOnchainGiftActionDelist", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionDelist"]}}, "required": ["_"], "additionalProperties": false}, "walletOnchainGiftActionChangePrice": {"title": "walletOnchainGiftActionChangePrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionChangePrice"]}, "old_price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "new_price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "new_price"], "additionalProperties": false}, "walletOnchainGiftActionOfferCreate": {"title": "walletOnchainGiftActionOfferCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionOfferCreate"]}, "offer_address": {"type": "string", "x-tl-type": "string"}, "counterparty_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "service_fee": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "offer_address", "price", "amount", "service_fee"], "additionalProperties": false}, "walletOnchainGiftActionOfferAccept": {"title": "walletOnchainGiftActionOfferAccept", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionOfferAccept"]}, "buyer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "offer_address": {"type": "string", "x-tl-type": "string"}, "counterparty_address": {"type": "string", "x-tl-type": "string"}, "price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "service_fee": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "offer_address", "counterparty_address", "price", "service_fee"], "additionalProperties": false}, "walletOnchainGiftActionOfferCancel": {"title": "walletOnchainGiftActionOfferCancel", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionOfferCancel"]}, "offer_address": {"type": "string", "x-tl-type": "string"}, "counterparty_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "refund_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "fine": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}}, "required": ["_", "offer_address", "refund_amount"], "additionalProperties": false}, "walletOnchainGiftActionOfferDecline": {"title": "walletOnchainGiftActionOfferDecline", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionOfferDecline"]}, "offer_address": {"type": "string", "x-tl-type": "string"}, "counterparty_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "refund_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "offer_address", "refund_amount"], "additionalProperties": false}, "walletOnchainGiftActionOfferExpire": {"title": "walletOnchainGiftActionOfferExpire", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionOfferExpire"]}, "offer_address": {"type": "string", "x-tl-type": "string"}, "counterparty_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "refund_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "offer_address", "refund_amount"], "additionalProperties": false}, "payments.starGiftOnchainSalePayload": {"title": "payments.starGiftOnchainSalePayload", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainSalePayload"]}, "gasless_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "nft_address": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "nft_address", "amount", "payload"], "additionalProperties": false}, "payments.starGiftOnchainFixedSalePayload": {"title": "payments.starGiftOnchainFixedSalePayload", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainFixedSalePayload"]}, "sale_address": {"type": "string", "x-tl-type": "string"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTxMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTxMessage"]}}, "description": "Тип TL: payments.StarGiftOnchainOfferTxMessage."}, "x-tl-type": "Vector<payments.StarGiftOnchainOfferTxMessage>"}, "gasless_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTxMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTxMessage"]}}, "description": "Тип TL: payments.StarGiftOnchainOfferTxMessage."}, "x-tl-type": "Vector<payments.StarGiftOnchainOfferTxMessage>", "x-tl-flag": "flags.0?Vector<payments.StarGiftOnchainOfferTxMessage>"}}, "required": ["_", "sale_address", "messages"], "additionalProperties": false}, "payments.starGiftOnchainOfferTxInitState": {"title": "payments.starGiftOnchainOfferTxInitState", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTxInitState"]}, "code": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "code", "data"], "additionalProperties": false}, "payments.starGiftOnchainOfferTxMessage": {"title": "payments.starGiftOnchainOfferTxMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTxMessage"]}, "destination": {"type": "string", "x-tl-type": "string"}, "value": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "mode": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "init_state": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTxInitState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTxInitState"]}}, "description": "Тип TL: payments.StarGiftOnchainOfferTxInitState.", "x-tl-flag": "flags.0?payments.StarGiftOnchainOfferTxInitState"}}, "required": ["_", "destination", "value", "mode", "body"], "additionalProperties": false}, "payments.starGiftOnchainOfferTx": {"title": "payments.starGiftOnchainOfferTx", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTx"]}, "offer_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "offer_address": {"type": "string", "x-tl-type": "string"}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTxMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTxMessage"]}}, "description": "Тип TL: payments.StarGiftOnchainOfferTxMessage."}, "gasless_message": {"type": "object", "x-tl-type": "payments.StarGiftOnchainOfferTxMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["payments.starGiftOnchainOfferTxMessage"]}}, "description": "Тип TL: payments.StarGiftOnchainOfferTxMessage.", "x-tl-flag": "flags.3?payments.StarGiftOnchainOfferTxMessage"}, "rent_budget": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "execution_allowance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "forward_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "fine": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}}, "required": ["_", "offer_id", "offer_address", "expires_at", "message"], "additionalProperties": false}, "inputAiComposeStyle": {"title": "inputAiComposeStyle", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeStyle"]}, "emojify": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "proofread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "tone": {"type": "object", "x-tl-type": "InputAiComposeTone", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneDefault", "inputAiComposeToneID", "inputAiComposeToneSlug", "inputAiComposeToneSingleUse"]}}, "description": "Тип TL: InputAiComposeTone.", "x-tl-flag": "flags.0?InputAiComposeTone"}, "to_lang": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_"], "additionalProperties": false}, "transcriptionModel": {"title": "transcriptionModel", "type": "object", "properties": {"_": {"type": "string", "enum": ["transcriptionModel"]}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "languages": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "document", "languages", "version"], "additionalProperties": false}, "botProfileWidget": {"title": "botProfileWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["botProfileWidget"]}, "can_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "background_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}}, "required": ["_", "payload"], "additionalProperties": false}, "feedPosition": {"title": "feedPosition", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedPosition"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "Тип TL: Peer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "date", "peer", "id"], "additionalProperties": false}, "feed.feedMessagesNotModified": {"title": "feed.feedMessagesNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.feedMessagesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "feed.feedMessages": {"title": "feed.feedMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.feedMessages"]}, "max_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.0?FeedPosition"}, "min_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.1?FeedPosition"}, "read_max_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.2?FeedPosition"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "messages", "chats", "users"], "additionalProperties": false}, "feedItemMessage": {"title": "feedItemMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedItemMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "feedItemMessageGroup": {"title": "feedItemMessageGroup", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedItemMessageGroup"]}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>"}}, "required": ["_", "messages"], "additionalProperties": false}, "feedItemInterestCategories": {"title": "feedItemInterestCategories", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedItemInterestCategories"]}}, "required": ["_"], "additionalProperties": false}, "feed.forYouFeed": {"title": "feed.forYouFeed", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.forYouFeed"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "FeedItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedItemMessage", "feedItemMessageGroup", "feedItemInterestCategories"]}}, "description": "Тип TL: FeedItem."}, "x-tl-type": "Vector<FeedItem>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Тип TL: User."}, "x-tl-type": "Vector<User>"}, "recommendation_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "items", "chats", "users"], "additionalProperties": false}, "feed.interestCategory": {"title": "feed.interestCategory", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.interestCategory"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string"}, "emoji": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "emoji_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "feed.interestCategoriesNotModified": {"title": "feed.interestCategoriesNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.interestCategoriesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "feed.interestCategories": {"title": "feed.interestCategories", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.interestCategories"]}, "categories": {"type": "array", "items": {"type": "object", "x-tl-type": "feed.InterestCategory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feed.interestCategory"]}}, "description": "Тип TL: feed.InterestCategory."}, "x-tl-type": "Vector<feed.InterestCategory>"}, "selected": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "categories", "selected"], "additionalProperties": false}, "inputFeedEvent": {"title": "inputFeedEvent", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFeedEvent"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "Тип TL: InputPeer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "action": {"type": "string", "x-tl-type": "string"}, "surface": {"type": "string", "x-tl-type": "string"}, "recommendation_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "recommendation_rank": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "recommendation_role": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "kind": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "duration_ms": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "event_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.6?long"}}, "required": ["_", "peer", "msg_id", "action", "surface"], "additionalProperties": false}, "voipModel": {"title": "voipModel", "type": "object", "properties": {"_": {"type": "string", "enum": ["voipModel"]}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "Тип TL: Document."}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "document", "version"], "additionalProperties": false}, "walletStakingInfo": {"title": "walletStakingInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingInfo"]}, "halted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "deposits_closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "apr": {"type": "number", "format": "double", "x-tl-type": "double"}, "staked": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "available": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "pending_ton": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "round_closes_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "apr", "staked", "available", "pending_ton", "round_closes_at"], "additionalProperties": false}, "walletStakingPrepared": {"title": "walletStakingPrepared", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingPrepared"]}, "destination": {"type": "string", "x-tl-type": "string"}, "value": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "destination", "value", "body"], "additionalProperties": false}, "walletStakingActionDeposit": {"title": "walletStakingActionDeposit", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingActionDeposit"]}}, "required": ["_"], "additionalProperties": false}, "walletStakingActionWithdraw": {"title": "walletStakingActionWithdraw", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingActionWithdraw"]}}, "required": ["_"], "additionalProperties": false}, "walletStakingActionWithdrawPending": {"title": "walletStakingActionWithdrawPending", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingActionWithdrawPending"]}}, "required": ["_"], "additionalProperties": false}}}, "x-telegram-layer": 236, "x-tag-labels": {"Служебные методы": "Служебные методы", "Авторизация": "Авторизация", "Аккаунт": "Аккаунт", "Пользователи": "Пользователи", "Контакты": "Контакты", "Сообщения": "Сообщения", "Обновления": "Обновления", "Фотографии": "Фотографии", "Файлы": "Файлы", "Конфигурация и справка": "Конфигурация и справка", "Каналы и супергруппы": "Каналы и супергруппы", "Боты": "Боты", "Платежи": "Платежи", "Стикеры": "Стикеры", "Звонки": "Звонки", "Переводы": "Переводы", "Папки": "Папки", "Статистика": "Статистика", "Папки чатов": "Папки чатов", "Истории": "Истории", "Telegram Premium": "Telegram Premium", "SMS": "SMS", "Fragment": "Fragment", "aicompose": "ИИ-редактор", "communities": "Сообщества", "ephemeral": "Временные сообщения", "toncenter": "TON Center", "wallet": "Кошелёк", "feed": "Лента"}}