{"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": "AI 编辑器", "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\nX 的类型与嵌套方法的结果类型相同。", "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": "先前 MTProto 请求的 64 位传输 ID。", "x-tl-type": "long"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Telegram 将在上一个请求之后执行的嵌套 TL 请求。"}}, "additionalProperties": false, "required": ["msg_id", "query"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `msg_id` | `long` | 是的 | 先前 MTProto 请求的 64 位传输 ID。 |\n| `query` | `!X` | 是的 | Telegram 将在上一个请求之后执行的嵌套 TL 请求。 |"}, "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- [深层链接](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 [layer](https://core.telegram.org/api/invoking.md#layers)]调用指定的查询\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [调用API方法](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 ID 无效。\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": "调用请求而不订阅 [updates](https://core.telegram.org/api/updates.md) 使用的连接]（默认情况下，[文件查询](https://core.telegram.org/api/files.md) 启用此功能）。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [上传和下载文件](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": "在 [takeout 会话中调用方法，请参阅此处 » 了解更多信息](https://core.telegram.org/api/takeout.md)。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [外卖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": "[外卖会话ID »](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` | 是的 | [外卖会话ID »](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` 中的查询发送到正在使用的 [botBusinessConnection](https://core.telegram.org/constructor/botBusinessConnection.md) 的 `dc_id` 字段中指定的数据中心 ID。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [连接的商业机器人](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": "业务连接ID。"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "实际查询。"}}, "additionalProperties": false, "required": ["connection_id", "query"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `connection_id` | `string` | 是的 | 业务连接ID。 |\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": "仅限官方客户端，通过Apple推送验证调用。", "description": "仅限官方客户端，通过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_CHECK_%s__%s`重新执行需要reCAPTCHA验证的方法调用，其中第一个占位符是`action`，第二个占位符是reCAPTCHA密钥ID。", "description": "仅限官方客户端：通过`RECAPTCHA_CHECK_%s__%s`重新执行需要reCAPTCHA验证的方法调用，其中第一个占位符是`action`，第二个占位符是reCAPTCHA密钥ID。", "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**谁可以调用这个方法** · 仅限电报用户。", "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 id 已在某处发布，您现在无法使用它。\n- 500·`AUTH_RESTART` — 重新启动授权过程。\n- 500 · `AUTH_RESTART_%d` — 内部错误（调试信息 %d），请重复方法调用。\n- 400 · `PHONE_NUMBER_APP_SIGNUP_FORBIDDEN` — 您无法使用此应用程序进行注册。\n- 400·`PHONE_NUMBER_BANNED` — 所提供的电话号码禁止用于电报。\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**谁可以调用这个方法** · 仅限电报用户。", "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-消息ID"}, "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-消息ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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-消息ID，从[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-消息ID，从[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**谁可以调用这个方法** · 仅限电报用户。", "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 ID 无效。"}}, "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` — 提供的用户 ID 无效。"}}, "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": "用户ID", "x-tl-type": "long"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "授权密钥"}}, "additionalProperties": false, "required": ["id", "bytes"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `long` | 是的 | 用户ID |\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- [完美的前向保密](https://core.telegram.org/api/pfs.md)\n- [﻿移动协议：详细说明](https://core.telegram.org/mtproto/description.md)\n- [调用API方法](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 id 已在某处发布，您现在无法使用它。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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": "使用auth.requestPasswordRecovery发送的恢复代码重置 2FA 密码。", "description": "使用 [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery.md) 发送的恢复代码重置 [2FA 密码](https://core.telegram.org/api/srp.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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的返回值决定：参见【登录](https://core.telegram.org/api/auth.md)】。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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。flash-call，然后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": "仅限官方客户端，设备完整性验证失败时使用，无法获取Secret来调用[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` | 否 | 仅限官方客户端，设备完整性验证失败时使用，无法获取Secret来调用[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**谁可以调用这个方法** · 仅限电报用户。", "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": "生成登录令牌，用于通过二维码登录。", "description": "生成登录token，用于【二维码登录](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)。\n\n更多信息请参见【二维码登录](https://core.telegram.org/api/qr-login.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通过二维码登录](https://core.telegram.org/api/qr-login.md)\n- [深层链接](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 id 已在某处发布，您现在无法使用它。\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": "已登录用户ID列表，防止同一用户重复登录"}}, "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>` | 是的 | 已登录用户ID列表，防止同一用户重复登录 |"}, "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 不匹配的情况下生成的。", "description": "使用重定向登录令牌登录，该令牌是在[二维码登录](https://core.telegram.org/api/qr-login.md)期间 DC 不匹配时生成的。\n\n更多信息请参见【二维码登录](https://core.telegram.org/api/qr-login.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通过二维码登录](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": "接受二维码登录令牌，登录生成它的应用程序。", "description": "接受二维码登录令牌，登录生成它的应用程序。\n\n返回有关新会话的信息。\n\n更多信息请参见【二维码登录](https://core.telegram.org/api/qr-login.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通过二维码登录](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 类型：授权。"}}}}, "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": "二维码嵌入登录token，更多信息请参见【二维码登录](https://core.telegram.org/api/qr-login.md)】。"}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `token` | `bytes` | 是的 | 二维码嵌入登录token，更多信息请参见【二维码登录](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": "在将使用 auth.requestPasswordRecovery 发送的 2FA 恢复代码传递给 auth.recoverPassword 之前，检查其是否有效。", "description": "检查使用 [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery.md) 发送的 [2FA 恢复代码](https://core.telegram.org/api/srp.md) 是否有效，然后再将其传递给 [auth.recoverPassword](https://core.telegram.org/method/auth.recoverPassword.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [创建您的 Telegram 应用程序](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": "通过 Firebase 请求 SMS 代码。", "description": "通过 Firebase 请求 SMS 代码。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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 上，按照 [auth 文档 »](https://core.telegram.org/api/auth.md) 中的描述获取 JWS 对象"}, "play_integrity_token": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "在 Android 上，按照 [auth 文档 »](https://core.telegram.org/api/auth.md) 中所述获取的对象"}, "ios_push_secret": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "通过苹果推送通知收到的秘密令牌"}}, "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 上，按照 [auth 文档 »](https://core.telegram.org/api/auth.md) 中的描述获取 JWS 对象 |\n| `play_integrity_token` | `string` | 否 | 在 Android 上，按照 [auth 文档 »](https://core.telegram.org/api/auth.md) 中所述获取的对象 |\n| `ios_push_secret` | `string` | 否 | 通过苹果推送通知收到的秘密令牌 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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": "付款表单ID传递给[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` | 是的 | 付款表单ID传递给[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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [密码登录](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必须发送到用户的本机 DC，如密钥断言中返回的 `user_handle` (`dcId:userId`) 所指定，请参阅[此处 »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey) 了解完整流程。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [密码登录](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": "用于初始 [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) 请求的 DC ID；仅当用户的 DC 与初始 [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) 使用的 DC 不同时才设置。"}, "from_auth_key_id": {"type": "string", "pattern": "^-?\\d+$", "description": "连接到 `from_dc_id` 的身份验证密钥 ID（如果启用 PFS，则使用永久身份验证密钥 ID）；仅当用户的 DC 与初始 [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) 使用的 DC 不同时才设置。", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["credential"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `credential` | `InputPasskeyCredential` | 是的 | 密钥断言结果。 |\n| `from_dc_id` | `int` | 否 | 用于初始 [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) 请求的 DC ID；仅当用户的 DC 与初始 [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) 使用的 DC 不同时才设置。 |\n| `from_auth_key_id` | `long` | 否 | 连接到 `from_dc_id` 的身份验证密钥 ID（如果启用 PFS，则使用永久身份验证密钥 ID）；仅当用户的 DC 与初始 [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) 使用的 DC 不同时才设置。 |"}, "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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [处理PUSH-通知](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 推送身份验证密钥无效。\n- 400 · `WEBPUSH_KEY_INVALID` — 指定的Web推送椭圆曲线Diffie-Hellman公钥无效。\n- 400 · `WEBPUSH_TOKEN_INVALID` — 指定的Web推送令牌无效。"}}, "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，用于加密推送通知的可选加密密钥"}, "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，用于加密推送通知的可选加密密钥 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [处理PUSH-通知](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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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[PeerNotify设置](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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：用户。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400·`ABOUT_TOO_LONG` — 大约字符串太长。\n- 400 · `BUSINESS_CONNECTION_INVALID` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [聊天壁纸](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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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：用户。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：输入隐私规则。"}, "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": "从电报服务器中删除用户的帐户。", "description": "从电报服务器中删除用户的帐户。\n\n也可用于删除提供了登录代码但忘记了 2FA 密码且未配置恢复方法的用户的帐户，请参阅[此处 »](https://core.telegram.org/api/srp.md#password-recovery) 了解有关密码恢复的更多信息，以及[此处 »](https://core.telegram.org/api/account-deletion.md) 了解有关帐户删除的更多信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](https://core.telegram.org/api/srp.md)\n- [帐户删除](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 所提供的电话号码禁止用于电报。\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**谁可以调用这个方法** · 仅限电报用户。", "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：用户。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [处理PUSH-通知](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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**谁可以调用这个方法** · 仅限电报用户。", "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": "获取与密码信息相关的私人信息（恢复电子邮件、电报护照信息等）", "description": "获取与密码信息相关的私人信息（恢复电子邮件、电报[护照](https://core.telegram.org/passport.md)信息等）\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [帐户删除](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [帐户删除](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**谁可以调用这个方法** · 仅限电报用户。", "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": "获取 Web 登录小部件授权", "description": "获取网络[登录小部件](https://core.telegram.org/widgets/login.md)授权\n\n**谁可以调用这个方法** · 仅限电报用户。", "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": "注销活动网络 [电报登录](https://core.telegram.org/widgets/login.md) 会话\n\n**谁可以调用这个方法** · 仅限电报用户。", "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": "重置所有活动网络[电报登录](https://core.telegram.org/widgets/login.md)会话\n\n**谁可以调用这个方法** · 仅限电报用户。", "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 护照文档，有关详细信息，请参阅护照文档 »", "description": "获取所有已保存的 [Telegram Passport](https://core.telegram.org/passport.md) 文件，[更多信息请参阅护照文档 »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**谁可以调用这个方法** · 仅限电报用户。", "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 类型：安全值。"}, "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 护照文档，有关更多信息，请参阅护照文档 »", "description": "保存[Telegram Passport](https://core.telegram.org/passport.md)文档，[更多信息请参阅护照文档»](https://core.telegram.org/passport/encryption.md#encryption)\n\n**谁可以调用这个方法** · 仅限电报用户。", "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 类型：安全值。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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[安全价值](https://core.telegram.org/type/SecureValue.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "SecureValue", "oneOf": [{"$ref": "#/components/schemas/secureValue"}], "description": "TL 类型：安全值。"}}}}, "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 护照文档，有关详细信息，请参阅护照文档 »", "description": "删除存储的[Telegram Passport](https://core.telegram.org/passport.md)文档，[更多信息请参阅护照文档»](https://core.telegram.org/passport/encryption.md#encryption)\n\n**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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": "机器人ID", "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` | 是的 | 机器人ID |\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": "发送电报护照的验证电话代码。", "description": "发送电报验证电话号码[护照](https://core.telegram.org/passport.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。", "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": "验证电报电话号码 [护照](https://core.telegram.org/passport.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [外卖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": "是否导出[supergroups](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` | 否 | 是否导出[supergroups](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [外卖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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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 类型：更新。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [聊天壁纸](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 类型：壁纸。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [聊天壁纸](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 类型：壁纸。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [聊天壁纸](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [聊天壁纸](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [聊天壁纸](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报主题](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 类型：文档。"}}}}, "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)主题文件具有特定于平台的UI组件颜色，在创建仅修改壁纸或强调色的主题时可以不设置。"}, "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)主题文件具有特定于平台的UI组件颜色，在创建仅修改壁纸或强调色的主题时可以不设置。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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 类型：主题。"}}}}, "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)的唯一主题ID，可以为空以自动生成随机ID。"}, "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 类型：输入主题设置。"}, "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)的唯一主题ID，可以为空以自动生成随机ID。 |\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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：主题。"}}}}, "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": "唯一主题ID"}, "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 类型：输入主题设置。"}, "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` | 否 | 唯一主题ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：主题。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `THEME_FORMAT_INVALID` — 提供的主题格式无效。\n- 400 · `THEME_INVALID` — 提供的主题无效。\n- 400 · `THEME_SLUG_INVALID` — 指定的主题 slug 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [聊天壁纸](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 类型：壁纸。"}, "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 类型：输入壁纸。"}, "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 类型：全局隐私设置。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [电报业务](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 类型：全局隐私设置。"}}}}, "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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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": "对话框照片 ID"}, "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` | 是的 | 对话框照片 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报主题](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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) 构造函数的会话 ID，可使用 [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) 构造函数的会话 ID，可使用 [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：文档。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [表情符号状态](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号状态](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号状态](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [表情符号状态](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [上传和下载文件](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 类型：表情符号列表。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [上传和下载文件](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 类型：表情符号列表。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [强调色](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` — 指定的调色板 ID 无效。\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": "[要使用的强调调色板的 ID »](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` | 否 | [要使用的强调调色板的 ID »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [强调色](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 类型：表情符号列表。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号状态](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": "返回获取自定义表情符号 ID 的完整列表 » 不能在频道表情符号状态中使用 »。", "description": "返回获取不能在[频道表情符号状态»](https://core.telegram.org/api/emoji-status.md)中使用的[自定义表情符号ID»](https://core.telegram.org/api/custom-emoji.md)的完整列表。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [表情符号状态](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 类型：表情符号列表。"}}}}}, "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 营业时间](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [连接的商业机器人](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [连接的商业机器人](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": "机器人可以调用此方法来重新获取与特定业务 `connection_id` 关联的 updateBotBusinessConnect 构造函数，请参阅此处 » 有关已连接业务机器人的更多信息。", "description": "机器人可以调用此方法来重新获取与特定 [业务 `connection_id` 关联的 [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md) 构造函数，请参阅此处 »](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此方法可用于获取有关尚未缓存的业务连接的信息，如果该信息已缓存或获取更改，则不应调用该方法，因为最终更改将使用常用的[更新交付方法 »](https://core.telegram.org/api/updates.md) 作为新的 [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md) 更新]自动发送到机器人。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [使用更新](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CONNECTION_ID_INVALID` — 指定的连接 ID 无效。"}}, "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": "[业务连接ID»](https://core.telegram.org/api/bots/connected-business-bots.md)。"}}, "additionalProperties": false, "required": ["connection_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `connection_id` | `string` | 是的 | [业务连接ID»](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 业务介绍 »。", "description": "设置或删除【Telegram业务介绍»](https://core.telegram.org/api/business.md#business-introduction)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [连接的商业机器人](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` — 提供的对等 ID 无效。"}}, "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": "永久断开与所有业务机器人的特定聊天»（相当于在初始配置期间使用account.updateConnectedBot在`recipients.exclude_users`中指定它»）；要重新连接使用此方法断开的聊天，用户必须通过调用 account.updateConnectedBot » 重新连接整个机器人。", "description": "永久断开与所有[业务机器人»](https://core.telegram.org/api/bots/connected-business-bots.md)的特定聊天（相当于在初始配置期间使用[account.updateConnectedBot»](https://core.telegram.org/method/account.updateConnectedBot.md)在`recipients.exclude_users`中指定它）；要重新连接使用此方法断开的聊天，用户必须通过调用 [account.updateConnectedBot »](https://core.telegram.org/method/account.updateConnectedBot.md) 重新连接整个机器人。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [电报业务](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户资料](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [电报业务](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": "链接的 Slug，按照[此处 »](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` | 是的 | 链接的 Slug，按照[此处 »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [电报业务](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": "链接的 Slug，按照[此处 »](https://core.telegram.org/api/links.md#business-chat-links) 指定获得。"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `slug` | `string` | 是的 | 链接的 Slug，按照[此处 »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [电报业务](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": "链接的 Slug，按照[此处 »](https://core.telegram.org/api/links.md#business-chat-links) 指定获得。"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `slug` | `string` | 是的 | 链接的 Slug，按照[此处 »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [用户资料](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 广告。", "description": "禁用或重新启用当前 [Premium](https://core.telegram.org/api/premium.md) 帐户的 Telegram 广告。\n\n对于想要通过 [Telegram 广告平台 »](https://ads.telegram.org) 启动和查看自己的 Telegram 广告的企业主来说非常有用。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报高级版](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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[反应通知设置](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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[反应通知设置](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/gifts.md#hosted-collectible-gifts)的[表情符号状态»](https://core.telegram.org/api/emoji-status.md)列表。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号状态](https://core.telegram.org/api/emoji-status.md)\n- [电报礼物](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": "获取我们通过付费消息从指定用户那里收到的星星数量 »;收到的金额将等于发送的金额乘以 star\\_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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [付费消息](https://core.telegram.org/api/paid-messages.md)\n- [客户端配置](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` — 提供的用户 ID 无效。"}}, "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": "如果设置，可以包含[monoforum（频道私信）](https://core.telegram.org/api/monoforum.md)的ID，以获取用户通过频道向我们发送私信所花费的星星数量。", "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` | 否 | 如果设置，可以包含[monoforum（频道私信）](https://core.telegram.org/api/monoforum.md)的ID，以获取用户通过频道向我们发送私信所花费的星星数量。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [付费消息](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` — 提供的用户 ID 无效。"}}, "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": "如果设置，则应用 [monoforum 又名直接消息 »](https://core.telegram.org/api/monoforum.md) 中的设置（传递 monoforum 的 ID，**不是** 关联频道的 ID）。", "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` | 否 | 如果设置，则应用 [monoforum 又名直接消息 »](https://core.telegram.org/api/monoforum.md) 中的设置（传递 monoforum 的 ID，**不是** 关联频道的 ID）。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户资料](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户资料](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": "仅获取当前添加到配置文件中的歌曲 ID 的完整列表，请参阅此处 » 了解更多信息。", "description": "仅获取[当前添加到个人资料中的歌曲的 ID 的完整列表，请参阅此处 »](https://core.telegram.org/api/profile.md#music) 了解更多信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [用户资料](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": "哈希[从之前返回的 ID 列表中生成 »](https://core.telegram.org/api/offsets.md#hash-generation)。", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `hash` | `long` | 是的 | 哈希[从之前返回的 ID 列表中生成 »](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/gifts.md#hosted-collectible-gifts)相关的所有[聊天主题»](https://core.telegram.org/api/themes.md#chat-themes)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报主题](https://core.telegram.org/api/themes.md)\n- [电报礼物](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": "[pagination](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` | 是的 | [pagination](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [密码登录](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [密码登录](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 类型：密钥。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [密码登录](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [密码登录](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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}}, "additionalProperties": false, "required": ["bot_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot_id` | `InputUser` | 是的 | TL 类型：输入用户。 |"}, "x-telegram-docs-note": "未找到此方法的 Telegram 官方文档页面。", "x-browser-schema-id": "1743593320"}}, "/catalog/account.getWebBrowserSettings": {"post": {"operationId": "account.getWebBrowserSettings", "tags": ["账户"], "summary": "account.getWebBrowserSettings", "description": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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": "Telegram 客户端 API 方法。此卡片展示其 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- [通道、超组、千兆组和基本组](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：用户。"}, "x-tl-type": "Vector<User>"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400·`CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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 类型：输入用户。"}, "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` — 提供的消息 ID 无效。\n- 400 · `USERNAME_OCCUPIED` — 提供的用户名已被占用。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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) 数据包含一些错误。在错误修复之前，用户将无法向您重新提交其 Passport 数据（您返回错误的字段内容必须更改）。\n\n如果用户提交的数据因任何原因不满足您的服务所需的标准，请使用此选项。例如，如果生日日期似乎无效、提交的文档模糊、扫描显示篡改证据等。请在错误消息中提供一些详细信息，以确保用户知道如何纠正问题。\n\n**谁可以调用这个方法** · 仅限电报机器人。", "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` — 提供的用户 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [隐私设置](https://core.telegram.org/api/privacy.md)\n- [付费消息](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 类型：联系要求。"}, "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 类型：输入用户。"}, "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- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [用户资料](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` — 提供的用户 ID 无效。"}}, "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": "用户的 ID。"}, "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)之前添加的歌曲的ID，以避免如果没有变化则返回任何结果。", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["id", "offset", "limit", "hash"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | 是的 | 用户的 ID。 |\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)之前添加的歌曲的ID，以避免如果没有变化则返回任何结果。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户资料](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` — 提供的用户 ID 无效。"}}, "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": "用户的 ID。"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "TL 类型：输入文档。"}, "x-tl-type": "Vector<InputDocument>", "description": "歌曲（此处，`file_reference`可以为空以刷新文件引用）。"}}, "additionalProperties": false, "required": ["id", "documents"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | 是的 | 用户的 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户资料](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400·`BIRTHDAY_ALREADY` — 目标用户已设置生日。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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": "获取所有联系人的电报 ID。", "description": "获取所有联系人的电报 ID。\n返回所有联系人的 Telegram 用户 ID 数组（如果联系人没有关联的 Telegram 帐户或使用隐私设置隐藏了其帐户，则为 0）。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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 类型：联系人状态。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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`的用户ID，包括当前登录用户的ID（如果保存为联系人）。  示例：[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`的用户ID，包括当前登录用户的ID（如果保存为联系人）。  示例：[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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：输入触点。"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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 类型：输入用户。"}, "x-tl-type": "Vector<InputUser>", "description": "用户ID列表"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputUser>` | 是的 | 用户ID列表 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [被阻止的用户](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` — 提供的联系 ID 无效。\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [被阻止的用户](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` — 提供的联系 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [被阻止的用户](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**谁可以调用这个方法** · 仅限电报用户。", "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- [深层链接](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": "引荐链接中的源 ID（如果有）。"}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `username` | `string` | 是的 | 用户、聊天或频道的公开名称。 |\n| `referer` | `string` | 否 | 引荐链接中的源 ID（如果有）。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [机器人的访客模式](https://core.telegram.org/api/bots/guest-mode.md)\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [同行评级最高](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [外卖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 类型：已保存的联系人。"}, "x-tl-type": "Vector<SavedContact>"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400·`TAKEOUT_INVALID` — 指定的外卖ID无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [同行评级最高](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [联系人名单](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CONTACT_ID_INVALID` — 提供的联系 ID 无效。\n- 400 · `CONTACT_NAME_EMPTY` — 联系人姓名为空。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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": "其他用户的电报 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` | 是的 | 其他用户的电报 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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [操作栏](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CONTACT_ADD_MISSING` — 缺少要添加的联系人。\n- 400 · `CONTACT_ID_INVALID` — 提供的联系 ID 无效。\n- 400·`CONTACT_REQ_MISSING` — 缺少联系请求。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [附近的用户&聊天](https://core.telegram.org/api/nearby.md)\n- [电报业务](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 类型：更新。"}}}}, "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 KM 或前一个位置未知时才执行此操作。"}, "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 KM 或前一个位置未知时才执行此操作。 |\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": "停止接收有关`@replies`中某个用户的[讨论回复](https://core.telegram.org/api/discussion.md)]的通知\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [讨论组](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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": "[@replies](https://core.telegram.org/api/discussion.md#replies)聊天中的消息ID"}}, "additionalProperties": false, "required": ["msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `delete_message` | `true` | 否 | 是否也删除指定消息 |\n| `delete_history` | `true` | 否 | 是否也删除该用户的所有`@replies`消息 |\n| `report_spam` | `true` | 否 | 是否同时举报该用户的垃圾邮件 |\n| `msg_id` | `int` | 是的 | [@replies](https://core.telegram.org/api/discussion.md#replies)聊天中的消息ID |"}, "x-telegram-rpc-errors": ["MSG_ID_INVALID"], "x-browser-schema-id": "698914348"}}, "/catalog/contacts.resolvePhone": {"post": {"operationId": "contacts.resolvePhone", "tags": ["联系方式"], "summary": "如果隐私设置允许，则解析电话号码以获取用户信息。", "description": "如果隐私设置允许，则解析电话号码以获取用户信息。\n\n确保为此方法实现客户端速率限制/反跳，每 3 秒最多允许 1 次调用。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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[导出的ContactToken](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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：用户。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [隐私设置](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": "好友的用户ID完整列表，请参阅[此处](https://core.telegram.org/api/privacy.md)了解更多信息。"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | 是的 | 好友的用户ID完整列表，请参阅[此处](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [被阻止的用户](https://core.telegram.org/api/block.md)\n- [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 小时调用此方法，如果结果非空，则应使用它来适当更新 user.`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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户资料](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [联系人名单](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` — 提供的联系 ID 无效。\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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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：用户。"}}}}}, "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 类型：输入用户。"}, "token": {"type": "string", "x-tl-type": "string", "description": "TL 类型 `string` 的值。"}}, "additionalProperties": false, "required": ["user_id", "token"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | 是的 | TL 类型：输入用户。 |\n| `token` | `string` | 是的 | TL 类型 `string` 的值。 |"}, "x-telegram-docs-note": "未找到此方法的 Telegram 官方文档页面。", "x-browser-schema-id": "900187850"}}, "/catalog/messages.getMessages": {"post": {"operationId": "messages.getMessages", "tags": ["留言"], "summary": "按 ID 返回消息列表。", "description": "按 ID 返回消息列表。\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` — 提供的消息 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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 类型：输入消息。"}, "x-tl-type": "Vector<InputMessage>", "description": "消息ID列表"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputMessage>` | 是的 | 消息ID列表 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](https://core.telegram.org/api/folders.md)\n- [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` — 无效的文件夹 ID。\n- 400 · `OFFSET_PEER_ID_INVALID` — 提供的偏移对等点无效。\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — 固定对话框过多。\n- 400·`TAKEOUT_INVALID` — 指定的外卖ID无效。"}}, "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": "列表偏移量的消息 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": "与发行相关的聊天仍在继续。"}, "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` | 是的 | 列表偏移量的消息 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [用户授权](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` — 提供的聊天 ID 无效。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 400 · `FROZEN_PARTICIPANT_MISSING` — 当前账号[冻结](https://core.telegram.org/api/auth.md#frozen-accounts)，无法访问指定节点。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400·`TAKEOUT_INVALID` — 指定的外卖ID无效。"}}, "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": "选择开始的消息 ID。"}, "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": "返回 ID 小于指定 ID 的消息。"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "返回 ID 大于指定 ID 的消息。"}, "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` | 是的 | 选择开始的消息 ID。 |\n| `offset_date` | `int` | 是的 | 历史偏移量的日期（以 Unix 秒为单位）。 |\n| `add_offset` | `int` | 是的 | 消息中的附加偏移量。 |\n| `limit` | `int` | 是的 | 返回消息的最大数量。 |\n| `max_id` | `int` | 是的 | 返回 ID 小于指定 ID 的消息。 |\n| `min_id` | `int` | 是的 | 返回 ID 大于指定 ID 的消息。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [已保存的消息](https://core.telegram.org/api/saved-messages.md)\n- [消息线程](https://core.telegram.org/api/threads.md)\n- [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` — 提供的聊天 ID 无效。\n- 400 · `FROM_PEER_INVALID` — 指定的from_id 无效。\n- 400 · `INPUT_FILTER_INVALID` — 指定的过滤器无效。\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `PEER_ID_NOT_SUPPORTED` — 不支持提供的对等 ID。\n- 400 · `SEARCH_QUERY_EMPTY` — 搜索查询为空。\n- 400·`TAKEOUT_INVALID` — 指定的外卖ID无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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": "使用此 ID 在[已保存消息对话框 »](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 类型：反应。"}, "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": "线程主题或热门消息的 ID。"}, "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": "只返回从指定消息ID开始的消息"}, "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": "[最大返回消息ID](https://core.telegram.org/api/offsets.md)"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[返回的最小消息ID](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` | 否 | 使用此 ID 在[已保存消息对话框 »](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` | 否 | 线程主题或热门消息的 ID。 |\n| `filter` | `MessagesFilter` | 是的 | 按消息或附件类型过滤。 |\n| `min_date` | `int` | 是的 | 消息日期的下限（以 Unix 秒为单位）。 |\n| `max_date` | `int` | 是的 | 消息日期的上限（以 Unix 秒为单位）。 |\n| `offset_id` | `int` | 是的 | 只返回从指定消息ID开始的消息 |\n| `add_offset` | `int` | 是的 | [额外偏移量](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | 是的 | 每个问题的最大结果数。 |\n| `max_id` | `int` | 是的 | [最大返回消息ID](https://core.telegram.org/api/offsets.md) |\n| `min_id` | `int` | 是的 | [返回的最小消息ID](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的聊天 ID 无效。\n- 400 · `CHAT_REVOKE_DATE_UNSUPPORTED` — `min_date` 和 `max_date` 不可与非用户对等点一起使用。\n- 400 · `MAX_DATE_INVALID` — 指定的最大日期无效。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `MIN_DATE_INVALID` — 指定的最短日期无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "要删除的消息的最大 ID"}, "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` | 是的 | 要删除的消息的最大 ID |\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- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [电报业务](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — 您无法删除您尝试删除的消息之一，很可能是因为它是一条服务消息。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\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": "消息ID列表"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `revoke` | `true` | 否 | 是否删除所有聊天参与者的消息 |\n| `id` | `Vector<int>` | 是的 | 消息ID列表 |"}, "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 类型：已接收通知消息。"}, "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": "客户端中可用的最大消息 ID。"}}, "additionalProperties": false, "required": ["max_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `max_id` | `int` | 是的 | 客户端中可用的最大消息 ID。 |"}, "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- [消息线程](https://core.telegram.org/api/threads.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [通道、超组、千兆组和基本组](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) 不支持此功能。\n- 406 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 403 · `CHAT_WRITE_FORBIDDEN` — 您不能在此聊天中书写。\n- 403 · `GROUPCALL_FORBIDDEN` — 指定的群组呼叫不能在此上下文中使用。\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `MESSAGE_TOO_LONG` — 提供的消息太长。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 406 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "[主题ID](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` | 否 | [主题ID](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- [贴纸和面具](https://core.telegram.org/api/stickers.md)\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [预定消息](https://core.telegram.org/api/scheduled-messages.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [动画消息效果](https://core.telegram.org/api/effects.md)\n- [付费消息](https://core.telegram.org/api/paid-messages.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [推荐帖子](https://core.telegram.org/api/suggested-posts.md)\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [讨论组](https://core.telegram.org/api/discussion.md)\n- [错误处理](https://core.telegram.org/api/errors.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [直接向频道发送消息](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `ADMIN_RIGHTS_EMPTY` — 传入keyboardButtonRequestPeer.peer_type.user_admin_rights 的 chatAdminRights 构造函数没有设置权限（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` — Bot 域无效。\n- 400 · `BOT_INVALID` — 这不是一个有效的机器人。\n- 400 · `BUSINESS_CONNECTION_INVALID` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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` — 指定的按钮ID无效。\n- 400 · `BUTTON_TYPE_INVALID` — 您提供的一个或多个按钮的类型无效。\n- 400 · `BUTTON_URL_INVALID` — 按钮URL 无效。\n- 400 · `BUTTON_USER_INVALID` — 传递给 inputKeyboardButtonUserProfile 的 `user_id` 无效！\n- 400 · `BUTTON_USER_PRIVACY_RESTRICTED` — [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile.md) 按钮中指定的用户隐私设置不允许创建此类按钮。\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400·`CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](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` — 提供的聊天 ID 无效。\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` — 提供的消息 ID 无效。\n- 500 · `MSG_WAIT_FAILED` — 等待调用返回错误。\n- 406 · `PAYMENT_UNSUPPORTED` — 将单独收到错误的详细描述，如[此处»](https://core.telegram.org/api/errors.md#406-not-acceptable)所述。\n- 404 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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` — 您提供了一个已被使用的随机 ID。\n- 400 · `RANDOM_ID_EMPTY` — 随机 ID 为空。\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` — 指定的回复消息ID 无效。\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` — 指定的故事 ID 无效。\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 类型：消息实体。"}, "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- [贴纸和面具](https://core.telegram.org/api/stickers.md)\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [预定消息](https://core.telegram.org/api/scheduled-messages.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [动画消息效果](https://core.telegram.org/api/effects.md)\n- [付费消息](https://core.telegram.org/api/paid-messages.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [推荐帖子](https://core.telegram.org/api/suggested-posts.md)\n- [讨论组](https://core.telegram.org/api/discussion.md)\n- [文件参考](https://core.telegram.org/api/file-references.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [明星订阅](https://core.telegram.org/api/subscriptions.md)\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [清单和待办事项清单](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 类型：更新。"}}}}, "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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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` — 您无法在此聊天中发送 GIF。\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` — 指定的效果ID无效。\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` — 传入的[inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia.md)指定的`stars_amount`无效。\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` — 提供的消息 ID 无效。\n- 400 · `PAYMENT_PROVIDER_INVALID` — 指定的支付提供商无效。\n- 406 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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` — 您提供了一个已被使用的随机 ID。\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` — 指定的回复消息ID 无效。\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` — 指定的故事 ID 无效。\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` — 提供的媒体生存时间无效。\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` — 提供的 Web 文档 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": "随机 ID 以避免重复发送相同的消息。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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 类型：消息实体。"}, "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` | 是的 | 随机 ID 以避免重复发送相同的消息。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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- [使用更新](https://core.telegram.org/api/updates.md)\n- [论坛主题](https://core.telegram.org/api/forum.md)\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [预定消息](https://core.telegram.org/api/scheduled-messages.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [动画消息效果](https://core.telegram.org/api/effects.md)\n- [付费消息](https://core.telegram.org/api/paid-messages.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [推荐帖子](https://core.telegram.org/api/suggested-posts.md)\n- [讨论组](https://core.telegram.org/api/discussion.md)\n- [错误处理](https://core.telegram.org/api/errors.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [客户端配置](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 类型：更新。"}}}}, "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` — 提供的聊天 ID 无效。\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` — 您无法在此聊天中发送 GIF。\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` — 未提供消息 ID。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 406 · `PAYMENT_UNSUPPORTED` — 将单独收到错误的详细描述，如[此处»](https://core.telegram.org/api/errors.md#406-not-acceptable)所述。\n- 406 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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` — 您提供了一个已被使用的随机 ID。\n- 400 · `RANDOM_ID_INVALID` — 提供的随机 ID 无效。\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": "源消息 ID。"}, "random_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "每条消息都有唯一的转发 ID。"}, "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)，将消息转发到[monoforum topic](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>` | 是的 | 源消息 ID。 |\n| `random_id` | `Vector<long>` | 是的 | 每条消息都有唯一的转发 ID。 |\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)，将消息转发到[monoforum topic](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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) 不支持此功能。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：报告结果。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `MESSAGE_REQUIRED` — 必须将非空 ID 列表传递给 `id`。\n- 400 · `OPTION_INVALID` — 选择的选项无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "需要上报的消息ID"}, "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>` | 是的 | 需要上报的消息ID |\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": "返回有关其 ID 的聊天基本信息。", "description": "返回有关其 ID 的聊天基本信息。\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` — 提供的聊天 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "聊天ID列表"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | 是的 | 聊天ID列表 |"}, "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- [通道、超组、千兆组和基本组](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` — 提供的聊天 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 400 · `CHAT_TITLE_EMPTY` — 未提供聊天标题。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "聊天ID", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "description": "新的聊天名称，与旧的不同"}}, "additionalProperties": false, "required": ["chat_id", "title"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | 是的 | 聊天ID |\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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 400 · `IMAGE_PROCESS_FAILED` — 处理图像时失败。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "聊天ID", "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` | 是的 | 聊天ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的聊天 ID 无效。\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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `USERS_TOO_MUCH` — 已超出最大用户数（例如，创建聊天）。\n- 400 · `USER_ALREADY_PARTICIPANT` — 用户已在组中。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。\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": "聊天ID", "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": "待添加的用户ID"}, "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` | 是的 | 聊天ID |\n| `user_id` | `InputUser` | 是的 | 待添加的用户ID |\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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。\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": "聊天ID", "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": "待删除的用户ID"}}, "additionalProperties": false, "required": ["chat_id", "user_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `revoke_history` | `true` | 否 | 删除该聊天中指定用户的全部聊天记录。 |\n| `chat_id` | `long` | 是的 | 聊天ID |\n| `user_id` | `InputUser` | 是的 | 待删除的用户ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 生成聊天 ID 时失败。\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 类型：输入用户。"}, "x-tl-type": "Vector<InputUser>", "description": "待邀请的用户ID列表"}, "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>` | 是的 | 待邀请的用户ID列表 |\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": "返回 Diffie-Hellman 密钥生成的配置参数。还可以返回所需长度的随机字节序列。", "description": "返回 Diffie-Hellman 密钥生成的配置参数。还可以返回所需长度的随机字节序列。\n\n**谁可以调用这个方法** · 仅限电报用户。", "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) 的 **version** 参数的值，可在客户端获取"}, "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) 的 **version** 参数的值，可在客户端获取 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](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 类型：加密聊天。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `DH_G_A_INVALID` — g_a 无效。\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `RANDOM_ID_DUPLICATE` — 您提供了一个已被使用的随机 ID。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。\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": "用户ID"}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "需要唯一的客户端请求 ID，以防止重新发送。这也兼作聊天 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}, "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` | 是的 | 用户ID |\n| `random_id` | `int` | 是的 | 需要唯一的客户端请求 ID，以防止重新发送。这也兼作聊天 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：加密聊天。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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": "秘密聊天ID"}, "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` | 是的 | 秘密聊天ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的聊天 ID 为空。\n- 400 · `ENCRYPTION_ALREADY_ACCEPTED` — 秘密聊天已接受。\n- 400 · `ENCRYPTION_ALREADY_DECLINED` — 秘密聊天已被拒绝。\n- 400 · `ENCRYPTION_ID_INVALID` — 提供的秘密聊天 ID 无效。"}}, "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": "秘密聊天ID"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `delete_history` | `true` | 否 | 是否也删除其他用户的整个聊天记录 |\n| `chat_id` | `int` | 是的 | 秘密聊天ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的聊天 ID 无效。"}}, "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": "秘密聊天ID"}, "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` | 是的 | 秘密聊天ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的聊天 ID 无效。\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": "秘密聊天ID"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "历史记录中接收消息的最大日期值"}}, "additionalProperties": false, "required": ["peer", "max_date"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | 是的 | 秘密聊天ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](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` — 提供的聊天 ID 无效。\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": "秘密聊天ID"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "唯一的客户端消息 ID，是避免消息重新发送所必需的。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) 类型的 TL 序列化，使用聊天初始化期间创建的密钥进行加密"}}, "additionalProperties": false, "required": ["peer", "random_id", "data"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `silent` | `true` | 否 | 发送加密消息而不通知 |\n| `peer` | `InputEncryptedChat` | 是的 | 秘密聊天ID |\n| `random_id` | `long` | 是的 | 唯一的客户端消息 ID，是避免消息重新发送所必需的。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\n| `data` | `bytes` | 是的 | [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) 类型的 TL 序列化，使用聊天初始化期间创建的密钥进行加密 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](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` — 提供的聊天 ID 无效。\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": "秘密聊天ID"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "防止消息重新发送所必需的唯一客户端消息 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) 类型的 TL 序列化，使用聊天初始化期间生成的密钥进行加密"}, "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` | 是的 | 秘密聊天ID |\n| `random_id` | `long` | 是的 | 防止消息重新发送所必需的唯一客户端消息 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\n| `data` | `bytes` | 是的 | [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) 类型的 TL 序列化，使用聊天初始化期间生成的密钥进行加密 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](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` — 提供的聊天 ID 无效。\n- 400 · `DATA_INVALID` — 加密数据无效。\n- 400 · `DATA_TOO_LONG` — 数据太长。\n- 400 · `ENCRYPTION_DECLINED` — 秘密聊天被拒绝。\n- 400 · `ENCRYPTION_ID_INVALID` — 提供的秘密聊天 ID 无效。\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": "秘密聊天ID"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "需要唯一的客户端消息 ID，以防止消息重新发送。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) 类型的 TL 序列化，使用聊天初始化期间生成的密钥进行加密"}}, "additionalProperties": false, "required": ["peer", "random_id", "data"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | 是的 | 秘密聊天ID |\n| `random_id` | `long` | 是的 | 需要唯一的客户端消息 ID，以防止消息重新发送。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\n| `data` | `bytes` | 是的 | [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) 类型的 TL 序列化，使用聊天初始化期间生成的密钥进行加密 |"}, "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": "确认客户端在秘密聊天中收到消息，取消推送通知。", "description": "确认客户端在秘密聊天中收到消息，取消推送通知。\n该方法返回已取消推送通知的**随机\\_id**消息列表。\n\n**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的聊天 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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": "消息ID列表"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `Vector<int>` | 是的 | 消息ID列表 |"}, "x-browser-schema-id": "916930423"}}, "/catalog/messages.getStickers": {"post": {"operationId": "messages.getStickers", "tags": ["留言"], "summary": "通过表情符号获取贴纸", "description": "通过表情符号获取贴纸\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [带有消息实体的样式文本](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 类型：消息实体。"}, "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- [电报之星](https://core.telegram.org/api/stars.md)\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [明星订阅](https://core.telegram.org/api/subscriptions.md)\n- [客户端配置](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[导出聊天邀请](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` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) 不支持此功能。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 403 · `CHAT_WRITE_FORBIDDEN` — 您不能在此聊天中书写。\n- 400 · `EXPIRE_DATE_INVALID` — 指定的有效期无效。\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "旧版标志，再现此方法的旧版行为：如果设置，则在创建新链接之前撤销所有先前的链接。为 bot 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` | 否 | 旧版标志，再现此方法的旧版行为：如果设置，则在创建新链接之前撤销所有先前的链接。为 bot 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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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 类型：聊天邀请。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [明星订阅](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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- [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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [深层链接](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 类型：更新。"}}}}, "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 500 · `RANDOM_ID_DUPLICATE` — 您提供了一个已被使用的随机 ID。\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": "随机 ID 以避免重复发送相同的消息。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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` | 是的 | 随机 ID 以避免重复发送相同的消息。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — 提供的聊天 ID 无效。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "消息ID"}, "increment": {"type": "boolean", "x-tl-type": "Bool", "description": "是否将消息标记为已查看并增加查看计数器"}}, "additionalProperties": false, "required": ["peer", "id", "increment"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发现消息的对等点 |\n| `id` | `Vector<int>` | 是的 | 消息ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — 提供的聊天 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。\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": "群组ID", "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` | 是的 | 群组ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — 您加入的频道/超级群组过多。\n- 403 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 500 · `CHAT_INVALID` — 无效聊天。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [搜索和过滤](https://core.telegram.org/api/search.md)\n- [对话框文件夹](https://core.telegram.org/api/folders.md)\n- [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` — 无效的文件夹 ID。\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": "[对等文件夹ID，了解更多信息请点击这里](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 类型：输入通道。", "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，然后设置为 messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) 的 [`next_rate` 参数，或者如果不存在，则设置为最后返回消息的 `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` | 否 | [对等文件夹ID，了解更多信息请点击这里](https://core.telegram.org/api/folders.md#peer-folders) |\n| `community` | `InputChannel` | 否 | TL 类型：输入通道。 |\n| `q` | `string` | 是的 | 查询 |\n| `filter` | `MessagesFilter` | 是的 | 全局搜索过滤器 |\n| `min_date` | `int` | 是的 | 如果指定正值，该方法将仅返回日期大于 min_date 的消息 |\n| `max_date` | `int` | 是的 | 如果传输正值，该方法将仅返回日期小于 max_date 的消息 |\n| `offset_rate` | `int` | 是的 | 初始为 0，然后设置为 messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) 的 [`next_rate` 参数，或者如果不存在，则设置为最后返回消息的 `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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](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": "按贴纸集 ID 的新贴纸集订单"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `masks` | `true` | 否 | 重新订购面具贴纸套装 |\n| `emojis` | `true` | 否 | 重新排序[自定义表情符号贴纸集](https://core.telegram.org/api/custom-emoji.md) |\n| `order` | `Vector<long>` | 是的 | 按贴纸集 ID 的新贴纸集订单 |"}, "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 类型：文档。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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 添加到已保存的 gif 列表", "description": "将 GIF 添加到已保存的 gif 列表\n\n**谁可以调用这个方法** · 仅限电报用户。", "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 ID 无效。"}}, "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 列表中删除 GIF"}}, "additionalProperties": false, "required": ["id", "unsave"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | 是的 | GIF 保存 |\n| `unsave` | `Bool` | 是的 | 是否从已保存的 gif 列表中删除 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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [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` — 查询ID无效。\n- 400 · `REPLY_MARKUP_INVALID` — 提供的回复标记无效。\n- 400 · `RESULTS_TOO_MUCH` — 提供了太多结果。\n- 400 · `RESULT_ID_DUPLICATE` — 您提供了重复的结果 ID。\n- 400 · `RESULT_ID_INVALID` — 指定的结果 ID 之一无效。\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` — switch_webview.url 中指定的URL无效！\n- 400 · `URL_INVALID` — 提供的 URL 无效。\n- 403 · `USER_BOT_INVALID` — 用户帐户调用该方法时必须提供`bot`方法参数。如果没有该方法参数，则该方法只能由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` — 提供的 Web 文档 MIME 类型无效。\n- 400 · `WEBDOCUMENT_SIZE_TOO_BIG` — 网页文档太大！\n- 400 · `WEBDOCUMENT_URL_EMPTY` — 传递的网页文档URL 为空。\n- 400 · `WEBDOCUMENT_URL_INVALID` — 指定的Web文档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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言草稿](https://core.telegram.org/api/drafts.md)\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [付费消息](https://core.telegram.org/api/paid-messages.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [讨论组](https://core.telegram.org/api/discussion.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [客户端配置](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 类型：更新。"}}}}, "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` — 您无法在此聊天中发送 GIF。\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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — 您需要 [Telegram Premium 订阅](https://core.telegram.org/api/premium.md) 才能向该用户发送消息。\n- 400 · `QUERY_ID_EMPTY` — 查询 ID 为空。\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` — 您提供了一个已被使用的随机 ID。\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` — 结果 ID 为空。\n- 400 · `RESULT_ID_INVALID` — 指定的结果 ID 之一无效。\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": "随机 ID 以避免重新发送相同的查询。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "x-tl-type": "long"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "从[messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)查询ID", "x-tl-type": "long"}, "id": {"type": "string", "x-tl-type": "string", "description": "来自 [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) 的结果 ID"}, "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` | 是的 | 随机 ID 以避免重新发送相同的查询。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\n| `query_id` | `long` | 是的 | 从[messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)查询ID |\n| `id` | `string` | 是的 | 来自 [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) 的结果 ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "消息ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发送媒体的对等点 |\n| `id` | `int` | 是的 | 消息ID |"}, "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": "在选定的聊天中按 ID 编辑消息。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [预定消息](https://core.telegram.org/api/scheduled-messages.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [清单和待办事项清单](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `BOT_DOMAIN_INVALID` — Bot 域无效。\n- 400 · `BOT_INVALID` — 这不是一个有效的机器人。\n- 400 · `BUSINESS_CONNECTION_INVALID` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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` — 您无法在此聊天中发送 GIF。\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` — 提供的消息 ID 无效。\n- 400 · `MESSAGE_NOT_MODIFIED` — 提供的消息数据与之前的消息数据相同，消息未被修改。\n- 400 · `MESSAGE_TOO_LONG` — 提供的消息太长。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 500 · `MSG_WAIT_FAILED` — 等待调用返回错误。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "正在编辑的消息的 ID。"}, "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 类型：消息实体。"}, "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` | 是的 | 正在编辑的消息的 ID。 |\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- [带有消息实体的样式文本](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` — 提供的消息 ID 无效。\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": "发送内联消息 ID"}, "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 类型：消息实体。"}, "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` | 是的 | 发送内联消息 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](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` — 提供的消息 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PASSWORD_MISSING` — 执行此操作之前必须[启用2FA](https://core.telegram.org/api/srp.md)。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "使用内联键盘的消息 ID"}, "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](https://core.telegram.org/api/srp.md)生成的SRP有效负载。", "x-tl-flag": "flags.2?InputCheckPasswordSRP"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `game` | `true` | 否 | 这是否是“玩游戏”按钮 |\n| `peer` | `InputPeer` | 是的 | 内联键盘发送到哪里 |\n| `msg_id` | `int` | 是的 | 使用内联键盘的消息 ID |\n| `data` | `bytes` | 否 | 回调数据 |\n| `password` | `InputCheckPasswordSRP` | 否 | 对于按钮[要求您使用2FA密码](https://core.telegram.org/constructor/keyboardButtonCallback.md)验证身份，使用[SRP](https://core.telegram.org/api/srp.md)生成的SRP有效负载。 |"}, "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**谁可以调用这个方法** · 仅限电报机器人。", "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` — 查询ID无效。\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": "是否将消息显示为弹出窗口而不是 Toast 通知"}, "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` | 否 | 是否将消息显示为弹出窗口而不是 Toast 通知 |\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": "获取指定peer的对话信息", "description": "获取指定peer的对话信息\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户授权](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [动画消息效果](https://core.telegram.org/api/effects.md)\n- [推荐帖子](https://core.telegram.org/api/suggested-posts.md)\n- [留言草稿](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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 类型：消息实体。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言草稿](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 类型：更新。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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": "要标记为已读的贴纸集 ID"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | 是的 | 要标记为已读的贴纸集 ID |"}, "x-browser-schema-id": "1527873830"}}, "/catalog/messages.getRecentStickers": {"post": {"operationId": "messages.getRecentStickers", "tags": ["留言"], "summary": "获取最近的贴纸", "description": "获取最近的贴纸\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的贴纸 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [贴纸和面具](https://core.telegram.org/api/stickers.md)\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。", "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)<[贴纸集覆盖](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**谁可以调用这个方法** · 仅限电报机器人。", "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `BOT_SCORE_NOT_MODIFIED` — 分数未修改。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报机器人。", "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` — 提供的消息 ID 无效。\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": "内嵌消息的ID"}, "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` | 是的 | 内嵌消息的ID |\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**谁可以调用这个方法** · 仅限电报机器人。", "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "带有游戏媒体附件的消息 ID"}, "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` | 是的 | 带有游戏媒体附件的消息 ID |\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**谁可以调用这个方法** · 仅限电报机器人。", "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` — 提供的消息 ID 无效。\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": "内嵌消息ID"}, "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` | 是的 | 内嵌消息ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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` — 提供的消息 ID 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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": "用户ID"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "返回的最大聊天ID（参见[分页](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` | 是的 | 用户ID |\n| `max_id` | `long` | 是的 | 返回的最大聊天ID（参见[分页](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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": "要获取的 IV 页的 URL"}, "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` 字段，或者如果这是第一次调用或之前的调用没有返回 [webPage](https://core.telegram.org/constructor/webPage.md).`hash`] 字段，则传递 0。"}}, "additionalProperties": false, "required": ["url", "hash"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `url` | `string` | 是的 | 要获取的 IV 页的 URL |\n| `hash` | `int` | 是的 | [用于缓存的哈希，更多信息请点击这里](https://core.telegram.org/api/offsets.md#hash-generation)。  **注意**：这种情况下无法使用通常的哈希生成算法，请重新使用之前调用该方法返回的 [webPage](https://core.telegram.org/constructor/webPage.md).`hash` 字段，或者如果这是第一次调用或之前的调用没有返回 [webPage](https://core.telegram.org/constructor/webPage.md).`hash`] 字段，则传递 0。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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` — 提供的对等 ID 无效。"}}, "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": "[对等文件夹ID，了解更多信息请点击这里](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` | 是的 | [对等文件夹ID，了解更多信息请点击这里](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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` — 无效的文件夹 ID。"}}, "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": "[对等文件夹ID，了解更多信息请点击这里](https://core.telegram.org/api/folders.md#peer-folders)"}}, "additionalProperties": false, "required": ["folder_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `folder_id` | `int` | 是的 | [对等文件夹ID，了解更多信息请点击这里](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**谁可以调用这个方法** · 仅限电报机器人。", "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` — 查询ID无效。\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 类型：运输选项。"}, "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**谁可以调用这个方法** · 仅限电报机器人。", "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。“抱歉，在您忙着填写付款详细信息时，有人刚刚购买了我们最后一件令人惊叹的黑色 T 恤。请选择其他颜色或服装！”）。 Telegram 将向用户显示此消息。"}}, "additionalProperties": false, "required": ["query_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `success` | `true` | 否 | 如果一切正常（商品可用等）并且机器人已准备好继续处理订单，则设置此标志，否则不要设置它，而是设置 `error` 字段 |\n| `query_id` | `long` | 是的 | 要回答的查询的唯一标识符 |\n| `error` | `string` | 否 | 如果未设置 `success`，则为必需。错误消息以人类可读的形式解释了无法继续结帐的原因（e.g。“抱歉，在您忙着填写付款详细信息时，有人刚刚购买了我们最后一件令人惊叹的黑色 T 恤。请选择其他颜色或服装！”）。 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` 参数中指定业务连接 ID 来使用。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [上传和下载文件](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 类型：消息媒体。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `REPLY_MESSAGE_ID_INVALID` — 指定的回复消息ID 无效。\n- 400 · `STORY_ID_INVALID` — 指定的故事 ID 无效。\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": "表示截图的消息（指定的消息ID也可以是`0`以避免指示任何特定消息）。"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "随机ID以避免消息重发。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "reply_to", "random_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 其他用户 |\n| `reply_to` | `InputReplyTo` | 是的 | 表示截图的消息（指定的消息ID也可以是`0`以避免指示任何特定消息）。 |\n| `random_id` | `long` | 是的 | 随机ID以避免消息重发。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的贴纸 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](https://core.telegram.org/api/forum.md)\n- [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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "返回的最大消息ID，[参见分页](https://core.telegram.org/api/offsets.md)"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "返回的最小消息 ID，[参见分页](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` | 是的 | 返回的最大消息ID，[参见分页](https://core.telegram.org/api/offsets.md) |\n| `min_id` | `int` | 是的 | 返回的最小消息 ID，[参见分页](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)中使用，但**不能**在[monoforums](https://core.telegram.org/api/monoforum.md)中使用。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](https://core.telegram.org/api/forum.md)\n- [直接向频道发送消息](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [实时地理定位](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- [留言草稿](https://core.telegram.org/api/drafts.md)\n- [贴纸和面具](https://core.telegram.org/api/stickers.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [动画消息效果](https://core.telegram.org/api/effects.md)\n- [付费消息](https://core.telegram.org/api/paid-messages.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [上传和下载文件](https://core.telegram.org/api/files.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [文件参考](https://core.telegram.org/api/file-references.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [客户端配置](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 类型：更新。"}}}}, "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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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` — 指定的效果ID无效。\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` — multi_media 数组中偏移量 %d 处的媒体文件的文件引用无效。\n- 400 · `FILE_REFERENCE_%d_EXPIRED` — 传递的媒体数组中索引 %d 处的媒体文件的文件引用已过期，[必须按照文档中指定的方式刷新](https://core.telegram.org/api/file-references.md)。 。\n- 400 · `FILE_REFERENCE_%d_INVALID` — 传递的媒体数组中索引 %d 处媒体文件的[文件引用](https://core.telegram.org/api/file-references.md) 无效。\n- 400 · `MEDIA_CAPTION_TOO_LONG` — 标题太长。\n- 400 · `MEDIA_EMPTY` — 提供的媒体对象无效。\n- 400 · `MEDIA_INVALID` — 介质无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `MULTI_MEDIA_TOO_LONG` — 相册的媒体文件太多。\n- 406 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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` — 您提供了一个已被使用的随机 ID。\n- 400 · `RANDOM_ID_EMPTY` — 随机 ID 为空。\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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：加密文件。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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)<[消息范围](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 类型：消息范围。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](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` — 提供的对等 ID 无效。"}}, "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)的ID，并且会影响`peer`传入的monoforum主题。", "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)的ID，并且会影响`peer`传入的monoforum主题。 |\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": "可以等于 monoforum 的 ID，以获取手动标记为未读的 monoforum 主题。", "x-tl-flag": "flags.0?InputPeer"}}, "additionalProperties": false}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | 否 | 可以等于 monoforum 的 ID，以获取手动标记为未读的 monoforum 主题。 |"}, "x-browser-schema-id": "555754018"}}, "/catalog/messages.clearAllDrafts": {"post": {"operationId": "messages.clearAllDrafts", "tags": ["留言"], "summary": "清除所有草稿。", "description": "清除所有[草稿](https://core.telegram.org/api/drafts.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言草稿](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- [电报业务](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `BOT_ONESIDE_NOT_AVAIL` — 机器人不能只为自己在私信中固定消息。\n- 400 · `BUSINESS_CONNECTION_INVALID` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [民意调查和测验](https://core.telegram.org/api/poll.md)\n- [客户端配置](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `MESSAGE_POLL_CLOSED` — 投票已结束。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `OPTIONS_TOO_MUCH` — 提供的选项太多。\n- 400 · `OPTION_INVALID` — 选择的选项无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "投票的消息 ID"}, "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` | 是的 | 投票的消息 ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "轮询消息的消息ID"}, "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` | 是的 | 轮询消息的消息ID |\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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：在线聊天。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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- [通道、超组、千兆组和基本组](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` — 提供的聊天 ID 无效。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 403 · `CHAT_WRITE_FORBIDDEN` — 您不能在此聊天中书写。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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` — 提供的聊天 ID 无效。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 403 · `CHAT_WRITE_FORBIDDEN` — 您不能在此聊天中书写。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](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[表情符号关键词差异](https://core.telegram.org/type/EmojiKeywordsDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiKeywordsDifference", "oneOf": [{"$ref": "#/components/schemas/emojiKeywordsDifference"}], "description": "TL类型：Emoji关键词差异。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](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[表情符号关键词差异](https://core.telegram.org/type/EmojiKeywordsDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiKeywordsDifference", "oneOf": [{"$ref": "#/components/schemas/emojiKeywordsDifference"}], "description": "TL类型：Emoji关键词差异。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](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)<[表情符号语言](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 类型：Emoji 语言。"}, "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": "返回HTTPURL，可用于自动登录翻译平台并建议新的[表情符号关键字»](https://core.telegram.org/api/custom-emoji.md#emoji-keywords)。 URL生成后30秒内有效。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](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[表情符号网址](https://core.telegram.org/type/EmojiURL.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiURL", "oneOf": [{"$ref": "#/components/schemas/emojiURL"}], "description": "TL 类型：表情符号URL。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [已保存的消息](https://core.telegram.org/api/saved-messages.md)\n- [论坛主题](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` — 提供的对等 ID 无效。"}}, "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": "使用此 ID 在[已保存消息对话框 »](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 类型：消息过滤器。"}, "x-tl-type": "Vector<MessagesFilter>", "description": "搜索过滤器"}}, "additionalProperties": false, "required": ["peer", "filters"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行在哪里搜索 |\n| `saved_peer_id` | `InputPeer` | 否 | 使用此 ID 在[已保存消息对话框 »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [无缝电报登录](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[网址验证结果](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": "消息所在的peer", "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 请求的 Web 视图的来源，格式为 `scheme://host`（对于非默认端口则为 `scheme://host:port`）"}}, "additionalProperties": false}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 否 | 消息所在的peer |\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 请求的 Web 视图的来源，格式为 `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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [无缝电报登录](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[网址验证结果](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": "带有登录按钮的消息的消息ID"}, "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)"}, "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` | 否 | 带有登录按钮的消息的消息ID |\n| `button_id` | `int` | 否 | 登录按钮的ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [操作栏](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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` — 提供的对等 ID 无效。"}}, "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)。  要生成哈希，请使用之前返回的消息（按顺序为 i.e、`ids = [id1, (edit_date1 ?? 0), date1, id2, (edit_date2 ?? 0), date2, ...]`）的 `id`、`edit_date`（如果未编辑则为 0）和 `date`（按此顺序）填充 `ids` 数组。", "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)。  要生成哈希，请使用之前返回的消息（按顺序为 i.e、`ids = [id1, (edit_date1 ?? 0), date1, id2, (edit_date2 ?? 0), date2, ...]`）的 `id`、`edit_date`（如果未编辑则为 0）和 `date`（按此顺序）填充 `ids` 数组。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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": "定时消息ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行 |\n| `id` | `Vector<int>` | 是的 | 定时消息ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 500 · `RANDOM_ID_DUPLICATE` — 您提供了一个已被使用的随机 ID。"}}, "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": "预定的消息 ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行 |\n| `id` | `Vector<int>` | 是的 | 预定的消息 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — 您无法删除您尝试删除的消息之一，很可能是因为它是一条服务消息。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "预定的消息 ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行 |\n| `id` | `Vector<int>` | 是的 | 预定的消息 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\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": "消息ID"}, "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": "结果的偏移量，取自 [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md) 的 `next_offset` 字段，最初是一个空字符串。  注意：如果没有更多结果可用，该方法调用将返回空的`next_offset`；因此，如果 [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md) 为空，请避免提供返回的 `next_offset`，以避免无限循环。"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "返回的结果数"}}, "additionalProperties": false, "required": ["peer", "id", "limit"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 聊天发送投票的位置 |\n| `id` | `int` | 是的 | 消息ID |\n| `option` | `bytes` | 否 | 仅获取指定投票的结果 `option` |\n| `offset` | `string` | 否 | 结果的偏移量，取自 [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md) 的 `next_offset` 字段，最初是一个空字符串。  注意：如果没有更多结果可用，该方法调用将返回空的`next_offset`；因此，如果 [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md) 为空，请避免提供返回的 `next_offset`，以避免无限循环。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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` — 提供的聊天 ID 无效。\n- 400 · `FILTER_ID_INVALID` — 指定的过滤器 ID 无效。\n- 400 · `FILTER_INCLUDE_EMPTY` — 滤波器的include_peers向量为空。\n- 400 · `FILTER_TITLE_EMPTY` — 过滤器的标题字段为空。\n- 400 · `MESSAGE_TOO_LONG` — 提供的消息太长。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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)ID"}, "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)ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400·`TOPIC_ID_INVALID` — 指定的主题ID无效。"}}, "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": "消息ID"}, "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": "如果传输的是正值，该方法将仅返回 ID 小于 max_id 的消息"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "如果传输的是正值，该方法将仅返回 ID 大于 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` | 是的 | 消息ID |\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` | 是的 | 如果传输的是正值，该方法将仅返回 ID 小于 max_id 的消息 |\n| `min_id` | `int` | 是的 | 如果传输的是正值，该方法将仅返回 ID 大于 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/discussion.md)获取[讨论消息](https://core.telegram.org/api/threads.md)]，将其显示在评论部分的顶部，而无需实际加入该组\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [消息线程](https://core.telegram.org/api/threads.md)\n- [讨论组](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400·`TOPIC_ID_INVALID` — 指定的主题ID无效。"}}, "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": "[频道ID](https://core.telegram.org/api/channel.md)"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "消息ID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | [频道ID](https://core.telegram.org/api/channel.md) |\n| `msg_id` | `int` | 是的 | 消息ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [消息线程](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` — 提供的聊天 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "启动线程的消息 ID"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "已读取线程消息的 ID"}}, "additionalProperties": false, "required": ["peer", "msg_id", "read_max_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 组号 |\n| `msg_id` | `int` | 是的 | 启动线程的消息 ID |\n| `read_max_id` | `int` | 是的 | 已读取线程消息的 ID |"}, "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- [论坛主题](https://core.telegram.org/api/forum.md)\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [固定消息](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` — 提供的对等 ID 无效。"}}, "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": "如果设置，必须等于 [monoforum topic](https://core.telegram.org/api/monoforum.md)] 的 ID，并且将取消固定在传递的 monoforum 主题中固定的所有消息。", "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` | 否 | 如果设置，必须等于 [monoforum topic](https://core.telegram.org/api/monoforum.md)] 的 ID，并且将取消固定在传递的 monoforum 主题中固定的所有消息。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — 提供的聊天 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "聊天ID", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | 是的 | 聊天ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [导入的消息](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [导入的消息](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` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [导入的消息](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 类型：消息媒体。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400·`IMPORT_ID_INVALID` — 指定的导入ID无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [导入的消息](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` — 指定的导入ID无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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` — 指定的管理员ID无效。\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 403 · `CHAT_WRITE_FORBIDDEN` — 您不能在此聊天中书写。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 指定的管理员ID无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "最初生成已撤销聊天邀请的管理员 ID"}}, "additionalProperties": false, "required": ["peer", "admin_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 聊天 |\n| `admin_id` | `InputUser` | 是的 | 最初生成已撤销聊天邀请的管理员 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [邀请链接](https://core.telegram.org/api/invites.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [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` — 提供的对等 ID 无效。\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)的用户ID：如果设置，则还必须设置`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)的用户ID：如果设置，则还必须设置`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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [导入的消息](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` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报主题](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400·`EMOJI_INVALID` — 指定主题表情符号有效。\n- 400 · `EMOJI_NOT_MODIFIED` — 主题未更改。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](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)<[读取参与者日期](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 类型：读取参与者日期。"}, "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` — 提供的消息 ID 无效。\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` — 提供的对等 ID 无效。"}}, "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": "消息ID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 对话 |\n| `msg_id` | `int` | 是的 | 消息ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [已保存的消息](https://core.telegram.org/api/saved-messages.md)\n- [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` — 提供的对等 ID 无效。"}}, "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": "使用此 ID 在[已保存消息对话框 »](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` | 否 | 使用此 ID 在[已保存消息对话框 »](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.，按照消息\\_id 递减的顺序）。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [已保存的消息](https://core.telegram.org/api/saved-messages.md)\n- [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` — 提供的对等 ID 无效。"}}, "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": "使用此 ID 在[已保存消息对话框 »](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` | 否 | 使用此 ID 在[已保存消息对话框 »](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- [邀请链接](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 类型：更新。"}}}}, "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `USER_ALREADY_PARTICIPANT` — 用户已在组中。\n- 403 · `USER_CHANNELS_TOO_MUCH` — 您尝试添加的用户之一已经在过多的频道/超级组中。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [邀请链接](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 类型：更新。"}}}}, "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` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [内容保护](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400·`CHAT_NOT_MODIFIED` — 聊天信息没有发生任何变化，因为您传递的新信息与当前信息相同。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。\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- [留言反应](https://core.telegram.org/api/reactions.md)\n- [客户端配置](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 类型：更新。"}}}}, "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` — 提供的消息 ID 无效。\n- 400 · `MESSAGE_NOT_MODIFIED` — 提供的消息数据与之前的消息数据相同，消息未被修改。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "要响应的消息 ID"}, "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 类型：反应。"}, "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` | 是的 | 要响应的消息 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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": "消息 ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行 |\n| `id` | `Vector<int>` | 是的 | 消息 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [留言反应](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` — 提供的消息 ID 无效。"}}, "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": "消息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": "分页偏移量（取自返回的[messages.MessageReactionsList](https://core.telegram.org/type/messages.MessageReactionsList.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", "limit"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行 |\n| `id` | `int` | 是的 | 消息ID |\n| `reaction` | `Reaction` | 否 | 仅获取此类反应 |\n| `offset` | `string` | 否 | 分页偏移量（取自返回的[messages.MessageReactionsList](https://core.telegram.org/type/messages.MessageReactionsList.md)的`next_offset`字段）；第一个请求中为空。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [留言反应](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 类型：更新。"}}}}, "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` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [留言反应](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [人工智能特点](https://core.telegram.org/api/ai.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [错误处理](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "如果文本是聊天消息，则对等 ID", "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": "要翻译的消息 ID 列表"}, "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` | 否 | 如果文本是聊天消息，则对等 ID |\n| `id` | `Vector<int>` | 否 | 要翻译的消息 ID 列表 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](https://core.telegram.org/api/forum.md)\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [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` — 提供的对等 ID 无效。"}}, "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": "如果设置，必须等于[monoforum topic](https://core.telegram.org/api/monoforum.md)的ID：将影响在`peer`中传递的monoforum中的该主题。", "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": "仅返回此消息 ID 之前的消息的反应"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "仅返回从此消息 ID 开始的消息的反应"}}, "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` | 否 | 如果设置，必须等于[monoforum topic](https://core.telegram.org/api/monoforum.md)的ID：将影响在`peer`中传递的monoforum中的该主题。 |\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` | 是的 | 仅返回此消息 ID 之前的消息的反应 |\n| `min_id` | `int` | 是的 | 仅返回从此消息 ID 开始的消息的反应 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](https://core.telegram.org/api/forum.md)\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [留言反应](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` — 提供的对等 ID 无效。"}}, "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": "如果设置，必须等于[monoforum topic](https://core.telegram.org/api/monoforum.md)的ID：将影响在`peer`中传递的monoforum中的该主题。", "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` | 否 | 如果设置，必须等于[monoforum topic](https://core.telegram.org/api/monoforum.md)的ID：将影响在`peer`中传递的monoforum中的该主题。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [机器人附件菜单和侧面菜单条目](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[附加菜单机器人](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [机器人附件菜单和侧面菜单条目](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[附加菜单机器人](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": "机器人ID"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | 是的 | 机器人ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [机器人附件菜单和侧面菜单条目](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": "机器人ID"}, "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` | 是的 | 机器人ID |\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调用此方法后，直到用户关闭webview，必须每60秒调用一次[messages.prolongWebView](https://core.telegram.org/method/messages.prolongWebView.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [机器人菜单按钮](https://core.telegram.org/api/bots/menu.md)\n- [深层链接](https://core.telegram.org/api/links.md)\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [电报高级版](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[WebView结果](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` — 在指定条件下无法打开 Web 视图：例如，如果设置了 `from_bot_menu` 或 `url` 并且 `peer` 不是与机器人聊天，则会发出此消息。\n- 403 · `CHAT_WRITE_FORBIDDEN` — 您不能在此聊天中书写。\n- 400 · `INPUT_USER_DEACTIVATED` — 指定用户已被删除。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "一旦 Web 应用程序交互[终止](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)，机器人将代表用户发送的内联消息是否应静默发送（不向接收者发送通知）。"}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "如果设置，则请求以紧凑模式（而不是正常或全屏模式）打开迷你应用程序。如果[附件菜单深层链接](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links)的`mode`参数等于`compact`，则必须设置。"}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "如果设置，则请求以全屏模式（而不是正常或紧凑模式）打开迷你应用程序。如果[附件菜单深层链接](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links)的`mode`参数等于`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": "打开 Web 应用程序的对话框以及将发送结果消息的对话框（有关更多信息，请参阅[文档 »](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)从附件菜单打开Web应用程序，则`start_param`应包含`startattach`参数中的`data`。"}, "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": "如果设置，则表示一旦 Web 应用程序交互 [终止](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": "作为指定对等方打开 Web 应用程序，并作为指定对等方发送结果消息。", "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` | 否 | 一旦 Web 应用程序交互[终止](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)，机器人将代表用户发送的内联消息是否应静默发送（不向接收者发送通知）。 |\n| `compact` | `true` | 否 | 如果设置，则请求以紧凑模式（而不是正常或全屏模式）打开迷你应用程序。如果[附件菜单深层链接](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links)的`mode`参数等于`compact`，则必须设置。 |\n| `fullscreen` | `true` | 否 | 如果设置，则请求以全屏模式（而不是正常或紧凑模式）打开迷你应用程序。如果[附件菜单深层链接](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links)的`mode`参数等于`fullscreen`，则必须设置。 |\n| `peer` | `InputPeer` | 是的 | 打开 Web 应用程序的对话框以及将发送结果消息的对话框（有关更多信息，请参阅[文档 »](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)从附件菜单打开Web应用程序，则`start_param`应包含`startattach`参数中的`data`。 |\n| `theme_params` | `DataJSON` | 否 | [主题参数»](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | 是的 | 应用程序的简称； 0-64个英文字母、数字、下划线 |\n| `reply_to` | `InputReplyTo` | 否 | 如果设置，则表示一旦 Web 应用程序交互 [终止](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)，机器人将代表用户发送内联消息，以回复指定的消息或故事。 |\n| `send_as` | `InputPeer` | 否 | 作为指定对等方打开 Web 应用程序，并作为指定对等方发送结果消息。 |"}, "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": "向服务器（从用户端）指示用户仍在使用 Web 应用程序。", "description": "向服务器（从用户端）指示用户仍在使用 Web 应用程序。\n\n如果该方法返回 `QUERY_ID_INVALID` 错误，则必须关闭 webview。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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": "一旦 Web 应用程序交互[终止](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": "打开 Web 应用程序的对话框。"}, "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) 获取的 Web 应用交互 ID", "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": "如果设置，则表示一旦 Web 应用程序交互 [终止](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": "作为指定对等方打开 Web 应用程序", "x-tl-flag": "flags.13?InputPeer"}}, "additionalProperties": false, "required": ["peer", "bot", "query_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `silent` | `true` | 否 | 一旦 Web 应用程序交互[终止](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)，机器人将代表用户发送的内联消息是否应静默发送（不向接收者发送通知）。 |\n| `peer` | `InputPeer` | 是的 | 打开 Web 应用程序的对话框。 |\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) 获取的 Web 应用交互 ID |\n| `reply_to` | `InputReplyTo` | 否 | 如果设置，则表示一旦 Web 应用程序交互 [终止](https://core.telegram.org/method/messages.sendWebViewResultMessage.md)，机器人将代表用户发送内联消息，以回复指定的消息或故事。 |\n| `send_as` | `InputPeer` | 否 | 作为指定对等方打开 Web 应用程序 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [机器人附件菜单和侧面菜单条目](https://core.telegram.org/api/bots/attach.md)\n- [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[WebView结果](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": "是否通过单击 [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) 返回的内联结果列表顶部显示的 `switch_webview` 按钮打开 Web 应用程序。"}, "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": "Web 应用程序 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` | 否 | 是否通过单击 [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) 返回的内联结果列表顶部显示的 `switch_webview` 按钮打开 Web 应用程序。 |\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` | 否 | Web 应用程序 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开始的webview交互，代表用户将指定的消息发送到聊天室。", "description": "终止以 [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md) 开头的 webview 交互，代表用户将指定消息发送到聊天室。\n\n**谁可以调用这个方法** · 仅限电报机器人。", "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[WebView消息已发送](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` — 查询ID无效。\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": "Webview交互ID从[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` | 是的 | Webview交互ID从[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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [网络事件](https://core.telegram.org/api/web-events.md)\n- [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 类型：更新。"}}}}, "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": "唯一的客户端消息 ID，以防止重复发送同一事件。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "x-tl-type": "long"}, "button_text": {"type": "string", "x-tl-type": "string", "description": "按下以打开 Web 应用程序的 [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` | 是的 | 唯一的客户端消息 ID，以防止重复发送同一事件。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\n| `button_text` | `string` | 是的 | 按下以打开 Web 应用程序的 [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [语音消息转录](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` — 提供的消息 ID 无效。\n- 400 · `MSG_VOICE_MISSING` — 指定的消息不是语音消息。\n- 400·`MSG_VOICE_TOO_LONG` — 指定的语音消息太长，无法转录。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "发送语音消息的对端 ID"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "语音消息ID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发送语音消息的对端 ID |\n| `msg_id` | `int` | 是的 | 语音消息ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [语音消息转录](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": "消息ID"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "转录ID", "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` | 是的 | 消息ID |\n| `transcription_id` | `long` | 是的 | 转录ID |\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- [自定义表情符号](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 类型：文档。"}, "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": "[来自 [messageEntityCustomEmoji](https://core.telegram.org/constructor/messageEntityCustomEmoji.md) 的自定义表情符号](https://core.telegram.org/api/custom-emoji.md) ID。"}}, "additionalProperties": false, "required": ["document_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `document_id` | `Vector<long>` | 是的 | [来自 [messageEntityCustomEmoji](https://core.telegram.org/constructor/messageEntityCustomEmoji.md) 的自定义表情符号](https://core.telegram.org/api/custom-emoji.md) ID。 |"}, "x-browser-schema-id": "3651866452"}}, "/catalog/messages.getEmojiStickers": {"post": {"operationId": "messages.getEmojiStickers", "tags": ["留言"], "summary": "获取当前安装的自定义表情符号贴纸集的列表。", "description": "获取当前安装的[自定义表情符号贴纸集](https://core.telegram.org/api/custom-emoji.md)]的列表。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [自定义表情符号](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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": "消息ID"}, "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` | 是的 | 消息ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [留言反应](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [留言反应](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [付费媒体](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 类型：更新。"}}}}}, "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": "当前可见的包含付费媒体的消息的 ID。"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 与可见的付费媒体消息对等。 |\n| `id` | `Vector<int>` | 是的 | 当前可见的包含付费媒体的消息的 ID。 |"}, "x-browser-schema-id": "2230847508"}}, "/catalog/messages.setDefaultHistoryTTL": {"post": {"operationId": "messages.setDefaultHistoryTTL", "tags": ["留言"], "summary": "更改生存时间设置的默认值，应用于所有新聊天。", "description": "更改生存时间设置的默认值，应用于所有新聊天。\n\n**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [机器人按钮](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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) 按钮的回复键盘的消息的 ID。"}, "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)返回小应用请求ID。"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) 构造函数中的 `button_id` 字段。"}, "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) 按钮的回复键盘的消息的 ID。 |\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)返回小应用请求ID。 |\n| `button_id` | `int` | 是的 | [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) 构造函数中的 `button_id` 字段。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号类别](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号类别](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号类别](https://core.telegram.org/api/emoji-categories.md)\n- [上传和下载文件](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": "查找与 UTF8 表情符号关联的[自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [自定义表情符号](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 类型：表情符号列表。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言翻译](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [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` — inputBotAppShortName 构造函数中传递的 bot_id 无效。\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/api/links.md#direct-mini-app-links)】打开【机器人小程序](https://core.telegram.org/bots/webapps.md)，用户确认后发送用户信息。\n\n调用此方法后，直到用户关闭webview，必须每60秒调用一次[messages.prolongWebView](https://core.telegram.org/method/messages.prolongWebView.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [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[WebView结果](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` — inputBotAppShortName 构造函数中传递的 bot_id 无效。\n- 400 · `BOT_APP_INVALID` — 指定的机器人应用程序无效。\n- 400 · `BOT_APP_SHORTNAME_INVALID` — 指定的机器人应用短名称无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\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": "如果设置，则请求以紧凑模式（而不是正常或全屏模式）打开迷你应用程序。如果【直连小应用深度链接](https://core.telegram.org/api/links.md#direct-mini-app-links)的`mode`参数等于`compact`，则必须设置。"}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "如果设置，则请求以全屏模式（而不是紧凑或正常模式）打开迷你应用程序。如果【直连小应用深度链接](https://core.telegram.org/api/links.md#direct-mini-app-links)的`mode`参数等于`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": "通过调用[直接小应用深层链接](https://core.telegram.org/api/links.md#direct-mini-app-links)文档中指定的[messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md)]获得的应用。"}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "如果【直接小应用深度链接](https://core.telegram.org/api/links.md#direct-mini-app-links)中存在`startapp`查询字符串参数，则将其传递给`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` | 否 | 如果设置，则请求以紧凑模式（而不是正常或全屏模式）打开迷你应用程序。如果【直连小应用深度链接](https://core.telegram.org/api/links.md#direct-mini-app-links)的`mode`参数等于`compact`，则必须设置。 |\n| `fullscreen` | `true` | 否 | 如果设置，则请求以全屏模式（而不是紧凑或正常模式）打开迷你应用程序。如果【直连小应用深度链接](https://core.telegram.org/api/links.md#direct-mini-app-links)的`mode`参数等于`fullscreen`，则必须设置。 |\n| `peer` | `InputPeer` | 是的 | 如果客户端点击了 Telegram 聊天中的链接，则传递聊天的对等信息；否则传递机器人的对等信息。 |\n| `app` | `InputBotApp` | 是的 | 通过调用[直接小应用深层链接](https://core.telegram.org/api/links.md#direct-mini-app-links)文档中指定的[messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md)]获得的应用。 |\n| `start_param` | `string` | 否 | 如果【直接小应用深度链接](https://core.telegram.org/api/links.md#direct-mini-app-links)中存在`startapp`查询字符串参数，则将其传递给`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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [聊天壁纸](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "仅适用于[Premium](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) 服务消息获取的，则必须包含该消息的 ID。"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `for_both` | `true` | 否 | 仅适用于[Premium](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) 服务消息获取的，则必须包含该消息的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [自定义表情符号](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [已保存的消息](https://core.telegram.org/api/saved-messages.md)\n- [直接向频道发送消息](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [已保存的消息](https://core.telegram.org/api/saved-messages.md)\n- [直接向频道发送消息](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` — 提供的对等 ID 无效。"}}, "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": "只返回从指定消息ID开始的消息"}, "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": "如果传输正值，该方法将仅返回 ID 小于 **max_id** 的消息"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "如果传输正值，该方法将仅返回 ID 大于 **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` | 是的 | 只返回从指定消息ID开始的消息 |\n| `offset_date` | `int` | 是的 | 只返回指定日期之前发送的消息 |\n| `add_offset` | `int` | 是的 | 要跳过的列表元素的数量，也接受负值。 |\n| `limit` | `int` | 是的 | 返回的结果数 |\n| `max_id` | `int` | 是的 | 如果传输正值，该方法将仅返回 ID 小于 **max_id** 的消息 |\n| `min_id` | `int` | 是的 | 如果传输正值，该方法将仅返回 ID 大于 **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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [已保存的消息](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` — 提供的对等 ID 无效。"}}, "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": "Peer，其消息将从[已保存消息»](https://core.telegram.org/api/saved-messages.md)中删除，或主题的ID。"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "要删除的消息的最大 ID"}, "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` | 是的 | Peer，其消息将从[已保存消息»](https://core.telegram.org/api/saved-messages.md)中删除，或主题的ID。 |\n| `max_id` | `int` | 是的 | 要删除的消息的最大 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [已保存的消息](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [已保存的消息](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [已保存的消息](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [已保存的消息](https://core.telegram.org/api/saved-messages.md)\n- [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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](https://core.telegram.org/api/reactions.md)\n- [已保存的消息](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [已保存的消息](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如果设置了 `peer` 的 [userFull](https://core.telegram.org/constructor/userFull.md).`read_dates_private` 标志，我们将无法获取发送给他们的消息的确切读取日期，并且会发出 `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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [电报高级版](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[发件箱阅读日期](https://core.telegram.org/type/OutboxReadDate.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "OutboxReadDate", "oneOf": [{"$ref": "#/components/schemas/outboxReadDate"}], "description": "TL 类型：发件箱读取日期。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `MESSAGE_NOT_READ_YET` — 指定的消息尚未阅读。\n- 400·`MESSAGE_TOO_OLD` — 消息太旧，请求的信息不可用。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "消息 ID。"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 我们向其发送消息的用户。 |\n| `msg_id` | `int` | 是的 | 消息 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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)】的ID，按需要的顺序排列。"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `order` | `Vector<int>` | 是的 | 所有已创建的【快速回复快捷方式](https://core.telegram.org/api/business.md#quick-reply-shortcuts)】的ID，按需要的顺序排列。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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": "快捷名称（不是 ID！）。"}}, "additionalProperties": false, "required": ["shortcut"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `shortcut` | `string` | 是的 | 快捷名称（不是 ID！）。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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": "[快捷方式ID](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` | 是的 | [快捷方式ID](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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": "[快捷方式ID](https://core.telegram.org/api/business.md#quick-reply-shortcuts)"}}, "additionalProperties": false, "required": ["shortcut_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | 是的 | [快捷方式ID](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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。"}, "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": "要获取的消息的 ID，如果为空则获取所有消息。"}, "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` | 是的 | 快速回复快捷方式ID。 |\n| `id` | `Vector<int>` | 否 | 要获取的消息的 ID，如果为空则获取所有消息。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [电报业务](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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。"}, "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": "防止消息重新发送所需的唯一客户端 ID（我们发送的每条消息都有一个）可能为空（但不建议）。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}}, "additionalProperties": false, "required": ["peer", "shortcut_id", "id", "random_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 将快捷方式发送到的对等方（目前仅限用户）。 |\n| `shortcut_id` | `int` | 是的 | 要发送的快速回复快捷方式的ID。 |\n| `id` | `Vector<int>` | 是的 | 指定要发送的快捷方式的消息子集；如果为空，则默认为全部。 |\n| `random_id` | `Vector<long>` | 是的 | 防止消息重新发送所需的唯一客户端 ID（我们发送的每条消息都有一个）可能为空（但不建议）。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报业务](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 类型：更新。"}}}}, "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": "[快捷方式ID](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": "要删除的快捷消息的 ID。"}}, "additionalProperties": false, "required": ["shortcut_id", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | 是的 | [快捷方式ID](https://core.telegram.org/api/business.md#quick-reply-shortcuts)。 |\n| `id` | `Vector<int>` | 是的 | 要删除的快捷消息的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [贴纸和面具](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [表情符号类别](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [动画消息效果](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [事实核查](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 403 · `CHAT_ACTION_FORBIDDEN` — 您无法执行此操作。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "消息ID"}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "事实检查（[appConfig.factcheck_length_limit](https://core.telegram.org/api/config.md#factcheck-length-limit) 中指定的最大UTF-8 长度）。"}}, "additionalProperties": false, "required": ["peer", "msg_id", "text"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发送消息的对等点 |\n| `msg_id` | `int` | 是的 | 消息ID |\n| `text` | `TextWithEntities` | 是的 | 事实检查（[appConfig.factcheck_length_limit](https://core.telegram.org/api/config.md#factcheck-length-limit) 中指定的最大UTF-8 长度）。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [事实核查](https://core.telegram.org/api/factcheck.md)\n- [客户端配置](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 403 · `CHAT_ACTION_FORBIDDEN` — 您无法执行此操作。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "消息ID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发送消息的对等点。 |\n| `msg_id` | `int` | 是的 | 消息ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [事实核查](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 类型：事实检查。"}, "x-tl-type": "Vector<FactCheck>"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [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[WebView结果](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": "如果设置，则请求以紧凑模式（而不是正常或全屏模式）打开迷你应用程序。如果【小程序主链接](https://core.telegram.org/api/links.md#main-mini-app-links)的`mode`参数等于`compact`，则必须设置。"}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "如果设置，则请求以全屏模式（而不是紧凑或正常模式）打开迷你应用程序。如果【小程序主链接](https://core.telegram.org/api/links.md#main-mini-app-links)的`mode`参数等于`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` | 否 | 如果设置，则请求以紧凑模式（而不是正常或全屏模式）打开迷你应用程序。如果【小程序主链接](https://core.telegram.org/api/links.md#main-mini-app-links)的`mode`参数等于`compact`，则必须设置。 |\n| `fullscreen` | `true` | 否 | 如果设置，则请求以全屏模式（而不是紧凑或正常模式）打开迷你应用程序。如果【小程序主链接](https://core.telegram.org/api/links.md#main-mini-app-links)的`mode`参数等于`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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [留言反应](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 类型：更新。"}}}}, "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `RANDOM_ID_EMPTY` — 随机 ID 为空。\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": "需要唯一的客户端消息 ID，以防止消息重新发送。 **注意**：这个参数**必须**由一个64位整数组成，其中低32位是随机的，高32位**等于当前的unixtime**，i.e。 `uint64_t random_id = (时间() << 32)。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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` | 是的 | 需要唯一的客户端消息 ID，以防止消息重新发送。 **注意**：这个参数**必须**由一个64位整数组成，其中低32位是随机的，高32位**等于当前的unixtime**，i.e。 `uint64_t random_id = (时间() << 32)。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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` — 提供的对等 ID 无效。\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": "我们向其发送付费回复的消息 ID"}, "private": {"type": "object", "x-tl-type": "PaidReactionPrivacy", "oneOf": [{"$ref": "#/components/schemas/paidReactionPrivacyDefault"}, {"$ref": "#/components/schemas/paidReactionPrivacyAnonymous"}, {"$ref": "#/components/schemas/paidReactionPrivacyPeer"}], "description": "如果为 true，则使当前匿名者处于此消息的顶级发件人排行榜中；否则，则相反。"}}, "additionalProperties": false, "required": ["peer", "msg_id", "private"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 频道 |\n| `msg_id` | `int` | 是的 | 我们向其发送付费回复的消息 ID |\n| `private` | `PaidReactionPrivacy` | 是的 | 如果为 true，则使当前匿名者处于此消息的顶级发件人排行榜中；否则，则相反。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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 类型：更新。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [赞助消息](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": "广告的唯一 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `random_id` | `bytes` | 是的 | 广告的唯一 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [赞助消息](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": "广告的唯一 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `media` | `true` | 否 | 用户点击了媒体 |\n| `fullscreen` | `true` | 否 | 用户将视频扩展到全屏，然后单击它。 |\n| `random_id` | `bytes` | 是的 | 广告的唯一 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [赞助消息](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": "广告的唯一 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}, "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` | 是的 | 广告的唯一 ID。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赞助消息](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` — 提供的消息 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [网络事件](https://core.telegram.org/api/web-events.md)\n- [内联查询](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` — 指定的结果 ID 之一无效。\n- 400 · `SEND_MESSAGE_GAME_INVALID` — inputBotInlineMessageGame 只能包含在 inputBotInlineResultGame 中，不能包含在 inputBotInlineResult/inputBotInlineResultPhoto/等中。\n- 400 · `USER_BOT_REQUIRED` — 此方法只能由机器人调用。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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/webapps.md)生成的[prepared内联消息](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [网络事件](https://core.telegram.org/api/web-events.md)\n- [内联查询](https://core.telegram.org/api/bots/inline.md)\n- [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` — 传递的准备好的内联消息 ID 已过期。\n- 400·`ID_INVALID` — 传递的ID无效。"}}, "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": "来自[web_app_send_prepared_message事件](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)的`id`"}}, "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` | 是的 | 来自[web_app_send_prepared_message事件](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)的`id` |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [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)。  可以使用返回或存储的贴纸 [文档](https://core.telegram.org/constructor/document.md)s] 的`id`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)。  可以使用返回或存储的贴纸 [文档](https://core.telegram.org/constructor/document.md)s] 的`id`s 在本地生成哈希。 |"}, "x-browser-schema-id": "699516522"}}, "/catalog/messages.reportMessagesDelivery": {"post": {"operationId": "messages.reportMessagesDelivery", "tags": ["留言"], "summary": "用于 Telegram Gateway 验证消息 »：向服务器指示客户端已收到一条或多条消息（如果消息请求）。**report\\_delivery\\_until\\_date** 标志或推送通知中的等效标志。", "description": "用于[Telegram Gateway验证消息»](https://telegram.org/blog/star-messages-gateway-2-0-and-more#save-even-more-on-user-verification)：如果[消息](https://core.telegram.org/constructor/message.md).**report\\_delivery\\_until\\_date**标志或[推送通知](https://core.telegram.org/api/push-updates.md)中的等效标志]请求，则向服务器指示客户端收到一条或多条[消息](https://core.telegram.org/constructor/message.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [处理PUSH-通知](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` — 提供的对等 ID 无效。"}}, "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": "如果消息是从[推送通知](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": "接收到的消息的 ID。"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `push` | `true` | 否 | 如果消息是从[推送通知](https://core.telegram.org/api/push-updates.md)收到的，则必须设置。 |\n| `peer` | `InputPeer` | 是的 | 接收消息的对等点。 |\n| `id` | `Vector<int>` | 是的 | 接收到的消息的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [已保存的消息](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": "要获取的对话框（主题）的 ID。"}}, "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>` | 是的 | 要获取的对话框（主题）的 ID。 |"}, "x-browser-schema-id": "1869585558"}}, "/catalog/messages.readSavedHistory": {"post": {"operationId": "messages.readSavedHistory", "tags": ["留言"], "summary": "将消息标记为在单一论坛主题中已读 »。", "description": "将消息标记为在[单一论坛主题 »](https://core.telegram.org/api/monoforum.md) 中已读。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](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": "monoforum 组的 ID。"}, "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。"}, "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` | 是的 | monoforum 组的 ID。 |\n| `peer` | `InputPeer` | 是的 | 主题 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [清单和待办事项清单](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "带有待办事项列表的消息 ID。"}, "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` | 是的 | 带有待办事项列表的消息 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [清单和待办事项清单](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "带有待办事项列表的消息 ID。"}, "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` | 是的 | 带有待办事项列表的消息 ID。 |\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- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [推荐帖子](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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)的ID（对于频道，主题ID是从`msg_id`自动提取的）。"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "建议消息ID。"}, "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)的ID（对于频道，主题ID是从`msg_id`自动提取的）。 |\n| `msg_id` | `int` | 是的 | 建议消息ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [论坛主题](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)，最后找到的主题的最后一条消息的ID（或最初为`0`）。"}, "offset_topic": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[分页偏移量，更多信息请点击此处](https://core.telegram.org/api/offsets.md)，最后找到的主题的ID（或最初为`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)，最后找到的主题的最后一条消息的ID（或最初为`0`）。 |\n| `offset_topic` | `int` | 是的 | [分页偏移量，更多信息请点击此处](https://core.telegram.org/api/offsets.md)，最后找到的主题的ID（或最初为`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": "通过ID获取论坛主题", "description": "通过ID获取论坛主题\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` — 您未指定主题 ID。"}}, "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": "主题 ID"}}, "additionalProperties": false, "required": ["peer", "topics"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 主题所在的超级组论坛、私人聊天（对于启用论坛的机器人）或机器人论坛（对于用户）。 |\n| `topics` | `Vector<int>` | 是的 | 主题 ID |"}, "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- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [论坛主题](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 类型：更新。"}}}}, "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": "主题ID"}, "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` | 是的 | 主题ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](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 类型：更新。"}}}}, "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": "[论坛主题ID](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` | 是的 | [论坛主题ID](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](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 类型：更新。"}}}}, "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": "[主题 ID »](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>` | 是的 | [主题 ID »](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- [论坛主题](https://core.telegram.org/api/forum.md)\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [使用更新](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 类型：更新。"}}}}, "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` — 提供的对等 ID 无效。\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": "如果设置，该主题没有用户定义的标题，只能为[bot forums](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)的ID。 [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": "唯一的客户端消息 ID，以防止重复发送同一事件。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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": "创建主题作为指定的peer", "x-tl-flag": "flags.2?InputPeer"}}, "additionalProperties": false, "required": ["peer", "title", "random_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `title_missing` | `true` | 否 | 如果设置，该主题没有用户定义的标题，只能为[bot forums](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)的ID。 [Telegram Premium](https://core.telegram.org/api/premium.md)用户可以使用任何自定义表情符号，其他用户只能使用[inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md)表情符号包中包含的自定义表情符号。 |\n| `random_id` | `long` | 是的 | 唯一的客户端消息 ID，以防止重复发送同一事件。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\n| `send_as` | `InputPeer` | 否 | 创建主题作为指定的peer |"}, "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- [论坛主题](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": "主题ID"}}, "additionalProperties": false, "required": ["peer", "top_msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 主题所在的超级组论坛、私人聊天（对于启用论坛的机器人）或机器人论坛（对于用户）。 |\n| `top_msg_id` | `int` | 是的 | 主题ID |"}, "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": "使用 AI 总结消息内容，请参阅此处 » 了解更多信息。", "description": "使用 AI 总结消息内容，请参阅[此处 »](https://core.telegram.org/api/ai.md#summarize-messages) 了解更多信息。\n\n客户端应使用[message](https://core.telegram.org/constructor/message.md).`summary_from_language`作为显示摘要按钮的提示；它的缺失并不禁止调用此方法。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [人工智能特点](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[带有实体的文本](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "消息ID。"}, "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` | 是的 | 消息ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](https://core.telegram.org/api/srp.md)\n- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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 ID 无效。\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": "新所有者的 ID。"}, "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` | 是的 | 新所有者的 ID。 |\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": "仅群组/频道所有者：如果我们决定离开群组，则返回将成为群组新所有者的用户 ID，请参阅此处 » 了解有关完整流程的更多信息。", "description": "仅群组/频道所有者：如果我们决定离开群组，则返回将成为群组新所有者的用户的 ID，有关完整流程的更多信息，请参阅[此处 »](https://core.telegram.org/api/channel.md#leaving-groups-channels)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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：用户。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_ID_INVALID` — 指定的超级组 ID 无效。"}}, "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- [群组参与者标签](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [处理PUSH-通知](https://core.telegram.org/api/push-updates.md)\n- [网络事件](https://core.telegram.org/api/web-events.md)\n- [无缝电报登录](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_REQUEST 推送通知](https://core.telegram.org/api/push-updates.md#oauth-request) 或 [`oauth_request` Web 事件](https://core.telegram.org/api/web-events.md#oauth-request)] 的 OAuth 深层链接"}}, "additionalProperties": false, "required": ["url"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `url` | `string` | 是的 | 来自 [OAUTH_REQUEST 推送通知](https://core.telegram.org/api/push-updates.md#oauth-request) 或 [`oauth_request` Web 事件](https://core.telegram.org/api/web-events.md#oauth-request)] 的 OAuth 深层链接 |"}, "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仅当[messages.requestUrlAuth](https://core.telegram.org/method/messages.requestUrlAuth.md)返回的[urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md)]中同时设置了`match_codes`和`match_codes_first`时才可用。\n如果返回[boolTrue](https://core.telegram.org/constructor/boolTrue.md)，则继续登录流程，并将验证码传递给[messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md).`match_code`。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [无缝电报登录](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": "调用 telegram 的 AI 编辑器，该编辑器可以通过多种不同方式翻译、转换、修复和/或表情化您的消息，由 Cocoon 私人提供支持，请参阅此处 » 了解更多信息！", "description": "调用 telegram 的 AI 编辑器，可以通过多种不同的方式翻译、转换、修复和/或表情化您的消息，由 [Cocoon](https://cocoon.org) 私人支持，请参阅[此处 »](https://core.telegram.org/api/ai.md#compose-messages) 了解更多信息！\n\n下面指定的所有模式都可以组合。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [人工智能特点](https://core.telegram.org/api/ai.md)\n- [电报高级版](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` — 未指定 AI 任务。呼叫者必须至少提供以下一项：校对、翻译（使用目标语言）、语气或表情符号。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [查看和读取指标](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [查看和读取指标](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [民意调查和测验](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "投票所在的节点"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "投票的消息 ID"}, "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` | 是的 | 投票所在的节点 |\n| `msg_id` | `int` | 是的 | 投票的消息 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [民意调查和测验](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "投票所在的节点"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "投票的消息 ID"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "要删除的答案的 `option` 标识符"}}, "additionalProperties": false, "required": ["peer", "msg_id", "option"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 投票所在的节点 |\n| `msg_id` | `int` | 是的 | 投票的消息 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [民意调查和测验](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` — 提供的对等 ID 无效。"}}, "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": "只返回ID小于或等于该值的消息"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "只返回ID大于或等于该值的消息"}}, "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` | 是的 | 只返回ID小于或等于该值的消息 |\n| `min_id` | `int` | 是的 | 只返回ID大于或等于该值的消息 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [民意调查和测验](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` — 提供的对等 ID 无效。"}}, "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": "机器人可以使用此方法来回答通过 [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md) 更新收到的 [访客模式 »](https://core.telegram.org/api/bots/guest-mode.md) 查询，提供以访客身份发布到聊天中的消息，请参阅[此处 »](https://core.telegram.org/api/bots/guest-mode.md#handling-guest-queries-bot-side) 了解更多信息。\n\n**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [机器人的访客模式](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`方法参数。如果没有该方法参数，则该方法只能由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- [留言反应](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` — 提供的对等 ID 无效。"}}, "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- [留言反应](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "应删除其反应的消息 ID"}, "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` | 是的 | 应删除其反应的消息 ID |\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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [用户资料](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` — 提供的用户 ID 无效。"}}, "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": "如果传输正值，该方法将仅返回 ID 小于 **max_id** 的消息"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "如果传输正值，该方法将仅返回 ID 大于 **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` | 是的 | 如果传输正值，该方法将仅返回 ID 小于 **max_id** 的消息 |\n| `min_id` | `int` | 是的 | 如果传输正值，该方法将仅返回 ID 大于 **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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入文件。"}}, "additionalProperties": false, "required": ["file"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `file` | `InputFile` | 是的 | TL 类型：输入文件。 |"}, "x-telegram-docs-note": "未找到此方法的 Telegram 官方文档页面。", "x-browser-schema-id": "120401655"}}, "/catalog/messages.getTranscriptionLangs": {"post": {"operationId": "messages.getTranscriptionLangs", "tags": ["留言"], "summary": "messages.getTranscriptionLangs", "description": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "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 类型：输入用户。"}, "x-tl-type": "Vector<InputUser>", "description": "TL 类型 `Vector<InputUser>` 的值。"}}, "additionalProperties": false, "required": ["bot", "users"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | 是的 | TL 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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- [使用更新](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` — 提供的消息 ID 无效。\n- 400·`PERSISTENT_TIMESTAMP_EMPTY` — 持久时间戳为空。\n- 400 · `PERSISTENT_TIMESTAMP_INVALID` — 持久时间戳无效。\n- 500 · `RANDOM_ID_DUPLICATE` — 您提供了一个已被使用的随机 ID。\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)。简单地告诉服务器如果差异大于`pts_total_limit`，则不返回差异如果远程pts太大（>~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)。简单地告诉服务器如果差异大于`pts_total_limit`，则不返回差异如果远程pts太大（>~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- [使用更新](https://core.telegram.org/api/updates.md)\n- [用户授权](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` — 提供的消息 ID 无效。\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` — 照片 ID 无效。"}}, "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- [上传和下载文件](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": "删除个人资料照片。该方法返回成功删除的照片 ID 的列表。", "description": "删除个人资料照片。该方法返回成功删除的照片 ID 的列表。", "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 类型：输入照片。"}, "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- [文件参考](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` — 提供的最大 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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": "用户ID"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "要跳过的列表元素的数量"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "如果传输的是正值，该方法将仅返回 ID 小于设置值的照片。当[重新获取文件引用 »](https://core.telegram.org/api/file-references.md) 时，此参数通常很有用，如与 `limit=1` 和 `offset=-1` 结合使用，可以获取具有 `max_id` 中指定的 `id` 的 [photo](https://core.telegram.org/constructor/photo.md) 对象。", "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` | 是的 | 用户ID |\n| `offset` | `int` | 是的 | 要跳过的列表元素的数量 |\n| `max_id` | `long` | 是的 | 如果传输的是正值，该方法将仅返回 ID 小于设置值的照片。当[重新获取文件引用 »](https://core.telegram.org/api/file-references.md) 时，此参数通常很有用，如与 `limit=1` 和 `offset=-1` 结合使用，可以获取具有 `max_id` 中指定的 `id` 的 [photo](https://core.telegram.org/constructor/photo.md) 对象。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [上传和下载文件](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` — 提供的用户 ID 无效。"}}, "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": "如果设置，将向`user_id`发送[messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md)服务消息，建议他们使用指定的头像；否则，将为用户设置个人头像（仅当前用户可见）。"}, "save": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "如果设置，则删除之前设置的个人资料图片（不影响建议的个人资料图片，要删除它们，只需删除带有 [messages.deleteMessages](https://core.telegram.org/method/messages.deleteMessages.md) 的 [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.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` | 否 | 如果设置，将向`user_id`发送[messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md)服务消息，建议他们使用指定的头像；否则，将为用户设置个人头像（仅当前用户可见）。 |\n| `save` | `true` | 否 | 如果设置，则删除之前设置的个人资料图片（不影响建议的个人资料图片，要删除它们，只需删除带有 [messages.deleteMessages](https://core.telegram.org/method/messages.deleteMessages.md) 的 [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.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` — 提供的消息 ID 无效。"}}, "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- [文件参考](https://core.telegram.org/api/file-references.md)\n- [电报高级版](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` — 提供的文件 ID 无效。\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` — 提供的消息 ID 无效。\n- 400 · `OFFSET_INVALID` — 提供的偏移量无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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 MB）的一部分，以便稍后传递给其中一种方法。", "description": "保存大文件（大小超过 10 MB）的一部分，以便稍后传递给其中一种方法。\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": "随机文件id，由客户端创建", "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` | 是的 | 随机文件id，由客户端创建 |\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": "通过电报代理请求，返回 Web 文件的内容，请参阅 webfile 文档以获取更多信息。", "description": "返回Web文件的内容，通过电报代理请求，请参阅[webfile文档以获取更多信息](https://core.telegram.org/api/files.md#downloading-webfiles)。\n\n**注意**：查询必须发送到`webfile_dc_id`[MTProto配置字段](https://core.telegram.org/api/config.md#mtproto-configuration)中指定的DC。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [上传和下载文件](https://core.telegram.org/api/files.md)\n- [客户端配置](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**谁可以调用这个方法** · 仅限电报用户。", "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 继续从主 DC 下载文件。\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)<[文件哈希](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 类型：文件哈希。"}, "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 继续从主 DC 下载文件。\n- 400 · `LOCATION_INVALID` — 提供的位置无效。\n- 400 · `REQUEST_TOKEN_INVALID` — 主 DC 未接受来自 CDN DC 的`request_token`。使用 upload.getFile 继续从主 DC 下载文件。\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)<[文件哈希](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 类型：文件哈希。"}, "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 继续从主 DC 下载文件。\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)<[文件哈希](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 类型：文件哈希。"}, "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 类型：配置。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CONNECTION_API_ID_INVALID` — 提供的API ID 无效。\n- 400 · `CONNECTION_APP_VERSION_EMPTY` — 应用程序版本为空。\n- 400 · `CONNECTION_LAYER_INVALID` — 图层无效。\n- 400 · `DATA_INVALID` — 加密数据无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报机器人。", "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[Cdn配置](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从 [t.me](https://t.me) 页面中的“下载 Telegram”按钮安装官方应用程序时，安装后会将引用参数传递给应用程序。\n如果用户在下载应用程序后创建一个新帐户（而不是登录现有帐户），则应使用此方法导入引用参数，该方法会返回用户在安装 Telegram 之前最近打开的 [t.me](https://t.me) 页面。", "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**谁可以调用这个方法** · 仅限电报用户。", "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": "服务条款 ID"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `DataJSON` | 是的 | 服务条款 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [客户端配置](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**谁可以调用这个方法** · 仅限电报用户。", "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": "获取[passport](https://core.telegram.org/passport.md)配置\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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": "获取电报支持用户的本地化名称", "description": "获取电报支持用户的本地化名称\n\n**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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": "用户ID"}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | 是的 | 用户ID |"}, "x-telegram-rpc-errors": ["USER_INVALID"], "x-browser-schema-id": "59377875"}}, "/catalog/help.editUserInfo": {"post": {"operationId": "help.editUserInfo", "tags": ["配置和帮助"], "summary": "内部使用", "description": "内部使用\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [带有消息实体的样式文本](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 类型：消息实体。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](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) 中存在未决建议，则为通道 ID。"}, "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) 中存在未决建议，则为通道 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [强调色](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [强调色](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 业务开放时间 »](https://core.telegram.org/api/business.md#opening-hours)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报业务](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — 提供的消息 ID 无效。"}}, "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- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [用户授权](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` — 提供的消息 ID 无效。"}}, "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": "要删除的消息 ID"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | [频道/超级组](https://core.telegram.org/api/channel.md) |\n| `id` | `Vector<int>` | 是的 | 要删除的消息 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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": "垃圾邮件ID"}}, "additionalProperties": false, "required": ["channel", "participant", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | 超群 |\n| `participant` | `InputPeer` | 是的 | 应报告其消息的参与者 |\n| `id` | `Vector<int>` | 是的 | 垃圾邮件ID |"}, "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- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [用户授权](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` — 未提供消息 ID。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\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 类型：输入消息。"}, "x-tl-type": "Vector<InputMessage>", "description": "获取消息ID"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | 频道/超级组 |\n| `id` | `Vector<InputMessage>` | 是的 | 获取消息ID |"}, "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- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [通道、超组、千兆组和基本组](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` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) 不支持此功能。\n- 406 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 403 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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- [通道、超组、千兆组和基本组](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` — 提供的消息 ID 无效。\n- 400 · `PARTICIPANT_ID_INVALID` — 指定的与会者ID无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。\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- [通道、超组、千兆组和基本组](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` — 提供的消息 ID 无效。\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 类型：输入通道。"}, "x-tl-type": "Vector<InputChannel>", "description": "要获取相关信息的频道/超级组的 ID"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputChannel>` | 是的 | 要获取相关信息的频道/超级组的 ID |"}, "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- [通道、超组、千兆组和基本组](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` — 提供的消息 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [论坛主题](https://core.telegram.org/api/forum.md)\n- [附近的用户&聊天](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 类型：更新。"}}}}, "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- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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` — [Monoforums](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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` — 提供的用户 ID 无效。\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": "需要修改管理员权限的用户ID"}, "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` | 是的 | 需要修改管理员权限的用户ID |\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- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [文件参考](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 类型：更新。"}}}}, "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` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — 提供的聊天 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [用户授权](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` — [Monoforums](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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` — 提供的消息 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — [Monoforums](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` — 提供的消息 ID 无效。\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` — 提供的用户 ID 无效。\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 类型：输入用户。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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[导出消息链接](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` — 提供的消息 ID 无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。"}}, "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": "是否还在链接内包含线程 ID（如果有）"}, "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": "消息ID"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `grouped` | `true` | 否 | 是否包含其他分组媒体（针对相册） |\n| `thread` | `true` | 否 | 是否还在链接内包含线程 ID（如果有） |\n| `channel` | `InputChannel` | 是的 | 频道 |\n| `id` | `int` | 是的 | 消息ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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": "获取我们管理员所在的 [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md)。通常在用户超过拥有的公共 [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md) 的限制](https://core.telegram.org/constructor/config.md)时调用，并且用户可以选择删除他的频道/supergroups/geogroups之一。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [用户资料](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": "如果设置并且用户已达到拥有的公共 [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md)] 的限制，则将返回指定的 [errors](#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` | 否 | 如果设置并且用户已达到拥有的公共 [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md)] 的限制，则将返回指定的 [errors](#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- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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` — 提供的消息 ID 无效。\n- 400 · `PARTICIPANT_ID_INVALID` — 指定的与会者ID无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `USER_ADMIN_INVALID` — 您不是管理员。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [通道、超组、千兆组和基本组](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` — 提供的消息 ID 无效。"}}, "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 类型：输入用户。"}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.1?Vector<InputUser>", "description": "仅显示这些管理员的事件"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "返回消息的最大ID（参见[pagination](https://core.telegram.org/api/offsets.md)）", "x-tl-type": "long"}, "min_id": {"type": "string", "pattern": "^-?\\d+$", "description": "返回消息的最小ID（参见[pagination](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` | 是的 | 返回消息的最大ID（参见[pagination](https://core.telegram.org/api/offsets.md)） |\n| `min_id` | `long` | 是的 | 返回消息的最小ID（参见[pagination](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` — 提供的聊天 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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` — 提供的消息 ID 无效。"}}, "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": "其内容应标记为已读的消息 ID"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | [频道/超级组](https://core.telegram.org/api/channel.md) |\n| `id` | `Vector<int>` | 是的 | 其内容应标记为已读的消息 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "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": "**必须删除**历史记录的消息 ID"}}, "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` | 是的 | **必须删除**历史记录的消息 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [外卖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` — 指定的外卖ID无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [讨论组](https://core.telegram.org/api/discussion.md)\n- [通道、超组、千兆组和基本组](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [讨论组](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` — 广播 ID 无效。\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 403 · `CHAT_WRITE_FORBIDDEN` — 您不能在此聊天中书写。\n- 400·`LINK_NOT_MODIFIED` — 讨论链接未修改。\n- 400 · `MEGAGROUP_ID_INVALID` — 无效的超级组 ID。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [附近的用户&聊天](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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/config.md#channel-suggestions)的要求，将[supergroup](https://core.telegram.org/api/channel.md)转换为[gigagroup](https://core.telegram.org/api/channel.md)]。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [论坛主题](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_ID_INVALID` — 指定的超级组 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](https://core.telegram.org/api/reactions.md)\n- [群组通话](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` — 提供的聊天 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\n- 400 · `PARTICIPANT_ID_INVALID` — 指定的与会者ID无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [讨论组](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [邀请链接](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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 类型：输入用户。", "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 类型：输入用户。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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": "激活或停用与我们拥有的[超级组或频道](https://core.telegram.org/api/channel.md)关联的购买的[fragment.com](https://fragment.com)用户名。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_DISCUSSION_UNALLOWED` — 您无法在链接到频道的讨论组中启用论坛主题。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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": "超组ID"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "启用或禁用论坛功能"}, "tabs": {"type": "boolean", "x-tl-type": "Bool", "description": "如果 true 启用选项卡式论坛 UI，否则启用基于列表的论坛 UI。"}, "sidebar": {"type": "boolean", "x-tl-type": "Bool", "description": "TL 类型 `Bool` 的值。"}}, "additionalProperties": false, "required": ["channel", "enabled", "tabs", "sidebar"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | 超组ID |\n| `enabled` | `Bool` | 是的 | 启用或禁用论坛功能 |\n| `tabs` | `Bool` | 是的 | 如果 true 启用选项卡式论坛 UI，否则启用基于列表的论坛 UI。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [本机反垃圾邮件系统](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 类型：更新。"}}}}, "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": "超级组 ID。指定的超级组必须至少有 `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` | 是的 | 超级组 ID。指定的超级组必须至少有 `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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [本机反垃圾邮件系统](https://core.telegram.org/api/antispam.md)\n- [管理日志](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": "超组ID"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "被[本机反垃圾邮件](https://core.telegram.org/api/antispam.md)系统错误删除的邮件ID，取自[管理日志](https://core.telegram.org/api/recent-actions.md)]"}}, "additionalProperties": false, "required": ["channel", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | 超组ID |\n| `msg_id` | `int` | 是的 | 被[本机反垃圾邮件](https://core.telegram.org/api/antispam.md)系统错误删除的邮件ID，取自[管理日志](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [客户端配置](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\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": "超组ID"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "如果为 true，将隐藏参与者列表；否则将取消隐藏它。"}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | 超组ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [强调色](https://core.telegram.org/api/colors.md)\n- [频道和超级组提升](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 类型：更新。"}}}}, "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": "[要使用的强调调色板的 ID »](https://core.telegram.org/api/colors.md)（不是 RGB24，请参阅[此处 »](https://core.telegram.org/api/colors.md) 了解更多信息）；如果未设置，则使用默认调色板。"}, "background_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "强调色图案中使用的自定义表情符号 ID。", "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` | 否 | [要使用的强调调色板的 ID »](https://core.telegram.org/api/colors.md)（不是 RGB24，请参阅[此处 »](https://core.telegram.org/api/colors.md) 了解更多信息）；如果未设置，则使用默认调色板。 |\n| `background_emoji_id` | `long` | 否 | 强调色图案中使用的自定义表情符号 ID。 |"}, "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调用此方法将更新 [channelFull](https://core.telegram.org/constructor/channelFull.md) 或 [dialog](https://core.telegram.org/constructor/dialog.md)] 的 `view_forum_as_messages` 标志的值，并发出 [updateChannelViewForumAsMessages](https://core.telegram.org/constructor/updateChannelViewForumAsMessages.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [论坛主题](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [表情符号状态](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 类型：更新。"}}}}, "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) 的管理员可以允许对组应用一定数量的 [boosts »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道和超级组提升](https://core.telegram.org/api/boost.md)\n- [管理员、禁止、默认权限](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 类型：更新。"}}}}, "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)。仅在至少达到 [`group_emoji_stickers_level_min` »](https://core.telegram.org/api/config.md#group-emoji-stickers-level-min) 配置参数中指定的 [提升级别 »](https://core.telegram.org/api/boost.md) 后才可用。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [频道和超级组提升](https://core.telegram.org/api/boost.md)\n- [客户端配置](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仅在至少达到 [`channel_restrict_sponsored_level_min` »](https://core.telegram.org/api/config.md#channel-restrict-sponsored-level-min) 配置参数中指定的 [提升级别 »](https://core.telegram.org/api/boost.md) 后才可用。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道和超级组提升](https://core.telegram.org/api/boost.md)\n- [客户端配置](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [搜索和过滤](https://core.telegram.org/api/search.md)\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [用户授权](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，然后设置为 messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) 的 [`next_rate` 参数，或者如果不存在，则设置为最后返回消息的 `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，然后设置为 messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md) 的 [`next_rate` 参数，或者如果不存在，则设置为最后返回消息的 `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/channel.md)或[monoforum](https://core.telegram.org/api/monoforum.md)]中的[付费消息»](https://core.telegram.org/api/paid-messages.md)。\n\n还用于[启用或禁用单一论坛，即频道中的直接消息](https://core.telegram.org/api/monoforum.md)。\n\n请注意，将 monoforum 本身的 ID 传递给 `channel` 将返回 `CHANNEL_MONOFORUM_UNSUPPORTED` 错误：改为传递关联频道的 ID 来编辑关联 monoforum 的设置。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](https://core.telegram.org/api/monoforum.md)\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [付费消息](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400·`CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](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": "传递超级组的超级组ID和[频道](https://core.telegram.org/api/channel.md)的ID，以修改相关单一论坛中的设置。"}, "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` | 是的 | 传递超级组的超级组ID和[频道](https://core.telegram.org/api/channel.md)的ID，以修改相关单一论坛中的设置。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言翻译](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 类型：更新。"}}}}, "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": "只能由 monoforum 的非机器人管理员调用 »，代表与 monoforum 关联的通道，获取其他 monoforum 管理员向 monoforum 发送的消息的原始发件人。", "description": "只能由 [monoforum »](https://core.telegram.org/api/monoforum.md) 的非机器人管理员调用，获取其他 monoforum 管理员发送到 monoforum 的消息的原始发件人，代表与 monoforum 关联的通道。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [直接向频道发送消息](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：用户。"}}}}, "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": "monoforum 管理员发送的消息的 ID。"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | 单一论坛的 ID。 |\n| `id` | `int` | 是的 | monoforum 管理员发送的消息的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [搜索和过滤](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [用户资料](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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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 类型：输入通道。"}, "news": {"type": "boolean", "x-tl-type": "Bool", "description": "TL 类型 `Bool` 的值。"}}, "additionalProperties": false, "required": ["channel", "news"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | 是的 | TL 类型：输入通道。 |\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**谁可以调用这个方法** · 仅限电报机器人。", "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[DataJSON](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**谁可以调用这个方法** · 仅限电报机器人。", "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` — 查询ID无效。\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**谁可以调用这个方法** · 仅限电报机器人。", "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` — 提供的对等 ID 无效。\n- 400 · `USER_BOT_REQUIRED` — 此方法只能由机器人调用。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报机器人。", "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**谁可以调用这个方法** · 仅限电报机器人。", "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)<[机器人命令](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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [机器人菜单按钮](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": "用户ID"}, "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` | 是的 | 用户ID |\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**谁可以调用这个方法** · 仅限电报机器人。", "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[机器人菜单按钮](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": "用户 ID 或默认菜单按钮为空。"}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | 是的 | 用户 ID 或默认菜单按钮为空。 |"}, "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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [管理员、禁止、默认权限](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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [管理员、禁止、默认权限](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` 方法参数。如果没有该方法参数，则该方法只能由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` 方法参数。如果没有该方法参数，则该方法只能由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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [网络事件](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[DataJSON](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [搜索和过滤](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": "[pagination](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` | 是的 | [pagination](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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[机器人预览媒体](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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[机器人预览媒体](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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 类型：输入媒体。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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 类型：输入媒体。"}, "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` 是什么，因此如果您不是 `bot` 的所有者，请仅使用 [bots.getPreviewMedias](https://core.telegram.org/method/bots.getPreviewMedias.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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[矢量](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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [表情符号状态](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` — 提供的用户 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [表情符号状态](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [网络事件](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": "来自[web_app_request_file_download事件»](https://core.telegram.org/api/web-events.md#web-app-request-file-download)的`filename`"}, "url": {"type": "string", "x-tl-type": "string", "description": "来自[web_app_request_file_download活动»](https://core.telegram.org/api/web-events.md#web-app-request-file-download)的`url`"}}, "additionalProperties": false, "required": ["bot", "file_name", "url"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | 是的 | 拥有请求下载的[迷你应用程序](https://core.telegram.org/api/bots/webapps.md)的机器人 |\n| `file_name` | `string` | 是的 | 来自[web_app_request_file_download事件»](https://core.telegram.org/api/web-events.md#web-app-request-file-download)的`filename` |\n| `url` | `string` | 是的 | 来自[web_app_request_file_download活动»](https://core.telegram.org/api/web-events.md#web-app-request-file-download)的`url` |"}, "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：用户。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [附属计划](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": "permille 佣金率：它表示关联公司在机器人内推荐的用户进行的每笔交易中获得的 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` | 是的 | permille 佣金率：它表示关联公司在机器人内推荐的用户进行的每笔交易中获得的 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- [客户端配置](https://core.telegram.org/api/config.md)\n- [第三方验证](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` — 提供的对等 ID 无效。"}}, "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": "如果由机器人调用，则不得**设置；如果由用户调用，则**必须**设置为拥有的机器人的 ID。", "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` | 否 | 如果由机器人调用，则不得**设置；如果由用户调用，则**必须**设置为拥有的机器人的 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [类似的频道和机器人](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [托管机器人](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [托管机器人](https://core.telegram.org/api/bots/managed-bots.md)\n- [客户端配置](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：用户。"}}}}, "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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [托管机器人](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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [机器人按钮](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` — 提供的用户 ID 无效。"}}, "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": "要准备的按钮，任何 [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md) 的 [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.md)]"}}, "additionalProperties": false, "required": ["user_id", "button"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | 是的 | 将使用小程序中准备好的按钮的用户 |\n| `button` | `KeyboardButton` | 是的 | 要准备的按钮，任何 [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md) 的 [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [网络事件](https://core.telegram.org/api/web-events.md)\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [机器人按钮](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 类型：键盘按钮。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `BOT_ID_INVALID` — 指定的机器人ID无效。\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": "小程序请求ID，取自[`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat)事件的`req_id`"}}, "additionalProperties": false, "required": ["bot", "webapp_req_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | 是的 | 拥有迷你应用程序的机器人 |\n| `webapp_req_id` | `string` | 是的 | 小程序请求ID，取自[`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat)事件的`req_id` |"}, "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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [托管机器人](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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [托管机器人](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 类型：输入用户。"}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.1?Vector<InputUser>", "description": "设置 `restricted` 时允许其他用户（最多 10 个，不包括所有者）访问托管机器人"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `restricted` | `true` | 否 | 如果设置，将对托管机器人的访问权限限制为仅所有者和 `add_users` 中的用户 |\n| `bot` | `InputUser` | 是的 | 要编辑其访问设置的托管机器人 |\n| `add_users` | `Vector<InputUser>` | 否 | 设置 `restricted` 时允许其他用户（最多 10 个，不包括所有者）访问托管机器人 |"}, "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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "username": {"type": "string", "x-tl-type": "string", "description": "TL 类型 `string` 的值。"}}, "additionalProperties": false, "required": ["bot", "username"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | 是的 | TL 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "username": {"type": "string", "x-tl-type": "string", "description": "TL 类型 `string` 的值。"}}, "additionalProperties": false, "required": ["bot", "username"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | 是的 | TL 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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：用户。"}}}}}, "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 类型：输入用户。", "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 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "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 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "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 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["bot", "hash"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | 是的 | TL 类型：输入用户。 |\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- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [错误处理](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `GIFT_MONTHS_INVALID` — invoice.inputInvoicePremiumGiftStars.months 中传递的值无效。\n- 400 · `GIFT_STARS_INVALID` — 指定的星星数量无效。\n- 400 · `INVOICE_INVALID` — 指定的发票无效。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `MESSAGE_TOO_LONG` — 提供的消息太长。\n- 400 · `MONTH_INVALID` — inputInvoicePremiumGiftStars.months 中指定的月份数无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `NO_PAYMENT_NEEDED` — 指定礼物的升级/转让已付费或免费。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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。尝试用星星支付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` — 传入的inputInvoiceStarGiftResale 或inputInvoiceStarGiftTransfer 指定的`to_id` 无效。\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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。"}}, "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": "收据消息ID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发送付款收据的对等方 |\n| `msg_id` | `int` | 是的 | 收据消息ID |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID"], "x-browser-schema-id": "611897804"}}, "/catalog/payments.validateRequestedInfo": {"post": {"operationId": "payments.validateRequestedInfo", "tags": ["付款方式"], "summary": "提交请求的订单信息以供验证", "description": "提交请求的订单信息以供验证\n\n**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的消息 ID 无效。\n- 400·`PAYMENT_CREDENTIALS_INVALID` — 指定的支付凭证无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "已保存并验证的ID [订单信息](https://core.telegram.org/constructor/payments.validatedRequestedInfo.md)"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "选择的运输选项 ID"}, "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`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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` | 否 | 已保存并验证的ID [订单信息](https://core.telegram.org/constructor/payments.validatedRequestedInfo.md) |\n| `shipping_option_id` | `string` | 否 | 选择的运输选项 ID |\n| `credentials` | `InputPaymentCredentials` | 是的 | 支付凭证 |\n| `tip_amount` | `long` | 否 | 提示，采用货币的最小单位（整数，而不是浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [电报业务](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\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` — 提供的 Web 文档 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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "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 商店进行的购买：仅适用于官方应用程序。", "description": "通知服务器有关通过 Play 商店进行的购买：仅适用于官方应用程序。\n\n**谁可以调用这个方法** · 仅限电报用户。", "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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赠品和礼物](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赠品和礼物](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赠品和礼物](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赠品和礼物](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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)服务消息的消息ID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发布赠品的同行。 |\n| `msg_id` | `int` | 是的 | [messageActionGiveawayLaunch](https://core.telegram.org/constructor/messageActionGiveawayLaunch.md)服务消息的消息ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赠品和礼物](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "预付费赠品 ID。", "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` | 是的 | 预付费赠品 ID。 |\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 充值选项列表 » 作为 starTopupOption 构造函数。", "description": "获取 [Telegram Stars 充值选项 »](https://core.telegram.org/api/stars.md#buying-or-gifting-stars) 列表作为 [starsTopupOption](https://core.telegram.org/constructor/starsTopupOption.md) 构造函数。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报之星](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)<[星星充值选项](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），或者`peer`中指定的机器人或频道的 stars 余额。", "description": "获取当前账户的当前[Telegram Stars 余额](https://core.telegram.org/api/stars.md)（peer=[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)）]，或`peer`中指定的机器人或频道的stars 余额。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [电报业务](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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- [电报之星](https://core.telegram.org/api/stars.md)\n- [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` — 提供的对等 ID 无效。\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- [电报之星](https://core.telegram.org/api/stars.md)\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [电报业务](https://core.telegram.org/api/business.md)\n- [错误处理](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `FORM_EXPIRED` — 表单生成时间已超过10分钟，已过期，请使用[payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm.md)重新生成，并传递新的`form_id`。\n- 400 · `FORM_ID_EMPTY` — 指定的表单 ID 为空。\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` — 提供的对等 ID 无效。\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` — 传入的inputInvoiceStarGiftResale 或inputInvoiceStarGiftTransfer 指定的`to_id` 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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": "付款单ID", "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` | 是的 | 付款单ID |\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**谁可以调用这个方法** · 仅限电报机器人。\n\n**相关文档**\n\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [付款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 类型：更新。"}}}}, "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` — 提供的用户 ID 无效。"}}, "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": "交易ID。"}}, "additionalProperties": false, "required": ["user_id", "charge_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | 是的 | 用户退款。 |\n| `charge_id` | `string` | 是的 | 交易ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报之星](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` — 提供的对等 ID 无效。"}}, "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": "从频道或机器人的 [star 余额 »](https://core.telegram.org/api/stars.md#withdrawing-revenue) 提取资金。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](https://core.telegram.org/api/srp.md)\n- [电报之星](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": "返回 Telegram 广告平台帐户的 URL，该帐户可用于在 `peer` 中为频道/机器人设置广告，使用指定 `peer` 拥有的 Telegram Stars 进行支付，请参阅此处 » 了解更多信息。", "description": "返回 Telegram 广告平台帐户的 URL，该帐户可用于在 `peer` 中为频道/机器人设置广告，使用指定 `peer` 拥有的 Telegram Stars 进行支付，请参阅[此处 »](https://core.telegram.org/api/stars.md#paying-for-ads) 了解更多信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报之星](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` — 提供的对等 ID 无效。"}}, "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": "» 使用特定交易 ID 获取有关 Telegram Star 交易的信息。", "description": "使用特定交易ID获取[Telegram Star交易»](https://core.telegram.org/api/stars.md#balance-and-transaction-history)的信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报之星](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` — 提供的对等 ID 无效。\n- 400·`TRANSACTION_ID_INVALID` — 指定的交易ID无效。"}}, "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": "交易 ID。"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `ton` | `true` | 否 | 如果设置，则返回以纳克为单位的频道/机器人广告收入交易。 |\n| `peer` | `InputPeer` | 是的 | 渠道或机器人。 |\n| `id` | `Vector<InputStarsTransaction>` | 是的 | 交易 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [客户端配置](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` — 提供的用户 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [邀请链接](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [邀请链接](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` — 提供的对等 ID 无效。"}}, "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": "订阅的 ID。"}, "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` | 是的 | 订阅的 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [邀请链接](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` — 提供的对等 ID 无效。"}}, "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": "订阅的 ID。"}}, "additionalProperties": false, "required": ["peer", "subscription_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 始终传递 [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)。 |\n| `subscription_id` | `string` | 是的 | 订阅的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赠品和礼物](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- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报礼物](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)。可以使用返回或存储的贴纸 [starGift](https://core.telegram.org/constructor/starGift.md)s] 的 `id`s 在本地生成哈希。"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `hash` | `int` | 是的 | [用于缓存的哈希，更多信息请点击这里](https://core.telegram.org/api/offsets.md#hash-generation)。可以使用返回或存储的贴纸 [starGift](https://core.telegram.org/constructor/starGift.md)s] 的 `id`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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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` — 提供的消息 ID 无效。\n- 400·`SAVED_ID_EMPTY` — 传递的inputSavedStarGiftChat.saved_id为空。\n- 400·`STARGIFT_OBJECT_INVALID` — 指定的星星礼物对象无效。\n- 400 · `STARGIFT_OWNER_INVALID` — 您不能转让或出售其他用户拥有的礼物。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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请注意，如果最初是使用很久以前购买的 Telegram Stars 购买的，那么 [starGift](https://core.telegram.org/constructor/starGift.md).`convert_stars` 将低于礼物的购买价格 ([starGift](https://core.telegram.org/constructor/starGift.md).`stars`)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](https://core.telegram.org/api/gifts.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [电报业务](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400·`SAVED_ID_EMPTY` — 传递的inputSavedStarGiftChat.saved_id为空。\n- 400 · `STARGIFT_PEER_INVALID` — 指定的inputSavedStarGiftChat.peer 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [明星订阅](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` — 提供的用户 ID 无效。"}}, "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": "应取消（取消）订阅的用户 ID"}, "charge_id": {"type": "string", "x-tl-type": "string", "description": "发送至机器人的 [messageActionPaymentSentMe](https://core.telegram.org/constructor/messageActionPaymentSentMe.md) 服务消息中的 `provider_charge_id` 用于首次订阅付款。"}}, "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` | 是的 | 应取消（取消）订阅的用户 ID |\n| `charge_id` | `string` | 是的 | 发送至机器人的 [messageActionPaymentSentMe](https://core.telegram.org/constructor/messageActionPaymentSentMe.md) 服务消息中的 `provider_charge_id` 用于首次订阅付款。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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": "[pagination](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` | 否 | [pagination](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [附属计划](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [Telegram 上的小应用程序](https://core.telegram.org/api/bots/webapps.md)\n- [附属计划](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [附属计划](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [附属计划](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](https://core.telegram.org/api/gifts.md)\n- [电报业务](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](https://core.telegram.org/api/gifts.md)\n- [电报业务](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PAYMENT_REQUIRED` — 此操作需要付款，请参阅[此处»](https://core.telegram.org/api/gifts.md) 了解更多信息。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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/links.md#collectible-gift-link)获得的弹头获取有关[收藏礼物»](https://core.telegram.org/api/gifts.md#collectible-gifts)的信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](https://core.telegram.org/api/gifts.md)\n- [深层链接](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) 的完整列表。\n\n请注意，与名称所暗示的不同，该方法可用于将“已保存”和“未保存”礼物（也称为固定和未固定的礼物）获取到配置文件，具体取决于传递的标志。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [电报礼物](https://core.telegram.org/api/gifts.md)\n- [强调色](https://core.telegram.org/api/colors.md)\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报业务](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400·`COLLECTION_ID_INVALID` — 指定的集合ID无效。\n- 400 · `MSG_ID_INVALID` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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)（作为机器人执行该方法时，通过业务连接），peer=[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)（作为机器人执行该方法时，通过业务连接），peer=[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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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": "将收藏礼物 » 转换为 TON 区块链上的 NFT。", "description": "在TON区块链上将[收藏礼物»](https://core.telegram.org/api/gifts.md)转换为NFT。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [双因素身份验证](https://core.telegram.org/api/srp.md)\n- [电报礼物](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](https://core.telegram.org/api/gifts.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [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": "只返回可以使用[星星](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` | 否 | 只返回可以使用[星星](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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[星礼精选](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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[星礼精选](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` — 提供的对等 ID 无效。"}}, "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": "集合 ID。"}, "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` | 是的 | 集合 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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` — 提供的对等 ID 无效。"}}, "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": "集合的 ID。"}}, "additionalProperties": false, "required": ["peer", "collection_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 拥有该集合的同级。 |\n| `collection_id` | `int` | 是的 | 集合的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报礼物](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` — 提供的对等 ID 无效。"}}, "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": "使用先前方法调用返回的所有集合的 [starGiftCollection](https://core.telegram.org/constructor/starGiftCollection.md).`hash` 字段（**不是**`collection_id` 字段）进行哈希（[按照此处指定的方式生成 »](https://core.telegram.org/api/offsets.md#hash-generation)），以避免在结果未更改时重新获取结果。", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行。 |\n| `hash` | `long` | 是的 | 使用先前方法调用返回的所有集合的 [starGiftCollection](https://core.telegram.org/constructor/starGiftCollection.md).`hash` 字段（**不是**`collection_id` 字段）进行哈希（[按照此处指定的方式生成 »](https://core.telegram.org/api/offsets.md#hash-generation)），以避免在结果未更改时重新获取结果。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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": "礼物ID。", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | 是的 | 礼物ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [收藏品礼品拍卖](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": "与拍卖相关的礼物 ID，或 [拍卖深度链接 slug »](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` | 是的 | 与拍卖相关的礼物 ID，或 [拍卖深度链接 slug »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [收藏品礼品拍卖](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": "与拍卖关联的礼物 ID。", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | 是的 | 与拍卖关联的礼物 ID。 |"}, "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要获取单个拍卖的完整状态，订阅其实时更新并呈现详细的拍卖 UI（通常当用户打开特定拍卖时），请使用 [payments.getStarGiftAuctionState](https://core.telegram.org/method/payments.getStarGiftAuctionState.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [收藏品礼品拍卖](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- [电报礼物](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [付费消息](https://core.telegram.org/api/paid-messages.md)\n- [电报之星](https://core.telegram.org/api/stars.md)\n- [电报礼物](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 类型：更新。"}}}}, "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` — 提供的对等 ID 无效。\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 位标识符，用于避免在出现网络问题时两次发送相同的报价。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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 位标识符，用于避免在出现网络问题时两次发送相同的报价。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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结果还可能包括设置了 `crafted` 标志的 [starGiftAttributeModel](https://core.telegram.org/constructor/starGiftAttributeModel.md) 构造函数：这些模型是为 [制作 »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts) 保留的，应该从常规升级预览中过滤掉（反之亦然）。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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": "非收藏基础礼物 ID，来自 [starGift](https://core.telegram.org/constructor/starGift.md).`id`", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | 是的 | 非收藏基础礼物 ID，来自 [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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报礼物](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": "通过组合 1 到 4 件相同基础礼品类型的收藏品，制作一份新的 [收藏品礼品 »](https://core.telegram.org/api/gifts.md#collectible-gifts)。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报礼物](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 类型：更新。"}}}}, "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)。如果制作成功，第一份礼物的 ID 将被重复使用。"}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `stargift` | `Vector<InputSavedStarGift>` | 是的 | 1 到 4 件拥有相同类型的收藏礼物，可用于[制作»](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts)。如果制作成功，第一份礼物的 ID 将被重复使用。 |"}, "x-telegram-rpc-errors": ["SAVED_ID_EMPTY"], "x-browser-schema-id": "2969135183"}}, "/catalog/payments.getCurrencyRates": {"post": {"operationId": "payments.getCurrencyRates", "tags": ["付款方式"], "summary": "payments.getCurrencyRates", "description": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [深层链接](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` — 提供的对等 ID 无效。\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` — 提供的用户 ID 无效。"}}, "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": "这是否是[自定义表情符号](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 自定义表情符号的颜色是否应更改为在消息中使用时的文本颜色、用作表情符号状态时的强调色、聊天照片上的白色或基于上下文的其他适当颜色。仅适用于自定义表情符号贴纸集。"}, "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` | 否 | 这是否是[自定义表情符号](https://core.telegram.org/api/custom-emoji.md)贴纸集。 |\n| `text_color` | `true` | 否 | 该集中包含的 TGS 自定义表情符号的颜色是否应更改为在消息中使用时的文本颜色、用作表情符号状态时的强调色、聊天照片上的白色或基于上下文的其他适当颜色。仅适用于自定义表情符号贴纸集。 |\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- [自定义表情符号](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)，集合中存在的自定义表情符号的ID，用作缩略图；传递 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)，集合中存在的自定义表情符号的ID，用作缩略图；传递 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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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- [贴纸和面具](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- [贴纸和面具](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[DataJSON](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": "发起电报电话呼叫，请参阅此处 » 了解有关完整流程的更多信息。", "description": "发起电报电话呼叫，请参阅[此处»](https://core.telegram.org/api/calls.md#one-to-one-calls)，了解有关完整流程的更多信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [端到端加密语音通话](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [电话](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` — 其他参与者未使用支持通话的最新电报客户端。\n- 500 · `RANDOM_ID_DUPLICATE` — 您提供了一个已被使用的随机 ID。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。\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": "随机 ID 以避免重复发送同一对象。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}, "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` | 是的 | 随机 ID 以避免重复发送同一对象。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [端到端加密语音通话](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [电话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [端到端加密语音通话](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [电话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电话](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 类型：更新。"}}}}, "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 中继 ID", "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 中继 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电话](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 类型：更新。"}}}}, "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": "如果服务器通过 [phoneCallDiscarded](https://core.telegram.org/constructor/phoneCallDiscarded.md).`need_rating` 请求评级，则用户是否主动决定对呼叫进行评级，必须设置NOT。"}, "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` | 否 | 如果服务器通过 [phoneCallDiscarded](https://core.telegram.org/constructor/phoneCallDiscarded.md).`need_rating` 请求评级，则用户是否主动决定对呼叫进行评级，必须设置NOT。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](https://core.telegram.org/api/group-calls.md)\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [使用更新](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 类型：更新。"}}}}, "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` — 提供的对等 ID 无效。\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": "需要唯一的客户端消息 ID，以防止创建重复的群组呼叫。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}, "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` | 是的 | 需要唯一的客户端消息 ID，以防止创建重复的群组呼叫。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](https://core.telegram.org/api/group-calls.md)\n- [深层链接](https://core.telegram.org/api/links.md)\n- [E2E 群组通话](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 类型：更新。"}}}}, "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` — 指定的端到端公钥无效。"}}, "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": "加入群组通话，将自己呈现为指定的用户/频道；该对等点还用作普通视频聊天/直播中通话消息的作者。只有视频聊天/直播可以使用另一个对等方；当加入[直播故事»](https://core.telegram.org/api/group-calls.md#live-stories)或[电话会议»](https://core.telegram.org/api/group-calls.md#conference-calls)时，该字段必须等于[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)。"}, "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` | 是的 | 加入群组通话，将自己呈现为指定的用户/频道；该对等点还用作普通视频聊天/直播中通话消息的作者。只有视频聊天/直播可以使用另一个对等方；当加入[直播故事»](https://core.telegram.org/api/group-calls.md#live-stories)或[电话会议»](https://core.telegram.org/api/group-calls.md#conference-calls)时，该字段必须等于[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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": "主组呼流源ID"}}, "additionalProperties": false, "required": ["call", "source"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | 是的 | 群呼离开 |\n| `source` | `int` | 是的 | 主组呼流源ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 403·`CHAT_TYPE_INVALID` — 指定的用户类型无效。\n- 403 · `GROUPCALL_FORBIDDEN` — 指定的群组呼叫不能在此上下文中使用。\n- 400·`GROUPCALL_INVALID` — 指定组呼无效。\n- 400 · `INVITE_FORBIDDEN_WITH_JOINAS` — 如果用户作为频道匿名加入群组通话，则他们无法邀请其他用户加入群组通话，因为这会导致去匿名化，因为邀请将使用原始用户 ID 发送，而不是匿名频道 ID。\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 类型：输入用户。"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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) 对剩余参与者进行分页，并将此调用返回的 [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md).`participants_next_offset` 传递给 `offset`。  与 [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md) 的 `limit` 相比，此参数的行为方式不同，请参阅[此处 »](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) 对剩余参与者进行分页，并将此调用返回的 [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md).`participants_next_offset` 传递给 `offset`。  与 [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md) 的 `limit` 相比，此参数的行为方式不同，请参阅[此处 »](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [群组通话](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 源 ID 的群组参与者信息"}, "offset": {"type": "string", "x-tl-type": "string", "description": "结果的偏移量，取自 [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) 的 `next_offset` 字段或 [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md) 的 `participants_next_offset` 字段，最初是一个空字符串。  注意：如果没有更多结果可用，该方法调用将返回空的`next_offset`；因此，如果 [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) 为空，请避免提供返回的 `next_offset`，以避免无限循环。"}, "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 源 ID 的群组参与者信息 |\n| `offset` | `string` | 是的 | 结果的偏移量，取自 [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) 的 `next_offset` 字段或 [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md) 的 `participants_next_offset` 字段，最初是一个空字符串。  注意：如果没有更多结果可用，该方法调用将返回空的`next_offset`；因此，如果 [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) 为空，请避免提供返回的 `next_offset`，以避免无限循环。 |\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": "检查服务器仍将哪些指定源 ID 识别为已加入群组通话。此方法可用于所有群组呼叫类型，请参阅此处 » 了解更多信息。", "description": "检查服务器仍将哪些指定源 ID 识别为已加入群组呼叫。此方法可用于所有群组呼叫类型，请参阅[此处 »](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/源 ID 传递给此方法。如果演示连接也处于活动状态，请包含使用 [phone.joinGroupCallPresentation](https://core.telegram.org/method/phone.joinGroupCallPresentation.md) 注册的单独源。\n\n该方法返回所提供的仍处于连接状态的源的子集。丢失源意味着必须重新创建并重新加入相应的连接；它并不指示媒体数据包当前是否正在流动。如果该方法返回`GROUPCALL_JOIN_MISSING`，则必须重新加入主连接。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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/源 ID"}}, "additionalProperties": false, "required": ["call", "sources"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | 是的 | 应检查其 WebRTC 连接的群组呼叫 |\n| `sources` | `Vector<int>` | 是的 | 调用方主连接和演示连接的非零 SSRC/源 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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标志](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields)，则不会更改之前的值。\n- 如果设置了[TL标志](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields)并且包含[boolTrue](https://core.telegram.org/constructor/boolTrue.md)]，则先前的值将被覆盖为`true`。\n- 如果设置了[TL标志](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields)并且包含[boolFalse](https://core.telegram.org/constructor/boolFalse.md)]，则先前的值将被覆盖为`false`。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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` — 提供的用户 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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调用该方法前必须先加入组呼。将请求发送到[groupCall](https://core.telegram.org/constructor/groupCall.md).`stream_dc_id`指定的媒体DC。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [群组通话](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 类型：更新。"}}}}}, "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": "需要唯一的客户端消息 ID，以防止创建重复的群组呼叫。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。"}, "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` | 是的 | 需要唯一的客户端消息 ID，以防止创建重复的群组呼叫。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [E2E 群组通话](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 类型：更新。"}}}}, "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 区块链中删除的用户 ID"}, "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 区块链中删除的用户 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [E2E 群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — 提供的消息 ID 无效。"}}, "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)] 的 ID。"}}, "additionalProperties": false, "required": ["msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `msg_id` | `int` | 是的 | 要拒绝的 [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md)] 的 ID。 |"}, "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);按照[此处指定的 »](https://core.telegram.org/api/end-to-end/group-calls.md#handling-updates) 处理返回的 [updateGroupCallChainBlocks](https://core.telegram.org/constructor/updateGroupCallChainBlocks.md)。\n\n如果*任何*调用此方法返回的块数等于`limit`，则必须在处理返回的[updateGroupCallChainBlocks](https://core.telegram.org/constructor/updateGroupCallChainBlocks.md)后立即重新调用此方法，并使用新提交的`offset`（通常等于返回的`next_offset`）。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [E2E 群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [群组通话](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 类型：更新。"}}}}, "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": "客户端生成的新随机 ID 用于删除消息或捐赠的重复内容。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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` | 是的 | 客户端生成的新随机 ID 用于删除消息或捐赠的重复内容。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [E2E 群组通话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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": "要删除的消息的 ID"}}, "additionalProperties": false, "required": ["call", "messages"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `report_spam` | `true` | 否 | 审核其他参与者的消息时，也将其报告为垃圾邮件 |\n| `call` | `InputGroupCall` | 是的 | 包含消息的视频聊天/直播或现场故事 |\n| `messages` | `Vector<int>` | 是的 | 要删除的消息的 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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 类型：更新。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](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": "同行显示为后续评论和反应的作者"}}, "additionalProperties": false, "required": ["call", "send_as"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | 是的 | 现场故事群组通话 |\n| `send_as` | `InputPeer` | 是的 | 同行显示为后续评论和反应的作者 |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "1097313745"}}, "/catalog/langpack.getLangPack": {"post": {"operationId": "langpack.getLangPack", "tags": ["翻译"], "summary": "获取本地化包字符串", "description": "获取本地化包字符串\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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[LangPack差异](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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[LangPack差异](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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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[LangPack语言](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `CHANNEL_PRIVATE` — 您尚未加入此频道/超级群组。\n- 400 · `CHAT_ID_INVALID` — 提供的聊天 ID 无效。\n- 400·`FOLDER_ID_INVALID` — 无效的文件夹 ID。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道统计](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道统计](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 类型：统计图。"}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [频道统计](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": "[超群ID](https://core.telegram.org/api/channel.md)"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `dark` | `true` | 否 | 是否为图表颜色启用深色主题 |\n| `channel` | `InputChannel` | 是的 | [超群ID](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将返回 [messages](https://core.telegram.org/constructor/message.md) 列表，其中 `peer_id` 等于此消息转发到的公共通道。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "源消息ID"}, "offset": {"type": "string", "x-tl-type": "string", "description": "[pagination](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` | 是的 | 源消息ID |\n| `offset` | `string` | 是的 | [pagination](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道统计](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "消息ID"}}, "additionalProperties": false, "required": ["channel", "msg_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `dark` | `true` | 否 | 是否为图表颜色启用深色主题 |\n| `channel` | `InputChannel` | 是的 | 通道号 |\n| `msg_id` | `int` | 是的 | 消息ID |"}, "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/stories.md)的统计数据](https://core.telegram.org/api/stats.md)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道统计](https://core.telegram.org/api/stats.md)\n- [电报故事](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` — 提供的对等 ID 无效。\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": "故事ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `dark` | `true` | 否 | 是否启用图表颜色的深色主题 |\n| `peer` | `InputPeer` | 是的 | 发布该故事的同行 |\n| `id` | `int` | 是的 | 故事ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](https://core.telegram.org/api/stories.md)\n- [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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道统计](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [通道、超组、千兆组和基本组](https://core.telegram.org/api/channel.md)\n- [对话框文件夹](https://core.telegram.org/api/folders.md)\n- [深层链接](https://core.telegram.org/api/links.md)\n- [客户端配置](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` — 指定的过滤器 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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` — 指定的过滤器 ID 无效。\n- 400 · `FILTER_NOT_SUPPORTED` — 指定的过滤器不能在此上下文中使用。\n- 400·`INVITE_SLUG_EXPIRED` — 指定的聊天文件夹链接已过期。\n- 400 · `INVITE_SLUG_INVALID` — 指定的邀请 slug 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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[导出聊天列表邀请](https://core.telegram.org/type/ExportedChatlistInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedChatlistInvite", "oneOf": [{"$ref": "#/components/schemas/exportedChatlistInvite"}], "description": "TL 类型：导出的聊天列表邀请。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `FILTER_ID_INVALID` — 指定的过滤器 ID 无效。\n- 400 · `FILTER_NOT_SUPPORTED` — 指定的过滤器不能在此上下文中使用。\n- 400 · `INVITE_SLUG_EMPTY` — 指定的邀请 slug 为空。\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": "文件夹ID"}, "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` | 是的 | 文件夹ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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` — 指定的过滤器 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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` — 指定的邀请 slug 为空。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [对话框文件夹](https://core.telegram.org/api/folders.md)\n- [客户端配置](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 类型：更新。"}}}}, "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` — 指定的邀请 slug 为空。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](https://core.telegram.org/api/links.md)\n- [客户端配置](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` — 指定的过滤器 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [对话框文件夹](https://core.telegram.org/api/folders.md)\n- [深层链接](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `FILTER_ID_INVALID` — 指定的过滤器 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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` — 指定的过滤器 ID 无效。\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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 类型：对等。"}, "x-tl-type": "Vector<Peer>"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `FILTER_ID_INVALID` — 指定的过滤器 ID 无效。\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": "文件夹ID"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | 是的 | 文件夹ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `FILTER_ID_INVALID` — 指定的过滤器 ID 无效。"}}, "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": "文件夹ID"}, "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` | 是的 | 文件夹ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道和超级组提升](https://core.telegram.org/api/boost.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [电报高级版](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` — 提供的对等 ID 无效。\n- 400 · `PREMIUM_ACCOUNT_REQUIRED` — 需要高级帐户才能执行此操作。\n- 400 · `STORIES_TOO_MUCH` — 您已达到 [`story_expiring_limit_*` 客户端配置参数](https://core.telegram.org/api/config.md#story-expiring-limit-default) 指定的最大活动故事限制：您应该购买 [Premium](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": "上传[电报故事](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`中指定受控业务用户的ID。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [电报故事](https://core.telegram.org/api/stories.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [隐私设置](https://core.telegram.org/api/privacy.md)\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [频道和超级组提升](https://core.telegram.org/api/boost.md)\n- [电报高级版](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 类型：更新。"}}}}, "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` — 提供的对等 ID 无效。\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) 指定的最大活动故事限制：您应该购买 [Premium](https://core.telegram.org/api/premium.md) 订阅，删除活动故事，或等待最旧的故事过期。\n- 400 · `STORY_PERIOD_INVALID` — 指定的故事周期对此帐户无效。\n- 400·`VENUE_ID_INVALID` — 指定的会场ID无效。\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": "如果在重新发布之前修改了 `media`，则在重新发布带有 `fwd_from_id`+`fwd_from_story` 的故事时设置此标志。"}, "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 类型：媒体区域。"}, "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 类型：消息实体。"}, "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 类型：输入隐私规则。"}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "[故事的隐私规则](https://core.telegram.org/api/privacy.md)，指示谁可以或不能查看该故事。"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "需要唯一的客户端消息 ID，以防止消息重新发送。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "x-tl-type": "long"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int", "description": "故事移至存档（如果设置了 `pinned`，则移至配置文件）的时间段，以秒为单位；对于 Telegram Premium 用户，必须是 `6 * 3600`、`12 * 3600`、`86400` 或 `2 * 86400` 之一，否则必须是`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_id` 中同伴发布的 ID 为 `fwd_from_story` 的故事的转发。", "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_id` 中同伴发布的 ID 为 `fwd_from_story` 的故事的转发。"}, "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` | 否 | 如果在重新发布之前修改了 `media`，则在重新发布带有 `fwd_from_id`+`fwd_from_story` 的故事时设置此标志。 |\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` | 是的 | 需要唯一的客户端消息 ID，以防止消息重新发送。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\n| `period` | `int` | 否 | 故事移至存档（如果设置了 `pinned`，则移至配置文件）的时间段，以秒为单位；对于 Telegram Premium 用户，必须是 `6 * 3600`、`12 * 3600`、`86400` 或 `2 * 86400` 之一，否则必须是`86400`。 |\n| `fwd_from_id` | `InputPeer` | 否 | 如果设置，则表示该故事是对 `fwd_from_id` 中同伴发布的 ID 为 `fwd_from_story` 的故事的转发。 |\n| `fwd_from_story` | `int` | 否 | 如果设置，则表示该故事是对 `fwd_from_id` 中同伴发布的 ID 为 `fwd_from_story` 的故事的转发。 |\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` 中指定受控业务用户的 ID：在这种情况下，该方法只能用于编辑由同一业务机器人代表具有 [stories.sendStory](https://core.telegram.org/method/stories.sendStory.md) 的用户发布的故事。\n\n**谁可以调用这个方法** · Telegram 用户和机器人。\n\n**相关文档**\n\n- [电报故事](https://core.telegram.org/api/stories.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [隐私设置](https://core.telegram.org/api/privacy.md)\n- [连接的商业机器人](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "要编辑的故事的 ID。"}, "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 类型：媒体区域。"}, "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 类型：消息实体。"}, "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 类型：输入隐私规则。"}, "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` | 是的 | 要编辑的故事的 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](https://core.telegram.org/api/stories.md)\n- [连接的商业机器人](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [电报业务](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` — 传递给包装 [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) 调用的 `connection_id` 无效。\n- 400 · `CHANNEL_INVALID` — 提供的频道无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `STORY_ID_EMPTY` — 您未指定故事 ID。"}}, "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": "要删除的故事的 ID。"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 从哪里删除故事的频道/用户。 |\n| `id` | `Vector<int>` | 是的 | 要删除的故事的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。"}}, "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": "要固定或取消固定的故事 ID"}, "pinned": {"type": "boolean", "x-tl-type": "Bool", "description": "是否固定或取消固定故事"}}, "additionalProperties": false, "required": ["peer", "id", "pinned"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 确定固定或取消固定故事的位置 |\n| `id` | `Vector<int>` | 是的 | 要固定或取消固定的故事 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报故事](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` — 提供的对等 ID 无效。\n- 400 · `USER_ID_INVALID` — 提供的用户 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报故事](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` — 提供的对等 ID 无效。"}}, "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": "通过 ID 获取一组故事的完整信息。", "description": "通过 ID 获取有关一组 [故事](https://core.telegram.org/api/stories.md)] 的完整信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `STORIES_NEVER_CREATED` — 该同行尚未发布任何故事。\n- 400 · `STORY_ID_EMPTY` — 您未指定故事 ID。"}}, "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": "故事 ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发布故事的同行 |\n| `id` | `Vector<int>` | 是的 | 故事 ID |"}, "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": "对于给定的同级，将所有达到特定 ID 的故事标记为已读；将向所有登录会话发出 updateReadStories 更新。", "description": "对于给定的同级，将所有达到特定 ID 的故事标记为已读；将对所有登录会话发出 [updateReadStories](https://core.telegram.org/constructor/updateReadStories.md) 更新。\n\n**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的最大 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\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": "将包含此 ID 在内的所有故事标记为已读"}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 其故事应标记为已读的同伴。 |\n| `max_id` | `int` | 是的 | 将包含此 ID 在内的所有故事标记为已读 |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 提供的对等 ID 无效。\n- 400 · `STORY_ID_EMPTY` — 您未指定故事 ID。"}}, "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": "故事的 ID（一次最多 200 个）。"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 查看故事发布的位置。 |\n| `id` | `Vector<int>` | 是的 | 故事的 ID（一次最多 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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [联系人名单](https://core.telegram.org/api/contacts.md)\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报故事](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` — 提供的对等 ID 无效。\n- 400 · `STORY_ID_INVALID` — 指定的故事 ID 无效。"}}, "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)放在列表中的第一位）对列表进行额外排序）。如果设置了`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": "故事ID"}, "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)放在列表中的第一位）对列表进行额外排序）。如果设置了`forwards_first`，则忽略。 |\n| `forwards_first` | `true` | 否 | 如果设置，则先返回转发和转发，然后是反应，然后是其他视图；否则返回仅按交互日期排序的交互。 |\n| `peer` | `InputPeer` | 是的 | 发布故事的同行 |\n| `q` | `string` | 否 | 搜索特定同行 |\n| `id` | `int` | 是的 | 故事ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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` — 提供的对等 ID 无效。\n- 400 · `STORY_ID_EMPTY` — 您未指定故事 ID。"}}, "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": "故事 ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 应获取其故事的同行 |\n| `id` | `Vector<int>` | 是的 | 故事 ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [深层链接](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[导出故事链接](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` — 提供的对等 ID 无效。\n- 400 · `STORY_ID_EMPTY` — 您未指定故事 ID。\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": "故事ID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 发布故事的同行 |\n| `id` | `int` | 是的 | 故事ID |"}, "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**谁可以调用这个方法** · 仅限电报用户。", "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 类型：报告结果。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "要报告的故事的 ID。"}, "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>` | 是的 | 要报告的故事的 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [电报故事](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 类型：更新。"}}}}, "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)未来的故事视图，由[客户端配置](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)未来的故事视图，由[客户端配置](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [留言反应](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `REACTION_INVALID` — 指定的反应无效。\n- 400 · `STORIES_NEVER_CREATED` — 该同行尚未发布任何故事。\n- 400 · `STORY_ID_EMPTY` — 您未指定故事 ID。\n- 400 · `STORY_ID_INVALID` — 指定的故事 ID 无效。"}}, "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": "要做出反应的故事 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": "反应"}}, "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` | 是的 | 要做出反应的故事 ID |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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` — 提供的消息 ID 无效。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "首次登录时获取所有同行的最新阅读故事 ID，以 updateReadStories 更新列表的形式返回，请参阅此处 » 了解更多信息。", "description": "首次登录时获取所有节点的最新阅读故事 ID，以 [updateReadStories](https://core.telegram.org/constructor/updateReadStories.md) 更新列表的形式返回，请参阅[此处 »](https://core.telegram.org/api/stories.md#watching-stories) 了解更多信息。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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 类型：更新。"}}}}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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 类型：最近的故事。"}, "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": "获取用户可以发布的频道列表 [stories](https://core.telegram.org/api/stories.md)\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](https://core.telegram.org/api/stories.md)\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [留言反应](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` — 提供的对等 ID 无效。"}}, "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": "分页偏移量（取自返回的[stories.StoryReactionsList](https://core.telegram.org/type/stories.StoryReactionsList.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", "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` | 否 | 分页偏移量（取自返回的[stories.StoryReactionsList](https://core.telegram.org/type/stories.StoryReactionsList.md)的`next_offset`字段）；第一个请求中为空。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [电报故事](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` — 提供的对等 ID 无效。\n- 400 · `STORY_ID_INVALID` — 指定的故事 ID 无效。"}}, "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": "要固定的故事的 ID（最大 [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>` | 是的 | 要固定的故事的 ID（最大 [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#location-tags)全局搜索[故事](https://core.telegram.org/api/stories.md)]，请参阅[此处»](https://core.telegram.org/api/stories.md#searching-stories)了解有关完整流程的更多信息。\n\n调用该方法时，必须设置 `hashtag` **或** `area` **。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报故事](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)的偏移量：最初是一个空字符串，然后是之前返回的[stories.foundStories](https://core.telegram.org/constructor/stories.foundStories.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| `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)的偏移量：最初是一个空字符串，然后是之前返回的[stories.foundStories](https://core.telegram.org/constructor/stories.foundStories.md)的`next_offset`。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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：故事专辑。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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：故事专辑。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。"}}, "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": "专辑 ID。"}, "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": "如果设置，则按 ID 对相册中的故事重新排序。"}}, "additionalProperties": false, "required": ["peer", "album_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 对等相册发布位置。 |\n| `album_id` | `int` | 是的 | 专辑 ID。 |\n| `title` | `string` | 否 | 新专辑名称。 |\n| `delete_stories` | `Vector<int>` | 否 | 如果设置，则从相册中删除指定的故事。 |\n| `add_stories` | `Vector<int>` | 否 | 如果设置，则将指定的故事添加到相册中。 |\n| `order` | `Vector<int>` | 否 | 如果设置，则按 ID 对相册中的故事重新排序。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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` — 提供的对等 ID 无效。"}}, "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": "要删除的相册的 ID。"}}, "additionalProperties": false, "required": ["peer", "album_id"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 相册所在的拥有的对等点。 |\n| `album_id` | `int` | 是的 | 要删除的相册的 ID。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [电报故事](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` — 提供的对等 ID 无效。"}}, "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": "之前返回的 [stories.albums](https://core.telegram.org/constructor/stories.albums.md) 中的 `hash`，以避免在未更改的情况下返回任何结果。", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | 是的 | 同行。 |\n| `hash` | `long` | 是的 | 之前返回的 [stories.albums](https://core.telegram.org/constructor/stories.albums.md) 中的 `hash`，以避免在未更改的情况下返回任何结果。 |"}, "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [API 中的分页](https://core.telegram.org/api/offsets.md)\n- [电报故事](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` — 提供的对等 ID 无效。"}}, "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": "专辑 ID。"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[pagination](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` | 是的 | 专辑 ID。 |\n| `offset` | `int` | 是的 | [pagination](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [群组通话](https://core.telegram.org/api/group-calls.md)\n- [带有消息实体的样式文本](https://core.telegram.org/api/entities.md)\n- [使用更新](https://core.telegram.org/api/updates.md)\n- [通道、超组、千兆组和基本组](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 类型：更新。"}}}}, "default": {"description": "### MTProto 错误 (RPC)\n\n- 400·`CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) 不支持此功能。\n- 400 · `CHAT_ADMIN_REQUIRED` — 您必须是此聊天的管理员才能执行此操作。\n- 400 · `PEER_ID_INVALID` — 提供的对等 ID 无效。\n- 400 · `STORY_LIVE_ALREADY_%d` — 该对等点已经有一个活跃的实时故事，其 ID 等于 %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 类型：消息实体。"}, "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 类型：输入隐私规则。"}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "隐私规则定义了谁可以查看实时故事"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "客户端生成的随机 ID 用于防止重复的直播故事。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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` | 是的 | 客户端生成的随机 ID 用于防止重复的直播故事。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [赠品和礼物](https://core.telegram.org/api/giveaways.md)\n- [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` — 提供的对等 ID 无效。"}}, "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": "获取我们当前正在 [Boosting](https://core.telegram.org/api/boost.md)] 的哪些节点，以及我们还剩下多少个 [Boosting slot](https://core.telegram.org/api/boost.md)]。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道和超级组提升](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道和超级组提升](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` — 提供的对等 ID 无效。\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": "哪个 [boost slot](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>` | 否 | 哪个 [boost slot](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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [频道和超级组提升](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` — 提供的对等 ID 无效。"}}, "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` — 提供的对等 ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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**谁可以调用这个方法** · 仅限电报用户。", "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[短信作业](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` — 指定的作业ID 无效。"}}, "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**谁可以调用这个方法** · 仅限电报用户。", "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` — 指定的作业ID 无效。"}}, "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": "职位 ID。"}, "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` | 是的 | 职位 ID。 |\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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [碎片收藏品](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": ["AI 编辑器"], "summary": "创建新的自定义 AI 作曲家音色 »。", "description": "创建新的自定义[AI作曲家音调»](https://core.telegram.org/api/ai.md#ai-compose-tones)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [人工智能特点](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": "[铃声图标的自定义表情符号ID](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": "描述 AI 应如何使用此语气重新表述消息的提示，长度最多为 [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` | 是的 | [铃声图标的自定义表情符号ID](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` | 是的 | 描述 AI 应如何使用此语气重新表述消息的提示，长度最多为 [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": ["AI 编辑器"], "summary": "编辑当前用户之前创建的自定义 AI 作曲家音调。只有设置了标志的字段才会被修改。", "description": "编辑当前用户之前创建的自定义 [AI 作曲家音调 »](https://core.telegram.org/api/ai.md#ai-compose-tones)。只有设置了标志的字段才会被修改。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [自定义表情符号](https://core.telegram.org/api/custom-emoji.md)\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [人工智能特点](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": "如果设置，则更改当前用户是否被公开视为该音调的作者（三元值，可以不设置、设置为 true、设置为 false）。"}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "如果设置，则铃声图标的新[自定义表情符号ID](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": "如果设置，则描述 AI 应如何使用此语气重新表述消息的新提示，最长为 [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` | 否 | 如果设置，则更改当前用户是否被公开视为该音调的作者（三元值，可以不设置、设置为 true、设置为 false）。 |\n| `emoji_id` | `long` | 否 | 如果设置，则铃声图标的新[自定义表情符号ID](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` | 否 | 如果设置，则描述 AI 应如何使用此语气重新表述消息的新提示，最长为 [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": ["AI 编辑器"], "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**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [人工智能特点](https://core.telegram.org/api/ai.md)\n- [电报高级版](https://core.telegram.org/api/premium.md)\n- [客户端配置](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": ["AI 编辑器"], "summary": "永久删除当前用户创建的自定义 AI 作曲家音调。", "description": "永久删除当前用户创建的自定义[AI作曲家铃声»](https://core.telegram.org/api/ai.md#ai-compose-tones)。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [人工智能特点](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": ["AI 编辑器"], "summary": "获取有关单个 AI 作曲家音调的信息 »，例如解析共享音调深层链接。", "description": "获取有关单个 [AI 作曲家音调 »](https://core.telegram.org/api/ai.md#ai-compose-tones) 的信息，例如解析共享音调深层链接。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [人工智能特点](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": ["AI 编辑器"], "summary": "获取当前用户已保存的 AI 作曲家音色列表。", "description": "获取当前用户已保存的[AI作曲家铃声»](https://core.telegram.org/api/ai.md#ai-compose-tones)列表。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [人工智能特点](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": ["AI 编辑器"], "summary": "获取一个示例，显示人工智能作曲家如何重新措辞示例消息，用作音调选择器中的预览。", "description": "获取一个示例，显示 [AI 作曲家音调 »](https://core.telegram.org/api/ai.md#ai-compose-tones) 如何改写示例消息，用作音调选择器中的预览。\n\n**谁可以调用这个方法** · 仅限电报用户。\n\n**相关文档**\n\n- [客户端配置](https://core.telegram.org/api/config.md)\n- [人工智能特点](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[AiComposeTone示例](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": ["AI 编辑器"], "summary": "aicompose.setChatStyle", "description": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入通道。"}, "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 类型：输入通道。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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 类型：输入通道。"}}, "additionalProperties": false, "required": ["community"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `collapsed` | `true` | 否 | TL 类型 `true` 的值。 |\n| `community` | `InputChannel` | 是的 | TL 类型：输入通道。 |"}, "x-telegram-docs-note": "未找到此方法的 Telegram 官方文档页面。", "x-browser-schema-id": "3613844458"}}, "/catalog/communities.getPeerLinkRequests": {"post": {"operationId": "communities.getPeerLinkRequests", "tags": ["社区"], "summary": "communities.getPeerLinkRequests", "description": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入通道。"}, "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 类型：输入通道。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入通道。"}, "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 类型：输入通道。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入通道。"}}, "additionalProperties": false, "required": ["community"]}}}, "description": "| 名称 | 类型 | 必填 | 描述 |\n| --- | --- | --- | --- |\n| `reject` | `true` | 否 | TL 类型 `true` 的值。 |\n| `community` | `InputChannel` | 是的 | TL 类型：输入通道。 |"}, "x-telegram-docs-note": "未找到此方法的 Telegram 官方文档页面。", "x-browser-schema-id": "3219381565"}}, "/catalog/communities.toggleParticipantBanned": {"post": {"operationId": "communities.toggleParticipantBanned", "tags": ["社区"], "summary": "communities.toggleParticipantBanned", "description": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入通道。"}, "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 类型：输入通道。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入通道。"}, "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 类型：输入通道。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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 类型：输入用户。"}, "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 类型：消息实体。"}, "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 类型：输入媒体。", "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 类型：回复标记。", "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 类型：输入用户。 |\n| `query_id` | `long` | 否 | 64-битное целое в десятичной записи. |\n| `message` | `string` | 是的 | TL 类型 `string` 的值。 |\n| `entities` | `Vector<MessageEntity>` | 否 | TL 类型 `Vector<MessageEntity>` 的值。 |\n| `media` | `InputMedia` | 否 | TL 类型：输入媒体。 |\n| `reply_markup` | `ReplyMarkup` | 否 | TL 类型：回复标记。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "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 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：报告结果。"}}}}}, "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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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 类型：输入用户。"}, "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 类型：输入媒体。", "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 类型：消息实体。"}, "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 类型：回复标记。", "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 类型：输入用户。 |\n| `id` | `int` | 是的 | TL 类型 `int` 的值。 |\n| `message` | `string` | 否 | TL 类型 `string` 的值。 |\n| `media` | `InputMedia` | 否 | TL 类型：输入媒体。 |\n| `entities` | `Vector<MessageEntity>` | 否 | TL 类型 `Vector<MessageEntity>` 的值。 |\n| `reply_markup` | `ReplyMarkup` | 否 | TL 类型：回复标记。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：输入用户。"}, "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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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 类型：输入用户。"}, "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 类型：输入用户。 |\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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "x-telegram-docs-note": "未找到此方法的 Telegram 官方文档页面。", "x-browser-schema-id": "1949167777"}}, "/catalog/wallet.getExistingWaltBalance": {"post": {"operationId": "wallet.getExistingWaltBalance", "tags": ["钱包"], "summary": "wallet.getExistingWaltBalance", "description": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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 类型：更新。"}}}}}, "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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "Telegram 客户端 API 方法。此卡片展示其 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": "布尔值False", "type": "object", "properties": {"_": {"type": "string", "enum": ["boolFalse"]}}, "required": ["_"], "additionalProperties": false}, "boolTrue": {"title": "布尔真", "type": "object", "properties": {"_": {"type": "string", "enum": ["boolTrue"]}}, "required": ["_"], "additionalProperties": false}, "true": {"title": "真实", "type": "object", "properties": {"_": {"type": "string", "enum": ["true"]}}, "required": ["_"], "additionalProperties": false}, "vector": {"title": "矢量", "type": "object", "properties": {"_": {"type": "string", "enum": ["vector"]}}, "required": ["_"], "additionalProperties": false}, "error": {"title": "错误", "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": "空", "type": "object", "properties": {"_": {"type": "string", "enum": ["null"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerEmpty": {"title": "输入对等空", "description": "一个空的构造函数，没有定义用户或聊天。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerSelf": {"title": "输入PeerSelf", "description": "定义当前用户。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerSelf"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerSelf"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerChat": {"title": "输入点对点聊天", "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": "输入对等用户", "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": "输入对等通道", "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": "输入对等用户来自消息", "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": "消息ID", "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": "输入PeerChannelFromMessage", "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": "消息ID", "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": "输入用户为空", "description": "空构造函数，不定义用户。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputUserSelf": {"title": "输入用户自己", "description": "定义当前用户。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserSelf"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserSelf"]}}, "required": ["_"], "additionalProperties": false}, "inputUser": {"title": "输入用户", "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": "输入用户来自消息", "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": "消息ID", "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": "输入电话联系方式", "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) 时应将其设置为增量数，以便根据 [contacts.importedContacts](https://core.telegram.org/constructor/contacts.importedContacts.md).`retry_contacts` 中返回的 client_ids 重试仅导入未成功导入的联系人。", "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": "输入文件", "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": "输入文件大", "description": "分配一个大文件（大小超过 10 MB），部分使用方法 [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": "随机文件id，由客户端创建", "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": "输入文件故事文档", "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": "输入媒体空", "description": "消息的空媒体内容。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputMediaUploadedPhoto": {"title": "输入媒体上传照片", "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 类型：输入文档。"}, "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": "输入媒体照片", "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": "输入媒体地理点", "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": "输入媒体联系方式", "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": "输入媒体上传文档", "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 类型：文档属性。"}, "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 类型：输入文档。"}, "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": "输入媒体文档", "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": "Text query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaVenue": {"title": "输入媒体场所", "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": "提供商数据库中的场所 ID", "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": "输入媒体照片外部", "description": "New photo that will be uploaded by the server using the specified 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 of the photo", "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": "输入媒体文档外部", "description": "电报服务器将下载的文档", "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 of the document", "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": "输入媒体游戏", "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": "输入媒体发票", "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 of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.", "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-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "独特的【bot深层链接启动参数](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": "输入MediaGeoLive", "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-100000)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}}, "required": ["_", "geo_point"], "additionalProperties": false}, "inputMediaPoll": {"title": "输入媒体投票", "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": "`answers` 向量中正确答案的从 0 开始的索引（用于测验投票）", "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 个字符，最多 2 次换行。", "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 类型：消息实体。"}, "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": "输入媒体骰子", "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": "输入媒体故事", "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": "故事ID", "x-telegram-field-docs": true}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "inputMediaWebPage": {"title": "输入媒体网页", "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": "If **not** set, a `WEBPAGE_NOT_FOUND` RPC error will be emitted if a webpage preview cannot be generated for the specified `url`; otherwise, no error will be emitted (unless the provided message is also empty, in which case a `MESSAGE_EMPTY` will be emitted, instead).", "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": "输入媒体付费媒体", "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 类型：输入媒体。"}, "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": "输入媒体待办事项", "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": "输入媒体赌注骰子", "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": "输入聊天照片空", "description": "清空构造函数，删除合影。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatUploadedPhoto": {"title": "输入聊天上传照片", "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": "输入聊天照片", "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": "输入地理点空", "description": "空 GeoPoint 构造函数。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGeoPointEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputGeoPoint": {"title": "输入地理点", "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": "输入照片空", "description": "空构造函数。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputPhoto": {"title": "输入照片", "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": "输入文件位置", "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": "输入加密文件位置", "description": "加密秘密聊天文件的位置。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "文件 ID，**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": "输入文档文件位置", "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": "输入安全文件位置", "description": "加密电报 [passport](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，**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": "输入外卖文件位置", "description": "Used to download a JSON file that will contain all personal data related to features that do not have a specialized [takeout method](https://core.telegram.org/api/takeout.md) yet, see [here »](https://core.telegram.org/api/takeout.md) for more info on the takeout API.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputTakeoutFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTakeoutFileLocation"]}}, "required": ["_"], "additionalProperties": false}, "inputPhotoFileLocation": {"title": "输入照片文件位置", "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": "照片 ID，从 [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)：必须设置为 [photo](https://core.telegram.org/constructor/photo.md) 所需 PhotoSize 对象的 `type` 字段", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "thumb_size"], "additionalProperties": false}, "inputPhotoLegacyFileLocation": {"title": "输入照片旧文件位置", "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": "卷 ID", "x-tl-type": "long", "x-telegram-field-docs": true}, "local_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "本地ID", "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": "输入对等照片文件位置", "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": "输入组呼叫流", "description": "Identifies a media chunk of an RTMP-mode video chat, livestream or live story, see [playing an RTMP livestream »](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": "对等用户", "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": "同行聊天", "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": "对等频道", "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": "用户为空", "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": "用户", "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": "该用户的账号是否被删除。  对此标志的更改将使该用户 ID 的本地 [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": "该用户是机器人吗？  对此标志的更改将使该用户 ID 的本地 [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 用户 对此标志的更改应该会使该用户 ID 的本地 [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) 缓存 - 如果 `bot` 标志未**设置，则 [messages.getTopReactions](https://core.telegram.org/method/messages.getTopReactions.md) 缓存", "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`）应使该用户 ID 的本地 [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": "用户的 ID，请参阅[此处 »](https://core.telegram.org/api/peers.md#peer-id) 了解更多信息和可用的 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` 的虚拟标志，即： - 如果设置了 `min`，则设置为 `true` AND -- `phone` 标志未**设置或 -- `phone` 标志已设置且关联的电话号码字符串非空 - 设置为否则`false`。   然后，将 `access_hash` 和 `min_access_hash` 应用于本地数据库，如果： - `min_access_hash` 为 false OR - `min_access_hash` 为 true AND -- 该用户没有本地缓存的对象 OR -- 本地缓存中没有 `access_hash` OR -- 缓存对象的 `min_access_hash` 也为 true 如果最终合并的对象存储到数据库的`min_access_hash`字段设置为true，相关的`access_hash`**仅**适合在[`inputPeerPhotoFileLocation`»](https://core.telegram.org/constructor/inputPeerPhotoFileLocation.md)中使用，直接[下载用户的个人资料图片](https://core.telegram.org/api/files.md)，其他地方都必须按照[此处»](https://core.telegram.org/api/min.md)的指定生成`inputPeer*FromMessage`构造函数。  在某些情况下，机器人还可以通过传递 `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` 标志。  如果满足上述条件并且还设置了 `bot_can_edit` 标志，则对此标志的更改应使该用户 ID 的本地 [userFull](https://core.telegram.org/constructor/userFull.md) 缓存无效。", "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": "userFull](https://core.telegram.org/constructor/userFull.md) 中的 [bot_info 字段的版本，每次更改时都会递增。  对此标志的更改将使该用户 ID 的本地 [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 类型：限制原因。"}, "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 类型：用户名。"}, "x-tl-type": "Vector<Username>", "description": "附加用户名。  更新 [本地对等数据库](https://core.telegram.org/api/peers.md) 时，仅在以下情况下应用对此字段的更改： - 未设置 `min` 标志或 - 设置 `min` 标志 AND -- 设置本地缓存的用户条目的 `min` 标志。  对此标志的更改（如果满足上述条件）应使该用户 ID 的本地 [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": "用户资料照片空", "type": "object", "properties": {"_": {"type": "string", "enum": ["userProfilePhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "userProfilePhoto": {"title": "用户资料照片", "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": "用户状态为空", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusEmpty"]}}, "required": ["_"], "additionalProperties": false}, "userStatusOnline": {"title": "用户状态在线", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusOnline"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "expires"], "additionalProperties": false}, "userStatusOffline": {"title": "用户状态离线", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusOffline"]}, "was_online": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "was_online"], "additionalProperties": false}, "userStatusRecently": {"title": "用户状态最近", "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": "上周用户状态", "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": "上个月用户状态", "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": "聊天内容为空", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "chat": {"title": "聊天", "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 Type: 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 类型：输入通道。", "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": "聊天禁止", "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": "频道", "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 Type: 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 类型：限制原因。"}, "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 类型：用户名。"}, "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 类型：最近的故事。", "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 Type: 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": "频道禁止", "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 Type: 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": "聊天完整", "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 类型：聊天参与者。"}, "chat_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "TL 类型：照片。", "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 类型：对等。", "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 Type: 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": "频道已满", "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 类型：照片。"}, "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 类型：贴纸集。", "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 类型：频道位置。", "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 类型：对等。", "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 类型：对等。", "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 Type: 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 类型：壁纸。", "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 类型：贴纸集。", "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 类型：照片。"}, "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": "聊天参与者", "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": "聊天参与者创建者", "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": "聊天参与者管理员", "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": "聊天参与者禁止", "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 类型：聊天参与者。", "x-tl-flag": "flags.0?ChatParticipant"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "chatParticipants": {"title": "聊天参与者", "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 类型：聊天参与者。"}, "x-tl-type": "Vector<ChatParticipant>"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "participants", "version"], "additionalProperties": false}, "chatPhotoEmpty": {"title": "聊天照片空", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "chatPhoto": {"title": "聊天照片", "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": "消息为空", "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 类型：对等。", "x-tl-flag": "flags.0?Peer"}}, "required": ["_", "id"], "additionalProperties": false}, "message": {"title": "留言", "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 类型：对等。", "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 类型：对等。"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 类型：对等。", "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 类型：对等。", "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 类型：消息媒体。", "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 类型：回复标记。", "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 类型：消息实体。"}, "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 类型：消息回复。", "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 类型：消息反应。", "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 类型：限制原因。"}, "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 类型：事实检查。", "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 类型：建议帖子。", "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": "消息服务", "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 类型：对等。", "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 类型：对等。"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 类型：对等。", "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 类型：消息操作。"}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "TL 类型：消息反应。", "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": "消息媒体空", "description": "空构造函数。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty"]}}, "required": ["_"], "additionalProperties": false}, "messageMediaPhoto": {"title": "留言媒体照片", "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": "消息媒体地理", "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": "留言媒体联系我们", "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": "messageMedia不支持", "description": "当前版本的客户端不支持该媒体类型。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaUnsupported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "messageMediaDocument": {"title": "消息媒体文档", "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 类型：文档。"}, "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": "消息媒体网页", "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": "If set, the webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened.", "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": "消息媒体地点", "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": "提供商数据库中的场所 ID", "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": "消息媒体游戏", "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": "消息媒体发票", "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 of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?WebDocument"}, "receipt_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "收据消息 ID：如果设置，客户端应将始终附加到 [message](https://core.telegram.org/constructor/message.md) 的第一个 [keyboardButtonBuy](https://core.telegram.org/constructor/keyboardButtonBuy.md) 按钮的文本更改为单词 `Receipt` 的本地化版本", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code, or `XTR` for [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`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "消息MediaGeoLive", "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-100000)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "geo", "period"], "additionalProperties": false}, "messageMediaPoll": {"title": "消息媒体投票", "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": "消息媒体骰子", "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": "消息媒体故事", "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": "故事ID", "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": "消息媒体赠品", "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 alpha-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 Star 总数。", "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": "消息媒体赠品结果", "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)]的频道/超级组的ID。", "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 Star 总数。", "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": "消息媒体付费媒体", "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 类型：消息扩展媒体。"}, "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": "消息媒体待办事项", "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": "消息媒体视频流", "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": "Whether the live story uses [RTMP livestream mode »](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": "消息动作空", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatCreate": {"title": "消息操作聊天创建", "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": "消息操作聊天编辑标题", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditTitle"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatEditPhoto": {"title": "消息动作聊天编辑照片", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditPhoto"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "TL 类型：照片。"}}, "required": ["_", "photo"], "additionalProperties": false}, "messageActionChatDeletePhoto": {"title": "消息操作聊天删除照片", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatDeletePhoto"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatAddUser": {"title": "消息操作聊天添加用户", "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": "消息操作聊天删除用户", "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": "消息操作通道创建", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChannelCreate"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatMigrateTo": {"title": "消息操作聊天迁移至", "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": "消息操作Pin消息", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPinMessage"]}}, "required": ["_"], "additionalProperties": false}, "messageActionHistoryClear": {"title": "消息操作历史记录清除", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionHistoryClear"]}}, "required": ["_"], "additionalProperties": false}, "messageActionGameScore": {"title": "消息动作游戏分数", "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": "消息操作付款已发送给我", "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 类型：付款费用。"}, "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": "消息操作付款已发送", "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": "消息操作电话呼叫", "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": "消息操作屏幕截图已拍摄", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionScreenshotTaken"]}}, "required": ["_"], "additionalProperties": false}, "messageActionCustomAction": {"title": "messageAction自定义Action", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionCustomAction"]}, "message": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "message"], "additionalProperties": false}, "messageActionBotAllowed": {"title": "messageActionBot 允许", "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": "消息操作安全值SentMe", "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 类型：安全值。"}, "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": "消息操作安全值已发送", "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": "消息行动联系方式注册", "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 类型：对等。"}, "to_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 类型：对等。"}, "distance": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "from_id", "to_id", "distance"], "additionalProperties": false}, "messageActionGroupCall": {"title": "消息动作组调用", "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": "消息操作InviteToGroupCall", "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": "消息操作组呼叫计划", "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 Type: 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": "消息行动礼品溢价", "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": "消息操作主题创建", "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": "消息操作主题编辑", "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": "消息行动建议简介照片", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestProfilePhoto"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "TL 类型：照片。"}}, "required": ["_", "photo"], "additionalProperties": false}, "messageActionRequestedPeer": {"title": "消息动作请求对等点", "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 类型：对等。"}, "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 类型：壁纸。"}}, "required": ["_", "wallpaper"], "additionalProperties": false}, "messageActionGiftCode": {"title": "消息动作礼品代码", "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 类型：对等。", "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": "消息行动赠品启动", "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": "消息行动赠品结果", "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": "messageActionBoost应用", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBoostApply"]}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "boosts"], "additionalProperties": false}, "messageActionRequestedPeerSentMe": {"title": "消息操作请求PeerSentMe", "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": "消息操作付款已退款", "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 类型：对等。"}, "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 类型：付款费用。"}}, "required": ["_", "peer", "currency", "total_amount", "charge"], "additionalProperties": false}, "messageActionGiftStars": {"title": "消息行动礼物星星", "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": "消息行动奖星星", "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 类型：对等。"}, "giveaway_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "stars", "transaction_id", "boost_peer", "giveaway_msg_id"], "additionalProperties": false}, "messageActionStarGift": {"title": "消息行动StarGift", "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 类型：星礼。"}, "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 类型：对等。", "x-tl-flag": "flags.11?Peer"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 类型：对等。", "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 类型：对等。", "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": "消息行动明星礼物独特", "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 类型：星礼。"}, "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 类型：对等。", "x-tl-flag": "flags.6?Peer"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 类型：对等。", "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 类型：星星数量。", "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": "消息操作已付费消息已退款", "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": "消息操作付费消息价格", "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": "消息行动会议电话", "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 类型：对等。"}, "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": "消息操作待办事项追加任务", "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": "消息操作建议批准后", "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 类型：星星数量。", "x-tl-flag": "flags.4?StarsAmount"}}, "required": ["_"], "additionalProperties": false}, "messageActionSuggestedPostSuccess": {"title": "消息操作建议成功后", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestedPostSuccess"]}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "TL 类型：星星数量。"}}, "required": ["_", "price"], "additionalProperties": false}, "messageActionSuggestedPostRefund": {"title": "消息行动建议发布退款", "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": "消息行动GiftTon", "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": "消息行动建议生日", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestBirthday"]}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "TL 类型：生日。"}}, "required": ["_", "birthday"], "additionalProperties": false}, "messageActionStarGiftPurchaseOffer": {"title": "消息行动明星礼物购买优惠", "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 类型：星礼。"}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "TL 类型：星星数量。"}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "gift", "price", "expires_at"], "additionalProperties": false}, "messageActionStarGiftPurchaseOfferDeclined": {"title": "消息ActionStarGiftPurchaseOffer拒绝", "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 类型：星礼。"}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "TL 类型：星星数量。"}}, "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": "messageActionNoForwards切换", "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": "消息操作无转发请求", "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": "消息操作投票追加答案", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPollAppendAnswer"]}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "TL 类型：民意调查答案。"}}, "required": ["_", "answer"], "additionalProperties": false}, "messageActionPollDeleteAnswer": {"title": "消息操作投票删除答案", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPollDeleteAnswer"]}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "TL 类型：民意调查答案。"}}, "required": ["_", "answer"], "additionalProperties": false}, "messageActionManagedBotCreated": {"title": "messageActionManagedBot已创建", "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 类型：星礼。"}, "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": "对话", "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 类型：对等。"}, "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 Type: 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": "对话框文件夹", "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 类型：文件夹。"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 类型：对等。"}, "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": "照片空", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "photo": {"title": "照片", "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 类型：照片尺寸。"}, "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 类型：视频大小。"}, "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": "照片尺寸空", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty"]}, "type": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "type"], "additionalProperties": false}, "photoSize": {"title": "照片尺寸", "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": "照片缓存大小", "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": "照片剥离尺寸", "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": "照片尺寸渐进式", "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": "照片路径大小", "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": "地理点空", "type": "object", "properties": {"_": {"type": "string", "enum": ["geoPointEmpty"]}}, "required": ["_"], "additionalProperties": false}, "geoPoint": {"title": "地理点", "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": "Official apps may receive this constructor, indicating that due to the high cost of SMS verification codes for the user's country/provider, the user must purchase a [Telegram Premium](https://core.telegram.org/api/premium.md) subscription in order to proceed with the login/signup, see [here »](https://core.telegram.org/api/auth.md#paid-auth) for more info.", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code.", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "If and only if setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "tmp_sessions": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "客户端可以向其归属 DC 的主连接打开的[并行会话](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": "输入通知对等点", "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": "输入通知用户", "description": "所有用户生成的通知。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyUsers"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyChats": {"title": "输入通知聊天", "description": "所有组生成的通知。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyChats"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyBroadcasts": {"title": "输入通知广播", "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": "输入通知论坛主题", "description": "由[论坛](https://core.telegram.org/api/forum.md)中的[主题](https://core.telegram.org/api/forum.md#forum-topics)]生成的通知。", "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": "论坛ID", "x-telegram-field-docs": true}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[主题ID](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 类型：输入通道。"}}, "required": ["_", "community"], "additionalProperties": false}, "inputPeerNotifySettings": {"title": "输入对等通知设置", "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": "对等通知设置", "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": "对等设置", "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": "壁纸", "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": "唯一壁纸ID，生成【壁纸链接](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": "壁纸无文件", "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": "壁纸ID", "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": "输入报告原因垃圾邮件", "description": "举报垃圾邮件", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonSpam"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonSpam"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonViolence": {"title": "输入举报原因暴力", "description": "举报暴力行为", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonViolence"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonViolence"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPornography": {"title": "输入举报原因色情内容", "description": "举报色情内容", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPornography"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPornography"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonChildAbuse": {"title": "输入举报原因虐待儿童", "description": "举报虐待儿童事件", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonChildAbuse"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonChildAbuse"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonOther": {"title": "输入举报原因其他", "description": "其他", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonOther"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonOther"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonCopyright": {"title": "输入举报原因版权所有", "description": "报告受版权保护的内容", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonCopyright"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonCopyright"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonGeoIrrelevant": {"title": "输入报告原因地理不相关", "description": "报告不相关的地理组", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonGeoIrrelevant"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonGeoIrrelevant"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonFake": {"title": "输入报告原因假", "description": "举报冒充行为", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonFake"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonFake"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonIllegalDrugs": {"title": "输入举报原因非法药物", "description": "非法药物举报", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonIllegalDrugs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonIllegalDrugs"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPersonalDetails": {"title": "输入举报原因个人详情", "description": "泄露个人详细信息的报告", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "userFull": {"title": "用户完整", "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 类型：对等设置。"}, "personal_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "TL 类型：照片。", "x-tl-flag": "flags.21?Photo"}, "profile_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "TL 类型：照片。", "x-tl-flag": "flags.2?Photo"}, "fallback_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "TL 类型：照片。", "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 Type: 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 类型：壁纸。", "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 类型：企业位置。", "x-tl-flag": "flags2.1?BusinessLocation"}, "business_greeting_message": {"type": "object", "x-tl-type": "BusinessGreetingMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessGreetingMessage"]}}, "description": "TL 类型：商务问候消息。", "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 类型：商业介绍。", "x-tl-flag": "flags2.4?BusinessIntro"}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "TL 类型：生日。", "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 类型：星级。", "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 类型：星级。", "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 类型：文档。", "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": "联系方式", "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": "进口联系方式", "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": "联系状态", "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 类型：接触式。"}, "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：用户。"}, "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 类型：进口接触式。"}, "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 类型：大众联系方式。"}, "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": "由于系统限制而无法导入且需要稍后导入的联系人 ID 列表。", "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：用户。"}, "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 Type: 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：用户。"}, "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 Type: 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：用户。"}, "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 类型：论坛主题。"}, "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 类型：对话框。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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 类型：论坛主题。"}, "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 类型：对话框。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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 类型：消息。"}, "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 类型：论坛主题。"}, "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 Type: 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：用户。"}, "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": "下次调用 [messages.searchGlobal](https://core.telegram.org/method/messages.searchGlobal.md) 时在 `offset_rate` 参数中使用的速率", "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 类型：消息。"}, "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 类型：论坛主题。"}, "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 Type: 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：用户。"}, "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 类型：消息。"}, "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 类型：论坛主题。"}, "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 Type: 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：用户。"}, "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 Type: Chat."}, "x-tl-type": "Vector<Chat>", "description": "聊天列表", "x-telegram-field-docs": true}}, "required": ["_", "chats"], "additionalProperties": false}, "messages.chatsSlice": {"title": "messages.chatsSlice", "description": "部分聊天列表，需要使用 [pagination](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 Type: 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)、[gigagroup](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 Type: 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：用户。"}, "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": "输入消息过滤器为空", "description": "过滤器不存在。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhotos": {"title": "输入消息过滤照片", "description": "过滤包含照片的邮件。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhotos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhotos"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterVideo": {"title": "输入消息过滤视频", "description": "过滤包含视频的邮件。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhotoVideo": {"title": "输入消息过滤照片视频", "description": "过滤包含照片或视频的邮件。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhotoVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhotoVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterDocument": {"title": "输入消息过滤文档", "description": "过滤包含文档的消息。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterDocument"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterUrl": {"title": "输入消息过滤器URL", "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": "输入消息过滤Gif", "description": "仅返回包含 gif 的消息", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGif"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGif"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterVoice": {"title": "输入消息过滤语音", "description": "仅返回包含语音注释的消息", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMusic": {"title": "输入消息过滤音乐", "description": "仅返回包含音频文件的消息", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterMusic"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterChatPhotos": {"title": "输入消息过滤聊天照片", "description": "仅返回聊天照片更改", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterChatPhotos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterChatPhotos"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhoneCalls": {"title": "输入消息过滤电话呼叫", "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": "输入消息过滤器圆形语音", "description": "仅返回圆形视频和语音注释", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterRoundVideo": {"title": "输入消息过滤器圆形视频", "description": "仅返回圆形视频", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMyMentions": {"title": "输入消息过滤我的提及", "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": "输入消息过滤地理", "description": "仅返回包含地理位置的消息", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGeo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGeo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterContacts": {"title": "输入消息过滤联系人", "description": "仅返回包含联系人的消息", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPinned": {"title": "输入消息过滤器固定", "description": "仅获取固定消息", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPoll": {"title": "输入消息过滤器轮询", "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": "更新新消息", "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 类型：消息。"}, "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": "更新消息ID", "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": "更新删除消息", "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": "更新用户输入", "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": "更新聊天用户输入", "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 类型：对等。"}, "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": "更新聊天参与者", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipants"]}, "participants": {"type": "object", "x-tl-type": "ChatParticipants", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipantsForbidden", "chatParticipants"]}}, "description": "TL 类型：聊天参与者。"}}, "required": ["_", "participants"], "additionalProperties": false}, "updateUserStatus": {"title": "更新用户状态", "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 类型：用户状态。"}}, "required": ["_", "user_id", "status"], "additionalProperties": false}, "updateUserName": {"title": "更新用户名", "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 类型：用户名。"}, "x-tl-type": "Vector<Username>"}}, "required": ["_", "user_id", "first_name", "last_name", "usernames"], "additionalProperties": false}, "updateNewAuthorization": {"title": "更新新授权", "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": "更新新加密消息", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewEncryptedMessage"]}, "message": {"type": "object", "x-tl-type": "EncryptedMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedMessage", "encryptedMessageService"]}}, "description": "TL 类型：加密消息。"}, "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": "更新加密", "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 类型：加密聊天。"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat", "date"], "additionalProperties": false}, "updateEncryptedMessagesRead": {"title": "更新加密消息读取", "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": "更新聊天参与者添加", "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": "更新聊天参与者删除", "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": "更新Dc选项", "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 Type: DcOption."}, "x-tl-type": "Vector<DcOption>"}}, "required": ["_", "dc_options"], "additionalProperties": false}, "updateNotifySettings": {"title": "更新通知设置", "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": "更新服务通知", "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 类型：消息媒体。"}, "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 类型：消息实体。"}, "x-tl-type": "Vector<MessageEntity>"}}, "required": ["_", "type", "message", "media", "entities"], "additionalProperties": false}, "updatePrivacy": {"title": "更新隐私", "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 类型：隐私密钥。"}, "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 类型：隐私规则。"}, "x-tl-type": "Vector<PrivacyRule>"}}, "required": ["_", "key", "rules"], "additionalProperties": false}, "updateUserPhone": {"title": "更新用户电话", "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": "更新阅读历史收件箱", "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 类型：对等。"}, "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": "更新阅读历史发件箱", "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 类型：对等。"}, "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": "更新网页", "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 类型：网页。"}, "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": "更新已读消息内容", "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": "更新频道太长", "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": "更新频道", "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": "更新新频道消息", "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 类型：消息。"}, "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": "更新阅读频道收件箱", "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": "更新删除频道消息", "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": "更新频道消息视图", "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": "更新ChatParticipantAdmin", "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": "更新新贴纸集", "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": "更新贴纸集顺序", "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": "更新贴纸集", "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": "更新已保存的Gif", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedGifs"]}}, "required": ["_"], "additionalProperties": false}, "updateBotInlineQuery": {"title": "updateBot内联查询", "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 类型：地理点。", "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": "updateBot内联发送", "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 类型：地理点。", "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": "更新编辑频道消息", "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 类型：消息。"}, "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": "updateBot回调查询", "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 类型：对等。"}, "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": "更新编辑消息", "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 类型：消息。"}, "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": "更新读取频道发件箱", "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": "更新草稿消息", "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 类型：对等。"}, "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 类型：对等。", "x-tl-flag": "flags.1?Peer"}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "TL Type: DraftMessage."}}, "required": ["_", "peer", "draft"], "additionalProperties": false}, "updateReadFeaturedStickers": {"title": "更新阅读精选贴纸", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeaturedStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateRecentStickers": {"title": "更新最近的贴纸", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateConfig": {"title": "更新配置", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateConfig"]}}, "required": ["_"], "additionalProperties": false}, "updatePtsChanged": {"title": "更新点已更改", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePtsChanged"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelWebPage": {"title": "更新频道网页", "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 类型：网页。"}, "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": "更新对话框固定", "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": "更新固定对话框", "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": "更新BotShipping查询", "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 类型：邮政地址。"}}, "required": ["_", "query_id", "user_id", "payload", "shipping_address"], "additionalProperties": false}, "updateBotPrecheckoutQuery": {"title": "updateBotPrecheckout查询", "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": "更新电话", "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 类型：电话。"}}, "required": ["_", "phone_call"], "additionalProperties": false}, "updateLangPackTooLong": {"title": "更新语言包太长", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLangPackTooLong"]}, "lang_code": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "lang_code"], "additionalProperties": false}, "updateLangPack": {"title": "更新语言包", "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": "更新FavedStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateFavedStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelReadMessagesContents": {"title": "更新频道读取消息内容", "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 类型：对等。", "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": "更新联系人重置", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateContactsReset"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelAvailableMessages": {"title": "更新频道可用消息", "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": "更新对话框未读标记", "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 类型：对等。", "x-tl-flag": "flags.1?Peer"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateMessagePoll": {"title": "更新消息轮询", "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 类型：对等。", "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 类型：民意调查。", "x-tl-flag": "flags.0?Poll"}, "results": {"type": "object", "x-tl-type": "PollResults", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollResults"]}}, "description": "TL 类型：投票结果。"}}, "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 类型：对等。"}, "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": "更新文件夹对等点", "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": "更新对等设置", "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 类型：对等。"}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "TL 类型：对等设置。"}}, "required": ["_", "peer", "settings"], "additionalProperties": false}, "updatePeerLocated": {"title": "更新对等点位置", "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 类型：对等定位。"}, "x-tl-type": "Vector<PeerLocated>"}}, "required": ["_", "peers"], "additionalProperties": false}, "updateNewScheduledMessage": {"title": "更新新预定消息", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteScheduledMessages": {"title": "更新删除预定消息", "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 类型：对等。"}, "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": "更新主题", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateTheme"]}, "theme": {"type": "object", "x-tl-type": "Theme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["theme"]}}, "description": "TL 类型：主题。"}}, "required": ["_", "theme"], "additionalProperties": false}, "updateGeoLiveViewed": {"title": "更新GeoLiveViewed", "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 类型：对等。"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id"], "additionalProperties": false}, "updateLoginToken": {"title": "更新登录令牌", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLoginToken"]}}, "required": ["_"], "additionalProperties": false}, "updateMessagePollVote": {"title": "更新消息投票投票", "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 类型：对等。"}, "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": "更新对话框过滤器", "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 类型：对话过滤器。", "x-tl-flag": "flags.0?DialogFilter"}}, "required": ["_", "id"], "additionalProperties": false}, "updateDialogFilterOrder": {"title": "更新对话框过滤顺序", "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": "更新对话框过滤器", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogFilters"]}}, "required": ["_"], "additionalProperties": false}, "updatePhoneCallSignalingData": {"title": "更新电话呼叫信令数据", "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": "更新频道消息转发", "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": "更新阅读频道讨论收件箱", "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": "更新阅读频道讨论发件箱", "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": "更新PeerBlocked", "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 类型：对等。"}}, "required": ["_", "peer_id"], "additionalProperties": false}, "updateChannelUserTyping": {"title": "更新频道用户输入", "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 类型：对等。"}, "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": "更新固定消息", "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 类型：对等。"}, "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": "更新固定频道消息", "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": "更新聊天", "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": "更新群组通话参与者", "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": "更新组呼", "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 类型：对等。", "x-tl-flag": "flags.1?Peer"}, "call": {"type": "object", "x-tl-type": "GroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDiscarded", "groupCall"]}}, "description": "TL 类型：群组呼叫。"}}, "required": ["_", "call"], "additionalProperties": false}, "updatePeerHistoryTTL": {"title": "更新对等历史记录TTL", "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 类型：对等。"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateChatParticipant": {"title": "更新聊天参与者", "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 类型：聊天参与者。", "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 类型：聊天参与者。", "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": "更新频道参与者", "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 类型：频道参与者。", "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 类型：频道参与者。", "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": "更新机器人已停止", "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": "更新组呼叫连接", "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": "更新机器人命令", "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 类型：对等。"}, "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": "更新待加入请求", "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 类型：对等。"}, "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": "更新BotChatInviteRequester", "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 类型：对等。"}, "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": "更新消息反应", "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 类型：对等。"}, "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 类型：对等。", "x-tl-flag": "flags.1?Peer"}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "TL 类型：消息反应。"}}, "required": ["_", "peer", "msg_id", "reactions"], "additionalProperties": false}, "updateAttachMenuBots": {"title": "更新附加菜单机器人", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAttachMenuBots"]}}, "required": ["_"], "additionalProperties": false}, "updateWebViewResultSent": {"title": "更新WebView结果已发送", "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": "更新机器人菜单按钮", "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": "更新保存的铃声", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedRingtones"]}}, "required": ["_"], "additionalProperties": false}, "updateTranscribedAudio": {"title": "更新转录音频", "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 类型：对等。"}, "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": "更新阅读精选表情符号贴纸", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeaturedEmojiStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateUserEmojiStatus": {"title": "更新用户表情符号状态", "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 Type: EmojiStatus."}}, "required": ["_", "user_id", "emoji_status"], "additionalProperties": false}, "updateRecentEmojiStatuses": {"title": "更新最近的表情符号状态", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentEmojiStatuses"]}}, "required": ["_"], "additionalProperties": false}, "updateRecentReactions": {"title": "更新最近反应", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentReactions"]}}, "required": ["_"], "additionalProperties": false}, "updateMoveStickerSetToTop": {"title": "更新MoveStickerSetToTop", "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": "更新消息扩展媒体", "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 类型：对等。"}, "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 类型：消息扩展媒体。"}, "x-tl-type": "Vector<MessageExtendedMedia>"}}, "required": ["_", "peer", "msg_id", "extended_media"], "additionalProperties": false}, "updateUser": {"title": "更新用户", "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": "更新自动保存设置", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAutoSaveSettings"]}}, "required": ["_"], "additionalProperties": false}, "updateStory": {"title": "更新故事", "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 类型：对等。"}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "TL 类型：故事项目。"}}, "required": ["_", "peer", "story"], "additionalProperties": false}, "updateReadStories": {"title": "更新阅读故事", "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 类型：对等。"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "max_id"], "additionalProperties": false}, "updateStoryID": {"title": "更新故事ID", "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": "更新故事隐身模式", "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": "更新已发送故事反应", "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 类型：对等。"}, "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 类型：反应。"}}, "required": ["_", "peer", "story_id", "reaction"], "additionalProperties": false}, "updateBotChatBoost": {"title": "更新BotChatBoost", "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 类型：对等。"}, "boost": {"type": "object", "x-tl-type": "Boost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["boost"]}}, "description": "TL 类型：升压。"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "boost", "qts"], "additionalProperties": false}, "updateChannelViewForumAsMessages": {"title": "更新ChannelViewForumAsMessages", "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": "更新对等壁纸", "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 类型：对等。"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL 类型：壁纸。", "x-tl-flag": "flags.0?WallPaper"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateBotMessageReaction": {"title": "updateBot消息反应", "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 类型：对等。"}, "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 类型：对等。"}, "old_reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL 类型：反应。"}, "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 类型：反应。"}, "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": "updateBot消息反应", "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 类型：对等。"}, "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 类型：反应计数。"}, "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": "更新保存的对话框固定", "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": "更新固定已保存对话框", "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": "更新保存的反应标签", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedReactionTags"]}}, "required": ["_"], "additionalProperties": false}, "updateSmsJob": {"title": "更新短信作业", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSmsJob"]}, "job_id": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "job_id"], "additionalProperties": false}, "updateQuickReplies": {"title": "更新快速回复", "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 类型：快速回复。"}, "x-tl-type": "Vector<QuickReply>"}}, "required": ["_", "quick_replies"], "additionalProperties": false}, "updateNewQuickReply": {"title": "更新新快速回复", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewQuickReply"]}, "quick_reply": {"type": "object", "x-tl-type": "QuickReply", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["quickReply"]}}, "description": "TL 类型：快速回复。"}}, "required": ["_", "quick_reply"], "additionalProperties": false}, "updateDeleteQuickReply": {"title": "更新删除快速回复", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteQuickReply"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id"], "additionalProperties": false}, "updateQuickReplyMessage": {"title": "更新快速回复消息", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteQuickReplyMessages": {"title": "更新删除快速回复消息", "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": "updateBot新业务消息", "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 类型：消息。"}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "TL 类型：消息。", "x-tl-flag": "flags.0?Message"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "message", "qts"], "additionalProperties": false}, "updateBotEditBusinessMessage": {"title": "updateBot编辑业务消息", "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 类型：消息。"}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "TL 类型：消息。", "x-tl-flag": "flags.0?Message"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "message", "qts"], "additionalProperties": false}, "updateBotDeleteBusinessMessage": {"title": "更新机器人删除业务消息", "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 类型：对等。"}, "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": "更新新故事反应", "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 类型：对等。"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL 类型：反应。"}}, "required": ["_", "story_id", "peer", "reaction"], "additionalProperties": false}, "updateStarsBalance": {"title": "更新星星余额", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarsBalance"]}, "balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "TL 类型：星星数量。"}}, "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 类型：消息。"}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "TL 类型：消息。", "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": "更新StarsRevenueStatus", "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 类型：对等。"}, "status": {"type": "object", "x-tl-type": "StarsRevenueStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRevenueStatus"]}}, "description": "TL 类型：StarsRevenueStatus。"}}, "required": ["_", "peer", "status"], "additionalProperties": false}, "updateBotPurchasedPaidMedia": {"title": "updateBot购买付费媒体", "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": "更新付费反应隐私", "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 类型：付费反应隐私。"}}, "required": ["_", "private"], "additionalProperties": false}, "updateSentPhoneCode": {"title": "更新发送电话号码", "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": "更新GroupCallChainBlocks", "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": "更新阅读MonoForum收件箱", "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 类型：对等。"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "saved_peer_id", "read_max_id"], "additionalProperties": false}, "updateReadMonoForumOutbox": {"title": "更新ReadMonoForum发件箱", "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 类型：对等。"}, "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 类型：对等。"}}, "required": ["_", "channel_id", "saved_peer_id"], "additionalProperties": false}, "updateGroupCallMessage": {"title": "更新组呼消息", "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 类型：组呼叫消息。"}}, "required": ["_", "call", "message"], "additionalProperties": false}, "updateGroupCallEncryptedMessage": {"title": "更新组呼叫加密消息", "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 类型：对等。"}, "encrypted_message": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "call", "from_id", "encrypted_message"], "additionalProperties": false}, "updatePinnedForumTopic": {"title": "更新固定论坛主题", "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 类型：对等。"}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "topic_id"], "additionalProperties": false}, "updatePinnedForumTopics": {"title": "更新固定论坛主题", "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 类型：对等。"}, "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": "更新删除群组呼叫消息", "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": "更新StarGiftAuctionState", "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": "更新StarGiftAuctionUserState", "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": "更新Emoji游戏信息", "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": "更新StarGiftCraft失败", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarGiftCraftFail"]}}, "required": ["_"], "additionalProperties": false}, "updateChatParticipantRank": {"title": "更新ChatParticipantRank", "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": "更新管理机器人", "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 类型：消息。"}, "reference_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "TL 类型：消息。"}, "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": "更新Ai ComposeTones", "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 类型：对等。"}, "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 类型：对等。"}, "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 类型：对等。", "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 类型：对等。"}, "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 类型：对等。"}, "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 类型：对等。"}, "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 类型：论坛主题。"}, "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 类型：消息。"}, "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 类型：加密消息。"}, "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 类型：更新。"}, "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 Type: 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：用户。"}, "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 类型：论坛主题。"}, "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 类型：消息。"}, "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 类型：加密消息。"}, "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 类型：更新。"}, "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 Type: 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：用户。"}, "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": "更新太长", "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": "更新短信", "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": "如果为 true，则该消息是静默消息，不应触发任何通知", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "消息ID", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "消息发送者的ID（如果`outgoing`将是目的地的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 count](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 类型：消息实体。"}, "x-tl-type": "Vector<MessageEntity>", "description": "[样式文本的实体](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": "Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "user_id", "message", "pts", "pts_count", "date"], "additionalProperties": false}, "updateShortChatMessage": {"title": "更新短消息", "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": "如果为 true，则该消息是静默消息，不应触发任何通知", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "消息ID", "x-telegram-field-docs": true}, "from_id": {"type": "string", "pattern": "^-?\\d+$", "description": "消息发送者ID", "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 count](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 类型：消息实体。"}, "x-tl-type": "Vector<MessageEntity>", "description": "[样式文本的实体](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": "Time To Live of the message, once updateShortChatMessage.date+updateShortChatMessage.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.", "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": "更新短", "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": "更新合并", "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 类型：更新。"}, "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：用户。"}, "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 Type: 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": "更新", "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 类型：更新。"}, "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：用户。"}, "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 Type: 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": "更新短消息", "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 count](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 类型：消息实体。"}, "x-tl-type": "Vector<MessageEntity>", "description": "[样式文本的实体](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": "Time To Live of the message, once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well.", "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 类型：照片。"}, "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：用户。"}, "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 类型：照片。"}, "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：用户。"}, "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：用户。"}, "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": "File token (see [CDN files](https://core.telegram.org/cdn.md))", "x-telegram-field-docs": true}, "encryption_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Encryption key (see [CDN files](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 类型：文件哈希。"}, "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": "dc选项", "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": "配置", "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": "Whether the client should use P2P by default for phone calls with contacts", "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": "表示电报*可能*受到当前地区政府/互联网服务提供商的审查", "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": "我们是否连接到测试 DC", "x-telegram-field-docs": true}, "this_dc": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "返回回复的DC ID", "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 Type: DcOption."}, "x-tl-type": "Vector<DcOption>", "description": "数据中心IP列表", "x-telegram-field-docs": true}, "dc_txt_domain_name": {"type": "string", "x-tl-type": "string", "description": "Domain name for fetching encrypted DC list from DNS TXT record", "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": "客户端应该[每N毫秒更新一次在线状态](https://core.telegram.org/method/account.updateStatus.md)", "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": "客户端可以向其归属 DC 的主连接打开的[并行会话](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": "用于场馆的地图提供商的 ID", "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": "用于下载 [webfiles](https://core.telegram.org/api/files.md#downloading-webfiles)] 的 DC ID", "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": "最近的直流", "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": "由 geo-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": "更新ID", "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 类型：消息实体。"}, "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": "Application download 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": "加密聊天空", "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": "聊天ID", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "encryptedChatWaiting": {"title": "加密聊天等待", "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": "聊天ID", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "根据用户ID检查总和", "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": "聊天创建者 ID", "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": "加密聊天请求", "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": "[对等文件夹ID，了解更多信息请点击这里](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": "聊天ID", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "根据用户 ID 检查总和", "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": "聊天创建者 ID", "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": "加密聊天", "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": "聊天ID", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "取决于用户 ID 的校验和", "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": "聊天创建者 ID", "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": "加密聊天被丢弃", "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": "聊天ID", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputEncryptedChat": {"title": "输入加密聊天", "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": "聊天ID", "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": "加密文件为空", "description": "空构造函数，不存在的文件。", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "encryptedFile": {"title": "加密文件", "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": "根据用户ID检查总和", "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": "输入加密文件为空", "description": "空构造函数。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputEncryptedFileUploaded": {"title": "输入加密文件上传", "description": "Sets new encrypted file saved by parts using upload.saveFilePart method.", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileUploaded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "客户端创建的随机文件ID", "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": "输入加密文件", "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) 的 **id** 参数的值", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "检查 [encryptedFile](https://core.telegram.org/constructor/encryptedFile.md) 中 **access_hash** 参数的总和值", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputEncryptedFileBigUploaded": {"title": "输入加密文件大上传", "description": "分配一个新的大加密文件（大小超过 10 MB），使用 [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": "随机文件id，由客户端创建", "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": "加密消息", "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 类型：加密文件。"}}, "required": ["_", "random_id", "chat_id", "date", "bytes", "file"], "additionalProperties": false}, "encryptedMessageService": {"title": "加密消息服务", "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": "新值**原根**，参见[Wikipedia](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": "新值**prime**，参见[维基百科](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": "输入文档为空", "description": "空构造函数。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocumentEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputDocument": {"title": "输入文档", "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": "文件为空", "description": "空构造函数，文档不存在。", "externalDocs": {"url": "https://core.telegram.org/constructor/documentEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["documentEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "文档 ID 或 `0`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "document": {"title": "文件", "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": "校验和，取决于文档 ID", "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 type", "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 类型：照片尺寸。"}, "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 类型：视频大小。"}, "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": "直流ID", "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 类型：文档属性。"}, "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": "通知Peer", "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 类型：对等。"}}, "required": ["_", "peer"], "additionalProperties": false}, "notifyUsers": {"title": "通知用户", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyUsers"]}}, "required": ["_"], "additionalProperties": false}, "notifyChats": {"title": "通知聊天", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyChats"]}}, "required": ["_"], "additionalProperties": false}, "notifyBroadcasts": {"title": "通知广播", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyBroadcasts"]}}, "required": ["_"], "additionalProperties": false}, "notifyForumTopic": {"title": "通知论坛主题", "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 类型：对等。"}, "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": "发送消息取消操作", "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": "发送消息记录视频操作", "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": "发送消息上传视频操作", "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": "发送消息记录音频操作", "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": "发送消息上传音频操作", "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": "发送消息上传照片操作", "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": "发送消息上传文档操作", "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": "发送消息地理位置操作", "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": "发送消息选择联系操作", "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": "发送消息游戏操作", "description": "用户正在玩游戏", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageGamePlayAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageGamePlayAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageRecordRoundAction": {"title": "发送消息记录回合动作", "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": "在组内发言通话操作", "description": "用户当前正在群组通话中发言", "externalDocs": {"url": "https://core.telegram.org/constructor/speakingInGroupCallAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["speakingInGroupCallAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageHistoryImportAction": {"title": "发送消息历史导入操作", "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": "发送消息选择贴纸操作", "description": "用户正在选择贴纸", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageChooseStickerAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageChooseStickerAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageEmojiInteraction": {"title": "发送消息Emoji交互", "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": "被点击的动画表情符号的消息ID", "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": "发送消息表情符号交互看到", "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": "发送消息文本草稿动作", "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": "实时草稿ID：图形客户端使用它来稍微改变渲染行为，请参阅[此处»](https://core.telegram.org/api/bots/ai.md#live-response-streaming)了解更多信息。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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 类型：对等。"}, "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 类型：对等。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "用户列表", "x-telegram-field-docs": true}}, "required": ["_", "my_results", "results", "chats", "users"], "additionalProperties": false}, "inputPrivacyKeyStatusTimestamp": {"title": "输入隐私密钥状态时间戳", "description": "人们是否能够看到我们准确的最后在线时间戳。\n\n请注意，如果*我们*决定向某人（i.e.、用户 A、B、C 或所有用户）隐藏我们的准确最后在线时间戳**并且**我们没有 [Premium](https://core.telegram.org/api/premium.md) 订阅，我们将无法看到这些用户（A、B、C 或所有用户）的准确最后在线时间戳，即使这些用户*确实*与我们共享。\n\n如果这些用户*确实*与我们分享了他们确切的在线状态，但由于上述原因我们看不到它，则[userStatusRecently](https://core.telegram.org/constructor/userStatusRecently.md)，[userStatusLastWeek](https://core.telegram.org/constructor/userStatusLastWeek.md)，[userStatusLastMonth](https://core.telegram.org/constructor/userStatusLastMonth.md)]的`by_me`标志将被设置。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyStatusTimestamp"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyChatInvite": {"title": "输入隐私密钥聊天邀请", "description": "人们是否能够邀请您聊天", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyChatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyChatInvite"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneCall": {"title": "输入隐私密钥电话呼叫", "description": "是否接听电话", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneCall"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneP2P": {"title": "输入隐私密钥电话P2P", "description": "Whether to allow P2P communication during VoIP calls", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneP2P"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneP2P"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyForwards": {"title": "输入隐私密钥转发", "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": "输入隐私密钥个人资料照片", "description": "人们是否能够看到您的个人资料照片", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyProfilePhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyProfilePhoto"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneNumber": {"title": "输入隐私密钥电话号码", "description": "人们是否能够看到您的电话号码", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneNumber"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneNumber"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyAddedByPhone": {"title": "输入隐私密钥通过电话添加", "description": "人们是否可以通过您的电话号码将您添加到他们的联系人列表中", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAddedByPhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAddedByPhone"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyVoiceMessages": {"title": "输入隐私密钥语音消息", "description": "人们是否可以向您发送语音消息或圆形视频（[仅限高级](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": "输入隐私密钥关于", "description": "人们是否可以看到您的个人简介", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAbout"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAbout"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyBirthday": {"title": "输入隐私密钥生日", "description": "用户是否可以看到我们的生日。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyBirthday"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyBirthday"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyStarGiftsAutoSave": {"title": "输入隐私密钥StarGifts自动保存", "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": "输入PrivacyKeyNoPaidMessages", "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": "隐私密钥状态时间戳", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyStatusTimestamp"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyChatInvite": {"title": "隐私KeyChatInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyChatInvite"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneCall": {"title": "隐私按键电话", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneCall"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneP2P": {"title": "隐私钥匙电话P2P", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneP2P"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyForwards": {"title": "隐私密钥转发", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyForwards"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyProfilePhoto": {"title": "隐私密钥个人资料照片", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyProfilePhoto"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneNumber": {"title": "隐私密钥电话号码", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneNumber"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyAddedByPhone": {"title": "隐私密钥通过电话添加", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyAddedByPhone"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyVoiceMessages": {"title": "隐私密钥语音消息", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyVoiceMessages"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyAbout": {"title": "隐私密钥关于", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyAbout"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyBirthday": {"title": "隐私密钥生日", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyBirthday"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyStarGiftsAutoSave": {"title": "隐私KeyStarGiftsAutoSave", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyStarGiftsAutoSave"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyNoPaidMessages": {"title": "隐私密钥NoPaidMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyNoPaidMessages"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeySavedMusic": {"title": "隐私KeySaved音乐", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeySavedMusic"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowContacts": {"title": "输入隐私值允许联系人", "description": "仅允许联系人", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowAll": {"title": "输入隐私值AllowAll", "description": "允许所有用户", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowAll"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowUsers": {"title": "输入隐私值允许用户", "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 类型：输入用户。"}, "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": "输入隐私值DisallowUsers", "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 类型：输入用户。"}, "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": "Allowed chat IDs (either a [chat](https://core.telegram.org/constructor/chat.md) or a [supergroup](https://core.telegram.org/constructor/channel.md) ID, verbatim the way it is received in the constructor (i.e. unlike with bot API IDs, here group and supergroup IDs should be treated in the same way)).", "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": "不允许的聊天 ID（[chat](https://core.telegram.org/constructor/chat.md) 或 [supergroup](https://core.telegram.org/constructor/channel.md) ID，逐字记录在构造函数中接收的方式（i.e。与机器人 API ID 不同，这里组和超级组 ID 应该以相同的方式处理）））。", "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": "输入隐私值AllowPremium", "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": "输入隐私值AllowBots", "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": "隐私值允许联系人", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowAll": {"title": "隐私值AllowAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowAll"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowUsers": {"title": "隐私值允许用户", "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": "隐私值禁止联系人", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowContacts"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowAll": {"title": "隐私值DisallowAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowAll"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowUsers": {"title": "隐私值禁止用户", "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": "隐私值AllowChatParticipants", "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": "隐私值DisallowChatParticipants", "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": "隐私值允许关闭朋友", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowCloseFriends"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowPremium": {"title": "隐私值AllowPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowPremium"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowBots": {"title": "隐私值AllowBots", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowBots"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowBots": {"title": "隐私值禁止机器人", "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 类型：隐私规则。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "规则适用的用户", "x-telegram-field-docs": true}}, "required": ["_", "rules", "chats", "users"], "additionalProperties": false}, "accountDaysTTL": {"title": "账户天数TTL", "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": "文档属性图像大小", "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": "文档属性动画", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeAnimated"]}}, "required": ["_"], "additionalProperties": false}, "documentAttributeSticker": {"title": "文档属性贴纸", "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": "文档属性视频", "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": "文档属性音频", "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": "文档属性文件名", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeFilename"]}, "file_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "file_name"], "additionalProperties": false}, "documentAttributeHasStickers": {"title": "文档属性有贴纸", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeHasStickers"]}}, "required": ["_"], "additionalProperties": false}, "documentAttributeCustomEmoji": {"title": "文档属性自定义表情符号", "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "贴纸", "x-telegram-field-docs": true}}, "required": ["_", "hash", "stickers"], "additionalProperties": false}, "stickerPack": {"title": "贴纸包", "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 类型：贴纸集。"}, "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": "网页为空", "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": "网页待处理", "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": "网页", "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 类型：照片。", "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 类型：文档。", "x-tl-flag": "flags.9?Document"}, "cached_page": {"type": "object", "x-tl-type": "Page", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["page"]}}, "description": "TL 类型：页。", "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": "授权", "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 类型：授权。"}, "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": "是否启用电报[passport](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": "The [KDF algorithm for SRP two-factor authentication](https://core.telegram.org/api/srp.md) of the current password", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?PasswordKdfAlgo"}, "srp_B": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Srp B param for [SRP authorization](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 param for [SRP authorization](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/pattern.md)的[密码恢复电子邮件](https://core.telegram.org/api/srp.md#email-verification)仍在等待验证", "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": "The KDF algorithm for telegram [passport](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": "配置了具有指定 [pattern](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": "The [SRP algorithm](https://core.telegram.org/api/srp.md) to use", "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": "收到通知消息", "description": "Message ID, for which PUSH-notifications were cancelled.", "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": "消息 ID，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": "聊天邀请导出", "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": "创建此聊天邀请的管理员 ID", "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": "聊天邀请公共加入请求", "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": "聊天已邀请", "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": "聊天邀请", "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：用户。"}, "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": "[配置文件调色板ID](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)，订阅付款表单的 ID。", "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": "聊天邀请查看", "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": "输入贴纸集ID", "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": "输入贴纸集动画表情符号", "description": "动画表情符号贴纸集", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetAnimatedEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetAnimatedEmoji"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetDice": {"title": "输入贴纸集骰子", "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/forum.md#forum-topics)的默认[自定义表情符号](https://core.telegram.org/api/custom-emoji.md)贴纸集]", "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": "输入StickerSetTonGifts", "description": "TON 礼品贴纸套装。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetTonGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetTonGifts"]}}, "required": ["_"], "additionalProperties": false}, "stickerSet": {"title": "贴纸套装", "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 类型：照片尺寸。"}, "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 类型：贴纸包。"}, "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 类型：贴纸关键字。"}, "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 类型：文档。"}, "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": "机器人命令", "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": "机器人信息", "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 类型：照片。", "x-tl-flag": "flags.4?Photo"}, "description_document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。", "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": "键盘按钮", "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": "键盘按钮行", "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 类型：键盘按钮。"}, "x-tl-type": "Vector<KeyboardButton>"}}, "required": ["_", "buttons"], "additionalProperties": false}, "replyKeyboardHide": {"title": "回复键盘隐藏", "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）在Message对象的文本中@提及的用户； 2) 如果机器人的消息是回复（有 reply_to_message_id），则为原始消息的发送者。  示例：用户在民意调查中投票，机器人返回确认消息以回复投票并删除该用户的键盘，同时仍向尚未投票的用户显示带有民意调查选项的键盘", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}}, "required": ["_"], "additionalProperties": false}, "replyKeyboardForceReply": {"title": "回复键盘力回复", "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": "Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.  Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.", "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": "回复键盘标记", "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": "Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.  Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard.", "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 类型：键盘按钮行。"}, "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": "回复内联标记", "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": "消息实体未知", "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": "消息实体提及", "description": "消息实体[通过`@username`提及](https://core.telegram.org/api/mentions.md)用户； [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName.md) 也可用于通过 ID 提及用户。\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": "消息实体标签", "description": "**\\#hashtag** 消息实体\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": "messageEntityBot命令", "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": "消息实体URL", "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": "消息实体电子邮件", "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": "消息实体粗体", "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": "messageEntity斜体", "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": "消息实体代码", "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": "消息实体预置", "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": "消息实体文本URL", "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": "The actual URL", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "url"], "additionalProperties": false}, "messageEntityMentionName": {"title": "消息实体提及名称", "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": "输入消息实体提及名称", "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": "消息实体电话", "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": "消息实体现金标签", "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": "消息实体下划线", "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": "消息实体攻击", "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": "消息实体银行卡", "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": "消息实体剧透", "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": "消息实体自定义表情符号", "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)的文档ID，使用[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": "消息实体块引用", "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": "消息实体格式化日期", "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": "消息实体差异插入", "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": "消息实体差异替换", "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": "消息实体差异删除", "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": "输入通道为空", "description": "代表没有通道", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannelEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChannel": {"title": "输入通道", "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": "输入通道来自消息", "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": "看到该频道的聊天中的消息 ID", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "通道ID", "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "用户", "x-telegram-field-docs": true}}, "required": ["_", "peer", "chats", "users"], "additionalProperties": false}, "messageRange": {"title": "消息范围", "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": "范围开始（消息 ID）", "x-telegram-field-docs": true}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "范围结束（消息 ID）", "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": "是否有更多必须获取的更新（始终为 false）", "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": "The passed `pts` is too old: one or more updates starting from the specified PTS were deleted from the message box of this channel.\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 类型：论坛主题。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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 类型：论坛主题。"}, "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 类型：消息。"}, "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 类型：更新。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "用户", "x-telegram-field-docs": true}}, "required": ["_", "pts", "new_messages", "other_updates", "chats", "users"], "additionalProperties": false}, "channelMessagesFilterEmpty": {"title": "频道消息过滤器为空", "description": "无过滤器", "externalDocs": {"url": "https://core.telegram.org/constructor/channelMessagesFilterEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelMessagesFilterEmpty"]}}, "required": ["_"], "additionalProperties": false}, "channelMessagesFilter": {"title": "频道消息过滤器", "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 类型：消息范围。"}, "x-tl-type": "Vector<MessageRange>", "description": "要获取的一系列消息", "x-telegram-field-docs": true}}, "required": ["_", "ranges"], "additionalProperties": false}, "channelParticipant": {"title": "频道参与者", "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": "频道参与者自己", "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": "通道参与者创建者", "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": "频道参与者管理", "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": "频道参与者被禁止", "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 类型：对等。"}, "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": "频道参与者左", "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 类型：对等。"}}, "required": ["_", "peer"], "additionalProperties": false}, "channelParticipantsRecent": {"title": "频道参与者最近", "description": "仅获取最近的参与者", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsRecent"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsRecent"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsAdmins": {"title": "频道参与者管理员", "description": "仅获取管理员参与者", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsAdmins"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsAdmins"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsKicked": {"title": "频道参与者被踢", "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": "频道参与者机器人", "description": "仅获取机器人参与者", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsBots"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsBanned": {"title": "频道参与者被禁止", "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": "频道参与者搜索", "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": "频道参与者联系人", "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": "频道参与者提及", "description": "在查找要提及的超级组成员时使用此过滤器。\n此过滤器将自动删除匿名管理员，甚至返回通过频道的[评论部分](https://core.telegram.org/api/threads.md#channel-comments)回复特定[线程](https://core.telegram.org/api/threads.md)]的非参与用户。", "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 类型：频道参与者。"}, "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 Type: 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：用户。"}, "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 Type: 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：用户。"}, "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 类型：消息实体。"}, "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": "未找到新保存的 gif", "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "已保存的 gif 列表", "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 类型：消息实体。"}, "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 类型：回复标记。", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "inputBotInlineMessageText": {"title": "输入机器人内联消息文本", "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 类型：消息实体。"}, "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 类型：回复标记。", "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 类型：输入地理点。"}, "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 类型：回复标记。", "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 类型：输入地理点。"}, "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 类型：回复标记。", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo_point", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "inputBotInlineMessageMediaContact": {"title": "输入机器人内联消息媒体联系", "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 类型：回复标记。", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard"], "additionalProperties": false}, "inputBotInlineMessageGame": {"title": "输入机器人内联消息游戏", "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 类型：回复标记。", "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 类型：发票。"}, "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 类型：回复标记。", "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 类型：消息实体。"}, "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 类型：回复标记。", "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 类型：回复标记。", "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 类型：回复标记。", "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 类型：消息实体。"}, "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 类型：回复标记。", "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 类型：消息实体。"}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.2?Vector<MessageEntity>"}}, "required": ["_", "widget_id", "message"], "additionalProperties": false}, "inputBotInlineResult": {"title": "输入机器人内联结果", "description": "内联机器人结果", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResult"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResult"]}, "id": {"type": "string", "x-tl-type": "string", "description": "结果ID", "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 of result", "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": "输入机器人内联结果照片", "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": "输入机器人内联结果文档", "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": "输入机器人内联结果游戏", "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": "bot内联消息媒体自动", "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 类型：消息实体。"}, "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 类型：回复标记。", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "botInlineMessageText": {"title": "bot内联消息文本", "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 类型：消息实体。"}, "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 类型：回复标记。", "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 类型：地理点。"}, "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 类型：回复标记。", "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 类型：地理点。"}, "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 类型：回复标记。", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "botInlineMessageMediaContact": {"title": "机器人内联消息媒体联系", "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 类型：回复标记。", "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 类型：Web 文档。", "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 类型：回复标记。", "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 类型：消息实体。"}, "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 类型：回复标记。", "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 类型：回复标记。", "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 类型：回复标记。", "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 类型：消息实体。"}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.4?Vector<MessageEntity>"}}, "required": ["_", "width", "height", "payload", "message"], "additionalProperties": false}, "botInlineResult": {"title": "bot内联结果", "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 类型：Web 文档。", "x-tl-flag": "flags.4?WebDocument"}, "content": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "TL 类型：Web 文档。", "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": "botInlineMedia结果", "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 类型：照片。", "x-tl-flag": "flags.0?Photo"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。", "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：用户。"}, "x-tl-type": "Vector<User>", "description": "结果中提到的用户", "x-telegram-field-docs": true}}, "required": ["_", "query_id", "results", "cache_time", "users"], "additionalProperties": false}, "exportedMessageLink": {"title": "导出的消息链接", "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": "消息转发头", "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 类型：对等。", "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 类型：对等。", "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 类型：对等。", "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": "是否应向用户显示警报而不是 toast 通知", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_url": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Whether an URL is present", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "native_ui": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "是否在 WebView 或本机 UI 中显示游戏。", "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 ID", "x-telegram-field-docs": true}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "消息 ID，包含（32 位，传统）所有者 ID 和消息 ID，仅用于 Bot API 向后兼容 32 位用户 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": ["_", "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 ID", "x-telegram-field-docs": true}, "owner_id": {"type": "string", "pattern": "^-?\\d+$", "description": "该消息的所有者ID", "x-tl-type": "long", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "消息ID", "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": "内联BotSwitchPM", "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": "多个peer的对话信息", "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 类型：论坛主题。"}, "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 类型：对话框。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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": "顶级同行", "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 类型：对等。"}, "rating": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "peer", "rating"], "additionalProperties": false}, "topPeerCategoryBotsPM": {"title": "顶级同行类别机器人PM", "description": "最常用的机器人", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsPM"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsInline": {"title": "顶级同行类别机器人内联", "description": "最常用的内联机器人", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsInline"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsInline"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryCorrespondents": {"title": "顶级同行类别通讯员", "description": "我们最常聊天的用户", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryCorrespondents"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryCorrespondents"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryGroups": {"title": "顶级对等类别组", "description": "经常开放的团体和超级团体", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryGroups"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryGroups"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryChannels": {"title": "顶级同行类别频道", "description": "最常访问的频道", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryChannels"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryChannels"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryPhoneCalls": {"title": "顶级同行类别电话", "description": "最常呼叫的用户", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryPhoneCalls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryPhoneCalls"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryForwardUsers": {"title": "顶级对等类别转发用户", "description": "用户经常向其转发消息的用户", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryForwardUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryForwardUsers"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryForwardChats": {"title": "顶级同行类别转发聊天", "description": "用户经常转发消息的聊天室", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryForwardChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryForwardChats"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsApp": {"title": "顶级PeerCategoryBotsApp", "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": "顶级同行类别机器人GuestChat", "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": "顶级同行类别同行", "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 Type: 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：用户。"}, "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": "草稿消息为空", "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": "草稿消息", "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 类型：消息实体。"}, "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 类型：输入媒体。", "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 类型：建议帖子。", "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": "新特色贴纸集的 ID", "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 类型：贴纸包。"}, "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 类型：文档。"}, "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": "贴纸集覆盖", "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": "贴纸集多覆盖", "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "预览贴纸", "x-telegram-field-docs": true}}, "required": ["_", "set", "covers"], "additionalProperties": false}, "stickerSetFullCovered": {"title": "贴纸集全覆盖", "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 类型：贴纸包。"}, "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 类型：贴纸关键字。"}, "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "贴纸", "x-telegram-field-docs": true}}, "required": ["_", "set", "packs", "keywords", "documents"], "additionalProperties": false}, "stickerSetNoCovered": {"title": "贴纸集无覆盖", "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": "掩码坐标", "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": "输入贴纸媒体照片", "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": "输入StickeredMedia文档", "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": "游戏", "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 类型：照片。"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。", "x-tl-flag": "flags.0?Document"}}, "required": ["_", "id", "access_hash", "short_name", "title", "description", "photo"], "additionalProperties": false}, "inputGameID": {"title": "输入游戏ID", "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": "输入游戏简称", "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 类型：输入用户。"}, "short_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "bot_id", "short_name"], "additionalProperties": false}, "highScore": {"title": "高分", "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 类型：高分。"}, "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：用户。"}, "x-tl-type": "Vector<User>", "description": "与高分相关的用户", "x-telegram-field-docs": true}}, "required": ["_", "scores", "users"], "additionalProperties": false}, "textEmpty": {"title": "文本为空", "type": "object", "properties": {"_": {"type": "string", "enum": ["textEmpty"]}}, "required": ["_"], "additionalProperties": false}, "textPlain": {"title": "纯文本", "type": "object", "properties": {"_": {"type": "string", "enum": ["textPlain"]}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text"], "additionalProperties": false}, "textBold": {"title": "文本粗体", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textItalic": {"title": "文本斜体", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textUnderline": {"title": "文字下划线", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textStrike": {"title": "文本删除线", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textFixed": {"title": "文本固定", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textUrl": {"title": "文本网址", "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 类型：富文本。"}, "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": "文本电子邮件", "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 类型：富文本。"}, "email": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "email"], "additionalProperties": false}, "textConcat": {"title": "文本连接", "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 类型：富文本。"}, "x-tl-type": "Vector<RichText>"}}, "required": ["_", "texts"], "additionalProperties": false}, "textSubscript": {"title": "文本下标", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textSuperscript": {"title": "文字上标", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textMarked": {"title": "文字标记", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "textPhone": {"title": "短信电话", "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 类型：富文本。"}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "phone"], "additionalProperties": false}, "textImage": {"title": "文本图像", "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": "文本锚点", "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 类型：富文本。"}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}, "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 类型：富文本。"}, "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 类型：富文本。"}, "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 类型：富文本。"}}, "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 类型：富文本。"}, "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockUnsupported": {"title": "pageBlock不支持", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "pageBlockTitle": {"title": "页面块标题", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockSubtitle": {"title": "页面块副标题", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockAuthorDate": {"title": "页块作者日期", "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 类型：富文本。"}, "published_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "author", "published_date"], "additionalProperties": false}, "pageBlockHeader": {"title": "页块标题", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockSubheader": {"title": "页块子标题", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockParagraph": {"title": "页块段落", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockPreformatted": {"title": "页面块预格式化", "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 类型：富文本。"}, "language": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "language"], "additionalProperties": false}, "pageBlockFooter": {"title": "页块页脚", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockDivider": {"title": "页块分隔符", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockDivider"]}}, "required": ["_"], "additionalProperties": false}, "pageBlockAnchor": {"title": "页面块锚点", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockAnchor"]}, "name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "name"], "additionalProperties": false}, "pageBlockList": {"title": "页面块列表", "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": "页块块引用", "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 类型：富文本。"}, "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 类型：富文本。"}}, "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 类型：富文本。"}, "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 类型：富文本。"}}, "required": ["_", "text", "caption"], "additionalProperties": false}, "pageBlockPhoto": {"title": "页面块照片", "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 类型：页面标题。"}, "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": "页面块视频", "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 类型：页面标题。"}}, "required": ["_", "video_id", "caption"], "additionalProperties": false}, "pageBlockCover": {"title": "页面块覆盖", "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 类型：页块。"}}, "required": ["_", "cover"], "additionalProperties": false}, "pageBlockEmbed": {"title": "页面块嵌入", "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 类型：页面标题。"}}, "required": ["_", "caption"], "additionalProperties": false}, "pageBlockEmbedPost": {"title": "页面块嵌入帖子", "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 类型：页块。"}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "TL 类型：页面标题。"}}, "required": ["_", "url", "webpage_id", "author_photo_id", "author", "date", "blocks", "caption"], "additionalProperties": false}, "pageBlockCollage": {"title": "页面块拼贴", "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 类型：页块。"}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "TL 类型：页面标题。"}}, "required": ["_", "items", "caption"], "additionalProperties": false}, "pageBlockSlideshow": {"title": "页面块幻灯片", "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 类型：页块。"}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "TL 类型：页面标题。"}}, "required": ["_", "items", "caption"], "additionalProperties": false}, "pageBlockChannel": {"title": "页块通道", "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 Type: Chat."}}, "required": ["_", "channel"], "additionalProperties": false}, "pageBlockAudio": {"title": "页块音频", "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 类型：页面标题。"}}, "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockTable": {"title": "页块表", "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 类型：富文本。"}, "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": "页块有序列表", "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": "页面块详细信息", "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 类型：页块。"}, "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 类型：富文本。"}}, "required": ["_", "blocks", "title"], "additionalProperties": false}, "pageBlockRelatedArticles": {"title": "pageBlock相关文章", "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 类型：富文本。"}, "articles": {"type": "array", "items": {"type": "object", "x-tl-type": "PageRelatedArticle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageRelatedArticle"]}}, "description": "TL 类型：页面相关文章。"}, "x-tl-type": "Vector<PageRelatedArticle>"}}, "required": ["_", "title", "articles"], "additionalProperties": false}, "pageBlockMap": {"title": "页面块图", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockMap"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "TL 类型：地理点。"}, "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 类型：页面标题。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：富文本。"}}, "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 类型：输入地理点。"}, "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 类型：页面标题。"}}, "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 类型：页块。"}, "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 类型：富文本。"}}, "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 类型：页面标题。"}}, "required": ["_", "document_id", "caption"], "additionalProperties": false}, "phoneCallDiscardReasonMissed": {"title": "电话呼叫放弃原因未接", "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": "电话呼叫丢弃原因断开", "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": "电话呼叫丢弃原因挂断", "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": "电话呼叫丢弃原因占线", "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": "电话呼叫放弃原因迁移会议呼叫", "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) slug。", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "dataJSON": {"title": "数据JSON", "description": "表示一个json编码的对象", "externalDocs": {"url": "https://core.telegram.org/constructor/dataJSON"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dataJSON"]}, "data": {"type": "string", "x-tl-type": "string", "description": "JSON-encoded object", "x-telegram-field-docs": true}}, "required": ["_", "data"], "additionalProperties": false}, "labeledPrice": {"title": "标价", "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": "发票", "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 类型：标签价格。"}, "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": "付款费用", "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": "邮寄地址", "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": "付款请求信息", "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": "付款已保存凭证卡", "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": "网络文档", "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 类型：文档属性。"}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "access_hash", "size", "mime_type", "attributes"], "additionalProperties": false}, "webDocumentNoProxy": {"title": "网络文档无代理", "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 类型：文档属性。"}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "size", "mime_type", "attributes"], "additionalProperties": false}, "inputWebDocument": {"title": "输入Web文档", "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 类型：文档属性。"}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "size", "mime_type", "attributes"], "additionalProperties": false}, "inputWebFileLocation": {"title": "输入Web文件位置", "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 of file", "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": "输入Web文件地理点位置", "description": "用于从 [geoPoint](https://core.telegram.org/constructor/geoPoint.md) 下载服务器生成的带有地图预览的图像，请参阅 [webfile 文档以获取更多信息 »](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": "由 [geoPoint](https://core.telegram.org/constructor/geoPoint.md) 的 `lat`、`long` 和 `accuracy_radius` 参数生成", "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": "输入Web文件音频专辑Thumb位置", "description": "用于使用 [upload.getWebFile](https://core.telegram.org/method/upload.getWebFile.md) 下载任何音乐文件的专辑封面，请参阅 [webfile 文档以获取更多信息 »](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": "The audio file in question: must NOT be provided in secret chats, provide the `title` and `performer` fields instead.", "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": "表示通过 telegram 的安全 MTProto 服务器下载的 [HTTP 网络文件](https://core.telegram.org/api/files.md)] 的一块", "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": "机器人ID", "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": "支付提供商 ID。", "x-tl-type": "long", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "Payment form 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 商户 ID - `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：用户。"}, "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": "表单 ID。", "x-tl-type": "long", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "机器人 ID。", "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：用户。"}, "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": "表单 ID。", "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 类型：运输选项。"}, "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": "机器人ID", "x-tl-type": "long", "x-telegram-field-docs": true}, "provider_id": {"type": "string", "pattern": "^-?\\d+$", "description": "提供商 ID", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总金额（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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：用户。"}, "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": "机器人ID", "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": "[电报星星](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": "交易ID", "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：用户。"}, "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": "输入付款凭证已保存", "description": "已保存的付款凭据", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsSaved"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsSaved"]}, "id": {"type": "string", "x-tl-type": "string", "description": "凭证 ID", "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": "输入付款凭证", "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": "输入付款凭证ApplePay", "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": "输入付款凭据GooglePay", "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": "运输选项", "description": "运输选项", "externalDocs": {"url": "https://core.telegram.org/constructor/shippingOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["shippingOption"]}, "id": {"type": "string", "x-tl-type": "string", "description": "选项ID", "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 类型：标签价格。"}, "x-tl-type": "Vector<LabeledPrice>", "description": "价格部分清单", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "prices"], "additionalProperties": false}, "inputStickerSetItem": {"title": "输入贴纸集项目", "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": "输入电话", "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": "电话呼叫空", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "phoneCallWaiting": {"title": "电话呼叫等待", "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 类型：电话呼叫协议。"}, "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": "电话请求", "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 类型：电话呼叫协议。"}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_hash", "protocol"], "additionalProperties": false}, "phoneCallAccepted": {"title": "电话已接听", "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 类型：电话呼叫协议。"}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_b", "protocol"], "additionalProperties": false}, "phoneCall": {"title": "打电话", "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 类型：电话呼叫协议。"}, "connections": {"type": "array", "items": {"type": "object", "x-tl-type": "PhoneConnection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneConnection", "phoneConnectionWebrtc"]}}, "description": "TL 类型：电话连接。"}, "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": "电话呼叫被丢弃", "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": "电话连接", "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": "电话连接Webrtc", "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": "电话呼叫协议", "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": "Whether to allow P2P connection to the other participant", "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：用户。"}, "x-tl-type": "Vector<User>", "description": "VoIP 电话呼叫参与者", "x-telegram-field-docs": true}}, "required": ["_", "phone_call", "users"], "additionalProperties": false}, "upload.cdnFileReuploadNeeded": {"title": "upload.cdnFileReuploadNeeded", "description": "该文件已从 [CDN](https://core.telegram.org/cdn.md) 的临时 RAM 缓存中清除，必须重新上传。", "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": "CDN公钥", "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": "cdn配置", "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 Type: CdnPublicKey."}, "x-tl-type": "Vector<CdnPublicKey>", "description": "**仅**在与 [CDN](https://core.telegram.org/cdn.md) DC 握手期间使用的公钥向量。", "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": "langPackString复数", "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": "langPack差异", "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": "langPack语言", "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": "通道管理日志事件操作更改标题", "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": "频道管理日志事件操作更改关于", "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": "通道管理日志事件操作更改用户名", "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": "频道管理员日志事件操作更改照片", "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 类型：照片。"}, "new_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "TL 类型：照片。"}}, "required": ["_", "prev_photo", "new_photo"], "additionalProperties": false}, "channelAdminLogEventActionToggleInvites": {"title": "频道管理日志事件操作切换邀请", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleInvites"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleSignatures": {"title": "通道管理日志事件操作切换签名", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSignatures"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionUpdatePinned": {"title": "通道管理日志事件操作更新固定", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionEditMessage": {"title": "通道管理日志事件操作编辑消息", "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 类型：消息。"}, "new_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "TL 类型：消息。"}}, "required": ["_", "prev_message", "new_message"], "additionalProperties": false}, "channelAdminLogEventActionDeleteMessage": {"title": "通道管理日志事件操作删除消息", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionParticipantJoin": {"title": "通道管理日志事件操作参与者加入", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantJoin"]}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionParticipantLeave": {"title": "通道管理日志事件操作参与者离开", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantLeave"]}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionParticipantInvite": {"title": "频道管理日志事件操作参与者邀请", "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 类型：频道参与者。"}}, "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 类型：频道参与者。"}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "TL 类型：频道参与者。"}}, "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 类型：频道参与者。"}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "TL 类型：频道参与者。"}}, "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": "通道管理日志事件操作停止轮询", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionChangeLinkedChat": {"title": "频道管理日志事件操作更改链接聊天", "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": "通道管理日志事件操作更改位置", "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 类型：频道位置。"}, "new_value": {"type": "object", "x-tl-type": "ChannelLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty", "channelLocation"]}}, "description": "TL 类型：频道位置。"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleSlowMode": {"title": "通道管理日志事件操作切换慢速模式", "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": "通道管理日志事件操作启动组调用", "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": "通道管理日志事件操作参与者加入邀请", "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": "通道管理日志事件操作参与者音量", "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": "通道管理日志事件操作发送消息", "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 类型：消息。"}}, "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 Type: ChatReactions."}, "new_value": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "TL Type: ChatReactions."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeUsernames": {"title": "通道管理日志事件操作更改用户名", "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": "频道管理日志事件操作切换论坛", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleForum"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionCreateTopic": {"title": "频道管理日志事件操作创建主题", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionCreateTopic"]}, "topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "TL 类型：论坛主题。"}}, "required": ["_", "topic"], "additionalProperties": false}, "channelAdminLogEventActionEditTopic": {"title": "频道管理日志事件操作编辑主题", "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 类型：论坛主题。"}, "new_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "TL 类型：论坛主题。"}}, "required": ["_", "prev_topic", "new_topic"], "additionalProperties": false}, "channelAdminLogEventActionDeleteTopic": {"title": "频道管理日志事件操作删除主题", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDeleteTopic"]}, "topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "TL 类型：论坛主题。"}}, "required": ["_", "topic"], "additionalProperties": false}, "channelAdminLogEventActionPinTopic": {"title": "频道管理日志事件操作Pin主题", "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 类型：论坛主题。", "x-tl-flag": "flags.0?ForumTopic"}, "new_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "TL 类型：论坛主题。", "x-tl-flag": "flags.1?ForumTopic"}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionToggleAntiSpam": {"title": "频道管理日志事件操作切换反垃圾邮件", "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": "频道管理日志事件操作更改壁纸", "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 类型：壁纸。"}, "new_value": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL 类型：壁纸。"}}, "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 Type: EmojiStatus."}, "new_value": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "TL Type: 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": "通道管理日志事件操作切换签名配置文件", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSignatureProfiles"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionParticipantSubExtend": {"title": "通道管理日志事件操作参与者子扩展", "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 类型：频道参与者。"}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "TL 类型：频道参与者。"}}, "required": ["_", "prev_participant", "new_participant"], "additionalProperties": false}, "channelAdminLogEventActionToggleAutotranslation": {"title": "频道管理日志事件操作切换自动翻译", "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": "通道管理日志事件", "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "活动中提到的用户", "x-telegram-field-docs": true}}, "required": ["_", "events", "chats", "users"], "additionalProperties": false}, "channelAdminLogEventsFilter": {"title": "通道管理日志事件过滤器", "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": "Info change events (when [about](https://core.telegram.org/constructor/channelAdminLogEventActionChangeAbout.md), [linked chat](https://core.telegram.org/constructor/channelAdminLogEventActionChangeLinkedChat.md), [location](https://core.telegram.org/constructor/channelAdminLogEventActionChangeLocation.md), [photo](https://core.telegram.org/constructor/channelAdminLogEventActionChangePhoto.md), [stickerset](https://core.telegram.org/constructor/channelAdminLogEventActionChangeStickerSet.md), [title](https://core.telegram.org/constructor/channelAdminLogEventActionChangeTitle.md) or [username](https://core.telegram.org/constructor/channelAdminLogEventActionChangeUsername.md), [slowmode](https://core.telegram.org/constructor/channelAdminLogEventActionToggleSlowMode.md), [history TTL](https://core.telegram.org/constructor/channelAdminLogEventActionChangeHistoryTTL.md) settings of a channel gets modified)", "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": "热门联系方式", "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 类型：贴纸包。"}, "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "收藏的贴纸", "x-telegram-field-docs": true}}, "required": ["_", "hash", "packs", "stickers"], "additionalProperties": false}, "recentMeUrlUnknown": {"title": "最近的我的网址未知", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlUnknown"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "recentMeUrlUser": {"title": "最近的MeUrl用户", "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": "最近的MeUrlChat", "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": "最近的MeUrlChat邀请", "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 类型：聊天邀请。"}}, "required": ["_", "url", "chat_invite"], "additionalProperties": false}, "recentMeUrlStickerSet": {"title": "最近的MeUrlStickerSet", "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": "最近 t.me 网址", "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": "网址", "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "用户", "x-telegram-field-docs": true}}, "required": ["_", "urls", "chats", "users"], "additionalProperties": false}, "inputSingleMedia": {"title": "输入单一媒体", "description": "[相册中的单个媒体或使用 [messages.sendMultiMedia](https://core.telegram.org/method/messages.sendMultiMedia.md) 发送的分组媒体](https://core.telegram.org/api/files.md#albums-grouped-media)。", "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": "需要唯一的客户端媒体 ID，以防止消息重新发送。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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 类型：消息实体。"}, "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": "网络授权", "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 类型：Web 授权。"}, "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：用户。"}, "x-tl-type": "Vector<User>", "description": "用户", "x-telegram-field-docs": true}}, "required": ["_", "authorizations", "users"], "additionalProperties": false}, "inputMessageID": {"title": "输入消息ID", "description": "通过 ID 留言", "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": "消息ID", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMessageReplyTo": {"title": "输入消息回复", "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": "输入消息固定", "description": "固定消息", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagePinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagePinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessageCallbackQuery": {"title": "输入消息回调查询", "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": "消息ID", "x-telegram-field-docs": true}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "回调查询ID", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "query_id"], "additionalProperties": false}, "inputDialogPeer": {"title": "输入对话框对等体", "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": "输入对话框对等文件夹", "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": "[对等文件夹ID，了解更多信息请点击这里](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 类型：输入通道。"}}, "required": ["_", "community"], "additionalProperties": false}, "dialogPeer": {"title": "对话点", "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": "对话框对等文件夹", "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": "[对等文件夹ID，了解更多信息请点击这里](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": "文件哈希值", "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": "输入客户端代理", "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 更新必须在 `expires` 秒内使用 [help.getTermsOfServiceUpdate](https://core.telegram.org/method/help.getTermsOfServiceUpdate.md) 进行查询", "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 更新必须在 `expires` 秒内使用 [help.getTermsOfServiceUpdate](https://core.telegram.org/method/help.getTermsOfServiceUpdate.md) 进行查询", "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": "输入安全文件上传", "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": "输入安全文件", "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": "安全文件清空", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "secureFile": {"title": "安全文件", "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": "安全数据", "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": "安全普通电话", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainPhone"]}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "phone"], "additionalProperties": false}, "securePlainEmail": {"title": "安全普通电子邮件", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainEmail"]}, "email": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "email"], "additionalProperties": false}, "secureValueTypePersonalDetails": {"title": "secureValueType个人详细信息", "description": "个人资料", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePassport": {"title": "安全值类型护照", "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": "安全值类型身份卡", "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": "安全值类型地址", "description": "地址", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeAddress"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeAddress"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeUtilityBill": {"title": "secureValueType公用事业账单", "description": "水电费账单", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeUtilityBill"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeUtilityBill"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeBankStatement": {"title": "secureValueType银行声明", "description": "银行对账单", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeBankStatement"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeBankStatement"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeRentalAgreement": {"title": "secureValueType租赁协议", "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": "secureValueType临时注册", "description": "临时登记", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeTemporaryRegistration"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePhone": {"title": "secureValueType电话", "description": "电话", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePhone"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeEmail": {"title": "安全值类型电子邮件", "description": "电子邮件", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeEmail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeEmail"]}}, "required": ["_"], "additionalProperties": false}, "secureValue": {"title": "安全价值", "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 类型：安全文件。"}, "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 类型：安全文件。"}, "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": "输入安全值", "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 类型：输入安全文件。"}, "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 类型：输入安全文件。"}, "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": "安全值哈希", "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": "安全值错误数据", "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 Passport 中出现错误的部分，[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": "secureValueError自拍", "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": "安全值错误文件", "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": "安全值错误文件", "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": "安全值错误", "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": "secureValueError翻译文件", "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": "secureValueError翻译文件", "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": "secureCredentials加密", "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": "Secret, encrypted with the bot's public RSA key, required for data decryption as described in [decrypting data »](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 护照](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护照](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 类型：安全值。"}, "x-tl-type": "Vector<SecureValue>", "description": "已提交【Telegram护照](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 护照](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：用户。"}, "x-tl-type": "Vector<User>", "description": "有关将向其提交表单的机器人的信息", "x-telegram-field-docs": true}, "privacy_policy_url": {"type": "string", "x-tl-type": "string", "description": "URL of the service's privacy policy", "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 类型：消息实体。"}, "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": "已保存电话联系方式", "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": "外卖ID", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "passwordKdfAlgoUnknown": {"title": "密码KdfAlgo未知", "type": "object", "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown"]}}, "required": ["_"], "additionalProperties": false}, "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow": {"title": "密码KdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow", "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": "securePasswordKdfAlgo未知", "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": "安全秘密设置", "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": "输入检查密码为空", "description": "没有密码", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCheckPasswordEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCheckPasswordEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputCheckPasswordSRP": {"title": "输入检查密码SRP", "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": "安全必需类型", "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": "输入应用程序事件", "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": "json对象值", "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": "json空", "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": "json布尔值", "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": "json编号", "description": "JSON numeric value\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": "json字符串", "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": "json数组", "description": "JSON array\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 values", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonObject": {"title": "json对象", "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": "页表单元格", "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 类型：富文本。", "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": "页表行", "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": "页面标题", "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 类型：富文本。"}, "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 类型：富文本。"}}, "required": ["_", "text", "credit"], "additionalProperties": false}, "pageListItemText": {"title": "页面列表项文本", "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 类型：富文本。"}}, "required": ["_", "text"], "additionalProperties": false}, "pageListItemBlocks": {"title": "页面列表项块", "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 类型：页块。"}, "x-tl-type": "Vector<PageBlock>"}}, "required": ["_", "blocks"], "additionalProperties": false}, "pageListOrderedItemText": {"title": "页面列表订单项文本", "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 类型：富文本。"}, "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 类型：页块。"}, "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": "页相关文章", "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": "页面", "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 类型：页块。"}, "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 类型：照片。"}, "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 类型：文档。"}, "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": "电报支持的本地化名称", "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 类型：消息实体。"}, "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": "民意调查答案", "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": "输入投票答案", "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": "民意调查", "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 类型：民意调查答案。"}, "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": "民意调查答案选民", "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 类型：对等。"}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.2?Vector<Peer>"}}, "required": ["_", "option"], "additionalProperties": false}, "pollResults": {"title": "投票结果", "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 类型：对等。"}, "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 类型：消息实体。"}, "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 类型：消息媒体。", "x-tl-flag": "flags.5?MessageMedia"}}, "required": ["_"], "additionalProperties": false}, "chatOnlines": {"title": "在线聊天", "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": "统计URL", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsURL"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "chatAdminRights": {"title": "聊天管理员权限", "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": "如果设置，则允许管理员在[频道](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": "如果设置，则允许管理员邀请 [channel/supergroup](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": "如果设置，则允许管理员在 [channel/supergroup](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/channel.md) 的其他管理员发布的 [故事](https://core.telegram.org/api/stories.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/channel.md)其他管理员发布的[故事](https://core.telegram.org/api/stories.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": "聊天禁止权利", "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": "如果设置，则不允许用户查看 [supergroup/channel/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](https://core.telegram.org/api/channel.md) 中发送 gif", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "send_games": {"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.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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户更改 [supergroup/chat](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": "如果设置，则不允许用户邀请 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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": "如果设置，则不允许用户在 [supergroup/chat](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/channel.md)中编辑自己的自定义[标签（排名）»](https://core.telegram.org/api/rank.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": "输入壁纸", "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": "输入壁纸Slug", "description": "[壁纸](https://core.telegram.org/api/wallpapers.md) by slug（唯一ID，从[壁纸链接»](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": "唯一的壁纸ID", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputWallPaperNoFile": {"title": "输入壁纸无文件", "description": "[Wallpaper](https://core.telegram.org/api/wallpapers.md) 没有文件访问哈希，例如使用 [account.saveWallPaper](https://core.telegram.org/method/account.saveWallPaper.md) 删除 (`unsave=true`) 壁纸时使用，仅指定壁纸 ID。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaperNoFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaperNoFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "壁纸ID", "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 类型：壁纸。"}, "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": "代码设置", "description": "电报服务器用于发送确认代码的设置。\n\n示例实现：[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": "Set this flag if there is a SIM card in the current device, but it is not possible to check whether the specified phone number matches the SIM's phone number.", "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 推送的设备令牌。", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?string"}, "app_sandbox": {"type": "boolean", "x-tl-type": "Bool", "description": "仅由官方 iOS 应用程序用于 firebase 身份验证：在推送通知传输期间是否使用沙箱证书。", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?Bool"}}, "required": ["_"], "additionalProperties": false}, "wallPaperSettings": {"title": "壁纸设置", "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": "For [image wallpapers »](https://core.telegram.org/api/wallpapers.md#image-wallpapers): if set, the JPEG must be downscaled to fit in 450x450 square and then box-blurred with radius 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": "自动下载设置", "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": "限制，指定应从同一 DC 并行下载的最大文件数（小于 20MB 的文件）。", "x-telegram-field-docs": true}, "large_queue_active_operations_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "限制，指定应从同一 DC 并行下载的最大文件数（对于大于 20MB 的文件）。", "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": "表情符号关键字", "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": "emoji关键字已删除", "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": "emoji关键词差异", "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 类型：表情符号关键字。"}, "x-tl-type": "Vector<EmojiKeyword>", "description": "与关键词相关的表情符号", "x-telegram-field-docs": true}}, "required": ["_", "lang_code", "from_version", "version", "keywords"], "additionalProperties": false}, "emojiURL": {"title": "表情符号网址", "description": "An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiURL"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiURL"]}, "url": {"type": "string", "x-tl-type": "string", "description": "An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "emojiLanguage": {"title": "emoji语言", "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": "文件夹", "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 Type: ChatPhoto.", "x-tl-flag": "flags.3?ChatPhoto"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "inputFolderPeer": {"title": "输入文件夹对等点", "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": "[对等文件夹ID，了解更多信息请点击这里](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true}}, "required": ["_", "peer", "folder_id"], "additionalProperties": false}, "folderPeer": {"title": "文件夹对等点", "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 类型：对等。"}, "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": "url验证结果请求", "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": "应用程序/网站正在请求用户的电话号码；如果用户同意，调用[messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md)时设置`share_phone_number`", "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`也设置时才能设置；如果设置，客户端必须要求用户*在*显示登录确认 UI 的其余部分之前选择匹配的代码，并且必须在继续之前使用 [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": "机器人的用户名，用于用户授权。如果未指定，则将假定当前机器人的用户名。 url 的域必须与机器人链接的域相同。有关更多详细信息，请参阅[将您的域名链接到机器人](https://core.telegram.org/widgets/login.md#linking-your-domain-to-the-bot)。", "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": "发出 OAuth 请求的用户的 IP 地址", "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": "可能包含为其创建登录请求的帐户的 ID；如果它与已登录的帐户匹配，则客户端应自动切换到该帐户并在显示提示之前重新调用 [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": "urlAuth结果已接受", "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": "If present, the URL to open in the external browser (may use a custom scheme for direct switching to another app); if absent, the login succeeded and clients should simply show a confirmation toast.  Always set for [bot button URL authorization](https://core.telegram.org/api/url-authorization.md#bot-button-url-authorization) and [link URL authorization](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": "urlAuth结果默认", "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": "频道位置空", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty"]}}, "required": ["_"], "additionalProperties": false}, "channelLocation": {"title": "频道位置", "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 类型：地理点。"}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "geo_point", "address"], "additionalProperties": false}, "peerLocated": {"title": "同行定位", "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 类型：对等。"}, "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": "同伴自我定位", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerSelfLocated"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "expires"], "additionalProperties": false}, "restrictionReason": {"title": "限制原因", "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": "输入主题", "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": "输入主题Slug", "description": "按主题 ID 划分的主题", "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)获得的唯一主题ID", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "theme": {"title": "主题", "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": "主题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}, "slug": {"type": "string", "x-tl-type": "string", "description": "唯一主题ID", "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 类型：主题设置。"}, "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 类型：主题。"}, "x-tl-type": "Vector<Theme>", "description": "主题", "x-telegram-field-docs": true}}, "required": ["_", "hash", "themes"], "additionalProperties": false}, "auth.loginToken": {"title": "auth.loginToken", "description": "登录令牌（用于[二维码登录](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": "二维码有效期", "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": "重复查询到指定的DC", "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": "直流ID", "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": "令牌（二维码）登录成功！", "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": "Whether the current client can change the sensitive content settings to view NSFW content", "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "聊天列表中提到的用户", "x-telegram-field-docs": true}}, "required": ["_", "dates", "chats", "users"], "additionalProperties": false}, "baseThemeClassic": {"title": "基本主题经典", "description": "经典主题", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeClassic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeClassic"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeDay": {"title": "基本主题日", "description": "日主题", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeDay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeDay"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeNight": {"title": "基础主题之夜", "description": "夜间主题", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeNight"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeNight"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeTinted": {"title": "基本主题有色", "description": "有色主题", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeTinted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeTinted"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeArctic": {"title": "基本主题北极", "description": "北极主题", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeArctic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeArctic"]}}, "required": ["_"], "additionalProperties": false}, "inputThemeSettings": {"title": "输入主题设置", "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": "主题设置", "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 类型：基本主题。"}, "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 类型：壁纸。", "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 类型：文档。"}, "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 类型：主题设置。", "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 类型：对等。"}, "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 类型：故事项目。", "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 类型：文档。"}, "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 类型：星礼。"}}, "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 类型：文档。"}, "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 类型：星礼。"}, "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 Type: 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：用户。"}, "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": "银行卡打开网址", "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": "Info URL(s) provided by the card's bank(s)", "x-telegram-field-docs": true}}, "required": ["_", "title", "open_urls"], "additionalProperties": false}, "dialogFilter": {"title": "对话框过滤器", "description": "Dialog filter AKA [folder](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)ID", "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": "与此文件夹关联的[文件夹标签的颜色 ID，请参阅此处 »](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": "对话框过滤器默认值", "description": "仅在重新排序文件夹时使用以指示默认（所有聊天）文件夹。", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterDefault"]}}, "required": ["_"], "additionalProperties": false}, "dialogFilterChatlist": {"title": "对话框过滤聊天列表", "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": "文件夹 ID", "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": "与此文件夹关联的[文件夹标签的颜色 ID，请参阅此处 »](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": "对话框过滤器建议", "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": "统计日期范围天数", "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": "统计绝对值和上一个", "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": "统计百分比值", "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": "统计图异步", "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": "统计图错误", "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": "统计图", "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": "Zoom代币", "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 类型：交互后计数器。"}, "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": "For Public Service Announcement `peer`s, indicates the type of the 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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "用户信息", "x-telegram-field-docs": true}}, "required": ["_", "expires", "pending_suggestions", "dismissed_suggestions", "chats", "users"], "additionalProperties": false}, "videoSize": {"title": "视频大小", "description": "An [animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) in MPEG4 format", "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 value »](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": "视频大小表情符号标记", "description": "基于[自定义表情符号贴纸](https://core.telegram.org/api/custom-emoji.md)的[动画个人资料图片](https://core.telegram.org/api/files.md#animated-profile-pictures)。", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSizeEmojiMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSizeEmojiMarkup"]}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "【自定义表情ID](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": "视频尺寸贴纸标记", "description": "基于[贴纸](https://core.telegram.org/api/stickers.md)的[动画个人资料图片](https://core.telegram.org/api/files.md#animated-profile-pictures)。", "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": "贴纸ID", "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": "统计组热门海报", "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": "统计组顶级管理员", "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": "统计组热门邀请者", "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：用户。"}, "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": "全局隐私设置", "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": "Whether unmuted chats that are always included or pinned in a [folder](https://core.telegram.org/api/folders.md), will be kept in the Archive chat list when they get a new message. Ignored if `keep_archived_unmuted` is set.", "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) 键的当前值而无法看到 *我们的* 确切的最后在线日期的用户在调用 [messages.getOutboxReadDate](https://core.telegram.org/method/messages.getOutboxReadDate.md) 获取他们发送给我们的消息的确切阅读日期时将收到 `403 USER_PRIVACY_RESTRICTED` 错误。  将为启用此标志的用户设置 [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` 标志，则在与其他用户的私人聊天中的文本字段中应始终显示礼物按钮：单击后，应显示礼物 UI，为用户提供赠送 [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": "Name, ISO code, localized name and phone codes/patterns of all available countries", "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": "Name, ISO code, localized name and phone codes/patterns of all available countries", "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": "消息浏览量", "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 类型：消息回复。", "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 类型：消息视图。"}, "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 Type: 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：用户。"}, "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 类型：消息。"}, "x-tl-type": "Vector<Message>", "description": "线程启动的消息。消息按时间倒序返回（i.e.，按照消息 ID 递减的顺序）。", "x-telegram-field-docs": true}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "此[话题](https://core.telegram.org/api/threads.md)]最新回复的消息ID", "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)最新读取的传入消息的消息ID", "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)最新读取的传出消息的消息ID", "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "构造函数中提到的用户", "x-telegram-field-docs": true}}, "required": ["_", "messages", "unread_count", "chats", "users"], "additionalProperties": false}, "messageReplyHeader": {"title": "消息回复头", "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 类型：对等。", "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 类型：消息媒体。", "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 类型：消息实体。"}, "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 类型：富文本。"}, "x-tl-type": "Vector<RichText>", "x-tl-flag": "flags.14?Vector<RichText>"}}, "required": ["_"], "additionalProperties": false}, "messageReplyStoryHeader": {"title": "消息回复故事标题", "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 类型：对等。"}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "story_id"], "additionalProperties": false}, "messageReplies": {"title": "留言回复", "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 类型：对等。"}, "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": "对等阻塞", "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 类型：对等。"}, "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": "群呼被丢弃", "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": "群呼", "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 类型：对等。", "x-tl-flag": "flags.21?Peer"}}, "required": ["_", "id", "access_hash", "participants_count", "unmuted_video_limit", "version"], "additionalProperties": false}, "inputGroupCall": {"title": "输入组呼", "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": "使用邀请链接中的 slug 识别 [电话会议 »](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)的Slug。", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputGroupCallInviteMessage": {"title": "输入组呼邀请消息", "description": "使用 [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md) 邀请服务消息来标识 [电话会议 »](https://core.telegram.org/api/group-calls.md#conference-calls)。", "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)的 ID。", "x-telegram-field-docs": true}}, "required": ["_", "msg_id"], "additionalProperties": false}, "groupCallParticipant": {"title": "群呼参与者", "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 类型：对等。"}, "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 Type: 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：用户。"}, "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": "如果不为空，则指定的参与者列表是部分的，可以通过将此参数指定为[phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md)中的`offset`来获取更多参与者。", "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 Type: 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：用户。"}, "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": "内联查询对等类型PM", "description": "同伴类型：私人聊天", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypePM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypePM"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeChat": {"title": "内联查询对等类型聊天", "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": "内联查询对等类型Megagroup", "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": "内联查询对等类型广播", "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": "内联查询对等类型BotPM", "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": "特定[聊天导入会话的 ID，单击此处了解更多信息 »](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": "[历史导入ID](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": "受影响的消息 ID", "x-telegram-field-docs": true}}, "required": ["_", "pts", "pts_count", "offset", "messages"], "additionalProperties": false}, "chatInviteImporter": {"title": "聊天邀请进口商", "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：用户。"}, "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：用户。"}, "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：用户。"}, "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：用户。"}, "x-tl-type": "Vector<User>", "description": "加入的用户", "x-telegram-field-docs": true}}, "required": ["_", "count", "importers", "users"], "additionalProperties": false}, "chatAdminWithInvites": {"title": "聊天管理员与邀请", "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：用户。"}, "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 类型：对等。"}, "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 Type: 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：用户。"}, "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": "组呼叫参与者视频源组", "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": "群组通话参与者视频", "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": "botCommandScope默认", "description": "这些命令在所有对话框中都有效", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeDefault"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeUsers": {"title": "botCommandScope用户", "description": "指定的机器人命令仅在与用户的所有私人聊天中有效。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeUsers"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeChats": {"title": "botCommandScope聊天", "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": "聊天主题", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatTheme"]}, "emoticon": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "emoticon"], "additionalProperties": false}, "chatThemeUniqueGift": {"title": "聊天主题独特的礼物", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatThemeUniqueGift"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "TL 类型：星礼。"}, "theme_settings": {"type": "array", "items": {"type": "object", "x-tl-type": "ThemeSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["themeSettings"]}}, "description": "TL 类型：主题设置。"}, "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 Type: 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 Type: 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：用户。"}, "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": "赞助信息", "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 类型：消息实体。"}, "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 类型：照片。", "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 类型：消息媒体。", "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 类型：赞助消息。"}, "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 Type: 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：用户。"}, "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": "搜索结果日历期间", "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 类型：消息。"}, "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 Type: 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：用户。"}, "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": "搜索结果位置", "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 类型：搜索结果位置。"}, "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 Type: 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：用户。"}, "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 Type: 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：用户。"}, "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 Type: 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：用户。"}, "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": "反应计数", "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 类型：反应。"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "reaction", "count"], "additionalProperties": false}, "messageReactions": {"title": "消息反应", "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 类型：反应计数。"}, "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类型：消息反应器。"}, "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 Type: 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：用户。"}, "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": "可用反应", "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 类型：文档。"}, "appear_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。"}, "select_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。"}, "activate_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。"}, "effect_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。"}, "around_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。", "x-tl-flag": "flags.1?Document"}, "center_icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。", "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 类型：可用反应。"}, "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": "消息对等反应", "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 类型：对等。"}, "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 类型：反应。"}}, "required": ["_", "peer_id", "date", "reaction"], "additionalProperties": false}, "groupCallStreamChannel": {"title": "组呼叫流通道", "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": "Contains the available channels of an RTMP-mode group call, see [playing an RTMP livestream »](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": "Available RTMP stream channels; may be empty while the external publisher is not sending media", "x-telegram-field-docs": true}}, "required": ["_", "channels"], "additionalProperties": false}, "phone.groupCallStreamRtmpUrl": {"title": "phone.groupCallStreamRtmpUrl", "description": "Contains the RTMP publishing URL and secret stream key, see [creating and publishing an RTMP livestream »](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": "附加菜单机器人图标颜色", "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": "附加菜单机器人图标", "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 类型：文档。"}, "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": "附加菜单机器人", "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": "附加菜单机器人未修改", "description": "机器人迷你应用程序列表没有改变", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBotsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuBots": {"title": "附加菜单机器人", "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：用户。"}, "x-tl-type": "Vector<User>", "description": "有关相关用户/机器人的信息", "x-telegram-field-docs": true}}, "required": ["_", "hash", "bots", "users"], "additionalProperties": false}, "attachMenuBotsBot": {"title": "附加菜单机器人", "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：用户。"}, "x-tl-type": "Vector<User>", "description": "有关相关用户和机器人的信息", "x-telegram-field-docs": true}}, "required": ["_", "bot", "users"], "additionalProperties": false}, "webViewResultUrl": {"title": "网页查看结果网址", "description": "包含添加了适当主题和用户信息参数的 webview 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": "Webview会话ID（仅由[内联按钮迷你应用程序](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": "Webview URL 打开", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "webViewMessageSent": {"title": "web查看消息已发送", "description": "有关已发送内联 Web 视图消息的信息", "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": "消息ID", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputBotInlineMessageID"}}, "required": ["_"], "additionalProperties": false}, "botMenuButtonDefault": {"title": "机器人菜单按钮默认", "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": "bot菜单按钮命令", "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": "机器人菜单按钮", "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": "当用户单击按钮时打开的 [网络应用程序](https://core.telegram.org/api/bots/webapps.md) 的 URL", "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "已保存的通知声音", "x-telegram-field-docs": true}}, "required": ["_", "hash", "ringtones"], "additionalProperties": false}, "notificationSoundDefault": {"title": "通知声音默认", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault"]}}, "required": ["_"], "additionalProperties": false}, "notificationSoundNone": {"title": "通知声音无", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundNone"]}}, "required": ["_"], "additionalProperties": false}, "notificationSoundLocal": {"title": "通知声音本地", "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": "通知声音铃声", "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": "The notification sound was already in MP3 format and was saved without any modification", "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": "The notification sound was not in MP3 format and was successfully converted and saved, use the returned [Document](https://core.telegram.org/type/Document.md) to refer to the notification sound from now on", "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": "附加菜单对等类型聊天", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeChat"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeBroadcast": {"title": "附加菜单对等类型广播", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeBroadcast"]}}, "required": ["_"], "additionalProperties": false}, "inputInvoiceMessage": {"title": "输入发票消息", "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": "消息ID", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id"], "additionalProperties": false}, "inputInvoiceSlug": {"title": "输入发票条", "description": "取自 [发票深层链接](https://core.telegram.org/api/links.md#invoice-links) 或 [`premium_invoice_slug` 应用程序配置参数 »](https://core.telegram.org/api/config.md#premium-invoice-slug)] 的发票 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": "输入发票PremiumGiftCode", "description": "如果用户希望启动频道/超级组[赠品](https://core.telegram.org/api/giveaways.md)或向频道/超级组的成员发送一些[礼品代码](https://core.telegram.org/api/giveaways.md)，以换取[提升](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": "对于 [giveaways](https://core.telegram.org/api/giveaways.md)，应填充 [inputStorePaymentPremiumGiveaway](https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway.md)]，对于 [gifts](https://core.telegram.org/api/giveaways.md)，应填充 [inputStorePaymentPremiumGiftCode](https://core.telegram.org/constructor/inputStorePaymentPremiumGiftCode.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) 返回的赠品选项之一，请参阅 [赠品 »](https://core.telegram.org/api/giveaways.md) 文档以获取更多信息。", "x-telegram-field-docs": true}}, "required": ["_", "purpose", "option"], "additionalProperties": false}, "inputInvoiceStars": {"title": "输入发票星星", "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": "输入发票聊天邀请订阅", "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": "输入发票StarGift", "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": "输入发票StarGiftUpgrade", "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": "输入发票StarGiftTransfer", "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": "输入发票PremiumGiftStars", "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": "订阅期限（以月为单位），必须是[payments.getPremiumGiftCodeOptions](https://core.telegram.org/method/payments.getPremiumGiftCodeOptions.md)返回的`currency == \"XTR\"`选项之一。", "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": "输入发票BusinessBotTransferStars", "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": "输入发票StarGiftResale", "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": "Buy the gift using 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": "输入发票StarGift预付升级", "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": "输入发票PremiumAuthCode", "description": "Used to pay for login codes, in case of high cost of SMS verification codes for the user's country/provider, see [here »](https://core.telegram.org/api/auth.md#paid-auth) for more info.", "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": "输入发票StarGiftDropOriginalDetails", "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": "输入发票StarGiftAuctionBid", "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": "转录ID", "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 类型：消息实体。"}, "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 类型：文档。"}, "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 类型：高级订阅选项。"}, "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：用户。"}, "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": "inputStorePaymentPremium订阅", "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": "如果这是 Telegram Premium 购买的恢复，则传递 true；仅适用于应用商店", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "如果这是从按月订阅升级到按年订阅，则传递 true；仅适用于应用商店", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "inputStorePaymentGiftPremium": {"title": "输入商店付款礼品溢价", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币的最小单位表示的产品价格（整数，而不是浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为2）。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentPremiumGiftCode": {"title": "输入商店付款PremiumGiftCode", "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 类型：输入用户。"}, "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "输入商店付款高级赠品", "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 alpha-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": "随机 ID 以避免重新发送赠品。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为2）。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "boost_peer", "random_id", "until_date", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsTopup": {"title": "输入商店付款星星充值", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "输入商店付款星星礼物", "description": "用于赠送【电报之星](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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为2）。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "stars", "currency", "amount"], "additionalProperties": false}, "inputStorePaymentStarsGiveaway": {"title": "输入商店付款星星赠品", "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 Star 总数（每个用户将获得 `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 alpha-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": "随机 ID 以避免重新发送赠品。有关随机 ID 重复数据删除和 updateMessageID 映射的更多信息，请参阅[此处 »](https://core.telegram.org/api/updates.md#updatemessageid-updates)。", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "输入商店付款验证码", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币的最小单位表示的产品价格（整数，而不是浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为2）。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "phone_code_hash", "premium_days", "currency", "amount"], "additionalProperties": false}, "paymentFormMethod": {"title": "付款方式", "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": "emoji状态空", "description": "未设置表情符号状态", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatusEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty"]}}, "required": ["_"], "additionalProperties": false}, "emojiStatus": {"title": "表情符号状态", "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": "[自定义表情符号文档ID](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": "如果设置，表情符号状态将在指定的 unix 时间之前保持活动状态。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "document_id"], "additionalProperties": false}, "emojiStatusCollectible": {"title": "表情符号状态收藏品", "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": "收藏品的 ID（来自 [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)的ID。", "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": "应用在个人资料背景上的图案 ID，与 `slug` 中礼物的 [starGiftAttributePattern](https://core.telegram.org/constructor/starGiftAttributePattern.md) 相关。", "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": "以 RGB24 格式应用于个人资料背景上的 `pattern_document_id` 颜色，来自礼物的 [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": "如果设置，表情符号状态将在指定的 unix 时间之前保持活动状态。", "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": "输入表情符号状态收藏品", "description": "An owned or [hosted collectible gift »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) as emoji status: can only be used in [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md), is never returned by the 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": "收藏品的 ID（来自 [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": "如果设置，表情符号状态将在指定的 unix 时间之前保持活动状态。", "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 Type: 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": "反应空", "description": "无反应", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "reactionEmoji": {"title": "反应表情符号", "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": "反应自定义表情符号", "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": "[自定义表情符号文档ID](https://core.telegram.org/api/custom-emoji.md)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "document_id"], "additionalProperties": false}, "reactionPaid": {"title": "反应已付费", "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": "聊天反应无", "description": "不允许任何反应", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsNone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsNone"]}}, "required": ["_"], "additionalProperties": false}, "chatReactionsAll": {"title": "聊天反应全部", "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": "聊天反应一些", "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 类型：反应。"}, "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 类型：反应。"}, "x-tl-type": "Vector<Reaction>", "description": "反应", "x-telegram-field-docs": true}}, "required": ["_", "hash", "reactions"], "additionalProperties": false}, "emailVerifyPurposeLoginSetup": {"title": "电子邮件验证目的登录设置", "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": "电子邮件验证目的登录更改", "description": "邮箱验证目的：更改登录邮箱", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerifyPurposeLoginChange"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerifyPurposeLoginChange"]}}, "required": ["_"], "additionalProperties": false}, "emailVerifyPurposePassport": {"title": "电子邮件验证目的护照", "description": "验证电子邮件以用于[电报护照](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": "邮箱验证码", "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": "电子邮件验证Google", "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": "电子邮件验证Apple", "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": "高级订阅选项", "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": "对等发送", "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 类型：对等。"}}, "required": ["_", "peer"], "additionalProperties": false}, "messageExtendedMediaPreview": {"title": "消息扩展媒体预览", "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 类型：照片尺寸。", "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": "消息扩展媒体", "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 类型：消息媒体。"}}, "required": ["_", "media"], "additionalProperties": false}, "stickerKeyword": {"title": "贴纸关键字", "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": "用户名", "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": "论坛主题已删除", "type": "object", "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "forumTopic": {"title": "论坛主题", "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 类型：对等。"}, "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 类型：对等。"}, "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 Type: 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`；否则，主题按最后一条消息日期排序，因此按 [forumTopic](https://core.telegram.org/constructor/forumTopic.md).`top_message` 引用的 [message](https://core.telegram.org/type/Message.md)] 的 `date` 进行分页。", "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 类型：论坛主题。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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": "默认历史记录TTL", "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": "导出的联系人令牌", "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": "请求对等类型用户", "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": "请求对等类型聊天", "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": "请求对等类型广播", "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": "请求对等类型创建机器人", "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": "表情符号列表未修改", "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": "表情符号列表", "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": "自定义表情符号 ID", "x-telegram-field-docs": true}}, "required": ["_", "hash", "document_id"], "additionalProperties": false}, "emojiGroup": {"title": "表情符号组", "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": "表情符号组问候语表情符号", "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": "表情符号组高级版", "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 类型：表情符号组。"}, "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": "带实体的文本", "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 类型：消息实体。"}, "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": "自动保存设置", "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": "自动保存异常", "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 类型：对等。"}, "settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "TL 类型：自动保存设置。"}}, "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 Type: 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：用户。"}, "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": "输入机器人应用程序ID", "description": "用于通过ID获取[直连小程序](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": "输入BotApp简称", "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": "拥有机器人小应用的机器人ID", "x-telegram-field-docs": true}, "short_name": {"type": "string", "x-tl-type": "string", "description": "简称，从【直接小程序深度链接](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": "botApp未修改", "type": "object", "properties": {"_": {"type": "string", "enum": ["botAppNotModified"]}}, "required": ["_"], "additionalProperties": false}, "botApp": {"title": "机器人应用程序", "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 类型：照片。"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL 类型：文档。", "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": "机器人正在请求向用户发送消息的许可：如果用户同意，则在调用 [messages.requestAppWebView](https://core.telegram.org/method/messages.requestAppWebView.md) 时设置 `write_allowed` 标志。", "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": "内联BotWebView", "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": "Webapp URL", "x-telegram-field-docs": true}}, "required": ["_", "text", "url"], "additionalProperties": false}, "readParticipantDate": {"title": "读取参与者日期", "description": "包含有关特定参与者何时阅读消息的信息", "externalDocs": {"url": "https://core.telegram.org/constructor/readParticipantDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["readParticipantDate"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "用户ID", "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": "输入聊天列表对话框过滤器", "description": "文件夹ID", "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)ID", "x-telegram-field-docs": true}}, "required": ["_", "filter_id"], "additionalProperties": false}, "exportedChatlistInvite": {"title": "导出聊天列表邀请", "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 类型：对等。"}, "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": "文件夹ID", "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 类型：导出的聊天列表邀请。"}, "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 Type: 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：用户。"}, "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": "导入的文件夹ID", "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 类型：对等。"}, "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 类型：对等。"}, "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 Type: 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：用户。"}, "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 类型：对等。"}, "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 Type: 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：用户。"}, "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 类型：对等。"}, "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 Type: 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：用户。"}, "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": "消息同行投票", "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 类型：对等。"}, "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": "消息对等投票输入选项", "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 类型：对等。"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "date"], "additionalProperties": false}, "messagePeerVoteMultiple": {"title": "消息对等投票多个", "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 类型：对等。"}, "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": "故事浏览量", "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 类型：反应计数。"}, "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": "故事项目已删除", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyItemDeleted"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "storyItemSkipped": {"title": "故事项目已跳过", "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": "故事项目", "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 类型：对等。", "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 类型：消息实体。"}, "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 类型：消息媒体。"}, "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 类型：媒体区域。"}, "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 类型：隐私规则。"}, "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 类型：故事视图。", "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 类型：反应。", "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 类型：文档。", "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 Type: 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：用户。"}, "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 类型：故事项目。"}, "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": "固定故事的 ID。", "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "提及的用户", "x-telegram-field-docs": true}}, "required": ["_", "count", "stories", "chats", "users"], "additionalProperties": false}, "storyView": {"title": "故事视图", "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 类型：反应。", "x-tl-flag": "flags.2?Reaction"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "storyViewPublicForward": {"title": "故事查看公共转发", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "storyViewPublicRepost": {"title": "故事查看公开转发", "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 类型：对等。"}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "TL 类型：故事项目。"}}, "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 类型：故事视图。"}, "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 Type: 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：用户。"}, "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 类型：故事视图。"}, "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：用户。"}, "x-tl-type": "Vector<User>", "description": "提及的用户", "x-telegram-field-docs": true}}, "required": ["_", "views", "users"], "additionalProperties": false}, "inputReplyToMessage": {"title": "输入回复消息", "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": "要回复的消息 ID。", "x-telegram-field-docs": true}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "This field must contain the topic ID **only** when replying to messages in forum topics different from the \"General\" topic (i.e. `reply_to_msg_id` is set and `reply_to_msg_id != topicID` and `topicID != 1`).   If the replied-to message is deleted before the method finishes execution, the value in this field will be used to send the message to the correct topic, instead of the \"General\" topic.", "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 类型：消息实体。"}, "x-tl-type": "Vector<MessageEntity>", "description": "[来自 `quote_text` 字段的样式文本](https://core.telegram.org/api/entities.md) 的消息实体。", "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": "回复 [monoforum topic](https://core.telegram.org/api/monoforum.md) 内的消息时，必须设置为主题 ID。", "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 类型：富文本。"}, "x-tl-type": "Vector<RichText>", "x-tl-flag": "flags.8?Vector<RichText>"}}, "required": ["_", "reply_to_msg_id"], "additionalProperties": false}, "inputReplyToStory": {"title": "输入回复故事", "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": "要回复的故事的 ID。", "x-telegram-field-docs": true}}, "required": ["_", "peer", "story_id"], "additionalProperties": false}, "inputReplyToMonoForum": {"title": "输入回复MonoForum", "description": "用于向 [monoforum topic](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": "主题 ID。", "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": "导出的故事链接", "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": "故事隐身模式", "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": "媒体区域坐标", "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": "媒体区场地", "description": "表示附加到 [story](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": "提供商数据库中的场所 ID", "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": "输入媒体区域地点", "description": "表示附加到 [故事](https://core.telegram.org/api/stories.md)] 的 [位置标签](https://core.telegram.org/api/stories.md#media-areas)，以及附加场地信息。", "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": "来自 [messages.botResults](https://core.telegram.org/constructor/messages.botResults.md) 的 `query_id`，请参阅[此处 »](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": "媒体区域地理点", "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": "媒体区建议反应", "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": "媒体区域频道帖子", "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": "输入媒体区域频道发布", "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": "媒体区域网址", "description": "Represents a [URL media area](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": "媒体区天气", "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": "媒体区星礼", "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": "同行故事", "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 类型：对等。"}, "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 类型：故事项目。"}, "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 Type: 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：用户。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "网页中提到的用户。", "x-telegram-field-docs": true}}, "required": ["_", "webpage", "chats", "users"], "additionalProperties": false}, "premiumGiftCodeOption": {"title": "高级礼品代码选项", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "此礼品代码是否由[赠品](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`指定频道中赠品的消息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 Type: 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：用户。"}, "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": "如果设置，当前用户将无法参与赠品，因为他们是创建赠品的频道之一（此标志中指定的 ID）的管理员。", "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 alpha-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": "预付赠品", "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": "预付费明星赠品", "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": "提升", "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": "由多个用户应用于同级的 [boosts](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 类型：升压。"}, "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：用户。"}, "x-tl-type": "Vector<User>", "description": "提及的用户", "x-telegram-field-docs": true}}, "required": ["_", "count", "boosts", "users"], "additionalProperties": false}, "myBoost": {"title": "我的升压", "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 类型：对等。", "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": "我们当前正在 [Boosting](https://core.telegram.org/api/boost.md)] 的同行列表，以及我们还剩下多少个 [Boosting slot](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 Type: 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：用户。"}, "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": "[增强深层链接»](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 类型：预付费赠品。"}, "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": "指示我们已将哪些 [boost slot](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": "故事转发标题", "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 类型：对等。", "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": "交互后计数器消息", "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": "后互动柜台故事", "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/stories.md)的[统计数据](https://core.telegram.org/api/stats.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": "公共转发消息", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "publicForwardStory": {"title": "公共转发故事", "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 类型：对等。"}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "TL 类型：故事项目。"}}, "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 类型：公共转发。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "提及的用户", "x-telegram-field-docs": true}}, "required": ["_", "count", "forwards", "chats", "users"], "additionalProperties": false}, "peerColor": {"title": "对等颜色", "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": "[调色板 ID，请参阅此处 »](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": "可选的[自定义表情符号ID](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": "同行颜色收藏品", "description": "代表与[收藏礼物»](https://core.telegram.org/api/gifts.md#collectible-gifts)相关联的[调色板»](https://core.telegram.org/api/colors.md)，请参阅[此处»](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)的ID。", "x-tl-type": "long", "x-telegram-field-docs": true}, "gift_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[可收藏礼物的自定义表情符号 ID »](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": "[自定义表情符号 ID »](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/gifts.md#collectible-gifts)相关联的[调色板»](https://core.telegram.org/api/colors.md)，请参阅[此处»](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)的ID。", "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": "故事反应", "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 类型：对等。"}, "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 类型：反应。"}}, "required": ["_", "peer_id", "date", "reaction"], "additionalProperties": false}, "storyReactionPublicForward": {"title": "故事反应公众转发", "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 类型：消息。"}}, "required": ["_", "message"], "additionalProperties": false}, "storyReactionPublicRepost": {"title": "故事反应公众转发", "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 类型：对等。"}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "TL 类型：故事项目。"}}, "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 Type: 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：用户。"}, "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": "保存的对话框", "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 类型：对等。"}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "top_message"], "additionalProperties": false}, "monoForumDialog": {"title": "单一论坛对话框", "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 类型：对等。"}, "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 Type: 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 类型：消息。"}, "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 Type: 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：用户。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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": "保存的反应标签", "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 类型：反应。"}, "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": "发件箱阅读日期", "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": "Terms of service 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": "Terms of service URL", "x-telegram-field-docs": true}}, "required": ["_", "recent_sent", "recent_since", "recent_remains", "total_sent", "total_since", "terms_url"], "additionalProperties": false}, "smsJob": {"title": "短信作业", "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": "商业周刊开盘", "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": "商业工作时间", "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) 返回的时区之一的 ID。     时区 ID 包含 [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 偏移量，客户端可以将其与人类可读名称一起以 hh:mm 格式显示（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 类型：《商业周刊》。"}, "x-tl-type": "Vector<BusinessWeeklyOpen>", "description": "由 [businessWeeklyOpen »](https://core.telegram.org/constructor/businessWeeklyOpen.md) 表示的时间间隔列表（最多 28），表示其营业时间。", "x-telegram-field-docs": true}}, "required": ["_", "timezone_id", "weekly_open"], "additionalProperties": false}, "businessLocation": {"title": "营业地点", "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 类型：地理点。", "x-tl-flag": "flags.0?GeoPoint"}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "address"], "additionalProperties": false}, "inputBusinessRecipients": {"title": "输入业务收件人", "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 类型：输入用户。"}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.4?Vector<InputUser>"}}, "required": ["_"], "additionalProperties": false}, "businessRecipients": {"title": "商业收件人", "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": "BusinessAwayMessageSchedule自定义", "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": "输入商务问候留言", "description": "描述 [Telegram Business 问候语](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": "[快速回复快捷方式的 ID，包含要发送的问候消息，请参阅此处 » 了解更多信息](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": "商务问候留言", "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 类型：商业收件人。"}, "no_activity_days": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id", "recipients", "no_activity_days"], "additionalProperties": false}, "inputBusinessAwayMessage": {"title": "输入商务外出留言", "description": "描述 [Telegram Business 离开消息](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": "[快速回复快捷方式的 ID，包含要发送的离开消息，请参阅此处 » 了解更多信息](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": "商务外出留言", "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 类型：商业收件人。"}}, "required": ["_", "shortcut_id", "schedule", "recipients"], "additionalProperties": false}, "timezone": {"title": "时区", "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 业务开放时间 »](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：时区。"}, "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": "快速回复", "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": "输入快速回复快捷键", "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": "输入快速回复快捷方式Id", "description": "通过数字ID选择[快速回复快捷方式](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": "快捷方式 ID。", "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 类型：快速回复。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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": "连接机器人", "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：用户。"}, "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 类型：对话过滤器。"}, "x-tl-type": "Vector<DialogFilter>", "description": "文件夹。", "x-telegram-field-docs": true}}, "required": ["_", "filters"], "additionalProperties": false}, "birthday": {"title": "生日", "description": "[用户的生日](https://core.telegram.org/api/profile.md#birthday)信息。\n\n还用于邀请用户向生日在 +1/-1 天时间范围内（与当天相关）的其他用户赠送 [Telegram Premium 订阅 »](https://core.telegram.org/api/premium.md#gifting-telegram-premium)。", "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": "机器人业务连接", "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": "输入业务介绍", "description": "【Telegram业务介绍»](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": "业务介绍", "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 类型：文档。", "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": "输入收藏品用户名", "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": "输入收藏电话", "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": "购买日期（Unix 时间）", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code for `amount`", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "输入BusinessBot收件人", "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 类型：输入用户。"}, "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 类型：输入用户。"}, "x-tl-type": "Vector<InputUser>", "description": "始终排除的私人聊天的标识符。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<InputUser>"}}, "required": ["_"], "additionalProperties": false}, "businessBotRecipients": {"title": "商业机器人接收者", "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": "联系方式生日", "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 类型：生日。"}}, "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 类型：联系生日。"}, "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：用户。"}, "x-tl-type": "Vector<User>", "description": "用户信息", "x-telegram-field-docs": true}}, "required": ["_", "contacts", "users"], "additionalProperties": false}, "missingInvitee": {"title": "失踪受邀者", "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": "输入商务聊天链接", "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 类型：消息实体。"}, "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": "人类可读的链接名称，以简化 UI 中的管理（仅对链接的创建者可见）。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "message"], "additionalProperties": false}, "businessChatLink": {"title": "商务聊天链接", "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 类型：消息实体。"}, "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": "人类可读的链接名称，以简化 UI 中的管理（仅对链接的创建者可见）。", "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 Type: 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：用户。"}, "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 类型：消息实体。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "提及的用户", "x-telegram-field-docs": true}}, "required": ["_", "peer", "message", "chats", "users"], "additionalProperties": false}, "requestedPeerUser": {"title": "请求的对等用户", "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 类型：照片。", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "user_id"], "additionalProperties": false}, "requestedPeerChat": {"title": "请求的点对点聊天", "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 类型：照片。", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "requestedPeerChannel": {"title": "请求的对等频道", "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 类型：照片。", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "sponsoredMessageReportOption": {"title": "赞助消息报告选项", "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": "来自联系人的反应通知", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts"]}}, "required": ["_"], "additionalProperties": false}, "reactionNotificationsFromAll": {"title": "来自所有人的反应通知", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromAll"]}}, "required": ["_"], "additionalProperties": false}, "reactionsNotifySettings": {"title": "反应通知设置", "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，则有关消息/故事反应的 [推送通知 »](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": "可用效果", "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 类型：可用效果。"}, "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "`effects`构造函数中指定的文档。", "x-telegram-field-docs": true}}, "required": ["_", "hash", "effects", "documents"], "additionalProperties": false}, "factCheck": {"title": "事实核查", "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`字段将**不会**设置，并且当带有事实检查的消息滚动到视图中时，客户端必须使用捆绑的[messages.getFactCheck](https://core.telegram.org/method/messages.getFactCheck.md)请求手动获取事实检查（如果尚未使用`hash`中指定的密钥缓存）。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "country": {"type": "string", "x-tl-type": "string", "description": "应显示事实核查的国家/地区的两个字母 ISO 3166-1 alpha-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": "starsTransactionPeer不支持", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerAppStore": {"title": "星星交易PeerAppStore", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAppStore"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerPlayMarket": {"title": "星星交易PeerPlay市场", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerPlayMarket"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerPremiumBot": {"title": "星星交易PeerPremiumBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerPremiumBot"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerFragment": {"title": "星星交易PeerFragment", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerFragment"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeer": {"title": "星星交易Peer", "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 类型：对等。"}}, "required": ["_", "peer"], "additionalProperties": false}, "starsTransactionPeerAds": {"title": "星星交易同行广告", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAds"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerAPI": {"title": "星星交易PeerAPI", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAPI"]}}, "required": ["_"], "additionalProperties": false}, "starsTopupOption": {"title": "星星充值选项", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币的最小单位表示的产品价格（整数，而不是浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为2）。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars", "currency", "amount"], "additionalProperties": false}, "starsTransaction": {"title": "星星交易", "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 类型：星星数量。"}, "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 类型：Web 文档。", "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 类型：消息媒体。"}, "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 类型：星礼。", "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 类型：对等。", "x-tl-flag": "flags.17?Peer"}, "starref_amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "TL 类型：星星数量。", "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 类型：星星订阅。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "`history`中提到的用户。", "x-telegram-field-docs": true}}, "required": ["_", "balance", "chats", "users"], "additionalProperties": false}, "foundStory": {"title": "发现故事", "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 类型：对等。"}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "TL 类型：故事项目。"}}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "提及的用户", "x-telegram-field-docs": true}}, "required": ["_", "count", "stories", "chats", "users"], "additionalProperties": false}, "geoPointAddress": {"title": "地理点地址", "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": "明星收入状态", "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 类型：星星数量。"}, "available_balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "TL 类型：星星数量。"}, "overall_revenue": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "TL 类型：星星数量。"}, "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": "Contains the URL to use to [withdraw Telegram Star revenue](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": "Contains the URL to use to [withdraw Telegram Star revenue](https://core.telegram.org/api/stars.md#withdrawing-revenue).", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "payments.starsRevenueAdsAccountUrl": {"title": "payments.starsRevenueAdsAccountUrl", "description": "Contains a URL leading to a page where the user will be able to place ads for the channel/bot, paying using [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": "输入星星交易", "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": "交易ID。", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "starsGiftOption": {"title": "星星礼物选项", "description": "【电报之星礼物选项](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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币的最小单位表示的产品价格（整数，而不是浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "[pagination](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：用户。"}, "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": "机器人预览媒体", "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": "星星订阅定价", "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": "用户应每`period`秒支付`amount`星才能获得并维持对频道的访问权限。  目前唯一允许的订阅期是`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": "星星订阅", "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 类型：对等。"}, "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 类型：Web 文档。", "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": "消息反应器", "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 类型：对等。", "x-tl-flag": "flags.3?Peer"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "count"], "additionalProperties": false}, "starsGiveawayOption": {"title": "星星赠品选项", "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 Star 数量", "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": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code", "x-telegram-field-docs": true}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "以货币最小单位表示的总价（整数，非浮点/双精度）。例如，对于 `US$ 1.45` 的价格，传递 `amount = 145`。请参阅[currencies.json](https://core.telegram.org/bots/payments/currencies.json)中的exp参数，它显示每种货币小数点后的位数（大多数货币为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": "星星赠品获奖者选项", "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": "明星礼物", "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 类型：文档。"}, "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 类型：对等。", "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": "明星礼物独特", "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 类型：对等。", "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 类型：星星数量。"}, "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 类型：对等。", "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 类型：对等。", "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 类型：对等。", "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 类型：星礼。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "`gifts`字段中提到的用户。", "x-telegram-field-docs": true}}, "required": ["_", "hash", "gifts", "chats", "users"], "additionalProperties": false}, "messageReportOption": {"title": "消息报告选项", "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": "报告结果选择选项", "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 类型：消息报告选项。"}, "x-tl-type": "Vector<MessageReportOption>", "description": "可用选项，呈现为菜单条目。", "x-telegram-field-docs": true}}, "required": ["_", "title", "options"], "additionalProperties": false}, "reportResultAddComment": {"title": "报告结果添加评论", "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": "报告结果报告", "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": "The ID of the saved message, to be passed to the `id` field of the [web_app_send_prepared_message event »](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：用户。"}, "x-tl-type": "Vector<User>", "description": "结果中提到的用户", "x-telegram-field-docs": true}}, "required": ["_", "query_id", "result", "peer_types", "cache_time", "users"], "additionalProperties": false}, "botAppSettings": {"title": "bot应用程序设置", "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": "明星参考计划", "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": "已连接BotStarRef", "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：用户。"}, "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：用户。"}, "x-tl-type": "Vector<User>", "description": "`suggested_bots`中提到的同行", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "[pagination](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": "星星数量", "description": "描述 [Telegram Stars](https://core.telegram.org/api/stars.md)] 的真实数量（i.e。可能是小数）。", "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 Stars 的十进制数量，以纳米星表示（i.e。1 纳米星等于 Telegram Star 的`1/1_000_000_000`（十亿分之一））。  该字段也可能为负数（允许的范围是从`-999_999_999`到`999_999_999`）。", "x-telegram-field-docs": true}}, "required": ["_", "amount", "nanos"], "additionalProperties": false}, "starsTonAmount": {"title": "星星吨量", "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "找到贴纸", "x-telegram-field-docs": true}}, "required": ["_", "hash", "stickers"], "additionalProperties": false}, "botVerifierSettings": {"title": "botVerifier设置", "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": "机器人验证", "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": "starGift属性模型", "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 类型：文档。"}, "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 类型：文档。"}, "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": "starGift属性背景", "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": "starGiftAttribute原始详细信息", "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 类型：对等。", "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 类型：对等。"}, "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：用户。"}, "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：用户。"}, "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 Type: 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：用户。"}, "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "`media` 对象中提到的用户。", "x-telegram-field-docs": true}}, "required": ["_", "media", "chats", "users"], "additionalProperties": false}, "savedStarGift": {"title": "保存的星星礼物", "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 类型：对等。", "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 类型：星礼。"}, "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": "三元值：可以不设置、set&true、set&false。  只能为我们拥有的频道设置：该值表示我们是否为此频道[启用礼物通知](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 Type: 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：用户。"}, "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)] 以及礼物的 ID。", "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": "礼物的ID，必须是[messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md)构造函数的`saved_id`。", "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 可用于在 Fragment 上导入导出的 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": "付费反应隐私默认", "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": "付费反应隐私匿名", "description": "匿名发送付费反应。", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyAnonymous"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyAnonymous"]}}, "required": ["_"], "additionalProperties": false}, "paidReactionPrivacyPeer": {"title": "付费反应隐私同行", "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": "要求联系空", "description": "可以自由联系该用户。", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactEmpty"]}}, "required": ["_"], "additionalProperties": false}, "requirementToContactPremium": {"title": "要求联系保费", "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": "要求联系付费消息", "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": "所需数量的【电报星星](https://core.telegram.org/api/stars.md)】。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount"], "additionalProperties": false}, "businessBotRights": {"title": "商业机器人权利", "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": "不允许的礼物设置", "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": "赞助同行", "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 类型：对等。"}, "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 Type: 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：用户。"}, "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)模型的ID。", "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)的图案ID。", "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)的背景ID。", "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": "背景的唯一ID。", "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 类型：星礼。"}, "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 Type: 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：用户。"}, "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": "待定建议", "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": "待办事项", "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": "项目的 ID，当前列表中唯一的正（非零）整数。", "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": "待办事项列表", "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": "待办事项完成", "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 类型：对等。"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "completed_by", "date"], "additionalProperties": false}, "suggestedPost": {"title": "推荐帖子", "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": "星级评定", "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": "明星礼品系列", "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": "集合的 ID。", "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": "生成要传递给 [payments.getStarGiftCollections](https://core.telegram.org/method/payments.getStarGiftCollections.md) 的哈希值时使用 **而不是 `collection_id`** 的字段。", "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": "故事相册", "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": "专辑 ID。", "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：故事专辑。"}, "x-tl-type": "Vector<StoryAlbum>", "description": "专辑。", "x-telegram-field-docs": true}}, "required": ["_", "hash", "albums"], "additionalProperties": false}, "searchPostsFlood": {"title": "搜索帖子洪水", "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": "初始购买价格（以星星为单位）。", "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": "Fragment 链接到当前在 Fragment 上转售的同类型礼品列表。", "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": "个人资料标签帖子", "description": "代表个人资料页面的 [stories](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": "简介标签礼品", "description": "代表个人资料页面的 [gifts](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": "简介标签媒体", "description": "代表个人资料页面的媒体选项卡。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabMedia"]}}, "required": ["_"], "additionalProperties": false}, "profileTabFiles": {"title": "配置文件选项卡文件", "description": "代表配置文件的共享文件选项卡。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabFiles"]}}, "required": ["_"], "additionalProperties": false}, "profileTabMusic": {"title": "个人资料标签音乐", "description": "代表个人资料页面的 [music](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": "个人资料选项卡语音", "description": "代表个人资料页面的语音消息选项卡。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabVoice"]}}, "required": ["_"], "additionalProperties": false}, "profileTabLinks": {"title": "个人资料标签链接", "description": "代表个人资料页面的共享链接选项卡。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabLinks"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabLinks"]}}, "required": ["_"], "additionalProperties": false}, "profileTabGifs": {"title": "个人资料标签Gif", "description": "代表个人资料页面的 gif 选项卡。", "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 类型：文档。"}, "x-tl-type": "Vector<Document>", "description": "歌曲。", "x-telegram-field-docs": true}}, "required": ["_", "count", "documents"], "additionalProperties": false}, "account.savedMusicIdsNotModified": {"title": "account.savedMusicIdsNotModified", "description": "当前固定在我们个人资料上的歌曲 ID 列表（[文档](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": "当前固定在我们的个人资料上的歌曲 ID 列表（[文档](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": "输入聊天主题空", "description": "删除任何当前配置的主题。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatThemeEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatThemeEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatTheme": {"title": "输入聊天主题", "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": "输入聊天主题独特的礼物", "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": "star礼品升级价格", "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": "群呼消息", "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 类型：对等。"}, "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": "群呼捐助者", "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 类型：对等。", "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": "Total Stars 为现场故事捐款", "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 Type: 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：用户。"}, "x-tl-type": "Vector<User>", "description": "`top_donors`中提到的用户", "x-telegram-field-docs": true}}, "required": ["_", "total_stars", "top_donors", "chats", "users"], "additionalProperties": false}, "recentStory": {"title": "最近的故事", "description": "同行的[活跃故事»](https://core.telegram.org/api/stories.md#recent-story-summaries)的摘要，嵌入在[用户](https://core.telegram.org/constructor/user.md).`stories_max_id`和[频道](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`，则为对等方活动的ID [live Story »](https://core.telegram.org/api/stories.md#live-stories);否则，为对等点最大活跃故事的 ID。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_"], "additionalProperties": false}, "auctionBidLevel": {"title": "拍卖出价水平", "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": "明星礼物拍卖州", "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": "starGiftAuction用户状态", "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 类型：对等。", "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": "在`timeout`秒后重新调用[payments.getStarGiftAuctionState](https://core.telegram.org/method/payments.getStarGiftAuctionState.md)方法以继续接收拍卖更新，请参阅[此处»](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：用户。"}, "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 Type: Chat."}, "x-tl-type": "Vector<Chat>", "description": "提及的聊天记录", "x-telegram-field-docs": true}}, "required": ["_", "gift", "state", "user_state", "timeout", "users", "chats"], "additionalProperties": false}, "starGiftAuctionAcquiredGift": {"title": "明星礼物拍卖获得的礼物", "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 类型：对等。"}, "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：用户。"}, "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 Type: 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 类型：星礼。"}, "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：用户。"}, "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 Type: Chat."}, "x-tl-type": "Vector<Chat>", "description": "提及的聊天记录", "x-telegram-field-docs": true}}, "required": ["_", "auctions", "users", "chats"], "additionalProperties": false}, "inputStarGiftAuction": {"title": "输入StarGiftAuction", "description": "用于使用链接的[收藏礼物](https://core.telegram.org/api/gifts.md#collectible-gifts)的ID来获取[拍卖](https://core.telegram.org/api/auctions.md)]。", "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": "输入StarGiftAuctionSlug", "description": "用于使用[拍卖深层链接的片段»](https://core.telegram.org/api/links.md#auction-links)获取[拍卖](https://core.telegram.org/api/auctions.md)。", "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": "密钥", "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": "唯一的密钥 ID，例如可用于 [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)的 ID，用作创建密钥的软件或密码管理器的图标", "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 类型：密钥。"}, "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-encoded object whose `publicKey` field contains a [`PublicKeyCredentialCreationOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions) object.", "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-encoded object whose `publicKey` field contains a [`PublicKeyCredentialRequestOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions) object.", "x-telegram-field-docs": true}}, "required": ["_", "options"], "additionalProperties": false}, "inputPasskeyResponseRegister": {"title": "输入密码响应寄存器", "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": "输入密码响应登录", "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": "输入密码凭证公钥", "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": "[PublicKeyCredential](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential) 的 `id` 字段，在使用 JSON 表示时按原样传递，无需进行 base64url 解码", "x-telegram-field-docs": true}, "raw_id": {"type": "string", "x-tl-type": "string", "description": "[PublicKeyCredential](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential) 的 `rawId` 字段，在使用 JSON 表示时按原样传递，无需进行 base64url 解码", "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": "明星礼物背景", "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": "明星礼物拍卖轮", "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": "starGift拍卖轮可延长", "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": "starGift属性稀有度", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity"]}, "permille": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "permille"], "additionalProperties": false}, "starGiftAttributeRarityUncommon": {"title": "starGift属性稀有度不常见", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityUncommon"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityRare": {"title": "星星礼物属性稀有度Rare", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityRare"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityEpic": {"title": "starGift属性稀有度史诗", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityEpic"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityLegendary": {"title": "starGift属性稀有度传奇", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityLegendary"]}}, "required": ["_"], "additionalProperties": false}, "keyboardButtonStyle": {"title": "键盘按钮样式", "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": "输入消息读取度量", "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": "消息ID", "x-telegram-field-docs": true}, "view_id": {"type": "string", "pattern": "^-?\\d+$", "description": "为此次曝光生成的随机非零 64 位 ID", "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": "包含机器人在使用 [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md) 准备对等请求按钮后应传递给 [迷你应用程序](https://core.telegram.org/api/bots/webapps.md)] 的请求 ID，请参阅[此处 »](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": "小程序请求ID，由机器人传递给小程序，然后返回[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": "代表一条被AI修改过的消息。", "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`），则此字段将使用**仅** [差异实体»](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": "输入AiComposeToneDefault", "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": "输入AiComposeToneID", "description": "通过 ID 和访问哈希引用自定义 [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": "输入AiComposeToneSlug", "description": "通过其公共 slug 引用自定义 [AI 作曲音调 »](https://core.telegram.org/api/ai.md#ai-compose-tones)，在打开 [AI 作曲音调链接 »](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": "ai ComposeTone", "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": "[铃声图标的自定义表情符号ID](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": "描述 AI 应如何使用此语气重新表述消息的提示，长度最多为 [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": "创建此铃声的用户 ID（如果由作者公开）。", "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": "aiComposeTone默认", "description": "内置的默认 [AI 作曲家音调 »](https://core.telegram.org/api/ai.md#ai-compose-tones)，由字符串标识符而不是数字 ID 标识。", "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": "[铃声图标的自定义表情符号ID](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。传递给[aicompose.getTones](https://core.telegram.org/method/aicompose.getTones.md)的`hash`仍然有效）。", "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：用户。"}, "x-tl-type": "Vector<User>", "description": "提及的用户（i.e.铃声的作者）", "x-telegram-field-docs": true}}, "required": ["_", "hash", "tones", "users"], "additionalProperties": false}, "aiComposeToneExample": {"title": "ai ComposeTone示例", "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：用户。"}, "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 类型：更新。"}}, "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：用户。"}, "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 类型：输入照片。"}}, "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 类型：输入文档。"}}, "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 类型：页块。"}, "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 类型：输入照片。"}, "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 类型：输入文档。"}, "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 类型：输入用户。"}, "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 类型：页块。"}, "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 类型：照片。"}, "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 类型：文档。"}, "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 类型：对等。"}}, "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 类型：对等。"}, "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 Type: 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：用户。"}, "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_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL 类型：对等。", "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 类型：消息实体。"}, "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 类型：消息媒体。", "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 类型：回复标记。", "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 Type: 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：用户。"}, "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 类型：输入用户。", "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 类型：输入用户。"}}, "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 类型：键盘按钮样式。", "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 类型：富文本。"}, "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：用户。"}, "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 Type: 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：用户。"}, "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 类型：Web 文档。", "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 类型：Web 文档。", "x-tl-flag": "flags.3?WebDocument"}, "image_small": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "TL 类型：Web 文档。", "x-tl-flag": "flags.4?WebDocument"}, "content_url": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "TL 类型：Web 文档。", "x-tl-flag": "flags.5?WebDocument"}, "lottie": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "TL 类型：Web 文档。", "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 类型：星礼。", "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 类型：反应。"}, "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 类型：星礼。"}}, "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 类型：媒体区域坐标。"}, "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 类型：媒体区域坐标。"}, "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 类型：文档。"}, "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 类型：对等。"}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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 类型：消息。"}}, "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 类型：消息。"}, "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 Type: 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：用户。"}, "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 类型：文档。"}, "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": "AI 编辑器", "communities": "社区", "ephemeral": "临时消息", "toncenter": "TON Center", "wallet": "钱包", "feed": "动态"}}