{"openapi": "3.0.3", "info": {"title": "Telegram MTProto test directory", "version": "0.1.0", "description": "Каталог методов клиентского API Telegram."}, "servers": [{"url": "."}], "tags": [{"name": "システムメソッド", "description": "Global TL Operations."}, {"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": "Execute a request after another one completes successfully", "description": "Telegram will execute the nested request after the previous one succeeds. The client can send both requests in advance. Available to users and bots. [Sequential queries](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 result · `X`.\n\nThe type of X is the same as the result type of the nested method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- `MSG_WAIT_TIMEOUT` — The previous request timed out.\n- `MSG_WAIT_FAILED` — The previous request failed with a RPC error."}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/invokeAfterMsg"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"msg_id": {"type": "string", "pattern": "^-?\\d+$", "description": "The 64-bit transport ID of the previous MTProto request.", "x-tl-type": "long"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "A nested TL request that Telegram will execute after the previous one."}}, "additionalProperties": false, "required": ["msg_id", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `msg_id` | `long` | はい | The 64-bit transport ID of the previous MTProto request. |\n| `query` | `!X` | はい | A nested TL request that Telegram will execute after the previous one. |"}, "x-telegram-rpc-errors": ["MSG_WAIT_TIMEOUT", "MSG_WAIT_FAILED"], "x-browser-schema-id": "3416209197"}}, "/catalog/invokeAfterMsgs": {"post": {"operationId": "invokeAfterMsgs", "tags": ["システムメソッド"], "summary": "Invokes a query after a successful completion of previous queries", "description": "Invokes a query after a successful completion of previous queries", "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 result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "List of messages on which a current query depends"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "The query itself"}}, "additionalProperties": false, "required": ["msg_ids", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `msg_ids` | `Vector<long>` | はい | List of messages on which a current query depends |\n| `query` | `!X` | はい | The query itself |"}, "x-browser-schema-id": "1036301552"}}, "/catalog/initConnection": {"post": {"operationId": "initConnection", "tags": ["システムメソッド"], "summary": "Initialize connection", "description": "Initialize connection\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "initConnection", "x-tl-id": "3251461801", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CONNECTION_LAYER_INVALID` — Layer invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Application identifier (see. [App configuration](https://core.telegram.org/myapp))"}, "device_model": {"type": "string", "x-tl-type": "string", "description": "デバイスモデル"}, "system_version": {"type": "string", "x-tl-type": "string", "description": "Operation system version"}, "app_version": {"type": "string", "x-tl-type": "string", "description": "Application version"}, "system_lang_code": {"type": "string", "x-tl-type": "string", "description": "Code for the language used on the device's OS, ISO 639-1 standard"}, "lang_pack": {"type": "string", "x-tl-type": "string", "description": "Platform identifier (i.e. `android`, `tdesktop`, etc)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links)."}, "proxy": {"type": "object", "x-tl-type": "InputClientProxy", "oneOf": [{"$ref": "#/components/schemas/inputClientProxy"}], "description": "Info about an MTProto proxy", "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": "Additional initConnection parameters.  For now, only the `tz_offset` field is supported, for specifying the timezone offset in seconds.", "x-tl-flag": "flags.1?JSONValue"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "The query itself"}}, "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` | はい | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) |\n| `device_model` | `string` | はい | デバイスモデル |\n| `system_version` | `string` | はい | Operation system version |\n| `app_version` | `string` | はい | Application version |\n| `system_lang_code` | `string` | はい | Code for the language used on the device's OS, ISO 639-1 standard |\n| `lang_pack` | `string` | はい | Platform identifier (i.e. `android`, `tdesktop`, etc). |\n| `lang_code` | `string` | はい | Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links). |\n| `proxy` | `InputClientProxy` | いいえ | Info about an MTProto proxy |\n| `params` | `JSONValue` | いいえ | Additional initConnection parameters.  For now, only the `tz_offset` field is supported, for specifying the timezone offset in seconds. |\n| `query` | `!X` | はい | The query itself |"}, "x-telegram-rpc-errors": ["CONNECTION_LAYER_INVALID"], "x-browser-schema-id": "3251461801"}}, "/catalog/invokeWithLayer": {"post": {"operationId": "invokeWithLayer", "tags": ["システムメソッド"], "summary": "Invoke the specified query using the specified API layer", "description": "Invoke the specified query using the specified API [layer](https://core.telegram.org/api/invoking.md#layers)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Calling API Methods](https://core.telegram.org/api/invoking.md)", "x-tl-method": "invokeWithLayer", "x-tl-id": "3667594509", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Calling API Methods", "https://core.telegram.org/api/invoking.md"]], "responses": {"200": {"description": "MTProto result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AUTH_BYTES_INVALID` — The provided authorization is invalid.\n- 400 · `CDN_METHOD_INVALID` — You can't call this method in a CDN DC.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `CONNECTION_API_ID_INVALID` — The provided API id is invalid.\n- 400 · `CONNECTION_LAYER_INVALID` — Layer invalid.\n- 406 · `INVITE_HASH_EXPIRED` — The invite link has expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The layer to use"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "The query"}}, "additionalProperties": false, "required": ["layer", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `layer` | `int` | はい | The layer to use |\n| `query` | `!X` | はい | The query |"}, "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": "Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).", "description": "Invoke a request without subscribing the used connection for [updates](https://core.telegram.org/api/updates.md) (this is enabled by default for [file queries](https://core.telegram.org/api/files.md)).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "invokeWithoutUpdates", "x-tl-id": "3214170551", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "MTProto result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The query"}}, "additionalProperties": false, "required": ["query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `query` | `!X` | はい | The query |"}, "x-browser-schema-id": "3214170551"}}, "/catalog/invokeWithMessagesRange": {"post": {"operationId": "invokeWithMessagesRange", "tags": ["システムメソッド"], "summary": "Invoke with the given message range", "description": "Invoke with the given message range", "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 result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Message range"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Query"}}, "additionalProperties": false, "required": ["range", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `range` | `MessageRange` | はい | Message range |\n| `query` | `!X` | はい | Query |"}, "x-browser-schema-id": "911373810"}}, "/catalog/invokeWithTakeout": {"post": {"operationId": "invokeWithTakeout", "tags": ["システムメソッド"], "summary": "Invoke a method within a takeout session, see here » for more info.", "description": "Invoke a method within a [takeout session, see here » for more info](https://core.telegram.org/api/takeout.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "invokeWithTakeout", "x-tl-id": "2896821550", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "MTProto result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/invokeWithTakeout"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"takeout_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Takeout session ID »](https://core.telegram.org/api/takeout.md)", "x-tl-type": "long"}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Query"}}, "additionalProperties": false, "required": ["takeout_id", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `takeout_id` | `long` | はい | [Takeout session ID »](https://core.telegram.org/api/takeout.md) |\n| `query` | `!X` | はい | Query |"}, "x-browser-schema-id": "2896821550"}}, "/catalog/invokeWithBusinessConnection": {"post": {"operationId": "invokeWithBusinessConnection", "tags": ["システムメソッド"], "summary": "Invoke a method using a Telegram Business Bot connection, see here » for more info, including a list of the methods that can be wrapped in this constructor.", "description": "Invoke a method using a [Telegram Business Bot connection, see here » for more info, including a list of the methods that can be wrapped in this constructor](https://core.telegram.org/api/bots/connected-business-bots.md).\n\nMake sure to always send queries wrapped in a `invokeWithBusinessConnection` to the datacenter ID, specified in the `dc_id` field of the [botBusinessConnection](https://core.telegram.org/constructor/botBusinessConnection.md) that is being used.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "invokeWithBusinessConnection", "x-tl-id": "3710427022", "x-tl-result": "X", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "MTProto result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Business connection ID."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "The actual query."}}, "additionalProperties": false, "required": ["connection_id", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `connection_id` | `string` | はい | Business connection ID. |\n| `query` | `!X` | はい | The actual query. |"}, "x-browser-schema-id": "3710427022"}}, "/catalog/invokeWithGooglePlayIntegrity": {"post": {"operationId": "invokeWithGooglePlayIntegrity", "tags": ["システムメソッド"], "summary": "Official clients only, invoke with Google Play Integrity token.", "description": "Official clients only, invoke with Google Play Integrity token.", "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 result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Nonce."}, "token": {"type": "string", "x-tl-type": "string", "description": "Token."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Query."}}, "additionalProperties": false, "required": ["nonce", "token", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `nonce` | `string` | はい | Nonce. |\n| `token` | `string` | はい | Token. |\n| `query` | `!X` | はい | Query. |"}, "x-browser-schema-id": "502868356"}}, "/catalog/invokeWithApnsSecret": {"post": {"operationId": "invokeWithApnsSecret", "tags": ["システムメソッド"], "summary": "Official clients only, invoke with Apple push verification.", "description": "Official clients only, invoke with Apple push verification.", "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 result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Nonce."}, "secret": {"type": "string", "x-tl-type": "string", "description": "Secret."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "Query."}}, "additionalProperties": false, "required": ["nonce", "secret", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `nonce` | `string` | はい | Nonce. |\n| `secret` | `string` | はい | Secret. |\n| `query` | `!X` | はい | Query. |"}, "x-browser-schema-id": "229528824"}}, "/catalog/invokeWithReCaptcha": {"post": {"operationId": "invokeWithReCaptcha", "tags": ["システムメソッド"], "summary": "Official clients only: re-execute a method call that required reCAPTCHA verification via a `RECAPTCHA_CHECK_%s__%s`, where the first placeholder is the `action`, and the second one is the reCAPTCHA key ID.", "description": "Official clients only: re-execute a method call that required reCAPTCHA verification via a `RECAPTCHA_CHECK_%s__%s`, where the first placeholder is the `action`, and the second one is the reCAPTCHA key 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 result · `X`.\n\nReturns the type returned by the invoked method.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "X", "additionalProperties": true, "description": "TL type: X."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 token received after verification."}, "query": {"type": "object", "x-tl-type": "!X", "additionalProperties": true, "description": "The original method call."}}, "additionalProperties": false, "required": ["token", "query"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `token` | `string` | はい | reCAPTCHA token received after verification. |\n| `query` | `!X` | はい | The original method call. |"}, "x-browser-schema-id": "2914717588"}}, "/catalog/auth.sendCode": {"post": {"operationId": "auth.sendCode", "tags": ["認証"], "summary": "Send the verification code for login", "description": "Send the verification code for login\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: auth.SentCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `API_ID_INVALID` — API ID invalid.\n- 400 · `API_ID_PUBLISHED_FLOOD` — This API id was published somewhere, you can't use it now.\n- 500 · `AUTH_RESTART` — Restart the authorization process.\n- 500 · `AUTH_RESTART_%d` — Internal error (debug info %d), please repeat the method call.\n- 400 · `PHONE_NUMBER_APP_SIGNUP_FORBIDDEN` — You can't sign up using this app.\n- 400 · `PHONE_NUMBER_BANNED` — The provided phone number is banned from telegram.\n- 400 · `PHONE_NUMBER_FLOOD` — You asked for the code too many times.\n- 406 · `PHONE_NUMBER_INVALID` — The phone number is invalid.\n- 406 · `PHONE_PASSWORD_FLOOD` — You have tried logging in too many times.\n- 400 · `PHONE_PASSWORD_PROTECTED` — This phone is password protected.\n- 400 · `SMS_CODE_CREATE_FAILED` — An error occurred while creating the SMS code.\n- 406 · `UPDATE_APP_TO_LOGIN` — Please update your client to login."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone number in international format"}, "api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Application identifier (see [App configuration](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Application secret hash (see [App configuration](https://core.telegram.org/myapp))"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Settings for the code type to send"}}, "additionalProperties": false, "required": ["phone_number", "api_id", "api_hash", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | Phone number in international format |\n| `api_id` | `int` | はい | Application identifier (see [App configuration](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | はい | Application secret hash (see [App configuration](https://core.telegram.org/myapp)) |\n| `settings` | `CodeSettings` | はい | Settings for the code type to send |"}, "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": "Registers a validated phone number in the system.", "description": "Registers a validated phone number in the system.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FIRSTNAME_INVALID` — The first name is invalid.\n- 400 · `LASTNAME_INVALID` — The last name is invalid.\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing.\n- 400 · `PHONE_CODE_EXPIRED` — The phone code you provided has expired.\n- 400 · `PHONE_CODE_INVALID` — The provided phone code is invalid.\n- 400 · `PHONE_NUMBER_FLOOD` — You asked for the code too many times.\n- 406 · `PHONE_NUMBER_INVALID` — The phone number is invalid.\n- 400 · `PHONE_NUMBER_OCCUPIED` — The phone number is already in use."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, users on Telegram that have already added `phone_number` to their contacts will *not* receive signup notifications about this user."}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "Phone number in the international format"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "SMS-message ID"}, "first_name": {"type": "string", "x-tl-type": "string", "description": "New user first name"}, "last_name": {"type": "string", "x-tl-type": "string", "description": "New user last name"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash", "first_name", "last_name"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `no_joined_notifications` | `true` | いいえ | If set, users on Telegram that have already added `phone_number` to their contacts will *not* receive signup notifications about this user. |\n| `phone_number` | `string` | はい | Phone number in the international format |\n| `phone_code_hash` | `string` | はい | SMS-message ID |\n| `first_name` | `string` | はい | New user first name |\n| `last_name` | `string` | はい | New user last name |"}, "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": "Signs in a user with a validated phone number.", "description": "Signs in a user with a validated phone number.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 500 · `AUTH_RESTART` — Restart the authorization process.\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing.\n- 400 · `PHONE_CODE_EXPIRED` — The phone code you provided has expired.\n- 400 · `PHONE_CODE_INVALID` — The provided phone code is invalid.\n- 406 · `PHONE_NUMBER_INVALID` — The phone number is invalid.\n- 400 · `PHONE_NUMBER_UNOCCUPIED` — The phone number is not yet being used.\n- 500 · `SIGN_IN_FAILED` — Failure while signing in.\n- 406 · `UPDATE_APP_TO_LOGIN` — Please update your client to login."}}, "externalDocs": {"description": "Official Telegram documentation", "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 number in the international format"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "SMS-message ID, obtained from [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": "Valid numerical code from the SMS-message"}, "email_verification": {"type": "object", "x-tl-type": "EmailVerification", "oneOf": [{"$ref": "#/components/schemas/emailVerificationCode"}, {"$ref": "#/components/schemas/emailVerificationGoogle"}, {"$ref": "#/components/schemas/emailVerificationApple"}], "description": "Email verification code or token", "x-tl-flag": "flags.1?EmailVerification"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | Phone number in the international format |\n| `phone_code_hash` | `string` | はい | SMS-message ID, obtained from [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `phone_code` | `string` | いいえ | Valid numerical code from the SMS-message |\n| `email_verification` | `EmailVerification` | いいえ | Email verification code or token |"}, "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": "Logs out the user.", "description": "Logs out the user.", "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 result · `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": "Type TL: auth.LoggedOut."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/auth.logOut"}, "x-browser-schema-id": "1047706137"}}, "/catalog/auth.resetAuthorizations": {"post": {"operationId": "auth.resetAuthorizations", "tags": ["認証"], "summary": "Terminates all user's authorized sessions except for the current one.", "description": "Terminates all user's authorized sessions except for the current one.\n\nAfter calling this method it is necessary to reregister the current device using the method [account.registerDevice](https://core.telegram.org/method/account.registerDevice.md)\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — You can't logout other sessions if less than 24 hours have passed since you logged on the current session."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Returns data for copying authorization to another data-center.", "description": "Returns data for copying authorization to another data-center.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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": "Type TL: auth.ExportedAuthorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DC_ID_INVALID` — The provided DC ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Number of a target data-center"}}, "additionalProperties": false, "required": ["dc_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dc_id` | `int` | はい | Number of a target data-center |"}, "x-telegram-rpc-errors": ["DC_ID_INVALID"], "x-browser-schema-id": "3854565325"}}, "/catalog/auth.importAuthorization": {"post": {"operationId": "auth.importAuthorization", "tags": ["認証"], "summary": "Logs in a user using a key transmitted from his native data-center.", "description": "Logs in a user using a key transmitted from his native data-center.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AUTH_BYTES_INVALID` — The provided authorization is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Authorization key"}}, "additionalProperties": false, "required": ["id", "bytes"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `long` | はい | ユーザーID |\n| `bytes` | `bytes` | はい | Authorization key |"}, "x-telegram-rpc-errors": ["AUTH_BYTES_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "2776268205"}}, "/catalog/auth.bindTempAuthKey": {"post": {"operationId": "auth.bindTempAuthKey", "tags": ["認証"], "summary": "Binds a temporary authorization key `temp_auth_key_id` to the permanent authorization key `perm_auth_key_id`.", "description": "Binds a temporary authorization key `temp_auth_key_id` to the permanent authorization key `perm_auth_key_id`.\n\nFor more information, see [Perfect Forward Secrecy](https://core.telegram.org/api/pfs.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Perfect Forward Secrecy](https://core.telegram.org/api/pfs.md)\n- [﻿Mobile Protocol: Detailed Description](https://core.telegram.org/mtproto/description.md)\n- [Calling API Methods](https://core.telegram.org/api/invoking.md)", "x-tl-method": "auth.bindTempAuthKey", "x-tl-id": "3453233669", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Perfect Forward Secrecy", "https://core.telegram.org/api/pfs.md"], ["﻿Mobile Protocol: Detailed Description", "https://core.telegram.org/mtproto/description.md"], ["Calling API Methods", "https://core.telegram.org/api/invoking.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ENCRYPTED_MESSAGE_INVALID` — Encrypted message invalid.\n- 400 · `EXPIRES_AT_INVALID` — The specified `expires_at` timestamp is invalid.\n- 400 · `TEMP_AUTH_KEY_ALREADY_BOUND` — The passed temporary key is already bound to another **perm_auth_key_id**.\n- 400 · `TEMP_AUTH_KEY_EMPTY` — No temporary auth key provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Permanent auth_key_id to bind to", "x-tl-type": "long"}, "nonce": {"type": "string", "pattern": "^-?\\d+$", "description": "Random long from [Binding message contents](#binding-message-contents)", "x-tl-type": "long"}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents)"}, "encrypted_message": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "See [Generating 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` | はい | Permanent auth_key_id to bind to |\n| `nonce` | `long` | はい | Random long from [Binding message contents](#binding-message-contents) |\n| `expires_at` | `int` | はい | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) |\n| `encrypted_message` | `bytes` | はい | See [Generating 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": "Login as a bot", "description": "Login as a bot\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ACCESS_TOKEN_EXPIRED` — Access token expired.\n- 400 · `ACCESS_TOKEN_INVALID` — Access token invalid.\n- 400 · `API_ID_INVALID` — API ID invalid.\n- 400 · `API_ID_PUBLISHED_FLOOD` — This API id was published somewhere, you can't use it now."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Application identifier (see. [App configuration](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Application identifier hash (see. [App configuration](https://core.telegram.org/myapp))"}, "bot_auth_token": {"type": "string", "x-tl-type": "string", "description": "Bot token (see [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` | はい | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | はい | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) |\n| `bot_auth_token` | `string` | はい | Bot token (see [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": "Try logging to an account protected by a 2FA password.", "description": "Try logging to an account protected by a [2FA password](https://core.telegram.org/api/srp.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.checkPassword", "x-tl-id": "3515567382", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 500 · `AUTH_KEY_UNSYNCHRONIZED` — Internal error, please repeat the method call.\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid.\n- 400 · `SRP_ID_INVALID` — Invalid SRP ID provided.\n- 400 · `SRP_PASSWORD_CHANGED` — Password has changed."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The account's password (see [SRP](https://core.telegram.org/api/srp.md))"}}, "additionalProperties": false, "required": ["password"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | はい | The account's password (see [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": "Request recovery code of a 2FA password, only for accounts with a recovery email configured.", "description": "Request recovery code of a [2FA password](https://core.telegram.org/api/srp.md), only for accounts with a [recovery email configured](https://core.telegram.org/api/srp.md#email-verification).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.requestPasswordRecovery", "x-tl-id": "3633822822", "x-tl-result": "auth.PasswordRecovery", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.PasswordRecovery."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PASSWORD_EMPTY` — The provided password is empty.\n- 400 · `PASSWORD_RECOVERY_NA` — No email was set, can't recover password via email."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery.", "description": "Reset the [2FA password](https://core.telegram.org/api/srp.md) using the recovery code sent using [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.recoverPassword", "x-tl-id": "923364464", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CODE_EMPTY` — The provided code is empty.\n- 400 · `NEW_SETTINGS_INVALID` — The new password settings are invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Code received via email"}, "new_settings": {"type": "object", "x-tl-type": "account.PasswordInputSettings", "oneOf": [{"$ref": "#/components/schemas/account.passwordInputSettings"}], "description": "New password", "x-tl-flag": "flags.0?account.PasswordInputSettings"}}, "additionalProperties": false, "required": ["code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `code` | `string` | はい | Code received via email |\n| `new_settings` | `account.PasswordInputSettings` | いいえ | New password |"}, "x-telegram-rpc-errors": ["CODE_EMPTY", "NEW_SETTINGS_INVALID"], "x-browser-schema-id": "923364464"}}, "/catalog/auth.resendCode": {"post": {"operationId": "auth.resendCode", "tags": ["認証"], "summary": "Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.", "description": "Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see [login](https://core.telegram.org/api/auth.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.resendCode", "x-tl-id": "3403969827", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.SentCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMAIL_INSTALL_MISSING` — Attempting to send a code to the recovery email, but no email is configured.\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing.\n- 400 · `PHONE_CODE_EXPIRED` — The phone code you provided has expired.\n- 400 · `PHONE_CODE_HASH_EMPTY` — phone_code_hash is missing.\n- 406 · `PHONE_NUMBER_INVALID` — The phone number is invalid.\n- 406 · `SEND_CODE_UNAVAILABLE` — Returned when all available options for this type of number were already used (e.g. flash-call, then SMS, then this error might be returned to trigger a second resend)."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The phone number"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "The phone code hash obtained from [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}, "reason": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Official clients only, used if the device integrity verification failed, and no secret could be obtained to invoke [auth.requestFirebaseSms](https://core.telegram.org/method/auth.requestFirebaseSms.md): in this case, the device integrity verification failure reason must be passed here."}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | The phone number |\n| `phone_code_hash` | `string` | はい | The phone code hash obtained from [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `reason` | `string` | いいえ | Official clients only, used if the device integrity verification failed, and no secret could be obtained to invoke [auth.requestFirebaseSms](https://core.telegram.org/method/auth.requestFirebaseSms.md): in this case, the device integrity verification failure reason must be passed here. |"}, "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": "Cancel the login verification code", "description": "Cancel the login verification code\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_CODE_EXPIRED` — The phone code you provided has expired.\n- 406 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone code hash from [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` | はい | Phone code hash from [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": "Delete all temporary authorization keys **except for** the ones specified", "description": "Delete all temporary authorization keys **except for** the ones specified", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The auth keys that **shouldn't** be dropped."}}, "additionalProperties": false, "required": ["except_auth_keys"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `except_auth_keys` | `Vector<long>` | はい | The auth keys that **shouldn't** be dropped. |"}, "x-browser-schema-id": "2387124616"}}, "/catalog/auth.exportLoginToken": {"post": {"operationId": "auth.exportLoginToken", "tags": ["認証"], "summary": "Generate a login token, for login via QR code.  ", "description": "Generate a login token, for [login via QR code](https://core.telegram.org/api/qr-login.md).  \nThe generated login token should be encoded using base64url, then shown as a `tg://login?token=base64encodedtoken` [deep link »](https://core.telegram.org/api/links.md#qr-code-login-links) in the QR code.\n\nFor more info, see [login via QR code](https://core.telegram.org/api/qr-login.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Login via QR code](https://core.telegram.org/api/qr-login.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "auth.exportLoginToken", "x-tl-id": "3084944894", "x-tl-result": "auth.LoginToken", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Login via QR code", "https://core.telegram.org/api/qr-login.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.LoginToken."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `API_ID_INVALID` — API ID invalid.\n- 400 · `API_ID_PUBLISHED_FLOOD` — This API id was published somewhere, you can't use it now.\n- 500 · `AUTH_RESTART` — Restart the authorization process."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Application identifier (see. [App configuration](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Application identifier hash (see. [App configuration](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": "List of already logged-in user IDs, to prevent logging in twice with the same user"}}, "additionalProperties": false, "required": ["api_id", "api_hash", "except_ids"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `api_id` | `int` | はい | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | はい | Application identifier hash (see. [App configuration](https://core.telegram.org/myapp)) |\n| `except_ids` | `Vector<long>` | はい | List of already logged-in user IDs, to prevent logging in twice with the same user |"}, "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": "Login using a redirected login token, generated in case of DC mismatch during QR code login.", "description": "Login using a redirected login token, generated in case of DC mismatch during [QR code login](https://core.telegram.org/api/qr-login.md).\n\nFor more info, see [login via QR code](https://core.telegram.org/api/qr-login.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Login via QR code](https://core.telegram.org/api/qr-login.md)", "x-tl-method": "auth.importLoginToken", "x-tl-id": "2511101156", "x-tl-result": "auth.LoginToken", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Login via QR code", "https://core.telegram.org/api/qr-login.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.LoginToken."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AUTH_TOKEN_ALREADY_ACCEPTED` — The specified auth token was already accepted.\n- 400 · `AUTH_TOKEN_EXPIRED` — The authorization token has expired.\n- 400 · `AUTH_TOKEN_INVALID` — The specified auth token is invalid.\n- 400 · `AUTH_TOKEN_INVALIDX` — The specified auth token is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Login token"}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `token` | `bytes` | はい | Login token |"}, "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": "Accept QR code login token, logging in the app that generated it.", "description": "Accept QR code login token, logging in the app that generated it.\n\nReturns info about the new session.\n\nFor more info, see [login via QR code](https://core.telegram.org/api/qr-login.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Login via QR code](https://core.telegram.org/api/qr-login.md)", "x-tl-method": "auth.acceptLoginToken", "x-tl-id": "3902057805", "x-tl-result": "Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Login via QR code", "https://core.telegram.org/api/qr-login.md"]], "responses": {"200": {"description": "MTProto result · `Authorization`.\n\n[Authorization](https://core.telegram.org/type/Authorization.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Authorization", "oneOf": [{"$ref": "#/components/schemas/authorization"}], "description": "TL Type: Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AUTH_TOKEN_ALREADY_ACCEPTED` — The specified auth token was already accepted.\n- 400 · `AUTH_TOKEN_EXCEPTION` — An error occurred while importing the auth token.\n- 400 · `AUTH_TOKEN_EXPIRED` — The authorization token has expired.\n- 400 · `AUTH_TOKEN_INVALIDX` — The specified auth token is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Login token embedded in QR code, for more info, see [login via QR code](https://core.telegram.org/api/qr-login.md)."}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `token` | `bytes` | はい | Login token embedded in QR code, for more info, see [login via QR code](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": "Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword.", "description": "Check if the [2FA recovery code](https://core.telegram.org/api/srp.md) sent using [auth.requestPasswordRecovery](https://core.telegram.org/method/auth.requestPasswordRecovery.md) is valid, before passing it to [auth.recoverPassword](https://core.telegram.org/method/auth.recoverPassword.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "auth.checkRecoveryPassword", "x-tl-id": "221691769", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CODE_EMPTY` — The provided code is empty.\n- 400 · `PASSWORD_RECOVERY_EXPIRED` — The recovery code has expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Code received via email"}}, "additionalProperties": false, "required": ["code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `code` | `string` | はい | Code received via email |"}, "x-telegram-rpc-errors": ["CODE_EMPTY", "PASSWORD_RECOVERY_EXPIRED"], "x-browser-schema-id": "221691769"}}, "/catalog/auth.importWebTokenAuthorization": {"post": {"operationId": "auth.importWebTokenAuthorization", "tags": ["認証"], "summary": "Login by importing an authorization token", "description": "Login by importing an authorization token\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Creating your Telegram Application](https://core.telegram.org/api/obtaining_api_id.md)", "x-tl-method": "auth.importWebTokenAuthorization", "x-tl-id": "767062953", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Creating your Telegram Application", "https://core.telegram.org/api/obtaining_api_id.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `API_ID_INVALID` — API ID invalid.\n- 400 · `WEBAUTH_TOKEN_EXPIRED` — The specified auth token has expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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 hash](https://core.telegram.org/api/obtaining_api_id.md)"}, "web_auth_token": {"type": "string", "x-tl-type": "string", "description": "The authorization token"}}, "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 hash](https://core.telegram.org/api/obtaining_api_id.md) |\n| `web_auth_token` | `string` | はい | The authorization token |"}, "x-telegram-rpc-errors": ["API_ID_INVALID", "WEBAUTH_TOKEN_EXPIRED"], "x-browser-schema-id": "767062953"}}, "/catalog/auth.requestFirebaseSms": {"post": {"operationId": "auth.requestFirebaseSms", "tags": ["認証"], "summary": "Request an SMS code via Firebase.", "description": "Request an SMS code via Firebase.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.requestFirebaseSms", "x-tl-id": "2386109982", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing.\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone code hash returned by [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": "On Android, a JWS object obtained as described in the [auth documentation »](https://core.telegram.org/api/auth.md)"}, "play_integrity_token": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "On Android, an object obtained as described in the [auth documentation »](https://core.telegram.org/api/auth.md)"}, "ios_push_secret": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Secret token received via an apple push notification"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | 電話番号 |\n| `phone_code_hash` | `string` | はい | Phone code hash returned by [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `safety_net_token` | `string` | いいえ | On Android, a JWS object obtained as described in the [auth documentation »](https://core.telegram.org/api/auth.md) |\n| `play_integrity_token` | `string` | いいえ | On Android, an object obtained as described in the [auth documentation »](https://core.telegram.org/api/auth.md) |\n| `ios_push_secret` | `string` | いいえ | Secret token received via an apple push notification |"}, "x-telegram-rpc-errors": ["PHONE_CODE_EMPTY", "PHONE_NUMBER_INVALID"], "x-browser-schema-id": "2386109982"}}, "/catalog/auth.resetLoginEmail": {"post": {"operationId": "auth.resetLoginEmail", "tags": ["認証"], "summary": "Reset the login email ».", "description": "Reset the [login email »](https://core.telegram.org/api/auth.md#email-verification).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.resetLoginEmail", "x-tl-id": "2123760019", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.SentCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMAIL_INSTALL_MISSING` — Attempting to send a code to the recovery email, but no email is configured.\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid.\n- 400 · `TASK_ALREADY_EXISTS` — An email reset was already requested."}}, "externalDocs": {"description": "Official Telegram documentation", "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 number of the account"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Phone code hash, obtained as described in the [documentation »](https://core.telegram.org/api/auth.md)"}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | Phone number of the account |\n| `phone_code_hash` | `string` | はい | Phone code hash, obtained as described in the [documentation »](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": "Official apps only, reports that the SMS authentication code wasn't delivered.", "description": "Official apps only, reports that the SMS authentication code wasn't delivered.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 number where we were supposed to receive the code"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "The phone code hash obtained from [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) of the current network operator."}}, "additionalProperties": false, "required": ["phone_number", "phone_code_hash", "mnc"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | Phone number where we were supposed to receive the code |\n| `phone_code_hash` | `string` | はい | The phone code hash obtained from [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `mnc` | `string` | はい | [MNC](https://en.wikipedia.org/wiki/Mobile_country_code) of the current network operator. |"}, "x-telegram-rpc-errors": ["PHONE_NUMBER_INVALID"], "x-browser-schema-id": "3416125430"}}, "/catalog/auth.checkPaidAuth": {"post": {"operationId": "auth.checkPaidAuth", "tags": ["認証"], "summary": "Checks the status of a login payment.", "description": "Checks the status of a [login payment](https://core.telegram.org/api/auth.md#paid-auth).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "auth.checkPaidAuth", "x-tl-id": "1457889180", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.SentCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The phone code hash obtained from [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)"}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "The payment form ID passed to [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` | はい | The phone code hash obtained from [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md) |\n| `form_id` | `long` | はい | The payment form ID passed to [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": "Initialize login with a passkey over an unauthenticated connection, see here » for more info.", "description": "Initialize login with a passkey over an unauthenticated connection, see [here »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "auth.initPasskeyLogin", "x-tl-id": "1368051895", "x-tl-result": "auth.PasskeyLoginOptions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.PasskeyLoginOptions."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `API_ID_INVALID` — API ID invalid.\n- 500 · `AUTH_RESTART` — Restart the authorization process."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Application identifier (see [App configuration](https://core.telegram.org/myapp))"}, "api_hash": {"type": "string", "x-tl-type": "string", "description": "Application identifier hash (see [App configuration](https://core.telegram.org/myapp))"}}, "additionalProperties": false, "required": ["api_id", "api_hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `api_id` | `int` | はい | Application identifier (see [App configuration](https://core.telegram.org/myapp)) |\n| `api_hash` | `string` | はい | Application identifier hash (see [App configuration](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": "Complete login with a passkey over an unauthenticated connection, see here » for more info.", "description": "Complete login with a passkey over an unauthenticated connection, see [here »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey) for more info.\n\nMust be sent to the user's native DC, as specified by the `user_handle` (`dcId:userId`) returned in the passkey assertion, see [here »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "auth.finishPasskeyLogin", "x-tl-id": "2555882759", "x-tl-result": "auth.Authorization", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.Authorization."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 500 · `AUTH_RESTART` — Restart the authorization process.\n- 400 · `CREDENTIAL_INVALID` — The specified credential is invalid.\n- 400 · `PASSKEY_ORIGIN_MISMATCH` — Third-party clients currently don't support passkeys even when changing the origin."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Passkey assertion result."}, "from_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "DC ID used for the initial [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) request; set only if the user's DC is different from the DC used for the initial [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md)."}, "from_auth_key_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Auth key ID for the connection to `from_dc_id` (use the permanent auth key ID if PFS is enabled); set only if the user's DC is different from the DC used for the initial [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md).", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["credential"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `credential` | `InputPasskeyCredential` | はい | Passkey assertion result. |\n| `from_dc_id` | `int` | いいえ | DC ID used for the initial [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md) request; set only if the user's DC is different from the DC used for the initial [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md). |\n| `from_auth_key_id` | `long` | いいえ | Auth key ID for the connection to `from_dc_id` (use the permanent auth key ID if PFS is enabled); set only if the user's DC is different from the DC used for the initial [auth.initPasskeyLogin](https://core.telegram.org/method/auth.initPasskeyLogin.md). |"}, "x-telegram-rpc-errors": ["AUTH_RESTART", "CREDENTIAL_INVALID", "PASSKEY_ORIGIN_MISMATCH"], "x-browser-schema-id": "2555882759"}}, "/catalog/auth.cancelWebTokenAuthorization": {"post": {"operationId": "auth.cancelWebTokenAuthorization", "tags": ["認証"], "summary": "auth.cancelWebTokenAuthorization", "description": "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 result · `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 result · `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": "Type 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 result · `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": "Type 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": "Register device to receive PUSH notifications", "description": "Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "account.registerDevice", "x-tl-id": "3968205178", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TOKEN_EMPTY` — The specified token is empty.\n- 400 · `TOKEN_INVALID` — The provided token is invalid.\n- 400 · `TOKEN_TYPE_INVALID` — The specified token type is invalid.\n- 400 · `WEBPUSH_AUTH_INVALID` — The specified web push authentication secret is invalid.\n- 400 · `WEBPUSH_KEY_INVALID` — The specified web push elliptic curve Diffie-Hellman public key is invalid.\n- 400 · `WEBPUSH_TOKEN_INVALID` — The specified web push token is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Avoid receiving (silent and invisible background) notifications. Useful to save battery."}, "token_type": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Device token type, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values."}, "token": {"type": "string", "x-tl-type": "string", "description": "Device token, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values."}, "app_sandbox": {"type": "boolean", "x-tl-type": "Bool", "description": "If [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md) is transmitted, a sandbox-certificate will be used during transmission."}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "For FCM and APNS VoIP, optional encryption key used to encrypt push notifications"}, "other_uids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "List of user identifiers of other users currently using the client"}}, "additionalProperties": false, "required": ["token_type", "token", "app_sandbox", "secret", "other_uids"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `no_muted` | `true` | いいえ | Avoid receiving (silent and invisible background) notifications. Useful to save battery. |\n| `token_type` | `int` | はい | Device token type, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |\n| `token` | `string` | はい | Device token, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |\n| `app_sandbox` | `Bool` | はい | If [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md) is transmitted, a sandbox-certificate will be used during transmission. |\n| `secret` | `bytes` | はい | For FCM and APNS VoIP, optional encryption key used to encrypt push notifications |\n| `other_uids` | `Vector<long>` | はい | List of user identifiers of other users currently using the client |"}, "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": "Deletes a device by its token, stops sending PUSH-notifications to it.", "description": "Deletes a device by its token, stops sending PUSH-notifications to it.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "account.unregisterDevice", "x-tl-id": "1779249670", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TOKEN_INVALID` — The provided token is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Device token type, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values."}, "token": {"type": "string", "x-tl-type": "string", "description": "Device token, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values."}, "other_uids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "List of user identifiers of other users currently using the client"}}, "additionalProperties": false, "required": ["token_type", "token", "other_uids"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `token_type` | `int` | はい | Device token type, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |\n| `token` | `string` | はい | Device token, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |\n| `other_uids` | `Vector<long>` | はい | List of user identifiers of other users currently using the client |"}, "x-telegram-rpc-errors": ["TOKEN_INVALID"], "x-browser-schema-id": "1779249670"}}, "/catalog/account.updateNotifySettings": {"post": {"operationId": "account.updateNotifySettings", "tags": ["アカウント"], "summary": "Edits notification settings from a given user/group, from all users/all groups.", "description": "Edits notification settings from a given user/group, from all users/all groups.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SETTINGS_INVALID` — Invalid settings were provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Notification source"}, "settings": {"type": "object", "x-tl-type": "InputPeerNotifySettings", "oneOf": [{"$ref": "#/components/schemas/inputPeerNotifySettings"}], "description": "Notification settings"}}, "additionalProperties": false, "required": ["peer", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputNotifyPeer` | はい | Notification source |\n| `settings` | `InputPeerNotifySettings` | はい | Notification settings |"}, "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": "Gets current notification settings for a given user/group, from all users/all groups.", "description": "Gets current notification settings for a given user/group, from all users/all groups.\n\n**Who can call this method** · Telegram users only.", "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 result · `PeerNotifySettings`.\n\n[PeerNotifySettings](https://core.telegram.org/type/PeerNotifySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "PeerNotifySettings", "oneOf": [{"$ref": "#/components/schemas/peerNotifySettings"}], "description": "TL Type: PeerNotifySettings."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Notification source"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputNotifyPeer` | はい | Notification source |"}, "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": "Resets all notification settings from users and groups.", "description": "Resets all notification settings from users and groups.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.resetNotifySettings"}, "x-browser-schema-id": "3682473799"}}, "/catalog/account.updateProfile": {"post": {"operationId": "account.updateProfile", "tags": ["アカウント"], "summary": "Updates user profile.", "description": "Updates user profile.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateProfile", "x-tl-id": "2018596725", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `User`.\n\n[User](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": "Type TL: User."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ABOUT_TOO_LONG` — About string too long.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `FIRSTNAME_INVALID` — The first name is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New user first name"}, "last_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "New user last name"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "New bio"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `first_name` | `string` | いいえ | New user first name |\n| `last_name` | `string` | いいえ | New user last name |\n| `about` | `string` | いいえ | New bio |"}, "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": "Updates online user status.", "description": "Updates online user status.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md) is transmitted, user status will change to [(userStatusOffline)](https://core.telegram.org/constructor/userStatusOffline.md)."}}, "additionalProperties": false, "required": ["offline"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `offline` | `Bool` | はい | If [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md) is transmitted, user status will change to [(userStatusOffline)](https://core.telegram.org/constructor/userStatusOffline.md). |"}, "x-browser-schema-id": "1713919532"}}, "/catalog/account.getWallPapers": {"post": {"operationId": "account.getWallPapers", "tags": ["アカウント"], "summary": "Returns a list of available wallpapers.", "description": "Returns a list of available [wallpapers](https://core.telegram.org/api/wallpapers.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.getWallPapers", "x-tl-id": "127302966", "x-tl-result": "account.WallPapers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: account.WallPapers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getWallPapers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "127302966"}}, "/catalog/account.reportPeer": {"post": {"operationId": "account.reportPeer", "tags": ["アカウント"], "summary": "Report a peer for violation of telegram's Terms of Service", "description": "Report a peer for violation of telegram's Terms of Service\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer to report"}, "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": "The reason why this peer is being reported"}, "message": {"type": "string", "x-tl-type": "string", "description": "Comment for report moderation"}}, "additionalProperties": false, "required": ["peer", "reason", "message"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer to report |\n| `reason` | `ReportReason` | はい | The reason why this peer is being reported |\n| `message` | `string` | はい | Comment for report moderation |"}, "x-telegram-rpc-errors": ["CHANNEL_PRIVATE", "PEER_ID_INVALID"], "x-browser-schema-id": "3317316998"}}, "/catalog/account.checkUsername": {"post": {"operationId": "account.checkUsername", "tags": ["アカウント"], "summary": "Validates a username and checks availability.", "description": "Validates a username and checks availability.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_OCCUPIED` — The provided username is already occupied.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — The specified username can be purchased on https://fragment.com."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "username Accepted characters: A-z (case-insensitive), 0-9 and underscores. Length: 5-32 characters."}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `username` | `string` | はい | username Accepted characters: A-z (case-insensitive), 0-9 and underscores. Length: 5-32 characters. |"}, "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": "Changes username for the current user.", "description": "Changes username for the current user.\n\n**Who can call this method** · Telegram users only.", "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 result · `User`.\n\n[User](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": "Type TL: User."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_NOT_MODIFIED` — The username was not modified.\n- 400 · `USERNAME_OCCUPIED` — The provided username is already occupied.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — The specified username can be purchased on https://fragment.com."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "username or empty string if username is to be removed Accepted characters: a-z (case-insensitive), 0-9 and underscores. Length: 5-32 characters."}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `username` | `string` | はい | username or empty string if username is to be removed Accepted characters: a-z (case-insensitive), 0-9 and underscores. Length: 5-32 characters. |"}, "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": "Get privacy settings", "description": "Reads the current account privacy rules for the selected category.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: account.PrivacyRules."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PRIVACY_KEY_INVALID` — The privacy key is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Privacy category, such as phone number visibility."}}, "additionalProperties": false, "required": ["key"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `key` | `InputPrivacyKey` | はい | Privacy category, such as phone number visibility. |"}, "x-telegram-rpc-errors": ["PRIVACY_KEY_INVALID"], "x-browser-schema-id": "3671837008"}}, "/catalog/account.setPrivacy": {"post": {"operationId": "account.setPrivacy", "tags": ["アカウント"], "summary": "Change privacy settings of current account", "description": "Change privacy settings of current account\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: account.PrivacyRules."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PRIVACY_KEY_INVALID` — The privacy key is invalid.\n- 400 · `PRIVACY_TOO_LONG` — Too many privacy rules were specified, the current limit is 1000.\n- 400 · `PRIVACY_VALUE_INVALID` — The specified privacy rule combination is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New privacy rule"}, "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 Type: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "Peers to which the privacy rule will apply."}}, "additionalProperties": false, "required": ["key", "rules"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `key` | `InputPrivacyKey` | はい | New privacy rule |\n| `rules` | `Vector<InputPrivacyRule>` | はい | Peers to which the privacy rule will apply. |"}, "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": "Delete the user's account from the telegram servers.", "description": "Delete the user's account from the telegram servers.\n\nCan also be used to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured, see [here »](https://core.telegram.org/api/srp.md#password-recovery) for more info on password recovery, and [here »](https://core.telegram.org/api/account-deletion.md) for more info on account deletion.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Account deletion](https://core.telegram.org/api/account-deletion.md)", "x-tl-method": "account.deleteAccount", "x-tl-id": "2730545012", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Account deletion", "https://core.telegram.org/api/account-deletion.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 420 · `2FA_CONFIRM_WAIT_%d` — Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in %d seconds.\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Why is the account being deleted, can be empty"}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "[2FA password](https://core.telegram.org/api/srp.md): this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days [as specified in the docs »](https://core.telegram.org/api/account-deletion.md)", "x-tl-flag": "flags.0?InputCheckPasswordSRP"}}, "additionalProperties": false, "required": ["reason"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `reason` | `string` | はい | Why is the account being deleted, can be empty |\n| `password` | `InputCheckPasswordSRP` | いいえ | [2FA password](https://core.telegram.org/api/srp.md): this field can be omitted even for accounts with 2FA enabled: in this case account account deletion will be delayed by 7 days [as specified in the docs »](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": "Get days to live of account", "description": "Get days to live of account", "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 result · `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 Type: AccountDaysTTL."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getAccountTTL"}, "x-browser-schema-id": "150761757"}}, "/catalog/account.setAccountTTL": {"post": {"operationId": "account.setAccountTTL", "tags": ["アカウント"], "summary": "Set account self-destruction period", "description": "Set account self-destruction period\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TTL_DAYS_INVALID` — The provided TTL is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Time to live in days"}}, "additionalProperties": false, "required": ["ttl"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `ttl` | `AccountDaysTTL` | はい | Time to live in days |"}, "x-telegram-rpc-errors": ["TTL_DAYS_INVALID"], "x-browser-schema-id": "608323678"}}, "/catalog/account.sendChangePhoneCode": {"post": {"operationId": "account.sendChangePhoneCode", "tags": ["アカウント"], "summary": "Verify a new phone number to associate to the current account", "description": "Verify a new phone number to associate to the current account\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: auth.SentCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `FRESH_CHANGE_PHONE_FORBIDDEN` — You can't change phone number right after logging in, please wait at least 24 hours.\n- 400 · `PHONE_NUMBER_BANNED` — The provided phone number is banned from telegram.\n- 406 · `PHONE_NUMBER_INVALID` — The phone number is invalid.\n- 400 · `PHONE_NUMBER_OCCUPIED` — The phone number is already in use."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New phone number"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Phone code settings"}}, "additionalProperties": false, "required": ["phone_number", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | New phone number |\n| `settings` | `CodeSettings` | はい | Phone code settings |"}, "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": "Change the phone number of the current account", "description": "Change the phone number of the current account\n\n**Who can call this method** · Telegram users only.", "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 result · `User`.\n\n[User](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": "Type TL: User."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing.\n- 400 · `PHONE_CODE_EXPIRED` — The phone code you provided has expired.\n- 400 · `PHONE_CODE_INVALID` — The provided phone code is invalid.\n- 406 · `PHONE_NUMBER_INVALID` — The phone number is invalid.\n- 400 · `PHONE_NUMBER_OCCUPIED` — The phone number is already in use."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New phone number"}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "Phone code hash received when calling [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md)"}, "phone_code": {"type": "string", "x-tl-type": "string", "description": "Phone code received when calling [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` | はい | New phone number |\n| `phone_code_hash` | `string` | はい | Phone code hash received when calling [account.sendChangePhoneCode](https://core.telegram.org/method/account.sendChangePhoneCode.md) |\n| `phone_code` | `string` | はい | Phone code received when calling [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": "When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.", "description": "When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "account.updateDeviceLocked", "x-tl-id": "954152242", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Inactivity period after which to start hiding message texts in [PUSH notifications](https://core.telegram.org/api/push-updates.md)."}}, "additionalProperties": false, "required": ["period"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `period` | `int` | はい | Inactivity period after which to start hiding message texts in [PUSH notifications](https://core.telegram.org/api/push-updates.md). |"}, "x-browser-schema-id": "954152242"}}, "/catalog/account.getAuthorizations": {"post": {"operationId": "account.getAuthorizations", "tags": ["アカウント"], "summary": "Get logged-in sessions", "description": "Get logged-in sessions", "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 result · `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 type: account.Authorizations."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getAuthorizations"}, "x-browser-schema-id": "3810574680"}}, "/catalog/account.resetAuthorization": {"post": {"operationId": "account.resetAuthorization", "tags": ["アカウント"], "summary": "Log out an active authorized session by its hash", "description": "Log out an active [authorized session](https://core.telegram.org/api/auth.md) by its hash\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "account.resetAuthorization", "x-tl-id": "3749180348", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — You can't logout other sessions if less than 24 hours have passed since you logged on the current session.\n- 400 · `HASH_INVALID` — The provided hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.resetAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Session hash", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | Session hash |"}, "x-telegram-rpc-errors": ["FRESH_RESET_AUTHORISATION_FORBIDDEN", "HASH_INVALID"], "x-browser-schema-id": "3749180348"}}, "/catalog/account.getPassword": {"post": {"operationId": "account.getPassword", "tags": ["アカウント"], "summary": "Obtain configuration for two-factor authorization with password", "description": "Obtain configuration for two-factor authorization with password\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: account.Password."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getPassword"}, "x-browser-schema-id": "1418342645"}}, "/catalog/account.getPasswordSettings": {"post": {"operationId": "account.getPasswordSettings", "tags": ["アカウント"], "summary": "Get private info associated to the password info (recovery email, telegram passport info &amp; so on)", "description": "Get private info associated to the password info (recovery email, telegram [passport](https://core.telegram.org/passport.md) info &amp; so on)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.getPasswordSettings", "x-tl-id": "2631199481", "x-tl-result": "account.PasswordSettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.PasswordSettings."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The password (see [SRP](https://core.telegram.org/api/srp.md))"}}, "additionalProperties": false, "required": ["password"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | はい | The password (see [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": "Set a new 2FA password", "description": "Set a new 2FA password\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.updatePasswordSettings", "x-tl-id": "2778402863", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMAIL_INVALID` — The specified email is invalid.\n- 400 · `EMAIL_UNCONFIRMED` — Email unconfirmed.\n- 400 · `EMAIL_UNCONFIRMED_%d` — The provided email isn't confirmed, %d is the length of the verification code that was just sent to the email: use [account.verifyEmail](https://core.telegram.org/method/account.verifyEmail.md) to enter the received verification code and enable the recovery email.\n- 400 · `NEW_SALT_INVALID` — The new salt is invalid.\n- 400 · `NEW_SETTINGS_EMPTY` — No password is set on the current account, and no new password was specified in `new_settings`.\n- 400 · `NEW_SETTINGS_INVALID` — The new password settings are invalid.\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid.\n- 400 · `SRP_ID_INVALID` — Invalid SRP ID provided.\n- 400 · `SRP_PASSWORD_CHANGED` — Password has changed."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The old password (see [SRP](https://core.telegram.org/api/srp.md))"}, "new_settings": {"type": "object", "x-tl-type": "account.PasswordInputSettings", "oneOf": [{"$ref": "#/components/schemas/account.passwordInputSettings"}], "description": "The new password (see [SRP](https://core.telegram.org/api/srp.md))"}}, "additionalProperties": false, "required": ["password", "new_settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | はい | The old password (see [SRP](https://core.telegram.org/api/srp.md)) |\n| `new_settings` | `account.PasswordInputSettings` | はい | The new password (see [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": "Send confirmation code to cancel account deletion, for more info click here »", "description": "Send confirmation code to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Account deletion](https://core.telegram.org/api/account-deletion.md)", "x-tl-method": "account.sendConfirmPhoneCode", "x-tl-id": "457157256", "x-tl-result": "auth.SentCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Account deletion", "https://core.telegram.org/api/account-deletion.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: auth.SentCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `HASH_INVALID` — The provided hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The hash from the service notification, for more info [click here »](https://core.telegram.org/api/account-deletion.md)"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Phone code settings"}}, "additionalProperties": false, "required": ["hash", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `string` | はい | The hash from the service notification, for more info [click here »](https://core.telegram.org/api/account-deletion.md) |\n| `settings` | `CodeSettings` | はい | Phone code settings |"}, "x-telegram-rpc-errors": ["HASH_INVALID"], "x-browser-schema-id": "457157256"}}, "/catalog/account.confirmPhone": {"post": {"operationId": "account.confirmPhone", "tags": ["アカウント"], "summary": "Confirm a phone number to cancel account deletion, for more info click here »", "description": "Confirm a phone number to cancel account deletion, for more info [click here »](https://core.telegram.org/api/account-deletion.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Account deletion](https://core.telegram.org/api/account-deletion.md)", "x-tl-method": "account.confirmPhone", "x-tl-id": "1596029123", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Account deletion", "https://core.telegram.org/api/account-deletion.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CODE_HASH_INVALID` — Code hash invalid.\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone code hash, for more info [click here »](https://core.telegram.org/api/account-deletion.md)"}, "phone_code": {"type": "string", "x-tl-type": "string", "description": "SMS code, for more info [click here »](https://core.telegram.org/api/account-deletion.md)"}}, "additionalProperties": false, "required": ["phone_code_hash", "phone_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_code_hash` | `string` | はい | Phone code hash, for more info [click here »](https://core.telegram.org/api/account-deletion.md) |\n| `phone_code` | `string` | はい | SMS code, for more info [click here »](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": "Get temporary payment password", "description": "Get temporary payment password\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: account.TmpPassword."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid.\n- 400 · `SRP_A_INVALID` — The specified inputCheckPasswordSRP.A value is invalid.\n- 400 · `TMP_PASSWORD_DISABLED` — The temporary password is disabled."}}, "externalDocs": {"description": "Official Telegram documentation", "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 password parameters"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Time during which the temporary password will be valid, in seconds; should be between 60 and 86400"}}, "additionalProperties": false, "required": ["password", "period"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `password` | `InputCheckPasswordSRP` | はい | SRP password parameters |\n| `period` | `int` | はい | Time during which the temporary password will be valid, in seconds; should be between 60 and 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": "Get web login widget authorizations", "description": "Get web [login widget](https://core.telegram.org/widgets/login.md) authorizations\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: account.WebAuthorizations."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getWebAuthorizations"}, "x-browser-schema-id": "405695855"}}, "/catalog/account.resetWebAuthorization": {"post": {"operationId": "account.resetWebAuthorization", "tags": ["アカウント"], "summary": "Log out an active web telegram login session", "description": "Log out an active web [telegram login](https://core.telegram.org/widgets/login.md) session\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `HASH_INVALID` — The provided hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.resetWebAuthorization"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Session](https://core.telegram.org/constructor/webAuthorization.md) hash", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Session](https://core.telegram.org/constructor/webAuthorization.md) hash |"}, "x-telegram-rpc-errors": ["HASH_INVALID"], "x-browser-schema-id": "755087855"}}, "/catalog/account.resetWebAuthorizations": {"post": {"operationId": "account.resetWebAuthorizations", "tags": ["アカウント"], "summary": "Reset all active web telegram login sessions", "description": "Reset all active web [telegram login](https://core.telegram.org/widgets/login.md) sessions\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.resetWebAuthorizations"}, "x-browser-schema-id": "1747789204"}}, "/catalog/account.getAllSecureValues": {"post": {"operationId": "account.getAllSecureValues", "tags": ["アカウント"], "summary": "Get all saved Telegram Passport documents, for more info see the passport docs »", "description": "Get all saved [Telegram Passport](https://core.telegram.org/passport.md) documents, [for more info see the passport docs »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Who can call this method** · Telegram users only.", "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 result · `Vector<SecureValue>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[SecureValue](https://core.telegram.org/type/SecureValue.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "oneOf": [{"$ref": "#/components/schemas/secureValue"}], "description": "TL Type: SecureValue."}, "x-tl-type": "Vector<SecureValue>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getAllSecureValues"}, "x-browser-schema-id": "2995305597"}}, "/catalog/account.getSecureValue": {"post": {"operationId": "account.getSecureValue", "tags": ["アカウント"], "summary": "Get saved Telegram Passport document, for more info see the passport docs »", "description": "Get saved [Telegram Passport](https://core.telegram.org/passport.md) document, [for more info see the passport docs »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Who can call this method** · Telegram users only.", "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 result · `Vector<SecureValue>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[SecureValue](https://core.telegram.org/type/SecureValue.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "oneOf": [{"$ref": "#/components/schemas/secureValue"}], "description": "TL Type: SecureValue."}, "x-tl-type": "Vector<SecureValue>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: SecureValueType."}, "x-tl-type": "Vector<SecureValueType>", "description": "Requested value types"}}, "additionalProperties": false, "required": ["types"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `types` | `Vector<SecureValueType>` | はい | Requested value types |"}, "x-browser-schema-id": "1936088002"}}, "/catalog/account.saveSecureValue": {"post": {"operationId": "account.saveSecureValue", "tags": ["アカウント"], "summary": "Securely save Telegram Passport document, for more info see the passport docs »", "description": "Securely save [Telegram Passport](https://core.telegram.org/passport.md) document, [for more info see the passport docs »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.saveSecureValue", "x-tl-id": "2308956957", "x-tl-result": "SecureValue", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto Result · `SecureValue`.\n\n[SecureValue](https://core.telegram.org/type/SecureValue.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "SecureValue", "oneOf": [{"$ref": "#/components/schemas/secureValue"}], "description": "TL Type: SecureValue."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PASSWORD_REQUIRED` — A [2FA password](https://core.telegram.org/api/srp.md) must be configured to use Telegram Passport.\n- 400 · `SECURE_SECRET_REQUIRED` — A secure secret is required."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Passport secret hash, [for more info see the passport docs »](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` | はい | Passport secret hash, [for more info see the passport docs »](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": "Delete stored Telegram Passport documents, for more info see the passport docs »", "description": "Delete stored [Telegram Passport](https://core.telegram.org/passport.md) documents, [for more info see the passport docs »](https://core.telegram.org/passport/encryption.md#encryption)\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: SecureValueType."}, "x-tl-type": "Vector<SecureValueType>", "description": "Document types to delete"}}, "additionalProperties": false, "required": ["types"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `types` | `Vector<SecureValueType>` | はい | Document types to delete |"}, "x-browser-schema-id": "3095444555"}}, "/catalog/account.getAuthorizationForm": {"post": {"operationId": "account.getAuthorizationForm", "tags": ["アカウント"], "summary": "Returns a Telegram Passport authorization form for sharing data with a service", "description": "Returns a Telegram Passport authorization form for sharing data with a service\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: account.AuthorizationForm."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `PUBLIC_KEY_REQUIRED` — A public key is required."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "User identifier of the service's bot", "x-tl-type": "long"}, "scope": {"type": "string", "x-tl-type": "string", "description": "Telegram Passport element types requested by the service"}, "public_key": {"type": "string", "x-tl-type": "string", "description": "Service's public key"}}, "additionalProperties": false, "required": ["bot_id", "scope", "public_key"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot_id` | `long` | はい | User identifier of the service's bot |\n| `scope` | `string` | はい | Telegram Passport element types requested by the service |\n| `public_key` | `string` | はい | Service's public key |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "PUBLIC_KEY_REQUIRED"], "x-browser-schema-id": "2838059386"}}, "/catalog/account.acceptAuthorization": {"post": {"operationId": "account.acceptAuthorization", "tags": ["アカウント"], "summary": "Sends a Telegram Passport authorization form, effectively sharing data with the service", "description": "Sends a Telegram Passport authorization form, effectively sharing data with the service\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `PUBLIC_KEY_REQUIRED` — A public key is required."}}, "externalDocs": {"description": "Official Telegram documentation", "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 element types requested by the service"}, "public_key": {"type": "string", "x-tl-type": "string", "description": "Service's public key"}, "value_hashes": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueHash", "oneOf": [{"$ref": "#/components/schemas/secureValueHash"}], "description": "TL Type: SecureValueHash."}, "x-tl-type": "Vector<SecureValueHash>", "description": "Types of values sent and their hashes"}, "credentials": {"type": "object", "x-tl-type": "SecureCredentialsEncrypted", "oneOf": [{"$ref": "#/components/schemas/secureCredentialsEncrypted"}], "description": "Encrypted values"}}, "additionalProperties": false, "required": ["bot_id", "scope", "public_key", "value_hashes", "credentials"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot_id` | `long` | はい | ボットID |\n| `scope` | `string` | はい | Telegram Passport element types requested by the service |\n| `public_key` | `string` | はい | Service's public key |\n| `value_hashes` | `Vector<SecureValueHash>` | はい | Types of values sent and their hashes |\n| `credentials` | `SecureCredentialsEncrypted` | はい | Encrypted values |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "PUBLIC_KEY_REQUIRED"], "x-browser-schema-id": "4092415091"}}, "/catalog/account.sendVerifyPhoneCode": {"post": {"operationId": "account.sendVerifyPhoneCode", "tags": ["アカウント"], "summary": "Send the verification phone code for telegram passport.", "description": "Send the verification phone code for telegram [passport](https://core.telegram.org/passport.md).\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: auth.SentCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The phone number to verify"}, "settings": {"type": "object", "x-tl-type": "CodeSettings", "oneOf": [{"$ref": "#/components/schemas/codeSettings"}], "description": "Phone code settings"}}, "additionalProperties": false, "required": ["phone_number", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone_number` | `string` | はい | The phone number to verify |\n| `settings` | `CodeSettings` | はい | Phone code settings |"}, "x-telegram-rpc-errors": ["PHONE_NUMBER_INVALID"], "x-browser-schema-id": "2778945273"}}, "/catalog/account.verifyPhone": {"post": {"operationId": "account.verifyPhone", "tags": ["アカウント"], "summary": "Verify a phone number for telegram passport.", "description": "Verify a phone number for telegram [passport](https://core.telegram.org/passport.md).\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing.\n- 400 · `PHONE_CODE_EXPIRED` — The phone code you provided has expired.\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone code hash received from the call to [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md)"}, "phone_code": {"type": "string", "x-tl-type": "string", "description": "Code received after the call to [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` | はい | Phone code hash received from the call to [account.sendVerifyPhoneCode](https://core.telegram.org/method/account.sendVerifyPhoneCode.md) |\n| `phone_code` | `string` | はい | Code received after the call to [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": "Send an email verification code.", "description": "Send an email verification code.\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: account.SentEmailCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMAIL_INVALID` — The specified email is invalid.\n- 400 · `EMAIL_NOT_ALLOWED` — The specified email cannot be used to complete the operation.\n- 400 · `EMAIL_NOT_SETUP` — In order to change the login email with emailVerifyPurposeLoginChange, an existing login email must already be set using emailVerifyPurposeLoginSetup.\n- 400 · `PHONE_CODE_EMPTY` — phone_code is missing.\n- 400 · `PHONE_HASH_EXPIRED` — An invalid or expired `phone_code_hash` was provided.\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Verification purpose."}, "email": {"type": "string", "x-tl-type": "string", "description": "The email where to send the code."}}, "additionalProperties": false, "required": ["purpose", "email"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `purpose` | `EmailVerifyPurpose` | はい | Verification purpose. |\n| `email` | `string` | はい | The email where to send the code. |"}, "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": "Verify an email address.", "description": "Verify an email address.\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: account.EmailVerified."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CODE_INVALID` — Code invalid.\n- 400 · `EMAIL_INVALID` — The specified email is invalid.\n- 400 · `EMAIL_NOT_ALLOWED` — The specified email cannot be used to complete the operation.\n- 400 · `EMAIL_VERIFY_EXPIRED` — The verification email has expired.\n- 400 · `PHONE_CODE_EXPIRED` — The phone code you provided has expired.\n- 400 · `PHONE_NUMBER_INVALID` — The phone number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 purpose"}, "verification": {"type": "object", "x-tl-type": "EmailVerification", "oneOf": [{"$ref": "#/components/schemas/emailVerificationCode"}, {"$ref": "#/components/schemas/emailVerificationGoogle"}, {"$ref": "#/components/schemas/emailVerificationApple"}], "description": "Email verification code or token"}}, "additionalProperties": false, "required": ["purpose", "verification"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `purpose` | `EmailVerifyPurpose` | はい | Verification purpose |\n| `verification` | `EmailVerification` | はい | Email verification code or token |"}, "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": "Initialize a takeout session, see here » for more info.", "description": "Initialize a [takeout session, see here » for more info](https://core.telegram.org/api/takeout.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "account.initTakeoutSession", "x-tl-id": "2398350000", "x-tl-result": "account.Takeout", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.Takeout."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 420 · `TAKEOUT_INIT_DELAY_%d` — Sorry, for security reasons, you will be able to begin downloading your data in %d seconds. We have notified all your devices about the export request to make sure it's authorized and to give you time to react if it's not."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to export contacts"}, "message_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether to export messages in private chats"}, "message_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Whether to export messages in [basic groups](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": "Whether to export messages in [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": "Whether to export messages in [channels](https://core.telegram.org/api/channel.md#channels)"}, "files": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Whether to export files"}, "file_max_size": {"type": "string", "pattern": "^-?\\d+$", "description": "Maximum size of files to export", "x-tl-type": "long", "x-tl-flag": "flags.5?long"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `contacts` | `true` | いいえ | Whether to export contacts |\n| `message_users` | `true` | いいえ | Whether to export messages in private chats |\n| `message_chats` | `true` | いいえ | Whether to export messages in [basic groups](https://core.telegram.org/api/channel.md#basic-groups) |\n| `message_megagroups` | `true` | いいえ | Whether to export messages in [supergroups](https://core.telegram.org/api/channel.md#supergroups) |\n| `message_channels` | `true` | いいえ | Whether to export messages in [channels](https://core.telegram.org/api/channel.md#channels) |\n| `files` | `true` | いいえ | Whether to export files |\n| `file_max_size` | `long` | いいえ | Maximum size of files to export |"}, "x-telegram-rpc-errors": ["TAKEOUT_INIT_DELAY_%d"], "x-browser-schema-id": "2398350000"}}, "/catalog/account.finishTakeoutSession": {"post": {"operationId": "account.finishTakeoutSession", "tags": ["アカウント"], "summary": "Terminate a takeout session, see here » for more info.", "description": "Terminate a [takeout session, see here » for more info](https://core.telegram.org/api/takeout.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "account.finishTakeoutSession", "x-tl-id": "489050862", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `TAKEOUT_REQUIRED` — A [takeout](https://core.telegram.org/api/takeout.md) session needs to be initialized first, [see here &raquo; for more info](https://core.telegram.org/api/takeout.md)."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Data exported successfully"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `success` | `true` | いいえ | Data exported successfully |"}, "x-telegram-rpc-errors": ["TAKEOUT_REQUIRED"], "x-browser-schema-id": "489050862"}}, "/catalog/account.confirmPasswordEmail": {"post": {"operationId": "account.confirmPasswordEmail", "tags": ["アカウント"], "summary": "Verify an email to use as 2FA recovery method.", "description": "Verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.confirmPasswordEmail", "x-tl-id": "2413762848", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CODE_INVALID` — Code invalid.\n- 400 · `EMAIL_HASH_EXPIRED` — Email hash expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The phone code that was received after [setting a recovery email](https://core.telegram.org/api/srp.md#email-verification)"}}, "additionalProperties": false, "required": ["code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `code` | `string` | はい | The phone code that was received after [setting a recovery email](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": "Resend the code to verify an email to use as 2FA recovery method.", "description": "Resend the code to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.resendPasswordEmail", "x-tl-id": "2055154197", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMAIL_HASH_EXPIRED` — Email hash expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Cancel the code that was sent to verify an email to use as 2FA recovery method.", "description": "Cancel the code that was sent to verify an email to use as [2FA recovery method](https://core.telegram.org/api/srp.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.cancelPasswordEmail", "x-tl-id": "3251361206", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMAIL_HASH_EXPIRED` — Email hash expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the user will receive notifications when contacts sign up", "description": "Whether the user will receive notifications when contacts sign up", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getContactSignUpNotification"}, "x-browser-schema-id": "2668087080"}}, "/catalog/account.setContactSignUpNotification": {"post": {"operationId": "account.setContactSignUpNotification", "tags": ["アカウント"], "summary": "Toggle contact sign up notifications", "description": "Toggle contact sign up notifications", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to disable contact sign up notifications"}}, "additionalProperties": false, "required": ["silent"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `Bool` | はい | Whether to disable contact sign up notifications |"}, "x-browser-schema-id": "3488890721"}}, "/catalog/account.getNotifyExceptions": {"post": {"operationId": "account.getNotifyExceptions", "tags": ["アカウント"], "summary": "Returns list of chats with non-default notification settings", "description": "Returns list of chats with non-default notification settings", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, chats with non-default sound will be returned"}, "compare_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "If set, chats with non-default notification settings for stories will be returned"}, "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": "If specified, only chats of the specified category will be returned", "x-tl-flag": "flags.0?InputNotifyPeer"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `compare_sound` | `true` | いいえ | If set, chats with non-default sound will be returned |\n| `compare_stories` | `true` | いいえ | If set, chats with non-default notification settings for stories will be returned |\n| `peer` | `InputNotifyPeer` | いいえ | If specified, only chats of the specified category will be returned |"}, "x-browser-schema-id": "1398240377"}}, "/catalog/account.getWallPaper": {"post": {"operationId": "account.getWallPaper", "tags": ["アカウント"], "summary": "Get info about a certain wallpaper", "description": "Get info about a certain [wallpaper](https://core.telegram.org/api/wallpapers.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.getWallPaper", "x-tl-id": "4237155306", "x-tl-result": "WallPaper", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `WallPaper`.\n\n[WallPaper](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 Type: WallPaper."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `WALLPAPER_INVALID` — The specified wallpaper is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [wallpaper](https://core.telegram.org/api/wallpapers.md) to get info about"}}, "additionalProperties": false, "required": ["wallpaper"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `wallpaper` | `InputWallPaper` | はい | The [wallpaper](https://core.telegram.org/api/wallpapers.md) to get info about |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "4237155306"}}, "/catalog/account.uploadWallPaper": {"post": {"operationId": "account.uploadWallPaper", "tags": ["アカウント"], "summary": "Create and upload a new wallpaper", "description": "Create and upload a new [wallpaper](https://core.telegram.org/api/wallpapers.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.uploadWallPaper", "x-tl-id": "3818557187", "x-tl-result": "WallPaper", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `WallPaper`.\n\n[WallPaper](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 Type: WallPaper."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `WALLPAPER_FILE_INVALID` — The specified wallpaper file is invalid.\n- 400 · `WALLPAPER_MIME_INVALID` — The specified wallpaper MIME type is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag when uploading wallpapers to be passed to [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": "The JPG/PNG wallpaper"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME type of uploaded wallpaper"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "Wallpaper settings"}}, "additionalProperties": false, "required": ["file", "mime_type", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_chat` | `true` | いいえ | Set this flag when uploading wallpapers to be passed to [messages.setChatWallPaper](https://core.telegram.org/method/messages.setChatWallPaper.md). |\n| `file` | `InputFile` | はい | The JPG/PNG wallpaper |\n| `mime_type` | `string` | はい | MIME type of uploaded wallpaper |\n| `settings` | `WallPaperSettings` | はい | Wallpaper settings |"}, "x-telegram-rpc-errors": ["WALLPAPER_FILE_INVALID", "WALLPAPER_MIME_INVALID"], "x-browser-schema-id": "3818557187"}}, "/catalog/account.saveWallPaper": {"post": {"operationId": "account.saveWallPaper", "tags": ["アカウント"], "summary": "Install/uninstall wallpaper", "description": "Install/uninstall [wallpaper](https://core.telegram.org/api/wallpapers.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.saveWallPaper", "x-tl-id": "1817860919", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `WALLPAPER_INVALID` — The specified wallpaper is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Wallpaper](https://core.telegram.org/api/wallpapers.md) to install or uninstall"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Uninstall wallpaper?"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "Wallpaper settings"}}, "additionalProperties": false, "required": ["wallpaper", "unsave", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `wallpaper` | `InputWallPaper` | はい | [Wallpaper](https://core.telegram.org/api/wallpapers.md) to install or uninstall |\n| `unsave` | `Bool` | はい | Uninstall wallpaper? |\n| `settings` | `WallPaperSettings` | はい | Wallpaper settings |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "1817860919"}}, "/catalog/account.installWallPaper": {"post": {"operationId": "account.installWallPaper", "tags": ["アカウント"], "summary": "Install wallpaper", "description": "Install [wallpaper](https://core.telegram.org/api/wallpapers.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.installWallPaper", "x-tl-id": "4276967273", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `WALLPAPER_INVALID` — The specified wallpaper is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Wallpaper](https://core.telegram.org/api/wallpapers.md) to install"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "[Wallpaper](https://core.telegram.org/api/wallpapers.md) settings"}}, "additionalProperties": false, "required": ["wallpaper", "settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `wallpaper` | `InputWallPaper` | はい | [Wallpaper](https://core.telegram.org/api/wallpapers.md) to install |\n| `settings` | `WallPaperSettings` | はい | [Wallpaper](https://core.telegram.org/api/wallpapers.md) settings |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "4276967273"}}, "/catalog/account.resetWallPapers": {"post": {"operationId": "account.resetWallPapers", "tags": ["アカウント"], "summary": "Delete all installed wallpapers, reverting to the default wallpaper set.", "description": "Delete all installed [wallpapers](https://core.telegram.org/api/wallpapers.md), reverting to the default wallpaper set.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.resetWallPapers", "x-tl-id": "3141244932", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.resetWallPapers"}, "x-browser-schema-id": "3141244932"}}, "/catalog/account.getAutoDownloadSettings": {"post": {"operationId": "account.getAutoDownloadSettings", "tags": ["アカウント"], "summary": "Get media autodownload settings", "description": "Get media autodownload settings", "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 result · `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 type: account.AutoDownloadSettings."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getAutoDownloadSettings"}, "x-browser-schema-id": "1457130303"}}, "/catalog/account.saveAutoDownloadSettings": {"post": {"operationId": "account.saveAutoDownloadSettings", "tags": ["アカウント"], "summary": "Change media autodownload settings", "description": "Change media autodownload settings", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to save media in the low data usage preset"}, "high": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether to save media in the high data usage preset"}, "settings": {"type": "object", "x-tl-type": "AutoDownloadSettings", "oneOf": [{"$ref": "#/components/schemas/autoDownloadSettings"}], "description": "メディアの自動ダウンロード設定"}}, "additionalProperties": false, "required": ["settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `low` | `true` | いいえ | Whether to save media in the low data usage preset |\n| `high` | `true` | いいえ | Whether to save media in the high data usage preset |\n| `settings` | `AutoDownloadSettings` | はい | メディアの自動ダウンロード設定 |"}, "x-browser-schema-id": "1995661875"}}, "/catalog/account.uploadTheme": {"post": {"operationId": "account.uploadTheme", "tags": ["アカウント"], "summary": "Upload theme", "description": "Upload theme\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram themes](https://core.telegram.org/api/themes.md)", "x-tl-method": "account.uploadTheme", "x-tl-id": "473805619", "x-tl-result": "Document", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram themes", "https://core.telegram.org/api/themes.md"]], "responses": {"200": {"description": "MTProto result · `Document`.\n\n[Document](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 Type: Document."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `THEME_FILE_INVALID` — Invalid theme file provided.\n- 400 · `THEME_MIME_INVALID` — The theme's MIME type is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Previously uploaded](https://core.telegram.org/api/themes.md#uploading-theme-files) theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors."}, "thumb": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Thumbnail", "x-tl-flag": "flags.0?InputFile"}, "file_name": {"type": "string", "x-tl-type": "string", "description": "File name"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME type, must be `application/x-tgtheme-{format}`, where `format` depends on the client"}}, "additionalProperties": false, "required": ["file", "file_name", "mime_type"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file` | `InputFile` | はい | [Previously uploaded](https://core.telegram.org/api/themes.md#uploading-theme-files) theme file with platform-specific colors for UI components, can be left unset when creating themes that only modify the wallpaper or accent colors. |\n| `thumb` | `InputFile` | いいえ | Thumbnail |\n| `file_name` | `string` | はい | File name |\n| `mime_type` | `string` | はい | MIME type, must be `application/x-tgtheme-{format}`, where `format` depends on the client |"}, "x-telegram-rpc-errors": ["THEME_FILE_INVALID", "THEME_MIME_INVALID"], "x-browser-schema-id": "473805619"}}, "/catalog/account.createTheme": {"post": {"operationId": "account.createTheme", "tags": ["アカウント"], "summary": "Create a theme", "description": "Create a theme\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "account.createTheme", "x-tl-id": "1697530880", "x-tl-result": "Theme", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Theme`.\n\n[Theme](https://core.telegram.org/type/Theme.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Theme", "oneOf": [{"$ref": "#/components/schemas/theme"}], "description": "TL Type: Theme."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `THEME_MIME_INVALID` — The theme's MIME type is invalid.\n- 400 · `THEME_TITLE_INVALID` — The specified theme title is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Unique theme ID used to generate [theme deep links](https://core.telegram.org/api/links.md#theme-links), can be empty to autogenerate a random 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": "Theme file", "x-tl-flag": "flags.2?InputDocument"}, "settings": {"type": "array", "items": {"type": "object", "x-tl-type": "InputThemeSettings", "oneOf": [{"$ref": "#/components/schemas/inputThemeSettings"}], "description": "TL Type: InputThemeSettings."}, "x-tl-type": "Vector<InputThemeSettings>", "x-tl-flag": "flags.3?Vector<InputThemeSettings>", "description": "Theme settings, multiple values can be provided for the different base themes (day/night mode, etc)."}}, "additionalProperties": false, "required": ["slug", "title"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | Unique theme ID used to generate [theme deep links](https://core.telegram.org/api/links.md#theme-links), can be empty to autogenerate a random ID. |\n| `title` | `string` | はい | テーマ名 |\n| `document` | `InputDocument` | いいえ | Theme file |\n| `settings` | `Vector<InputThemeSettings>` | いいえ | Theme settings, multiple values can be provided for the different base themes (day/night mode, etc). |"}, "x-telegram-rpc-errors": ["THEME_MIME_INVALID", "THEME_TITLE_INVALID"], "x-browser-schema-id": "1697530880"}}, "/catalog/account.updateTheme": {"post": {"operationId": "account.updateTheme", "tags": ["アカウント"], "summary": "Update theme", "description": "Update theme\n\n**Who can call this method** · Telegram users only.", "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 result · `Theme`.\n\n[Theme](https://core.telegram.org/type/Theme.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Theme", "oneOf": [{"$ref": "#/components/schemas/theme"}], "description": "TL Type: Theme."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `THEME_INVALID` — Invalid theme provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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 format, a string that identifies the theming engines supported by the client"}, "theme": {"type": "object", "x-tl-type": "InputTheme", "oneOf": [{"$ref": "#/components/schemas/inputTheme"}, {"$ref": "#/components/schemas/inputThemeSlug"}], "description": "Theme to update"}, "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": "Theme file", "x-tl-flag": "flags.2?InputDocument"}, "settings": {"type": "array", "items": {"type": "object", "x-tl-type": "InputThemeSettings", "oneOf": [{"$ref": "#/components/schemas/inputThemeSettings"}], "description": "TL Type: InputThemeSettings."}, "x-tl-type": "Vector<InputThemeSettings>", "x-tl-flag": "flags.3?Vector<InputThemeSettings>", "description": "テーマの設定"}}, "additionalProperties": false, "required": ["format", "theme"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `format` | `string` | はい | Theme format, a string that identifies the theming engines supported by the client |\n| `theme` | `InputTheme` | はい | Theme to update |\n| `slug` | `string` | いいえ | 一意のテーマ ID |\n| `title` | `string` | いいえ | テーマ名 |\n| `document` | `InputDocument` | いいえ | Theme file |\n| `settings` | `Vector<InputThemeSettings>` | いいえ | テーマの設定 |"}, "x-telegram-rpc-errors": ["THEME_INVALID"], "x-browser-schema-id": "737414348"}}, "/catalog/account.saveTheme": {"post": {"operationId": "account.saveTheme", "tags": ["アカウント"], "summary": "Save a theme", "description": "Save a theme\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `THEME_INVALID` — Invalid theme provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Theme to save"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Unsave"}}, "additionalProperties": false, "required": ["theme", "unsave"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `theme` | `InputTheme` | はい | Theme to save |\n| `unsave` | `Bool` | はい | Unsave |"}, "x-telegram-rpc-errors": ["THEME_INVALID"], "x-browser-schema-id": "4065792108"}}, "/catalog/account.installTheme": {"post": {"operationId": "account.installTheme", "tags": ["アカウント"], "summary": "Install a theme", "description": "Install a theme", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to install the dark version"}, "theme": {"type": "object", "x-tl-type": "InputTheme", "oneOf": [{"$ref": "#/components/schemas/inputTheme"}, {"$ref": "#/components/schemas/inputThemeSlug"}], "description": "Theme to install", "x-tl-flag": "flags.1?InputTheme"}, "format": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Theme format, a string that identifies the theming engines supported by the client"}, "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": "Indicates a basic theme provided by all clients", "x-tl-flag": "flags.3?BaseTheme"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dark` | `true` | いいえ | Whether to install the dark version |\n| `theme` | `InputTheme` | いいえ | Theme to install |\n| `format` | `string` | いいえ | Theme format, a string that identifies the theming engines supported by the client |\n| `base_theme` | `BaseTheme` | いいえ | Indicates a basic theme provided by all clients |"}, "x-browser-schema-id": "3341269819"}}, "/catalog/account.getTheme": {"post": {"operationId": "account.getTheme", "tags": ["アカウント"], "summary": "Get theme information", "description": "Get theme information\n\n**Who can call this method** · Telegram users only.", "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 result · `Theme`.\n\n[Theme](https://core.telegram.org/type/Theme.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Theme", "oneOf": [{"$ref": "#/components/schemas/theme"}], "description": "TL Type: Theme."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `THEME_FORMAT_INVALID` — Invalid theme format provided.\n- 400 · `THEME_INVALID` — Invalid theme provided.\n- 400 · `THEME_SLUG_INVALID` — The specified theme slug is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 format, a string that identifies the theming engines supported by the client"}, "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` | はい | Theme format, a string that identifies the theming engines supported by the client |\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": "Get installed themes", "description": "Get installed themes\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "account.getThemes", "x-tl-id": "1913054296", "x-tl-result": "account.Themes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: account.Themes."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Theme format, a string that identifies the theming engines supported by the client"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["format", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `format` | `string` | はい | Theme format, a string that identifies the theming engines supported by the client |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1913054296"}}, "/catalog/account.setContentSettings": {"post": {"operationId": "account.setContentSettings", "tags": ["アカウント"], "summary": "Set sensitive content settings (for viewing or hiding NSFW content)", "description": "Set sensitive content settings (for viewing or hiding NSFW content)\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `SENSITIVE_CHANGE_FORBIDDEN` — You can't change your sensitive content settings."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Enable NSFW content"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `sensitive_enabled` | `true` | いいえ | Enable NSFW content |"}, "x-telegram-rpc-errors": ["SENSITIVE_CHANGE_FORBIDDEN"], "x-browser-schema-id": "3044323691"}}, "/catalog/account.getContentSettings": {"post": {"operationId": "account.getContentSettings", "tags": ["アカウント"], "summary": "Get sensitive content settings", "description": "Get sensitive content settings", "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 result · `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 type: account.ContentSettings."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getContentSettings"}, "x-browser-schema-id": "2342210990"}}, "/catalog/account.getMultiWallPapers": {"post": {"operationId": "account.getMultiWallPapers", "tags": ["アカウント"], "summary": "Get info about multiple wallpapers", "description": "Get info about multiple [wallpapers](https://core.telegram.org/api/wallpapers.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "account.getMultiWallPapers", "x-tl-id": "1705865692", "x-tl-result": "Vector<WallPaper>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `Vector<WallPaper>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[WallPaper](https://core.telegram.org/type/WallPaper.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "WallPaper", "oneOf": [{"$ref": "#/components/schemas/wallPaper"}, {"$ref": "#/components/schemas/wallPaperNoFile"}], "description": "TL Type: WallPaper."}, "x-tl-type": "Vector<WallPaper>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `WALLPAPER_INVALID` — The specified wallpaper is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputWallPaper."}, "x-tl-type": "Vector<InputWallPaper>", "description": "[Wallpapers](https://core.telegram.org/api/wallpapers.md) to fetch info about"}}, "additionalProperties": false, "required": ["wallpapers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `wallpapers` | `Vector<InputWallPaper>` | はい | [Wallpapers](https://core.telegram.org/api/wallpapers.md) to fetch info about |"}, "x-telegram-rpc-errors": ["WALLPAPER_INVALID"], "x-browser-schema-id": "1705865692"}}, "/catalog/account.getGlobalPrivacySettings": {"post": {"operationId": "account.getGlobalPrivacySettings", "tags": ["アカウント"], "summary": "Get global privacy settings", "description": "Get global privacy settings", "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 result · `GlobalPrivacySettings`.\n\n[GlobalPrivacySettings](https://core.telegram.org/type/GlobalPrivacySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "GlobalPrivacySettings", "oneOf": [{"$ref": "#/components/schemas/globalPrivacySettings"}], "description": "TL Type: GlobalPrivacySettings."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getGlobalPrivacySettings"}, "x-browser-schema-id": "3945483510"}}, "/catalog/account.setGlobalPrivacySettings": {"post": {"operationId": "account.setGlobalPrivacySettings", "tags": ["アカウント"], "summary": "Set global privacy settings", "description": "Set global privacy settings\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.setGlobalPrivacySettings", "x-tl-id": "517647042", "x-tl-result": "GlobalPrivacySettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `GlobalPrivacySettings`.\n\n[GlobalPrivacySettings](https://core.telegram.org/type/GlobalPrivacySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "GlobalPrivacySettings", "oneOf": [{"$ref": "#/components/schemas/globalPrivacySettings"}], "description": "TL Type: GlobalPrivacySettings."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AUTOARCHIVE_NOT_AVAILABLE` — The autoarchive setting is not available at this time: please check the value of the [autoarchive_setting_available field in client config&nbsp;&raquo;](https://core.telegram.org/api/config.md#client-configuration) before calling this method.\n- 403 · `BOT_ACCESS_FORBIDDEN` — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Report a profile photo of a dialog", "description": "Report a profile photo of a dialog\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Dialog photo 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": "Report reason"}, "message": {"type": "string", "x-tl-type": "string", "description": "Comment for report moderation"}}, "additionalProperties": false, "required": ["peer", "photo_id", "reason", "message"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ダイアログ |\n| `photo_id` | `InputPhoto` | はい | Dialog photo ID |\n| `reason` | `ReportReason` | はい | Report reason |\n| `message` | `string` | はい | Comment for report moderation |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "4203529973"}}, "/catalog/account.resetPassword": {"post": {"operationId": "account.resetPassword", "tags": ["アカウント"], "summary": "Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info »", "description": "Initiate a 2FA password reset: can only be used if the user is already logged-in, [see here for more info »](https://core.telegram.org/api/srp.md#password-reset)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.resetPassword", "x-tl-id": "2466827803", "x-tl-result": "account.ResetPasswordResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: account.ResetPasswordResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PASSWORD_EMPTY` — The provided password is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Abort a pending 2FA password reset, see here for more info »", "description": "Abort a pending 2FA password reset, [see here for more info »](https://core.telegram.org/api/srp.md#password-reset)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "account.declinePasswordReset", "x-tl-id": "1284770294", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `RESET_REQUEST_MISSING` — No password reset is in progress."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get all available chat themes ».", "description": "Get all available chat [themes »](https://core.telegram.org/api/themes.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram themes](https://core.telegram.org/api/themes.md)", "x-tl-method": "account.getChatThemes", "x-tl-id": "3594051209", "x-tl-result": "account.Themes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram themes", "https://core.telegram.org/api/themes.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: account.Themes."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getChatThemes"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3594051209"}}, "/catalog/account.setAuthorizationTTL": {"post": {"operationId": "account.setAuthorizationTTL", "tags": ["アカウント"], "summary": "Set time-to-live of current session", "description": "Set time-to-live of current session\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — You can't logout other sessions if less than 24 hours have passed since you logged on the current session.\n- 400 · `TTL_DAYS_INVALID` — The provided TTL is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Time-to-live of current session in days"}}, "additionalProperties": false, "required": ["authorization_ttl_days"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `authorization_ttl_days` | `int` | はい | Time-to-live of current session in days |"}, "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": "Change settings related to a session.", "description": "Change settings related to a session.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "account.changeAuthorizationSettings", "x-tl-id": "1089766498", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `HASH_INVALID` — The provided hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, [confirms a newly logged in session »](https://core.telegram.org/api/auth.md#confirming-login)."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Session ID from the [authorization](https://core.telegram.org/constructor/authorization.md) constructor, fetchable using [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": "Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed"}, "call_requests_disabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool", "description": "Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `confirmed` | `true` | いいえ | If set, [confirms a newly logged in session »](https://core.telegram.org/api/auth.md#confirming-login). |\n| `hash` | `long` | はい | Session ID from the [authorization](https://core.telegram.org/constructor/authorization.md) constructor, fetchable using [account.getAuthorizations](https://core.telegram.org/method/account.getAuthorizations.md) |\n| `encrypted_requests_disabled` | `Bool` | いいえ | Whether to enable or disable receiving encrypted chats: if the flag is not set, the previous setting is not changed |\n| `call_requests_disabled` | `Bool` | いいえ | Whether to enable or disable receiving calls: if the flag is not set, the previous setting is not changed |"}, "x-telegram-rpc-errors": ["HASH_INVALID"], "x-browser-schema-id": "1089766498"}}, "/catalog/account.getSavedRingtones": {"post": {"operationId": "account.getSavedRingtones", "tags": ["アカウント"], "summary": "Fetch saved notification sounds", "description": "Fetch saved notification sounds\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "account.getSavedRingtones", "x-tl-id": "3784319624", "x-tl-result": "account.SavedRingtones", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.SavedRingtones."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getSavedRingtones"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3784319624"}}, "/catalog/account.saveRingtone": {"post": {"operationId": "account.saveRingtone", "tags": ["アカウント"], "summary": "Save or remove saved notification sound.", "description": "Save or remove saved notification sound.\n\nIf the notification sound is already in MP3 format, [account.savedRingtone](https://core.telegram.org/constructor/account.savedRingtone.md) will be returned.  \nOtherwise, it will be automatically converted and a [account.savedRingtoneConverted](https://core.telegram.org/constructor/account.savedRingtoneConverted.md) will be returned, containing a new [document](https://core.telegram.org/constructor/document.md) object that should be used to refer to the ringtone from now on (ie when deleting it using the `unsave` parameter, or when downloading it).\n\n**Who can call this method** · Telegram users only.", "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 Result · `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": "Type TL: account.SavedRingtone."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `RINGTONE_INVALID` — The specified ringtone is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Notification sound uploaded using [account.uploadRingtone](https://core.telegram.org/method/account.uploadRingtone.md)"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to add or delete the notification sound"}}, "additionalProperties": false, "required": ["id", "unsave"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | はい | Notification sound uploaded using [account.uploadRingtone](https://core.telegram.org/method/account.uploadRingtone.md) |\n| `unsave` | `Bool` | はい | Whether to add or delete the notification sound |"}, "x-telegram-rpc-errors": ["RINGTONE_INVALID"], "x-browser-schema-id": "1038768899"}}, "/catalog/account.uploadRingtone": {"post": {"operationId": "account.uploadRingtone", "tags": ["アカウント"], "summary": "Upload notification sound, use account.saveRingtone to convert it and add it to the list of saved notification sounds.", "description": "Upload notification sound, use [account.saveRingtone](https://core.telegram.org/method/account.saveRingtone.md) to convert it and add it to the list of saved notification sounds.\n\n**Who can call this method** · Telegram users only.", "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 result · `Document`.\n\n[Document](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 Type: Document."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `RINGTONE_MIME_INVALID` — The MIME type for the ringtone is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Notification sound"}, "file_name": {"type": "string", "x-tl-type": "string", "description": "File name"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME type of file"}}, "additionalProperties": false, "required": ["file", "file_name", "mime_type"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file` | `InputFile` | はい | Notification sound |\n| `file_name` | `string` | はい | File name |\n| `mime_type` | `string` | はい | MIME type of file |"}, "x-telegram-rpc-errors": ["RINGTONE_MIME_INVALID"], "x-browser-schema-id": "2199552930"}}, "/catalog/account.updateEmojiStatus": {"post": {"operationId": "account.updateEmojiStatus", "tags": ["アカウント"], "summary": "Set an emoji status", "description": "Set an [emoji status](https://core.telegram.org/api/emoji-status.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.updateEmojiStatus", "x-tl-id": "4224966251", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `COLLECTIBLE_INVALID` — The specified collectible is invalid.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Emoji status](https://core.telegram.org/api/emoji-status.md) to set"}}, "additionalProperties": false, "required": ["emoji_status"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `emoji_status` | `EmojiStatus` | はい | [Emoji status](https://core.telegram.org/api/emoji-status.md) to set |"}, "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": "Get a list of default suggested emoji statuses", "description": "Get a list of default suggested [emoji statuses](https://core.telegram.org/api/emoji-status.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getDefaultEmojiStatuses", "x-tl-id": "3598005126", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getDefaultEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3598005126"}}, "/catalog/account.getRecentEmojiStatuses": {"post": {"operationId": "account.getRecentEmojiStatuses", "tags": ["アカウント"], "summary": "Get recently used emoji statuses", "description": "Get recently used [emoji statuses](https://core.telegram.org/api/emoji-status.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getRecentEmojiStatuses", "x-tl-id": "257392901", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getRecentEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "257392901"}}, "/catalog/account.clearRecentEmojiStatuses": {"post": {"operationId": "account.clearRecentEmojiStatuses", "tags": ["アカウント"], "summary": "Clears list of recently used emoji statuses", "description": "Clears list of recently used [emoji statuses](https://core.telegram.org/api/emoji-status.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.clearRecentEmojiStatuses", "x-tl-id": "404757166", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.clearRecentEmojiStatuses"}, "x-browser-schema-id": "404757166"}}, "/catalog/account.reorderUsernames": {"post": {"operationId": "account.reorderUsernames", "tags": ["アカウント"], "summary": "Reorder usernames associated with the currently logged-in user.", "description": "Reorder usernames associated with the currently logged-in user.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ORDER_INVALID` — The specified username order is invalid.\n- 400 · `USERNAME_NOT_MODIFIED` — The username was not modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The new order for active usernames. All active usernames must be specified."}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `order` | `Vector<string>` | はい | The new order for active usernames. All active usernames must be specified. |"}, "x-telegram-rpc-errors": ["ORDER_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "4015001259"}}, "/catalog/account.toggleUsername": {"post": {"operationId": "account.toggleUsername", "tags": ["アカウント"], "summary": "Activate or deactivate a purchased fragment.com username associated to the currently logged-in user.", "description": "Activate or deactivate a purchased [fragment.com](https://fragment.com) username associated to the currently logged-in user.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USERNAMES_ACTIVE_TOO_MUCH` — The maximum number of active usernames was reached.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_NOT_MODIFIED` — The username was not modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to activate or deactivate it"}}, "additionalProperties": false, "required": ["username", "active"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `username` | `string` | はい | ユーザー名 |\n| `active` | `Bool` | はい | Whether to activate or deactivate it |"}, "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": "Get a set of suggested custom emoji stickers that can be used as profile picture", "description": "Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji.md) that can be [used as profile picture](https://core.telegram.org/api/files.md#sticker-profile-pictures)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "account.getDefaultProfilePhotoEmojis", "x-tl-id": "3799319336", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "MTProto result · `EmojiList`.\n\n[EmojiList](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 Type: EmojiList."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getDefaultProfilePhotoEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3799319336"}}, "/catalog/account.getDefaultGroupPhotoEmojis": {"post": {"operationId": "account.getDefaultGroupPhotoEmojis", "tags": ["アカウント"], "summary": "Get a set of suggested custom emoji stickers that can be used as group picture", "description": "Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji.md) that can be [used as group picture](https://core.telegram.org/api/files.md#sticker-profile-pictures)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "account.getDefaultGroupPhotoEmojis", "x-tl-id": "2438488238", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "MTProto result · `EmojiList`.\n\n[EmojiList](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 Type: EmojiList."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getDefaultGroupPhotoEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2438488238"}}, "/catalog/account.getAutoSaveSettings": {"post": {"operationId": "account.getAutoSaveSettings", "tags": ["アカウント"], "summary": "Get autosave settings", "description": "Get autosave settings", "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 result · `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 type: account.AutoSaveSettings."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getAutoSaveSettings"}, "x-browser-schema-id": "2915810522"}}, "/catalog/account.saveAutoSaveSettings": {"post": {"operationId": "account.saveAutoSaveSettings", "tags": ["アカウント"], "summary": "Modify autosave settings", "description": "Modify autosave settings\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "account.saveAutoSaveSettings", "x-tl-id": "3600515937", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the new settings should affect all private chats"}, "chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether the new settings should affect all groups"}, "broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Whether the new settings should affect all [channels](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": "Whether the new settings should affect a specific peer", "x-tl-flag": "flags.3?InputPeer"}, "settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "oneOf": [{"$ref": "#/components/schemas/autoSaveSettings"}], "description": "The new autosave settings"}}, "additionalProperties": false, "required": ["settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `users` | `true` | いいえ | Whether the new settings should affect all private chats |\n| `chats` | `true` | いいえ | Whether the new settings should affect all groups |\n| `broadcasts` | `true` | いいえ | Whether the new settings should affect all [channels](https://core.telegram.org/api/channel.md) |\n| `peer` | `InputPeer` | いいえ | Whether the new settings should affect a specific peer |\n| `settings` | `AutoSaveSettings` | はい | The new autosave settings |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3600515937"}}, "/catalog/account.deleteAutoSaveExceptions": {"post": {"operationId": "account.deleteAutoSaveExceptions", "tags": ["アカウント"], "summary": "Clear all peer-specific autosave settings.", "description": "Clear all peer-specific autosave settings.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.deleteAutoSaveExceptions"}, "x-browser-schema-id": "1404829728"}}, "/catalog/account.invalidateSignInCodes": {"post": {"operationId": "account.invalidateSignInCodes", "tags": ["アカウント"], "summary": "Invalidate the specified login codes, see here » for more info.", "description": "Invalidate the specified login codes, see [here »](https://core.telegram.org/api/auth.md#invalidating-login-codes) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "account.invalidateSignInCodes", "x-tl-id": "3398101178", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The login codes to invalidate."}}, "additionalProperties": false, "required": ["codes"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `codes` | `Vector<string>` | はい | The login codes to invalidate. |"}, "x-browser-schema-id": "3398101178"}}, "/catalog/account.updateColor": {"post": {"operationId": "account.updateColor", "tags": ["アカウント"], "summary": "Update the accent color and background custom emoji » of the current account.", "description": "Update the [accent color and background custom emoji »](https://core.telegram.org/api/colors.md) of the current account.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "account.updateColor", "x-tl-id": "1749885262", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `COLOR_INVALID` — The specified color palette ID was invalid.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed."}, "color": {"type": "object", "x-tl-type": "PeerColor", "oneOf": [{"$ref": "#/components/schemas/peerColor"}, {"$ref": "#/components/schemas/peerColorCollectible"}, {"$ref": "#/components/schemas/inputPeerColorCollectible"}], "description": "[ID of the accent color palette »](https://core.telegram.org/api/colors.md) to use (not RGB24, see [here »](https://core.telegram.org/api/colors.md) for more info).", "x-tl-flag": "flags.2?PeerColor"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_profile` | `true` | いいえ | Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed. |\n| `color` | `PeerColor` | いいえ | [ID of the accent color palette »](https://core.telegram.org/api/colors.md) to use (not RGB24, see [here »](https://core.telegram.org/api/colors.md) for more info). |"}, "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": "Get a set of suggested custom emoji stickers that can be used in an accent color pattern.", "description": "Get a set of suggested [custom emoji stickers](https://core.telegram.org/api/custom-emoji.md) that can be used in an [accent color pattern](https://core.telegram.org/api/colors.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "account.getDefaultBackgroundEmojis", "x-tl-id": "2785720782", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "MTProto result · `EmojiList`.\n\n[EmojiList](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 Type: EmojiList."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getDefaultBackgroundEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2785720782"}}, "/catalog/account.getChannelDefaultEmojiStatuses": {"post": {"operationId": "account.getChannelDefaultEmojiStatuses", "tags": ["アカウント"], "summary": "Get a list of default suggested channel emoji statuses.", "description": "Get a list of default suggested [channel emoji statuses](https://core.telegram.org/api/emoji-status.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getChannelDefaultEmojiStatuses", "x-tl-id": "1999087573", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getChannelDefaultEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1999087573"}}, "/catalog/account.getChannelRestrictedStatusEmojis": {"post": {"operationId": "account.getChannelRestrictedStatusEmojis", "tags": ["アカウント"], "summary": "Returns fetch the full list of custom emoji IDs » that cannot be used in channel emoji statuses ».", "description": "Returns fetch the full list of [custom emoji IDs »](https://core.telegram.org/api/custom-emoji.md) that cannot be used in [channel emoji statuses »](https://core.telegram.org/api/emoji-status.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "account.getChannelRestrictedStatusEmojis", "x-tl-id": "900325589", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `EmojiList`.\n\n[EmojiList](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 Type: EmojiList."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getChannelRestrictedStatusEmojis"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "900325589"}}, "/catalog/account.updateBusinessWorkHours": {"post": {"operationId": "account.updateBusinessWorkHours", "tags": ["アカウント"], "summary": "Specify a set of Telegram Business opening hours.  ", "description": "Specify a set of [Telegram Business opening hours](https://core.telegram.org/api/business.md#opening-hours).  \nThis info will be contained in [userFull](https://core.telegram.org/constructor/userFull.md).`business_work_hours`.\n\nTo remove all opening hours, invoke the method without setting the `business_work_hours` field.\n\nNote that the opening hours specified by the user must be appropriately validated and transformed before invoking the method, as specified [here »](https://core.telegram.org/api/business.md#opening-hours).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessWorkHours", "x-tl-id": "1258348646", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_WORK_HOURS_EMPTY` — No work hours were specified.\n- 400 · `BUSINESS_WORK_HOURS_PERIOD_INVALID` — The specified work hours are invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/business.md#opening-hours) for the exact requirements.\n- 400 · `TIMEZONE_INVALID` — The specified timezone does not exist."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Opening hours (optional, if not set removes all opening hours).", "x-tl-flag": "flags.0?BusinessWorkHours"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `business_work_hours` | `BusinessWorkHours` | いいえ | Opening hours (optional, if not set removes all opening hours). |"}, "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": "Businesses » may advertise their location using this method, see here » for more info.", "description": "[Businesses »](https://core.telegram.org/api/business.md#location) may advertise their location using this method, see [here »](https://core.telegram.org/api/business.md#location) for more info.\n\nTo remove business location information invoke the method without setting any of the parameters.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessLocation", "x-tl-id": "2657817370", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Optional, contains a set of geographical coordinates.", "x-tl-flag": "flags.1?InputGeoPoint"}, "address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Mandatory when setting/updating the location, contains a textual description of the address (max 96 UTF-8 chars)."}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `geo_point` | `InputGeoPoint` | いいえ | Optional, contains a set of geographical coordinates. |\n| `address` | `string` | いいえ | Mandatory when setting/updating the location, contains a textual description of the address (max 96 UTF-8 chars). |"}, "x-browser-schema-id": "2657817370"}}, "/catalog/account.updateBusinessGreetingMessage": {"post": {"operationId": "account.updateBusinessGreetingMessage", "tags": ["アカウント"], "summary": "Set a list of Telegram Business greeting messages.", "description": "Set a list of [Telegram Business greeting messages](https://core.telegram.org/api/business.md#greeting-messages).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessGreetingMessage", "x-tl-id": "1724755908", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Greeting message configuration and contents.", "x-tl-flag": "flags.0?InputBusinessGreetingMessage"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `message` | `InputBusinessGreetingMessage` | いいえ | Greeting message configuration and contents. |"}, "x-browser-schema-id": "1724755908"}}, "/catalog/account.updateBusinessAwayMessage": {"post": {"operationId": "account.updateBusinessAwayMessage", "tags": ["アカウント"], "summary": "Set a list of Telegram Business away messages.", "description": "Set a list of [Telegram Business away messages](https://core.telegram.org/api/business.md#away-messages).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessAwayMessage", "x-tl-id": "2724888485", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Away message configuration and contents.", "x-tl-flag": "flags.0?InputBusinessAwayMessage"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `message` | `InputBusinessAwayMessage` | いいえ | Away message configuration and contents. |"}, "x-browser-schema-id": "2724888485"}}, "/catalog/account.updateConnectedBot": {"post": {"operationId": "account.updateConnectedBot", "tags": ["アカウント"], "summary": "Connect a business bot » to the current account, or to change the current connection settings.", "description": "Connect a [business bot »](https://core.telegram.org/api/bots/connected-business-bots.md) to the current account, or to change the current connection settings.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "account.updateConnectedBot", "x-tl-id": "1721797758", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_BUSINESS_MISSING` — The specified bot is not a business bot (the [user](https://core.telegram.org/constructor/user.md).`bot_business` flag is not set).\n- 400 · `BUSINESS_RECIPIENTS_EMPTY` — You didn't set any flag in inputBusinessBotRecipients, thus the bot cannot work with *any* peer."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to fully disconnect the bot from the current account."}, "rights": {"type": "object", "x-tl-type": "BusinessBotRights", "oneOf": [{"$ref": "#/components/schemas/businessBotRights"}], "description": "Business bot rights.", "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": "The bot to connect or disconnect"}, "recipients": {"type": "object", "x-tl-type": "InputBusinessBotRecipients", "oneOf": [{"$ref": "#/components/schemas/inputBusinessBotRecipients"}], "description": "Configuration for the business connection"}}, "additionalProperties": false, "required": ["bot", "recipients"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `deleted` | `true` | いいえ | Whether to fully disconnect the bot from the current account. |\n| `rights` | `BusinessBotRights` | いいえ | Business bot rights. |\n| `bot` | `InputUser` | はい | The bot to connect or disconnect |\n| `recipients` | `InputBusinessBotRecipients` | はい | Configuration for the business connection |"}, "x-telegram-rpc-errors": ["BOT_BUSINESS_MISSING", "BUSINESS_RECIPIENTS_EMPTY"], "x-browser-schema-id": "1721797758"}}, "/catalog/account.getConnectedBots": {"post": {"operationId": "account.getConnectedBots", "tags": ["アカウント"], "summary": "List all currently connected business bots »", "description": "List all currently connected [business bots »](https://core.telegram.org/api/bots/connected-business-bots.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "account.getConnectedBots", "x-tl-id": "1319421967", "x-tl-result": "account.ConnectedBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.ConnectedBots."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getConnectedBots"}, "x-browser-schema-id": "1319421967"}}, "/catalog/account.getBotBusinessConnection": {"post": {"operationId": "account.getBotBusinessConnection", "tags": ["アカウント"], "summary": "Bots may invoke this method to re-fetch the updateBotBusinessConnect constructor associated with a specific business `connection_id`, see here » for more info on connected business bots.  ", "description": "Bots may invoke this method to re-fetch the [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md) constructor associated with a specific [business `connection_id`, see here »](https://core.telegram.org/api/bots/connected-business-bots.md) for more info on connected business bots.  \nThis is needed for example for freshly logged in bots that are receiving some [updateBotNewBusinessMessage](https://core.telegram.org/constructor/updateBotNewBusinessMessage.md), etc. updates because some users have already connected to the bot before it could login.  \nIn this case, the bot is receiving messages from the business connection, but it hasn't cached the associated [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md) with info about the connection (can it reply to messages? etc.) yet, and cannot receive the old ones because they were sent when the bot wasn't logged into the session yet.  \nThis method can be used to fetch info about a not-yet-cached business connection, and should not be invoked if the info is already cached or to fetch changes, as eventual changes will automatically be sent as new [updateBotBusinessConnect](https://core.telegram.org/constructor/updateBotBusinessConnect.md) updates to the bot using the usual [update delivery methods »](https://core.telegram.org/api/updates.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "account.getBotBusinessConnection", "x-tl-id": "1990746736", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CONNECTION_ID_INVALID` — The specified connection ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Business connection ID »](https://core.telegram.org/api/bots/connected-business-bots.md)."}}, "additionalProperties": false, "required": ["connection_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `connection_id` | `string` | はい | [Business connection 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": "Set or remove the Telegram Business introduction ».", "description": "Set or remove the [Telegram Business introduction »](https://core.telegram.org/api/business.md#business-introduction).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.updateBusinessIntro", "x-tl-id": "2786381876", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 introduction, to remove it call the method without setting this flag.", "x-tl-flag": "flags.0?InputBusinessIntro"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `intro` | `InputBusinessIntro` | いいえ | Telegram Business introduction, to remove it call the method without setting this flag. |"}, "x-browser-schema-id": "2786381876"}}, "/catalog/account.toggleConnectedBotPaused": {"post": {"operationId": "account.toggleConnectedBotPaused", "tags": ["アカウント"], "summary": "Pause or unpause a specific chat, temporarily disconnecting it from all business bots ».", "description": "Pause or unpause a specific chat, temporarily disconnecting it from all [business bots »](https://core.telegram.org/api/bots/connected-business-bots.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "account.toggleConnectedBotPaused", "x-tl-id": "1684934807", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The chat to pause"}, "paused": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to pause or unpause the chat"}}, "additionalProperties": false, "required": ["peer", "paused"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The chat to pause |\n| `paused` | `Bool` | はい | Whether to pause or unpause the chat |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1684934807"}}, "/catalog/account.disablePeerConnectedBot": {"post": {"operationId": "account.disablePeerConnectedBot", "tags": ["アカウント"], "summary": "Permanently disconnect a specific chat from all business bots » (equivalent to specifying it in `recipients.exclude_users` during initial configuration with account.updateConnectedBot »); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking account.updateConnectedBot ».", "description": "Permanently disconnect a specific chat from all [business bots »](https://core.telegram.org/api/bots/connected-business-bots.md) (equivalent to specifying it in `recipients.exclude_users` during initial configuration with [account.updateConnectedBot »](https://core.telegram.org/method/account.updateConnectedBot.md)); to reconnect of a chat disconnected using this method the user must reconnect the entire bot by invoking [account.updateConnectedBot »](https://core.telegram.org/method/account.updateConnectedBot.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.disablePeerConnectedBot", "x-tl-id": "1581481689", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_ALREADY_DISABLED` — The connected business bot was already disabled for the specified peer.\n- 400 · `BOT_NOT_CONNECTED_YET` — No [business bot](https://core.telegram.org/api/business.md#connected-bots) is connected to the currently logged in user.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The chat to disconnect"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The chat to disconnect |"}, "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": "Update our birthday, see here » for more info.", "description": "Update our [birthday, see here »](https://core.telegram.org/api/profile.md#birthday) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.updateBirthday", "x-tl-id": "3429764113", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BIRTHDAY_INVALID` — An invalid age was specified, must be between 0 and 150 years."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Birthday.", "x-tl-flag": "flags.0?Birthday"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `birthday` | `Birthday` | いいえ | Birthday. |"}, "x-telegram-rpc-errors": ["BIRTHDAY_INVALID"], "x-browser-schema-id": "3429764113"}}, "/catalog/account.createBusinessChatLink": {"post": {"operationId": "account.createBusinessChatLink", "tags": ["アカウント"], "summary": "Create a business chat deep link ».", "description": "Create a [business chat deep link »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.createBusinessChatLink", "x-tl-id": "2287068814", "x-tl-result": "BusinessChatLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `BusinessChatLink`.\n\n[BusinessChatLink](https://core.telegram.org/type/BusinessChatLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BusinessChatLink", "oneOf": [{"$ref": "#/components/schemas/businessChatLink"}], "description": "TL Type: BusinessChatLink."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHATLINKS_TOO_MUCH` — Too many [business chat links](https://core.telegram.org/api/business.md#business-chat-links) were created, please delete some older links.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Info about the link to create."}}, "additionalProperties": false, "required": ["link"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `link` | `InputBusinessChatLink` | はい | Info about the link to create. |"}, "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": "Edit a created business chat deep link ».", "description": "Edit a created [business chat deep link »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.editBusinessChatLink", "x-tl-id": "2352222383", "x-tl-result": "BusinessChatLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `BusinessChatLink`.\n\n[BusinessChatLink](https://core.telegram.org/type/BusinessChatLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BusinessChatLink", "oneOf": [{"$ref": "#/components/schemas/businessChatLink"}], "description": "TL Type: BusinessChatLink."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHATLINK_SLUG_EMPTY` — The specified slug is empty.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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 of the link, obtained as specified [here »](https://core.telegram.org/api/links.md#business-chat-links)."}, "link": {"type": "object", "x-tl-type": "InputBusinessChatLink", "oneOf": [{"$ref": "#/components/schemas/inputBusinessChatLink"}], "description": "New link information."}}, "additionalProperties": false, "required": ["slug", "link"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | Slug of the link, obtained as specified [here »](https://core.telegram.org/api/links.md#business-chat-links). |\n| `link` | `InputBusinessChatLink` | はい | New link information. |"}, "x-telegram-rpc-errors": ["CHATLINK_SLUG_EMPTY", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "2352222383"}}, "/catalog/account.deleteBusinessChatLink": {"post": {"operationId": "account.deleteBusinessChatLink", "tags": ["アカウント"], "summary": "Delete a business chat deep link ».", "description": "Delete a [business chat deep link »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.deleteBusinessChatLink", "x-tl-id": "1611085428", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHATLINK_SLUG_EMPTY` — The specified slug is empty.\n- 400 · `CHATLINK_SLUG_EXPIRED` — The specified [business chat link](https://core.telegram.org/api/business.md#business-chat-links) has expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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 of the link, obtained as specified [here »](https://core.telegram.org/api/links.md#business-chat-links)."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | Slug of the link, obtained as specified [here »](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": "List all created business chat deep links ».", "description": "List all created [business chat deep links »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.getBusinessChatLinks", "x-tl-id": "1869667809", "x-tl-result": "account.BusinessChatLinks", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.BusinessChatLinks."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getBusinessChatLinks"}, "x-browser-schema-id": "1869667809"}}, "/catalog/account.resolveBusinessChatLink": {"post": {"operationId": "account.resolveBusinessChatLink", "tags": ["アカウント"], "summary": "Resolve a business chat deep link ».", "description": "Resolve a [business chat deep link »](https://core.telegram.org/api/business.md#business-chat-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "account.resolveBusinessChatLink", "x-tl-id": "1418913262", "x-tl-result": "account.ResolvedBusinessChatLinks", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: account.ResolvedBusinessChatLinks."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHATLINK_SLUG_EMPTY` — The specified slug is empty.\n- 400 · `CHATLINK_SLUG_EXPIRED` — The specified [business chat link](https://core.telegram.org/api/business.md#business-chat-links) has expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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 of the link, obtained as specified [here »](https://core.telegram.org/api/links.md#business-chat-links)."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | Slug of the link, obtained as specified [here »](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": "Associate (or remove) a personal channel », that will be listed on our personal profile page ».", "description": "Associate (or remove) a personal [channel »](https://core.telegram.org/api/channel.md), that will be listed on our personal [profile page »](https://core.telegram.org/api/profile.md#personal-channel).\n\nChanging it will emit an [updateUser](https://core.telegram.org/constructor/updateUser.md) update.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.updatePersonalChannel", "x-tl-id": "3645048288", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PUBLIC_BROADCAST_EXPECTED` — `channel` only accepts a channel, but a supergroup was passed."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel, pass [inputChannelEmpty](https://core.telegram.org/constructor/inputChannelEmpty.md) to remove it."}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The channel, pass [inputChannelEmpty](https://core.telegram.org/constructor/inputChannelEmpty.md) to remove it. |"}, "x-telegram-rpc-errors": ["PUBLIC_BROADCAST_EXPECTED"], "x-browser-schema-id": "3645048288"}}, "/catalog/account.toggleSponsoredMessages": {"post": {"operationId": "account.toggleSponsoredMessages", "tags": ["アカウント"], "summary": "Disable or re-enable Telegram ads for the current Premium account.", "description": "Disable or re-enable Telegram ads for the current [Premium](https://core.telegram.org/api/premium.md) account.\n\nUseful for business owners that may want to launch and view their own Telegram ads via the [Telegram ad platform »](https://ads.telegram.org).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "account.toggleSponsoredMessages", "x-tl-id": "3118048141", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Enable or disable ads."}}, "additionalProperties": false, "required": ["enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `enabled` | `Bool` | はい | Enable or disable ads. |"}, "x-browser-schema-id": "3118048141"}}, "/catalog/account.getReactionsNotifySettings": {"post": {"operationId": "account.getReactionsNotifySettings", "tags": ["アカウント"], "summary": "Get the current reaction notification settings ».", "description": "Get the current [reaction notification settings »](https://core.telegram.org/api/reactions.md#notifications-about-reactions).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "account.getReactionsNotifySettings", "x-tl-id": "115172684", "x-tl-result": "ReactionsNotifySettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `ReactionsNotifySettings`.\n\n[ReactionsNotifySettings](https://core.telegram.org/type/ReactionsNotifySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ReactionsNotifySettings", "oneOf": [{"$ref": "#/components/schemas/reactionsNotifySettings"}], "description": "TL Type: ReactionsNotifySettings."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getReactionsNotifySettings"}, "x-browser-schema-id": "115172684"}}, "/catalog/account.setReactionsNotifySettings": {"post": {"operationId": "account.setReactionsNotifySettings", "tags": ["アカウント"], "summary": "Change the reaction notification settings ».", "description": "Change the [reaction notification settings »](https://core.telegram.org/api/reactions.md#notifications-about-reactions).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "account.setReactionsNotifySettings", "x-tl-id": "829220168", "x-tl-result": "ReactionsNotifySettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `ReactionsNotifySettings`.\n\n[ReactionsNotifySettings](https://core.telegram.org/type/ReactionsNotifySettings.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ReactionsNotifySettings", "oneOf": [{"$ref": "#/components/schemas/reactionsNotifySettings"}], "description": "TL Type: ReactionsNotifySettings."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New reaction notification settings."}}, "additionalProperties": false, "required": ["settings"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `settings` | `ReactionsNotifySettings` | はい | New reaction notification settings. |"}, "x-browser-schema-id": "829220168"}}, "/catalog/account.getCollectibleEmojiStatuses": {"post": {"operationId": "account.getCollectibleEmojiStatuses", "tags": ["アカウント"], "summary": "Obtain a list of emoji statuses » for owned or hosted collectible gifts ».", "description": "Obtain a list of [emoji statuses »](https://core.telegram.org/api/emoji-status.md) for owned or [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "account.getCollectibleEmojiStatuses", "x-tl-id": "779830595", "x-tl-result": "account.EmojiStatuses", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.EmojiStatuses."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getCollectibleEmojiStatuses"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash for pagination](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash for pagination](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "779830595"}}, "/catalog/account.getPaidMessagesRevenue": {"post": {"operationId": "account.getPaidMessagesRevenue", "tags": ["アカウント"], "summary": "Get the number of stars we have received from the specified user thanks to paid messages »; the received amount will be equal to the sent amount multiplied by stars\\_paid\\_message\\_commission\\_permille divided by 1000.", "description": "Get the number of stars we have received from the specified user thanks to [paid messages »](https://core.telegram.org/api/paid-messages.md); the received amount will be equal to the sent amount multiplied by [stars\\_paid\\_message\\_commission\\_permille](https://core.telegram.org/api/config.md#stars-paid-message-commission-permille) divided by 1000.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "account.getPaidMessagesRevenue", "x-tl-id": "431639143", "x-tl-result": "account.PaidMessagesRevenue", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.PaidMessagesRevenue."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PARENT_PEER_INVALID` — The specified `parent_peer` is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, can contain the ID of a [monoforum (channel direct messages)](https://core.telegram.org/api/monoforum.md) to obtain the number of stars the user has spent to send us direct messages via the channel.", "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": "The user that paid to send us messages."}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | いいえ | If set, can contain the ID of a [monoforum (channel direct messages)](https://core.telegram.org/api/monoforum.md) to obtain the number of stars the user has spent to send us direct messages via the channel. |\n| `user_id` | `InputUser` | はい | The user that paid to send us messages. |"}, "x-telegram-rpc-errors": ["PARENT_PEER_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "431639143"}}, "/catalog/account.toggleNoPaidMessagesException": {"post": {"operationId": "account.toggleNoPaidMessagesException", "tags": ["アカウント"], "summary": "Allow a user to send us messages without paying if paid messages » are enabled.", "description": "Allow a user to send us messages without paying if [paid messages »](https://core.telegram.org/api/paid-messages.md) are enabled.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)", "x-tl-method": "account.toggleNoPaidMessagesException", "x-tl-id": "4264483446", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PARENT_PEER_INVALID` — The specified `parent_peer` is invalid.\n- 400 · `UNSUPPORTED` — `require_payment` cannot be *set* by users, only by monoforums: users must instead use the [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md) privacy setting to remove a previously added exemption.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set and `require_payment` is not set, refunds the amounts the user has already paid us to send us messages (directly or via a monoforum)."}, "require_payment": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "If set, requires the user to pay in order to send us messages.  Can only be **set** by monoforums, not users, i.e. `parent_peer` must be set if this flag is set; users must instead use the [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md) privacy setting to remove a previously added exemption.  If not set, allows the user to send us messages without paying (can be **unset** by both monoforums and users)."}, "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": "If set, applies the setting within the [monoforum aka direct messages »](https://core.telegram.org/api/monoforum.md) (pass the ID of the monoforum, **not** the ID of the associated channel).", "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": "The user to exempt or unexempt."}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `refund_charged` | `true` | いいえ | If set and `require_payment` is not set, refunds the amounts the user has already paid us to send us messages (directly or via a monoforum). |\n| `require_payment` | `true` | いいえ | If set, requires the user to pay in order to send us messages.  Can only be **set** by monoforums, not users, i.e. `parent_peer` must be set if this flag is set; users must instead use the [inputPrivacyKeyNoPaidMessages](https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages.md) privacy setting to remove a previously added exemption.  If not set, allows the user to send us messages without paying (can be **unset** by both monoforums and users). |\n| `parent_peer` | `InputPeer` | いいえ | If set, applies the setting within the [monoforum aka direct messages »](https://core.telegram.org/api/monoforum.md) (pass the ID of the monoforum, **not** the ID of the associated channel). |\n| `user_id` | `InputUser` | はい | The user to exempt or unexempt. |"}, "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": "Changes the main profile tab of the current user, see here » for more info.", "description": "Changes the main profile tab of the current user, see [here »](https://core.telegram.org/api/profile.md#tabs) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.setMainProfileTab", "x-tl-id": "1575909552", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The tab to set as main tab."}}, "additionalProperties": false, "required": ["tab"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `tab` | `ProfileTab` | はい | The tab to set as main tab. |"}, "x-browser-schema-id": "1575909552"}}, "/catalog/account.saveMusic": {"post": {"operationId": "account.saveMusic", "tags": ["アカウント"], "summary": "Adds or removes a song from the current user's profile see here » for more info on the music tab of the profile page.", "description": "Adds or removes a song from the current user's profile [see here »](https://core.telegram.org/api/profile.md#music) for more info on the music tab of the profile page.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.saveMusic", "x-tl-id": "2993107625", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, removes the song."}, "id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "The song to add or remove; can be an already added song when reordering songs with `after_id`. Adding an already added song will never re-add it, only move it to the top of the song list (or after the song passed in `after_id`)."}, "after_id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "If set, the song will be added after the passed song (must be already pinned on the profile).", "x-tl-flag": "flags.1?InputDocument"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `unsave` | `true` | いいえ | If set, removes the song. |\n| `id` | `InputDocument` | はい | The song to add or remove; can be an already added song when reordering songs with `after_id`. Adding an already added song will never re-add it, only move it to the top of the song list (or after the song passed in `after_id`). |\n| `after_id` | `InputDocument` | いいえ | If set, the song will be added after the passed song (must be already pinned on the profile). |"}, "x-telegram-rpc-errors": ["DOCUMENT_INVALID"], "x-browser-schema-id": "2993107625"}}, "/catalog/account.getSavedMusicIds": {"post": {"operationId": "account.getSavedMusicIds", "tags": ["アカウント"], "summary": "Fetch the full list of only the IDs of songs currently added to the profile, see here » for more info.", "description": "Fetch the full list of only the IDs of [songs currently added to the profile, see here »](https://core.telegram.org/api/profile.md#music) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "account.getSavedMusicIds", "x-tl-id": "3768410031", "x-tl-result": "account.SavedMusicIds", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: account.SavedMusicIds."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getSavedMusicIds"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Hash [generated »](https://core.telegram.org/api/offsets.md#hash-generation) from the previously returned list of IDs.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | Hash [generated »](https://core.telegram.org/api/offsets.md#hash-generation) from the previously returned list of IDs. |"}, "x-browser-schema-id": "3768410031"}}, "/catalog/account.getUniqueGiftChatThemes": {"post": {"operationId": "account.getUniqueGiftChatThemes", "tags": ["アカウント"], "summary": "Obtain all chat themes » associated to owned or hosted collectible gifts ».", "description": "Obtain all [chat themes »](https://core.telegram.org/api/themes.md#chat-themes) associated to owned or [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram themes](https://core.telegram.org/api/themes.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "account.getUniqueGiftChatThemes", "x-tl-id": "3828148681", "x-tl-result": "account.ChatThemes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram themes", "https://core.telegram.org/api/themes.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.ChatThemes."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Offset for [pagination](https://core.telegram.org/api/offsets.md), intially an empty string, then equal the value of the last returned [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md).`next_offset` (if set)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md). Note that the server may return less than `limit` results, even if the actual number of remaining results is `>= limit`, paginate to fetch them all."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Hash from a previously returned [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md) constructor, to avoid returning any result if the theme list hasn't changed.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset", "limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `offset` | `string` | はい | Offset for [pagination](https://core.telegram.org/api/offsets.md), intially an empty string, then equal the value of the last returned [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md).`next_offset` (if set). |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md). Note that the server may return less than `limit` results, even if the actual number of remaining results is `>= limit`, paginate to fetch them all. |\n| `hash` | `long` | はい | Hash from a previously returned [account.chatThemes](https://core.telegram.org/constructor/account.chatThemes.md) constructor, to avoid returning any result if the theme list hasn't changed. |"}, "x-browser-schema-id": "3828148681"}}, "/catalog/account.initPasskeyRegistration": {"post": {"operationId": "account.initPasskeyRegistration", "tags": ["アカウント"], "summary": "Initialize passkey registration for the current account, see here » for more info on the full flow.", "description": "Initialize passkey registration for the current account, see [here »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.initPasskeyRegistration", "x-tl-id": "1117079528", "x-tl-result": "account.PasskeyRegistrationOptions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.PasskeyRegistrationOptions."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `ACCESS_DENIED` — The account was deactivated, or is a bot/service account.\n- 406 · `FRESH_RESET_AUTHORISATION_FORBIDDEN` — You can't logout other sessions if less than 24 hours have passed since you logged on the current session."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Complete passkey registration for the current account, see here » for more info on the full flow.", "description": "Complete passkey registration for the current account, see [here »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.registerPasskey", "x-tl-id": "1437867990", "x-tl-result": "Passkey", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "MTProto result · `Passkey`.\n\n[Passkey](https://core.telegram.org/type/Passkey.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Passkey", "oneOf": [{"$ref": "#/components/schemas/passkey"}], "description": "TL Type: Passkey."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CREDENTIAL_INVALID` — The specified credential is invalid.\n- 400 · `PASSKEY_ORIGIN_MISMATCH` — Third-party clients currently don't support passkeys even when changing the origin."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Registration result."}}, "additionalProperties": false, "required": ["credential"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `credential` | `InputPasskeyCredential` | はい | Registration result. |"}, "x-telegram-rpc-errors": ["CREDENTIAL_INVALID", "PASSKEY_ORIGIN_MISMATCH"], "x-browser-schema-id": "1437867990"}}, "/catalog/account.getPasskeys": {"post": {"operationId": "account.getPasskeys", "tags": ["アカウント"], "summary": "List the passkeys associated to the current account that can be used to log in, see here » for more info on passkeys.", "description": "List the passkeys associated to the current account that can be used to log in, see [here »](https://core.telegram.org/api/passkeys.md#list-passkeys) for more info on passkeys.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.getPasskeys", "x-tl-id": "3927903314", "x-tl-result": "account.Passkeys", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "MTProto result · `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 type: account.Passkeys."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/account.getPasskeys"}, "x-browser-schema-id": "3927903314"}}, "/catalog/account.deletePasskey": {"post": {"operationId": "account.deletePasskey", "tags": ["アカウント"], "summary": "Delete a passkey associated to the current account, see here » for more info.", "description": "Delete a passkey associated to the current account, see [here »](https://core.telegram.org/api/passkeys.md#delete-passkeys) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Passkey login](https://core.telegram.org/api/passkeys.md)", "x-tl-method": "account.deletePasskey", "x-tl-id": "4122302015", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Passkey login", "https://core.telegram.org/api/passkeys.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Identifier of the passkey to delete, taken from [passkey](https://core.telegram.org/constructor/passkey.md).`id`, usually obtained using [account.getPasskeys](https://core.telegram.org/method/account.getPasskeys.md)."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `string` | はい | Identifier of the passkey to delete, taken from [passkey](https://core.telegram.org/constructor/passkey.md).`id`, usually obtained using [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 result · `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 Type: InputUser."}}, "additionalProperties": false, "required": ["bot_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot_id` | `InputUser` | はい | TL Type: InputUser. |"}, "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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"delete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "TL 型 `true` の値。"}, "open_external_browser": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "TL 型 `Bool` の値。"}, "url": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}}, "additionalProperties": false, "required": ["url"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `delete` | `true` | いいえ | TL 型 `true` の値。 |\n| `open_external_browser` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `url` | `string` | はい | TL 型 `string` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "1626161705"}}, "/catalog/account.deleteWebBrowserSettingsExceptions": {"post": {"operationId": "account.deleteWebBrowserSettingsExceptions", "tags": ["アカウント"], "summary": "account.deleteWebBrowserSettingsExceptions", "description": "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": "Returns basic user info according to their identifiers.", "description": "Returns basic user info according to their identifiers.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "users.getUsers", "x-tl-id": "227648840", "x-tl-result": "Vector<User>", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Vector<User>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[User](https://core.telegram.org/type/User.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `FROM_MESSAGE_BOT_DISABLED` — Bots can't use fromMessage min constructors.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "List of user identifiers"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputUser>` | はい | List of user identifiers |"}, "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": "Get detailed user profile", "description": "Возвращает расширенные сведения о пользователе. В ответе могут быть описание профиля и связанные пользователи или чаты.\n\n**Who can call this method** · Telegram users and bots.", "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 errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USERNAME_OCCUPIED` — The provided username is already occupied.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).", "description": "Notify the user that the sent [passport](https://core.telegram.org/passport.md) data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).\n\nUse this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DATA_HASH_SIZE_INVALID` — The size of the specified secureValueErrorData.data_hash is invalid.\n- 400 · `HASH_SIZE_INVALID` — The size of the specified secureValueError.hash is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: SecureValueError."}, "x-tl-type": "Vector<SecureValueError>", "description": "Errors"}}, "additionalProperties": false, "required": ["id", "errors"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | はい | ユーザー |\n| `errors` | `Vector<SecureValueError>` | はい | Errors |"}, "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": "Check whether we can write to the specified users, used to implement bulk checks for Premium-only messages » and paid messages ».", "description": "Check whether we can write to the specified users, used to implement bulk checks for [Premium-only messages »](https://core.telegram.org/api/privacy.md#require-premium-for-new-non-contact-users) and [paid messages »](https://core.telegram.org/api/paid-messages.md).\n\nFor each input user, returns a [RequirementToContact](https://core.telegram.org/type/RequirementToContact.md) constructor (at the same offset in the vector) containing requirements to contact them.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Privacy settings](https://core.telegram.org/api/privacy.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)", "x-tl-method": "users.getRequirementsToContact", "x-tl-id": "3634004899", "x-tl-result": "Vector<RequirementToContact>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Privacy settings", "https://core.telegram.org/api/privacy.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"]], "responses": {"200": {"description": "MTProto result · `Vector<RequirementToContact>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[RequirementToContact](https://core.telegram.org/type/RequirementToContact.md)&gt;", "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 Type: RequirementToContact."}, "x-tl-type": "Vector<RequirementToContact>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Users to check."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputUser>` | はい | Users to check. |"}, "x-browser-schema-id": "3634004899"}}, "/catalog/users.getSavedMusic": {"post": {"operationId": "users.getSavedMusic", "tags": ["ユーザー"], "summary": "Get songs pinned to the user's profile, see here » for more info.", "description": "Get songs [pinned to the user's profile, see here »](https://core.telegram.org/api/profile.md#music) for more info.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "users.getSavedMusic", "x-tl-id": "2022539235", "x-tl-result": "users.SavedMusic", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: users.SavedMusic."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The ID of the user."}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Offset for pagination."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash »](https://core.telegram.org/api/offsets.md#hash-generation) of the IDs of previously added songs, to avoid returning any result if there was no change.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["id", "offset", "limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | はい | The ID of the user. |\n| `offset` | `int` | はい | Offset for pagination. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | はい | [Hash »](https://core.telegram.org/api/offsets.md#hash-generation) of the IDs of previously added songs, to avoid returning any result if there was no change. |"}, "x-telegram-rpc-errors": ["USER_ID_INVALID"], "x-browser-schema-id": "2022539235"}}, "/catalog/users.getSavedMusicByID": {"post": {"operationId": "users.getSavedMusicByID", "tags": ["ユーザー"], "summary": "Check if the passed songs are still pinned to the user's profile, or refresh the file references of songs pinned on a user's profile see here » for more info.", "description": "Check if the passed songs are still pinned to the user's profile, or refresh the file references of songs pinned on a user's profile [see here »](https://core.telegram.org/api/profile.md#music) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "users.getSavedMusicByID", "x-tl-id": "1970513129", "x-tl-result": "users.SavedMusic", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: users.SavedMusic."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The ID of the user."}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "TL Type: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "description": "The songs (here, `file_reference` can be empty to refresh file references)."}}, "additionalProperties": false, "required": ["id", "documents"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | はい | The ID of the user. |\n| `documents` | `Vector<InputDocument>` | はい | The songs (here, `file_reference` can be empty to refresh file references). |"}, "x-telegram-rpc-errors": ["USER_ID_INVALID"], "x-browser-schema-id": "1970513129"}}, "/catalog/users.suggestBirthday": {"post": {"operationId": "users.suggestBirthday", "tags": ["ユーザー"], "summary": "Suggest a birthday to another user, see here » for more info on birthdays in the API.", "description": "Suggest a birthday to another user, see [here »](https://core.telegram.org/api/profile.md#birthday) for more info on birthdays in the API.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "users.suggestBirthday", "x-tl-id": "4233311090", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BIRTHDAY_ALREADY` — The target user already has a birthday set.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user that will receive the suggested birthday date."}, "birthday": {"type": "object", "x-tl-type": "Birthday", "oneOf": [{"$ref": "#/components/schemas/birthday"}], "description": "The birthday to suggest."}}, "additionalProperties": false, "required": ["id", "birthday"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | はい | The user that will receive the suggested birthday date. |\n| `birthday` | `Birthday` | はい | The birthday to suggest. |"}, "x-telegram-rpc-errors": ["BIRTHDAY_ALREADY", "USER_ID_INVALID"], "x-browser-schema-id": "4233311090"}}, "/catalog/contacts.getContactIDs": {"post": {"operationId": "contacts.getContactIDs", "tags": ["連絡先"], "summary": "Get the telegram IDs of all contacts.  ", "description": "Get the telegram IDs of all contacts.  \nReturns an array of Telegram user IDs for all contacts (0 if a contact does not have an associated Telegram account or have hidden their account using privacy settings).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.getContactIDs", "x-tl-id": "2061264541", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `Vector<int>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[int](https://core.telegram.org/type/int.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Use this method to obtain the online statuses of all contacts with an accessible Telegram account.", "description": "Use this method to obtain the online statuses of all contacts with an accessible Telegram account.", "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 result · `Vector<ContactStatus>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[ContactStatus](https://core.telegram.org/type/ContactStatus.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "ContactStatus", "oneOf": [{"$ref": "#/components/schemas/contactStatus"}], "description": "TL Type: ContactStatus."}, "x-tl-type": "Vector<ContactStatus>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/contacts.getStatuses"}, "x-browser-schema-id": "3299038190"}}, "/catalog/contacts.getContacts": {"post": {"operationId": "contacts.getContacts", "tags": ["連絡先"], "summary": "Returns the current user's contact list.", "description": "Returns the current user's contact list.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.getContacts", "x-tl-id": "1574346258", "x-tl-result": "contacts.Contacts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: contacts.Contacts."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/contacts.getContacts"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). Note that the hash is computed [using the usual algorithm](https://core.telegram.org/api/offsets.md#hash-generation), passing to the algorithm first the previously returned [contacts.contacts](https://core.telegram.org/constructor/contacts.contacts.md).`saved_count` field, then max `100000` sorted user IDs from the contact list, including the ID of the currently logged in user if it is saved as a contact.  Example: [tdlib implementation](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` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). Note that the hash is computed [using the usual algorithm](https://core.telegram.org/api/offsets.md#hash-generation), passing to the algorithm first the previously returned [contacts.contacts](https://core.telegram.org/constructor/contacts.contacts.md).`saved_count` field, then max `100000` sorted user IDs from the contact list, including the ID of the currently logged in user if it is saved as a contact.  Example: [tdlib implementation](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": "Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.", "description": "Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.\n\nUse [contacts.addContact](https://core.telegram.org/method/contacts.addContact.md) to add Telegram contacts without actually using their phone number.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: contacts.ImportedContacts."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputContact."}, "x-tl-type": "Vector<InputContact>", "description": "List of contacts to import"}}, "additionalProperties": false, "required": ["contacts"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `contacts` | `Vector<InputContact>` | はい | List of contacts to import |"}, "x-browser-schema-id": "746589157"}}, "/catalog/contacts.deleteContacts": {"post": {"operationId": "contacts.deleteContacts", "tags": ["連絡先"], "summary": "Deletes several contacts from the list.", "description": "Deletes several contacts from the list.\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "User ID list"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputUser>` | はい | User ID list |"}, "x-telegram-rpc-errors": ["MSG_ID_INVALID"], "x-browser-schema-id": "157945344"}}, "/catalog/contacts.deleteByPhones": {"post": {"operationId": "contacts.deleteByPhones", "tags": ["連絡先"], "summary": "Delete contacts by phone number", "description": "Delete contacts by phone number", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone numbers"}}, "additionalProperties": false, "required": ["phones"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phones` | `Vector<string>` | はい | Phone numbers |"}, "x-browser-schema-id": "269745566"}}, "/catalog/contacts.block": {"post": {"operationId": "contacts.block", "tags": ["連絡先"], "summary": "Adds a peer to a blocklist, see here » for more info.", "description": "Adds a peer to a blocklist, see [here »](https://core.telegram.org/api/block.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Blocked users](https://core.telegram.org/api/block.md)", "x-tl-method": "contacts.block", "x-tl-id": "774801204", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CONTACT_ID_INVALID` — The provided contact ID is invalid.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the peer should be added to the story blocklist; if not set, the peer will be added to the main blocklist, see [here »](https://core.telegram.org/api/block.md) for more info."}, "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` | いいえ | Whether the peer should be added to the story blocklist; if not set, the peer will be added to the main blocklist, see [here »](https://core.telegram.org/api/block.md) for more info. |\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": "Deletes a peer from a blocklist, see here » for more info.", "description": "Deletes a peer from a blocklist, see [here »](https://core.telegram.org/api/block.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Blocked users](https://core.telegram.org/api/block.md)", "x-tl-method": "contacts.unblock", "x-tl-id": "3041973032", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CONTACT_ID_INVALID` — The provided contact ID is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the peer should be removed from the story blocklist; if not set, the peer will be removed from the main blocklist, see [here »](https://core.telegram.org/api/block.md) for more info."}, "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` | いいえ | Whether the peer should be removed from the story blocklist; if not set, the peer will be removed from the main blocklist, see [here »](https://core.telegram.org/api/block.md) for more info. |\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": "Returns the list of blocked users.", "description": "Returns the list of blocked users.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Blocked users](https://core.telegram.org/api/block.md)", "x-tl-method": "contacts.getBlocked", "x-tl-id": "2592509824", "x-tl-result": "contacts.Blocked", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: contacts.Blocked."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to fetch the story blocklist; if not set, will fetch the main blocklist. See [here »](https://core.telegram.org/api/block.md) for differences between the two."}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The number of list elements to be skipped"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The number of list elements to be returned"}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `my_stories_from` | `true` | いいえ | Whether to fetch the story blocklist; if not set, will fetch the main blocklist. See [here »](https://core.telegram.org/api/block.md) for differences between the two. |\n| `offset` | `int` | はい | The number of list elements to be skipped |\n| `limit` | `int` | はい | The number of list elements to be returned |"}, "x-browser-schema-id": "2592509824"}}, "/catalog/contacts.search": {"post": {"operationId": "contacts.search", "tags": ["連絡先"], "summary": "Returns users found by username substring.", "description": "Returns users found by username substring.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: contacts.Found."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `QUERY_TOO_SHORT` — The query string is too short.\n- 400 · `SEARCH_QUERY_EMPTY` — The search query is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Target substring"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of users to be returned"}}, "additionalProperties": false, "required": ["q", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `broadcasts` | `true` | いいえ | TL 型 `true` の値。 |\n| `bots` | `true` | いいえ | TL 型 `true` の値。 |\n| `q` | `string` | はい | Target substring |\n| `limit` | `int` | はい | Maximum number of users to be returned |"}, "x-telegram-rpc-errors": ["QUERY_TOO_SHORT", "SEARCH_QUERY_EMPTY"], "x-browser-schema-id": "99978511"}}, "/catalog/contacts.resolveUsername": {"post": {"operationId": "contacts.resolveUsername", "tags": ["連絡先"], "summary": "Find a user, chat or channel by name", "description": "Determines who is using the public name and returns the identifier along with associated data.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.resolveUsername", "x-tl-id": "1918565308", "x-tl-result": "contacts.ResolvedPeer", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `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 type: contacts.ResolvedPeer."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CONNECTION_LAYER_INVALID` — Layer invalid.\n- 400 · `STARREF_EXPIRED` — The specified referral link is invalid.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_NOT_OCCUPIED` — The provided username is not occupied."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Public name of the user, chat or channel."}, "referer": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Source ID from the referral link, if available."}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `username` | `string` | はい | Public name of the user, chat or channel. |\n| `referer` | `string` | いいえ | Source ID from the referral link, if available. |"}, "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": "Get most used peers", "description": "Get most used peers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Guest mode for bots](https://core.telegram.org/api/bots/guest-mode.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.getTopPeers", "x-tl-id": "2536798390", "x-tl-result": "contacts.TopPeers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Guest mode for bots", "https://core.telegram.org/api/bots/guest-mode.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: contacts.TopPeers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TYPES_EMPTY` — No top peer type was provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Most frequently used [guest bots »](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": "Maximum number of results to return, [see pagination](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` | いいえ | Most frequently used [guest bots »](https://core.telegram.org/api/bots/guest-mode.md) |\n| `offset` | `int` | はい | [ページネーション](https://core.telegram.org/api/offsets.md)] のオフセット |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Reset rating of top peer", "description": "Reset [rating](https://core.telegram.org/api/top-rating.md) of top peer\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Top peer rating](https://core.telegram.org/api/top-rating.md)", "x-tl-method": "contacts.resetTopPeerRating", "x-tl-id": "451113900", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Top peer rating", "https://core.telegram.org/api/top-rating.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Top peer category"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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 whose rating should be reset"}}, "additionalProperties": false, "required": ["category", "peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `category` | `TopPeerCategory` | はい | Top peer category |\n| `peer` | `InputPeer` | はい | Peer whose rating should be reset |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "451113900"}}, "/catalog/contacts.resetSaved": {"post": {"operationId": "contacts.resetSaved", "tags": ["連絡先"], "summary": "Removes all contacts without an associated Telegram account.", "description": "Removes all contacts without an associated Telegram account.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/contacts.resetSaved"}, "x-browser-schema-id": "2274703345"}}, "/catalog/contacts.getSaved": {"post": {"operationId": "contacts.getSaved", "tags": ["連絡先"], "summary": "Get all contacts, requires a takeout session, see here » for more info.", "description": "Get all contacts, requires a [takeout session, see here » for more info](https://core.telegram.org/api/takeout.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "contacts.getSaved", "x-tl-id": "2196890527", "x-tl-result": "Vector<SavedContact>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "MTProto result · `Vector<SavedContact>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[SavedContact](https://core.telegram.org/type/SavedContact.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedContact", "oneOf": [{"$ref": "#/components/schemas/savedPhoneContact"}], "description": "TL Type: SavedContact."}, "x-tl-type": "Vector<SavedContact>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TAKEOUT_INVALID` — The specified takeout ID is invalid.\n- 403 · `TAKEOUT_REQUIRED` — A [takeout](https://core.telegram.org/api/takeout.md) session needs to be initialized first, [see here &raquo; for more info](https://core.telegram.org/api/takeout.md)."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Enable/disable top peers", "description": "Enable/disable [top peers](https://core.telegram.org/api/top-rating.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Top peer rating](https://core.telegram.org/api/top-rating.md)", "x-tl-method": "contacts.toggleTopPeers", "x-tl-id": "2232729050", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Top peer rating", "https://core.telegram.org/api/top-rating.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Enable/disable"}}, "additionalProperties": false, "required": ["enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `enabled` | `Bool` | はい | Enable/disable |"}, "x-browser-schema-id": "2232729050"}}, "/catalog/contacts.addContact": {"post": {"operationId": "contacts.addContact", "tags": ["連絡先"], "summary": "Add an existing telegram user as contact.", "description": "Add an existing telegram user as contact.\n\nUse [contacts.importContacts](https://core.telegram.org/method/contacts.importContacts.md) to add contacts by phone number, without knowing their Telegram ID.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Contact list](https://core.telegram.org/api/contacts.md)", "x-tl-method": "contacts.addContact", "x-tl-id": "3652857428", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Contact list", "https://core.telegram.org/api/contacts.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CONTACT_ID_INVALID` — The provided contact ID is invalid.\n- 400 · `CONTACT_NAME_EMPTY` — Contact name empty.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Allow the other user to see our phone number?"}, "id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "Telegram ID of the other user"}, "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": "User's phone number, may be omitted to simply add the user to the contact list, without a phone number."}, "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` | いいえ | Allow the other user to see our phone number? |\n| `id` | `InputUser` | はい | Telegram ID of the other user |\n| `first_name` | `string` | はい | 名 |\n| `last_name` | `string` | はい | 姓 |\n| `phone` | `string` | はい | User's phone number, may be omitted to simply add the user to the contact list, without a phone number. |\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": "If the add contact action bar is active, add that user as contact", "description": "If the [add contact action bar is active](https://core.telegram.org/api/action-bar.md#add-contact), add that user as contact\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Action bar](https://core.telegram.org/api/action-bar.md)", "x-tl-method": "contacts.acceptContact", "x-tl-id": "4164002319", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Action bar", "https://core.telegram.org/api/action-bar.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CONTACT_ADD_MISSING` — Contact to add is missing.\n- 400 · `CONTACT_ID_INVALID` — The provided contact ID is invalid.\n- 400 · `CONTACT_REQ_MISSING` — Missing contact request.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user to add as contact"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | はい | The user to add as contact |"}, "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": "Get users and geochats near you, see here » for more info.", "description": "Get users and geochats near you, see [here »](https://core.telegram.org/api/nearby.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Nearby users&chats](https://core.telegram.org/api/nearby.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "contacts.getLocated", "x-tl-id": "3544759364", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Nearby users&chats", "https://core.telegram.org/api/nearby.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `BUSINESS_ADDRESS_ACTIVE` — The user is currently advertising a [Business Location](https://core.telegram.org/api/business.md#location), the location may only be changed (or removed) using [account.updateBusinessLocation&nbsp;&raquo;](https://core.telegram.org/method/account.updateBusinessLocation.md).  .\n- 400 · `GEO_POINT_INVALID` — Invalid geoposition provided.\n- 406 · `USERPIC_PRIVACY_REQUIRED` — You need to disable privacy settings for your profile picture in order to make your geolocation public.\n- 406 · `USERPIC_UPLOAD_REQUIRED` — You must have a profile picture to publish your geolocation."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.  Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown."}, "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": "If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied."}}, "additionalProperties": false, "required": ["geo_point"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `background` | `true` | いいえ | While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.  Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown. |\n| `geo_point` | `InputGeoPoint` | はい | 地理位置情報 |\n| `self_expires` | `int` | いいえ | If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied. |"}, "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": "Stop getting notifications about discussion replies of a certain user in `@replies`", "description": "Stop getting notifications about [discussion replies](https://core.telegram.org/api/discussion.md) of a certain user in `@replies`\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "contacts.blockFromReplies", "x-tl-id": "698914348", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to delete the specified message as well"}, "delete_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether to delete all `@replies` messages from this user as well"}, "report_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Whether to also report this user for spam"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message in the [@replies](https://core.telegram.org/api/discussion.md#replies) chat"}}, "additionalProperties": false, "required": ["msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `delete_message` | `true` | いいえ | Whether to delete the specified message as well |\n| `delete_history` | `true` | いいえ | Whether to delete all `@replies` messages from this user as well |\n| `report_spam` | `true` | いいえ | Whether to also report this user for spam |\n| `msg_id` | `int` | はい | ID of the message in the [@replies](https://core.telegram.org/api/discussion.md#replies) chat |"}, "x-telegram-rpc-errors": ["MSG_ID_INVALID"], "x-browser-schema-id": "698914348"}}, "/catalog/contacts.resolvePhone": {"post": {"operationId": "contacts.resolvePhone", "tags": ["連絡先"], "summary": "Resolve a phone number to get user info, if their privacy settings allow it.", "description": "Resolve a phone number to get user info, if their privacy settings allow it.\n\nMake sure to implement client-side ratelimiting/debounce for this method, allowing at most 1 call every 3 seconds.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.resolvePhone", "x-tl-id": "2331591492", "x-tl-result": "contacts.ResolvedPeer", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `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 type: contacts.ResolvedPeer."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PHONE_NOT_OCCUPIED` — No user is associated to the specified phone number."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone number in international format, possibly obtained from a [phone number deep link](https://core.telegram.org/api/links.md#phone-number-links)."}}, "additionalProperties": false, "required": ["phone"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `phone` | `string` | はい | Phone number in international format, possibly obtained from a [phone number deep link](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": "Generates a temporary profile link for the currently logged-in user.", "description": "Generates a [temporary profile link](https://core.telegram.org/api/links.md#temporary-profile-links) for the currently logged-in user.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.exportContactToken", "x-tl-id": "4167385127", "x-tl-result": "ExportedContactToken", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `ExportedContactToken`.\n\n[ExportedContactToken](https://core.telegram.org/type/ExportedContactToken.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedContactToken", "oneOf": [{"$ref": "#/components/schemas/exportedContactToken"}], "description": "TL Type: ExportedContactToken."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/contacts.exportContactToken"}, "x-browser-schema-id": "4167385127"}}, "/catalog/contacts.importContactToken": {"post": {"operationId": "contacts.importContactToken", "tags": ["連絡先"], "summary": "Obtain user info from a temporary profile link.", "description": "Obtain user info from a [temporary profile link](https://core.telegram.org/api/links.md#temporary-profile-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "contacts.importContactToken", "x-tl-id": "318789512", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `User`.\n\n[User](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": "Type TL: User."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `IMPORT_TOKEN_INVALID` — The specified token is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The token extracted from the [temporary profile link](https://core.telegram.org/api/links.md#temporary-profile-links)."}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `token` | `string` | はい | The token extracted from the [temporary profile link](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": "Edit the close friends list, see here » for more info.", "description": "Edit the [close friends list, see here »](https://core.telegram.org/api/privacy.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Privacy settings](https://core.telegram.org/api/privacy.md)", "x-tl-method": "contacts.editCloseFriends", "x-tl-id": "3127313904", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Privacy settings", "https://core.telegram.org/api/privacy.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Full list of user IDs of close friends, see [here](https://core.telegram.org/api/privacy.md) for more info."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | はい | Full list of user IDs of close friends, see [here](https://core.telegram.org/api/privacy.md) for more info. |"}, "x-browser-schema-id": "3127313904"}}, "/catalog/contacts.setBlocked": {"post": {"operationId": "contacts.setBlocked", "tags": ["連絡先"], "summary": "Replace the contents of an entire blocklist, see here for more info ».", "description": "Replace the contents of an entire [blocklist, see here for more info »](https://core.telegram.org/api/block.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Blocked users](https://core.telegram.org/api/block.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "contacts.setBlocked", "x-tl-id": "2496027766", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Blocked users", "https://core.telegram.org/api/block.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to edit the story blocklist; if not set, will edit the main blocklist. See [here »](https://core.telegram.org/api/block.md) for differences between the two."}, "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Full content of the blocklist."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `my_stories_from` | `true` | いいえ | Whether to edit the story blocklist; if not set, will edit the main blocklist. See [here »](https://core.telegram.org/api/block.md) for differences between the two. |\n| `id` | `Vector<InputPeer>` | はい | Full content of the blocklist. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "2496027766"}}, "/catalog/contacts.getBirthdays": {"post": {"operationId": "contacts.getBirthdays", "tags": ["連絡先"], "summary": "Fetch all users with birthdays that fall within +1/-1 days, relative to the current day: this method should be invoked by clients every 6-8 hours, and if the result is non-empty, it should be used to appropriately update locally cached birthday information in user.`birthday`.", "description": "Fetch all users with birthdays that fall within +1/-1 days, relative to the current day: this method should be invoked by clients every 6-8 hours, and if the result is non-empty, it should be used to appropriately update locally cached birthday information in [user](https://core.telegram.org/constructor/user.md).`birthday`.\n\n[See here »](https://core.telegram.org/api/profile.md#birthday) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "contacts.getBirthdays", "x-tl-id": "3673008228", "x-tl-result": "contacts.ContactBirthdays", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: contacts.ContactBirthdays."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/contacts.getBirthdays"}, "x-browser-schema-id": "3673008228"}}, "/catalog/contacts.getSponsoredPeers": {"post": {"operationId": "contacts.getSponsoredPeers", "tags": ["連絡先"], "summary": "Obtain a list of sponsored peer search results for a given query", "description": "Obtain a list of sponsored peer search results for a given query\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: contacts.SponsoredPeers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SEARCH_QUERY_EMPTY` — The search query is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The query"}}, "additionalProperties": false, "required": ["q"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `q` | `string` | はい | The query |"}, "x-telegram-rpc-errors": ["SEARCH_QUERY_EMPTY"], "x-browser-schema-id": "3066610579"}}, "/catalog/contacts.updateContactNote": {"post": {"operationId": "contacts.updateContactNote", "tags": ["連絡先"], "summary": "Update the private note associated to a contact; see here » for more info.", "description": "Update the private note associated to a contact; see [here »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Contact list](https://core.telegram.org/api/contacts.md)", "x-tl-method": "contacts.updateContactNote", "x-tl-id": "329212923", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Contact list", "https://core.telegram.org/api/contacts.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CONTACT_ID_INVALID` — The provided contact ID is invalid.\n- 400 · `CONTACT_MISSING` — The specified user is not a contact."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The contact."}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "The note."}}, "additionalProperties": false, "required": ["id", "note"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputUser` | はい | The contact. |\n| `note` | `TextWithEntities` | はい | The note. |"}, "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 result · `User`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Type TL: User."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "TL Type: InputUser."}, "token": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}}, "additionalProperties": false, "required": ["user_id", "token"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | TL Type: InputUser. |\n| `token` | `string` | はい | TL 型 `string` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "900187850"}}, "/catalog/messages.getMessages": {"post": {"operationId": "messages.getMessages", "tags": ["メッセージ"], "summary": "Returns the list of messages by their IDs.", "description": "Returns the list of messages by their IDs.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputMessage."}, "x-tl-type": "Vector<InputMessage>", "description": "Message ID list"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputMessage>` | はい | Message ID list |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "MSG_ID_INVALID"], "x-browser-schema-id": "1673946374"}}, "/catalog/messages.getDialogs": {"post": {"operationId": "messages.getDialogs", "tags": ["メッセージ"], "summary": "Get list of dialogs", "description": "Returns the current account's dialog page. The selection can be limited to a folder.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getDialogs", "x-tl-id": "2700397391", "x-tl-result": "messages.Dialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Dialogs."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `FOLDER_ID_INVALID` — Invalid folder ID.\n- 400 · `OFFSET_PEER_ID_INVALID` — The provided offset peer is invalid.\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Too many pinned dialogs.\n- 400 · `TAKEOUT_INVALID` — The specified takeout ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Skip pinned conversations."}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Dialogue folder identifier."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Date of the message to advance to the next page, in Unix seconds."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID for list offset."}, "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": "The chat regarding which the issuance continues."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The maximum number of dialogs returned."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "A hash of previously received results to check for changes.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset_date", "offset_id", "offset_peer", "limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `exclude_pinned` | `true` | いいえ | Skip pinned conversations. |\n| `folder_id` | `int` | いいえ | Dialogue folder identifier. |\n| `offset_date` | `int` | はい | Date of the message to advance to the next page, in Unix seconds. |\n| `offset_id` | `int` | はい | Message ID for list offset. |\n| `offset_peer` | `InputPeer` | はい | The chat regarding which the issuance continues. |\n| `limit` | `int` | はい | The maximum number of dialogs returned. |\n| `hash` | `long` | はい | A hash of previously received results to check for changes. |"}, "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": "Read chat history", "description": "Returns the message page of the selected chat in order from newest to oldest.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "messages.getHistory", "x-tl-id": "1143203525", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and cannot access the specified peer.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TAKEOUT_INVALID` — The specified takeout ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "A chat whose history you need to read."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message from which the selection begins."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Date for history offset in Unix seconds."}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Additional offset in messages."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of messages returned."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Return messages with an ID less than the specified one."}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Return messages with an ID greater than the specified one."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "A hash of previously received results to check for changes.", "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` | はい | A chat whose history you need to read. |\n| `offset_id` | `int` | はい | ID of the message from which the selection begins. |\n| `offset_date` | `int` | はい | Date for history offset in Unix seconds. |\n| `add_offset` | `int` | はい | Additional offset in messages. |\n| `limit` | `int` | はい | Maximum number of messages returned. |\n| `max_id` | `int` | はい | Return messages with an ID less than the specified one. |\n| `min_id` | `int` | はい | Return messages with an ID greater than the specified one. |\n| `hash` | `long` | はい | A hash of previously received results to check for changes. |"}, "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": "Find chat messages", "description": "Searches for messages based on your query and additional conditions, such as author, date, or attachment type.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Message threads](https://core.telegram.org/api/threads.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.search", "x-tl-id": "703497338", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Message threads", "https://core.telegram.org/api/threads.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `FROM_PEER_INVALID` — The specified from_id is invalid.\n- 400 · `INPUT_FILTER_INVALID` — The specified filter is invalid.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PEER_ID_NOT_SUPPORTED` — The provided peer ID is not supported.\n- 400 · `SEARCH_QUERY_EMPTY` — The search query is empty.\n- 400 · `TAKEOUT_INVALID` — The specified takeout ID is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Chat to search."}, "q": {"type": "string", "x-tl-type": "string", "description": "Search query text."}, "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": "The author by whom the sample is limited.", "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": "Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID.", "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 Type: Reaction."}, "x-tl-type": "Vector<Reaction>", "x-tl-flag": "flags.3?Vector<Reaction>", "description": "You may search for [saved messages tagged »](https://core.telegram.org/api/saved-messages.md#tags) with one or more reactions using this flag."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "ID of the thread's topic or top message."}, "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": "Filter by type of message or attachment."}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Lower bound for message date in Unix seconds."}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Upper limit of the message date in Unix seconds."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Only return messages starting from the specified message ID"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Additional offset](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results per issue."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Maximum message ID to return](https://core.telegram.org/api/offsets.md)"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Minimum message ID to return](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash](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` | はい | Chat to search. |\n| `q` | `string` | はい | Search query text. |\n| `from_id` | `InputPeer` | いいえ | The author by whom the sample is limited. |\n| `saved_peer_id` | `InputPeer` | いいえ | Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID. |\n| `saved_reaction` | `Vector<Reaction>` | いいえ | You may search for [saved messages tagged »](https://core.telegram.org/api/saved-messages.md#tags) with one or more reactions using this flag. |\n| `top_msg_id` | `int` | いいえ | ID of the thread's topic or top message. |\n| `filter` | `MessagesFilter` | はい | Filter by type of message or attachment. |\n| `min_date` | `int` | はい | Lower bound for message date in Unix seconds. |\n| `max_date` | `int` | はい | Upper limit of the message date in Unix seconds. |\n| `offset_id` | `int` | はい | Only return messages starting from the specified message ID |\n| `add_offset` | `int` | はい | [Additional offset](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results per issue. |\n| `max_id` | `int` | はい | [Maximum message ID to return](https://core.telegram.org/api/offsets.md) |\n| `min_id` | `int` | はい | [Minimum message ID to return](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | はい | [Hash](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": "Marks message history as read.", "description": "Marks message history as read.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.readHistory", "x-tl-id": "238054714", "x-tl-result": "messages.AffectedMessages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.AffectedMessages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Target user or group"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value is passed, only messages with identifiers less than or equal to the given one will be read"}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Target user or group |\n| `max_id` | `int` | はい | If a positive value is passed, only messages with identifiers less than or equal to the given one will be read |"}, "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": "Deletes communication history.", "description": "Deletes communication history.\n\n**Who can call this method** · Telegram users only.", "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 Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_REVOKE_DATE_UNSUPPORTED` — `min_date` and `max_date` are not available for using with non-user peers.\n- 400 · `MAX_DATE_INVALID` — The specified maximum date is invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MIN_DATE_INVALID` — The specified minimum date is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Just clear history for the current user, without actually removing messages for every chat user"}, "revoke": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether to delete the message history for all chat participants"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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 or chat, communication history of which will be deleted"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum ID of message to delete"}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "Delete all messages newer than this UNIX timestamp"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int", "description": "Delete all messages older than this UNIX timestamp"}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `just_clear` | `true` | いいえ | Just clear history for the current user, without actually removing messages for every chat user |\n| `revoke` | `true` | いいえ | Whether to delete the message history for all chat participants |\n| `peer` | `InputPeer` | はい | User or chat, communication history of which will be deleted |\n| `max_id` | `int` | はい | Maximum ID of message to delete |\n| `min_date` | `int` | いいえ | Delete all messages newer than this UNIX timestamp |\n| `max_date` | `int` | いいえ | Delete all messages older than this UNIX timestamp |"}, "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": "Deletes messages by their identifiers.", "description": "Deletes messages by their identifiers.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.deleteMessages", "x-tl-id": "3851326930", "x-tl-result": "messages.AffectedMessages", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.AffectedMessages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `BOT_ACCESS_FORBIDDEN` — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — You can't delete one of the messages you tried to delete, most likely because it is a service message.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `SELF_DELETE_RESTRICTED` — Business bots can't delete messages just for the user, `revoke` **must** be set."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to delete messages for all participants of the chat"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Message ID list"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `revoke` | `true` | いいえ | Whether to delete messages for all participants of the chat |\n| `id` | `Vector<int>` | はい | Message ID list |"}, "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": "Confirms receipt of messages by a client, cancels PUSH-notification sending.", "description": "Confirms receipt of messages by a client, cancels PUSH-notification sending.", "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 result · `Vector<ReceivedNotifyMessage>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[ReceivedNotifyMessage](https://core.telegram.org/type/ReceivedNotifyMessage.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "ReceivedNotifyMessage", "oneOf": [{"$ref": "#/components/schemas/receivedNotifyMessage"}], "description": "TL Type: ReceivedNotifyMessage."}, "x-tl-type": "Vector<ReceivedNotifyMessage>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Maximum message ID available in a client."}}, "additionalProperties": false, "required": ["max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `max_id` | `int` | はい | Maximum message ID available in a client. |"}, "x-browser-schema-id": "94983360"}}, "/catalog/messages.setTyping": {"post": {"operationId": "messages.setTyping", "tags": ["メッセージ"], "summary": "Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.", "description": "Sends a current user typing event (see [SendMessageAction](https://core.telegram.org/type/SendMessageAction.md) for all event types) to a conversation partner or group.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Message threads](https://core.telegram.org/api/threads.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.setTyping", "x-tl-id": "1486110434", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message threads", "https://core.telegram.org/api/threads.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `BUSINESS_PEER_INVALID` — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUSINESS_PEER_USAGE_MISSING` — You cannot send a message to a user through a [business connection](https://core.telegram.org/api/business.md#connected-bots) if the user hasn't recently contacted us.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 406 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TEXTDRAFT_PEER_INVALID` — sendMessageTextDraftAction can only be used in private 1-on-1 chats.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user.\n- 400 · `USER_IS_BOT` — Bots can't send messages to other bots."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Target user or group"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "[Topic 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": "Type of action"}}, "additionalProperties": false, "required": ["peer", "action"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Target user or group |\n| `top_msg_id` | `int` | いいえ | [Topic ID](https://core.telegram.org/api/threads.md) |\n| `action` | `SendMessageAction` | はい | Type of action |"}, "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": "Send a text message", "description": "Sends a text to the selected chat. If successful, Telegram returns the updates.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.sendMessage", "x-tl-id": "4277440354", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ADMIN_RIGHTS_EMPTY` — The chatAdminRights constructor passed in keyboardButtonRequestPeer.peer_type.user_admin_rights has no rights set (i.e. flags is 0).\n- 406 · `ALLOW_PAYMENT_REQUIRED` — This peer only accepts [paid messages&nbsp;&raquo;](https://core.telegram.org/api/paid-messages.md): this error is only emitted for older layers without paid messages support, so the client must be updated in order to use paid messages.  .\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — This peer charges %d [Telegram Stars](https://core.telegram.org/api/stars.md) per message, but the `allow_paid_stars` was not set or its value is smaller than %d.\n- 400 · `BALANCE_TOO_LOW` — The transaction cannot be completed because the current [Telegram Stars balance](https://core.telegram.org/api/stars.md) is too low.\n- 400 · `BOT_DOMAIN_INVALID` — Bot domain invalid.\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `BUSINESS_PEER_INVALID` — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUSINESS_PEER_USAGE_MISSING` — You cannot send a message to a user through a [business connection](https://core.telegram.org/api/business.md#connected-bots) if the user hasn't recently contacted us.\n- 400 · `BUTTON_COPY_TEXT_INVALID` — The specified [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy.md).`copy_text` is invalid.\n- 400 · `BUTTON_DATA_INVALID` — The data of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_ID_INVALID` — The specified button ID is invalid.\n- 400 · `BUTTON_TYPE_INVALID` — The type of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_URL_INVALID` — Button URL invalid.\n- 400 · `BUTTON_USER_INVALID` — The `user_id` passed to inputKeyboardButtonUserProfile is invalid!\n- 400 · `BUTTON_USER_PRIVACY_RESTRICTED` — The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile.md) button do not allow creating such a button.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — You can't forward messages from a protected chat.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — You join the discussion group before commenting, see [here&nbsp;&raquo;](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) for more info.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_RESTRICTED` — You can't send messages in this chat, you were restricted.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — You can't send non-media (text) messages in this chat.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 400 · `EFFECT_CHAT_INVALID` — Message [effects](https://core.telegram.org/api/effects.md) can only be used in private 1-on-1 chats, but the caller tried to send a message with an effect to a group or channel.\n- 400 · `ENCRYPTION_DECLINED` — The secret chat was declined.\n- 400 · `ENTITIES_TOO_LONG` — You provided too many styled message entities.\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `ENTITY_DATE_FORMAT_INVALID` — One of the passed messageEntityFormattedDate objects has an invalid format (i.e. an invalid combination of the format flags).\n- 400 · `ENTITY_DATE_INVALID` — One of the passed messageEntityFormattedDate objects has an invalid date: the allowed value ranges from `0` to the current date plus 1098 days (`time()+1098*86400`).\n- 400 · `ENTITY_DATE_TOO_LONG` — The maximum text span that can be covered by a date entity is 31 UTF-16 code units if any of the date formatting flags is set, or 127 UTF-16 code units without.  .\n- 400 · `ENTITY_MENTION_USER_INVALID` — You mentioned an invalid user.\n- 400 · `FROM_MESSAGE_BOT_DISABLED` — Bots can't use fromMessage min constructors.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MESSAGE_EMPTY` — The provided message is empty.\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 500 · `MSG_WAIT_FAILED` — A waiting call returned an error.\n- 406 · `PAYMENT_UNSUPPORTED` — A detailed description of the error will be received separately as described [here&nbsp;&raquo;](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 404 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PEER_TYPES_INVALID` — The passed [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline.md).`peer_types` field is invalid.\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Too many pinned dialogs.\n- 400 · `POLL_OPTION_INVALID` — Invalid poll option provided.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 406 · `PRIVACY_PREMIUM_REQUIRED` — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Quick replies](https://core.telegram.org/api/business.md#quick-reply-shortcuts) cannot be used by bots.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) shortcuts may be created, the limit was reached.\n- 400 · `QUOTE_TEXT_INVALID` — The specified `reply_to`.`quote_text` field is invalid.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `RANDOM_ID_EMPTY` — Random ID empty.\n- 400 · `REPLY_MARKUP_INVALID` — The provided reply markup is invalid.\n- 400 · `REPLY_MARKUP_TOO_LONG` — The specified reply_markup is too long.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) messages, the limit was reached.\n- 400 · `REPLY_MESSAGE_ID_INVALID` — The specified reply-to message ID is invalid.\n- 400 · `REPLY_TO_INVALID` — The specified `reply_to` field is invalid.\n- 400 · `REPLY_TO_MONOFORUM_PEER_INVALID` — The specified inputReplyToMonoForum.monoforum_peer_id is invalid.\n- 400 · `REPLY_TO_USER_INVALID` — The replied-to user is invalid.\n- 400 · `SCHEDULE_BOT_NOT_ALLOWED` — Bots cannot schedule messages.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — You can't schedule a message this far in the future.\n- 400 · `SCHEDULE_STATUS_PRIVATE` — Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings.\n- 400 · `SCHEDULE_TOO_MUCH` — There are too many scheduled messages.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer.\n- 420 · `SLOWMODE_WAIT_%d` — Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.\n- 400 · `STORIES_NEVER_CREATED` — This peer hasn't ever posted any stories.\n- 400 · `STORY_ID_INVALID` — The specified story ID is invalid.\n- 400 · `SUGGESTED_POST_AMOUNT_INVALID` — The specified price for the suggested post is invalid.\n- 400 · `SUGGESTED_POST_PEER_INVALID` — You cannot send suggested posts to non-[monoforum](https://core.telegram.org/api/monoforum.md) peers.\n- 406 · `TOPIC_CLOSED` — This topic was closed, you can't send messages to it anymore.\n- 406 · `TOPIC_DELETED` — The specified topic was deleted.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `USER_BOT_TO_BOT_DISABLED` — Bot-to-bot messaging is disabled because one of the two bots hasn't enabled the Bot to Bot setting in @BotFather.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user.\n- 400 · `USER_IS_BOT` — Bots can't send messages to other bots.\n- 400 · `WC_CONVERT_URL_INVALID` — WC convert URL invalid.\n- 400 · `YOU_BLOCKED_USER` — You blocked this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Disable link previews."}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Send without sound notification."}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Send this message as background message"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Clear the draft field"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled"}, "update_stickersets_order": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true", "description": "Whether to move used stickersets to top, [see here for more info on this flag »](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": "If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Destination chat."}, "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": "The message or topic to which a reply is sent.", "x-tl-flag": "flags.0?InputReplyTo"}, "message": {"type": "string", "x-tl-type": "string", "description": "Message text."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique submission identifier to protect against replays.", "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": "Reply markup for sending bot buttons", "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "Message [entities](https://core.telegram.org/api/entities.md) for sending styled text"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Scheduled message date for [scheduled messages](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": "Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on 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": "Send this message as the specified peer", "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": "Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead.", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow.", "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` | いいえ | Disable link previews. |\n| `silent` | `true` | いいえ | Send without sound notification. |\n| `background` | `true` | いいえ | Send this message as background message |\n| `clear_draft` | `true` | いいえ | Clear the draft field |\n| `noforwards` | `true` | いいえ | Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled |\n| `update_stickersets_order` | `true` | いいえ | Whether to move used stickersets to top, [see here for more info on this flag »](https://core.telegram.org/api/stickers.md#recent-stickersets) |\n| `invert_media` | `true` | いいえ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |\n| `allow_paid_floodskip` | `true` | いいえ | Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance. |\n| `peer` | `InputPeer` | はい | Destination chat. |\n| `reply_to` | `InputReplyTo` | いいえ | The message or topic to which a reply is sent. |\n| `message` | `string` | はい | Message text. |\n| `random_id` | `long` | はい | Unique submission identifier to protect against replays. |\n| `reply_markup` | `ReplyMarkup` | いいえ | Reply markup for sending bot buttons |\n| `entities` | `Vector<MessageEntity>` | いいえ | Message [entities](https://core.telegram.org/api/entities.md) for sending styled text |\n| `schedule_date` | `int` | いいえ | Scheduled message date for [scheduled messages](https://core.telegram.org/api/scheduled-messages.md) |\n| `schedule_repeat_period` | `int` | いいえ | Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on repeating scheduled messages. |\n| `send_as` | `InputPeer` | いいえ | Send this message as the specified peer |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | いいえ | Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead. |\n| `effect` | `long` | いいえ | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |\n| `allow_paid_stars` | `long` | いいえ | For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message. |\n| `suggested_post` | `SuggestedPost` | いいえ | Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow. |\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": "Send a media", "description": "Send a media\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [File references](https://core.telegram.org/api/file-references.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.sendMedia", "x-tl-id": "53536639", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["File references", "https://core.telegram.org/api/file-references.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `ALLOW_PAYMENT_REQUIRED` — This peer only accepts [paid messages&nbsp;&raquo;](https://core.telegram.org/api/paid-messages.md): this error is only emitted for older layers without paid messages support, so the client must be updated in order to use paid messages.  .\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — This peer charges %d [Telegram Stars](https://core.telegram.org/api/stars.md) per message, but the `allow_paid_stars` was not set or its value is smaller than %d.\n- 400 · `BOT_GAMES_DISABLED` — Games can't be sent to channels.\n- 400 · `BOT_PAYMENTS_DISABLED` — Please enable bot payments in botfather before calling this method.\n- 400 · `BROADCAST_PUBLIC_VOTERS_FORBIDDEN` — You can't forward polls with public voters.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `BUSINESS_PEER_INVALID` — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUSINESS_PEER_USAGE_MISSING` — You cannot send a message to a user through a [business connection](https://core.telegram.org/api/business.md#connected-bots) if the user hasn't recently contacted us.\n- 400 · `BUTTON_COPY_TEXT_INVALID` — The specified [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy.md).`copy_text` is invalid.\n- 400 · `BUTTON_DATA_INVALID` — The data of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_POS_INVALID` — The position of one of the keyboard buttons is invalid (i.e. a Game or Pay button not in the first position, and so on...).\n- 400 · `BUTTON_TYPE_INVALID` — The type of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_URL_INVALID` — Button URL invalid.\n- 400 · `BUTTON_USER_PRIVACY_RESTRICTED` — The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile.md) button do not allow creating such a button.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — You can't forward messages from a protected chat.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — You join the discussion group before commenting, see [here&nbsp;&raquo;](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) for more info.\n- 400 · `CHAT_RESTRICTED` — You can't send messages in this chat, you were restricted.\n- 403 · `CHAT_SEND_AUDIOS_FORBIDDEN` — You can't send audio messages in this chat.\n- 403 · `CHAT_SEND_DOCS_FORBIDDEN` — You can't send documents in this chat.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — You can't send gifs in this chat.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — You can't send media in this chat.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — You can't send photos in this chat.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — You can't send non-media (text) messages in this chat.\n- 403 · `CHAT_SEND_POLL_FORBIDDEN` — You can't send polls in this chat.\n- 403 · `CHAT_SEND_ROUNDVIDEOS_FORBIDDEN` — You can't send round videos to this chat.\n- 403 · `CHAT_SEND_STICKERS_FORBIDDEN` — You can't send stickers in this chat.\n- 403 · `CHAT_SEND_VIDEOS_FORBIDDEN` — You can't send videos in this chat.\n- 403 · `CHAT_SEND_VOICES_FORBIDDEN` — You can't send voice recordings in this chat.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `CURRENCY_TOTAL_AMOUNT_INVALID` — The total amount of all prices is invalid.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 400 · `EFFECT_CHAT_INVALID` — Message [effects](https://core.telegram.org/api/effects.md) can only be used in private 1-on-1 chats, but the caller tried to send a message with an effect to a group or channel.\n- 400 · `EFFECT_ID_INVALID` — The specified effect ID is invalid.\n- 400 · `EMOTICON_INVALID` — The specified emoji is invalid.\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `EXTENDED_MEDIA_AMOUNT_INVALID` — The specified `stars_amount` of the passed [inputMediaPaidMedia](https://core.telegram.org/constructor/inputMediaPaidMedia.md) is invalid.\n- 400 · `EXTENDED_MEDIA_EMPTY` — The specified extended media is empty.\n- 400 · `EXTENDED_MEDIA_INVALID` — The specified paid media is invalid.\n- 400 · `EXTENDED_MEDIA_PEER_INVALID` — Paid media is not allowed for the target peer.\n- 400 · `EXTERNAL_URL_INVALID` — External URL invalid.\n- 400 · `FILE_PARTS_INVALID` — The number of file parts is invalid.\n- 400 · `FILE_PART_LENGTH_INVALID` — The length of a file part is invalid.\n- 400 · `FILE_REFERENCE_EMPTY` — An empty [file reference](https://core.telegram.org/api/file-references.md) was specified.\n- 400 · `FILE_REFERENCE_EXPIRED` — File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file-references.md).\n- 400 · `GAME_BOT_INVALID` — Bots can't send another bot's game.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 400 · `INPUT_FILE_INVALID` — The specified [InputFile](https://core.telegram.org/type/InputFile.md) is invalid.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `INVOICE_PAYLOAD_INVALID` — The specified invoice payload is invalid.\n- 400 · `MD5_CHECKSUM_INVALID` — The MD5 checksums do not match.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — The caption is too long.\n- 400 · `MEDIA_EMPTY` — The provided media object is invalid.\n- 400 · `MEDIA_FILE_INVALID` — The specified media file is invalid.\n- 400 · `MEDIA_INVALID` — Media invalid.\n- 400 · `MESSAGE_EMPTY` — The provided message is empty.\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PAYMENT_PROVIDER_INVALID` — The specified payment provider is invalid.\n- 406 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PHOTO_EXT_INVALID` — The extension of the photo is invalid.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — The photo dimensions are invalid.\n- 400 · `PHOTO_SAVE_FILE_INVALID` — Internal issues, try again later.\n- 400 · `POLL_ANSWERS_INVALID` — Invalid poll answers were provided.\n- 400 · `POLL_ANSWER_INVALID` — One of the poll answers is not acceptable.\n- 400 · `POLL_OPTION_DUPLICATE` — Duplicate poll options provided.\n- 400 · `POLL_OPTION_INVALID` — Invalid poll option provided.\n- 400 · `POLL_QUESTION_INVALID` — One of the poll questions is not acceptable.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Quick replies](https://core.telegram.org/api/business.md#quick-reply-shortcuts) cannot be used by bots.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) shortcuts may be created, the limit was reached.\n- 400 · `QUIZ_CORRECT_ANSWERS_EMPTY` — No correct quiz answer was specified.\n- 400 · `QUIZ_CORRECT_ANSWERS_TOO_MUCH` — You specified too many correct answers in a quiz, quizzes can only have one right answer!\n- 400 · `QUIZ_CORRECT_ANSWER_INVALID` — An invalid value was provided to the correct_answers field.\n- 400 · `QUIZ_MULTIPLE_INVALID` — Quizzes can't have the multiple_choice flag set!\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `REPLY_MARKUP_BUY_EMPTY` — Reply markup for buy button empty.\n- 400 · `REPLY_MARKUP_GAME_EMPTY` — A game message is being edited, but the newly provided keyboard doesn't have a keyboardButtonGame button.\n- 400 · `REPLY_MARKUP_INVALID` — The provided reply markup is invalid.\n- 400 · `REPLY_MARKUP_TOO_LONG` — The specified reply_markup is too long.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) messages, the limit was reached.\n- 400 · `REPLY_MESSAGE_ID_INVALID` — The specified reply-to message ID is invalid.\n- 400 · `REPLY_TO_MONOFORUM_PEER_INVALID` — The specified inputReplyToMonoForum.monoforum_peer_id is invalid.\n- 400 · `SCHEDULE_BOT_NOT_ALLOWED` — Bots cannot schedule messages.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — You can't schedule a message this far in the future.\n- 400 · `SCHEDULE_TOO_MUCH` — There are too many scheduled messages.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer.\n- 420 · `SLOWMODE_WAIT_%d` — Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.\n- 400 · `STARS_INVOICE_INVALID` — The specified Telegram Star invoice is invalid.\n- 400 · `STORY_ID_INVALID` — The specified story ID is invalid.\n- 400 · `SUBSCRIPTION_EXPORT_MISSING` — You cannot send a [bot subscription invoice](https://core.telegram.org/api/subscriptions.md#bot-subscriptions) directly, you may only create invoice links using [payments.exportInvoice](https://core.telegram.org/method/payments.exportInvoice.md).\n- 400 · `SUGGESTED_POST_PEER_INVALID` — You cannot send suggested posts to non-[monoforum](https://core.telegram.org/api/monoforum.md) peers.\n- 400 · `TERMS_URL_INVALID` — The specified [invoice](https://core.telegram.org/constructor/invoice.md).`terms_url` is invalid.\n- 400 · `TODO_ITEMS_EMPTY` — A checklist was specified, but no [checklist items](https://core.telegram.org/api/todo.md) were passed.\n- 400 · `TODO_ITEMS_TOO_MUCH` — You specified too many todo list items.\n- 400 · `TODO_ITEM_DUPLICATE` — Duplicate [checklist items](https://core.telegram.org/api/todo.md) detected.\n- 406 · `TOPIC_CLOSED` — This topic was closed, you can't send messages to it anymore.\n- 406 · `TOPIC_DELETED` — The specified topic was deleted.\n- 400 · `TTL_MEDIA_INVALID` — Invalid media Time To Live was provided.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `USER_BOT_TO_BOT_DISABLED` — Bot-to-bot messaging is disabled because one of the two bots hasn't enabled the Bot to Bot setting in @BotFather.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user.\n- 400 · `USER_IS_BOT` — Bots can't send messages to other bots.\n- 400 · `VIDEO_CONTENT_TYPE_INVALID` — The video's content type is invalid.\n- 400 · `VOICE_MESSAGES_FORBIDDEN` — This user's privacy settings forbid you from sending voice messages.\n- 400 · `WEBDOCUMENT_MIME_INVALID` — Invalid webdocument mime type provided.\n- 400 · `WEBPAGE_CURL_FAILED` — Failure while fetching the webpage with cURL.\n- 400 · `WEBPAGE_MEDIA_EMPTY` — Webpage media empty.\n- 400 · `WEBPAGE_NOT_FOUND` — A preview for the specified webpage `url` could not be generated.\n- 400 · `WEBPAGE_URL_INVALID` — The specified webpage `url` is invalid.\n- 400 · `YOU_BLOCKED_USER` — You blocked this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Send message silently (no notification should be triggered)"}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Send message in background"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Clear the draft"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled"}, "update_stickersets_order": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true", "description": "Whether to move used stickersets to top, [see here for more info on this flag »](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": "If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Destination"}, "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": "If set, indicates that the message should be sent in reply to the specified message or story.", "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": "Caption"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Random ID to avoid resending the same message. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "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": "Reply markup for bot keyboards", "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "スタイル付きテキストのメッセージ [entities](https://core.telegram.org/api/entities.md)]"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Scheduled message date for [scheduled messages](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": "Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on 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": "Send this message as the specified peer", "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": "Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead.", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow.", "x-tl-flag": "flags.22?SuggestedPost"}}, "additionalProperties": false, "required": ["peer", "media", "message", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Send message silently (no notification should be triggered) |\n| `background` | `true` | いいえ | Send message in background |\n| `clear_draft` | `true` | いいえ | Clear the draft |\n| `noforwards` | `true` | いいえ | Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled |\n| `update_stickersets_order` | `true` | いいえ | Whether to move used stickersets to top, [see here for more info on this flag »](https://core.telegram.org/api/stickers.md#recent-stickersets) |\n| `invert_media` | `true` | いいえ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |\n| `allow_paid_floodskip` | `true` | いいえ | Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance. |\n| `peer` | `InputPeer` | はい | Destination |\n| `reply_to` | `InputReplyTo` | いいえ | If set, indicates that the message should be sent in reply to the specified message or story. |\n| `media` | `InputMedia` | はい | 付属メディア |\n| `message` | `string` | はい | Caption |\n| `random_id` | `long` | はい | Random ID to avoid resending the same message. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `reply_markup` | `ReplyMarkup` | いいえ | Reply markup for bot keyboards |\n| `entities` | `Vector<MessageEntity>` | いいえ | スタイル付きテキストのメッセージ [entities](https://core.telegram.org/api/entities.md)] |\n| `schedule_date` | `int` | いいえ | Scheduled message date for [scheduled messages](https://core.telegram.org/api/scheduled-messages.md) |\n| `schedule_repeat_period` | `int` | いいえ | Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on repeating scheduled messages. |\n| `send_as` | `InputPeer` | いいえ | Send this message as the specified peer |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | いいえ | Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead. |\n| `effect` | `long` | いいえ | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |\n| `allow_paid_stars` | `long` | いいえ | For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message. |\n| `suggested_post` | `SuggestedPost` | いいえ | Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow. |"}, "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": "Forward messages", "description": "Forwards one or more messages from the source chat to the destination chat.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.forwardMessages", "x-tl-id": "326126204", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `ALLOW_PAYMENT_REQUIRED` — This peer only accepts [paid messages&nbsp;&raquo;](https://core.telegram.org/api/paid-messages.md): this error is only emitted for older layers without paid messages support, so the client must be updated in order to use paid messages.  .\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — This peer charges %d [Telegram Stars](https://core.telegram.org/api/stars.md) per message, but the `allow_paid_stars` was not set or its value is smaller than %d.\n- 400 · `BROADCAST_PUBLIC_VOTERS_FORBIDDEN` — You can't forward polls with public voters.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 406 · `CHAT_FORWARDS_RESTRICTED` — You can't forward messages from a protected chat.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — You join the discussion group before commenting, see [here&nbsp;&raquo;](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) for more info.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_RESTRICTED` — You can't send messages in this chat, you were restricted.\n- 403 · `CHAT_SEND_AUDIOS_FORBIDDEN` — You can't send audio messages in this chat.\n- 403 · `CHAT_SEND_DOCS_FORBIDDEN` — You can't send documents in this chat.\n- 403 · `CHAT_SEND_GAME_FORBIDDEN` — You can't send a game to this chat.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — You can't send gifs in this chat.\n- 403 · `CHAT_SEND_INLINE_FORBIDDEN` — You can't send inline messages in this group.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — You can't send media in this chat.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — You can't send photos in this chat.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — You can't send non-media (text) messages in this chat.\n- 403 · `CHAT_SEND_POLL_FORBIDDEN` — You can't send polls in this chat.\n- 403 · `CHAT_SEND_STICKERS_FORBIDDEN` — You can't send stickers in this chat.\n- 403 · `CHAT_SEND_VIDEOS_FORBIDDEN` — You can't send videos in this chat.\n- 403 · `CHAT_SEND_VOICES_FORBIDDEN` — You can't send voice recordings in this chat.\n- 403 · `CHAT_SEND_WEBPAGE_FORBIDDEN` — You can't send webpage previews to this chat.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `GROUPED_MEDIA_INVALID` — Invalid grouped media.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MEDIA_EMPTY` — The provided media object is invalid.\n- 400 · `MEDIA_FILE_INVALID` — The specified media file is invalid.\n- 400 · `MESSAGE_IDS_EMPTY` — No message ids were provided.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 406 · `PAYMENT_UNSUPPORTED` — A detailed description of the error will be received separately as described [here&nbsp;&raquo;](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 406 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 406 · `PRIVACY_PREMIUM_REQUIRED` — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Quick replies](https://core.telegram.org/api/business.md#quick-reply-shortcuts) cannot be used by bots.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) shortcuts may be created, the limit was reached.\n- 400 · `QUIZ_ANSWER_MISSING` — You can forward a quiz while hiding the original author only after choosing an option in the quiz.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `RANDOM_ID_INVALID` — A provided random ID is invalid.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) messages, the limit was reached.\n- 400 · `REPLY_TO_MONOFORUM_PEER_INVALID` — The specified inputReplyToMonoForum.monoforum_peer_id is invalid.\n- 400 · `SCHEDULE_BOT_NOT_ALLOWED` — Bots cannot schedule messages.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — You can't schedule a message this far in the future.\n- 400 · `SCHEDULE_TOO_MUCH` — There are too many scheduled messages.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer.\n- 400 · `SLOWMODE_MULTI_MSGS_DISABLED` — Slowmode is enabled, you cannot forward multiple messages to this group.\n- 420 · `SLOWMODE_WAIT_%d` — Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.\n- 400 · `SUGGESTED_POST_PEER_INVALID` — You cannot send suggested posts to non-[monoforum](https://core.telegram.org/api/monoforum.md) peers.\n- 406 · `TOPIC_CLOSED` — This topic was closed, you can't send messages to it anymore.\n- 406 · `TOPIC_DELETED` — The specified topic was deleted.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `USER_BOT_TO_BOT_DISABLED` — Bot-to-bot messaging is disabled because one of the two bots hasn't enabled the Bot to Bot setting in @BotFather.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user.\n- 400 · `USER_IS_BOT` — Bots can't send messages to other bots.\n- 403 · `VOICE_MESSAGES_FORBIDDEN` — This user's privacy settings forbid you from sending voice messages.\n- 400 · `YOU_BLOCKED_USER` — You blocked this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Forward without sound notification."}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Whether to send the message in background"}, "with_my_score": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "When forwarding games, whether to include your score in the game"}, "drop_author": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true", "description": "Whether to forward messages without quoting the original author"}, "drop_media_captions": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true", "description": "Whether to strip captions from media"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled"}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance."}, "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": "The chat from which you want to forward messages."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Source message IDs."}, "random_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "A unique forwarding ID for each message."}, "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": "Destination chat."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int", "description": "Destination [forum topic](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": "Can only contain an [inputReplyToMonoForum](https://core.telegram.org/constructor/inputReplyToMonoForum.md), to forward messages to a [monoforum topic](https://core.telegram.org/api/monoforum.md) (mutually exclusive with `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": "Scheduled message date for scheduled messages"}, "schedule_repeat_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.24?int", "description": "Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on 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": "Forward the messages as the specified peer", "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": "Add the messages to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead.", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message.", "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": "For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow.", "x-tl-flag": "flags.23?SuggestedPost"}}, "additionalProperties": false, "required": ["from_peer", "id", "random_id", "to_peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Forward without sound notification. |\n| `background` | `true` | いいえ | Whether to send the message in background |\n| `with_my_score` | `true` | いいえ | When forwarding games, whether to include your score in the game |\n| `drop_author` | `true` | いいえ | Whether to forward messages without quoting the original author |\n| `drop_media_captions` | `true` | いいえ | Whether to strip captions from media |\n| `noforwards` | `true` | いいえ | Only for bots, disallows further re-forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled |\n| `allow_paid_floodskip` | `true` | いいえ | Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance. |\n| `from_ephemeral` | `true` | いいえ | TL 型 `true` の値。 |\n| `from_peer` | `InputPeer` | はい | The chat from which you want to forward messages. |\n| `id` | `Vector<int>` | はい | Source message IDs. |\n| `random_id` | `Vector<long>` | はい | A unique forwarding ID for each message. |\n| `to_peer` | `InputPeer` | はい | Destination chat. |\n| `top_msg_id` | `int` | いいえ | Destination [forum topic](https://core.telegram.org/api/forum.md#forum-topics) |\n| `reply_to` | `InputReplyTo` | いいえ | Can only contain an [inputReplyToMonoForum](https://core.telegram.org/constructor/inputReplyToMonoForum.md), to forward messages to a [monoforum topic](https://core.telegram.org/api/monoforum.md) (mutually exclusive with `top_msg_id`). |\n| `schedule_date` | `int` | いいえ | Scheduled message date for scheduled messages |\n| `schedule_repeat_period` | `int` | いいえ | Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on repeating scheduled messages. |\n| `send_as` | `InputPeer` | いいえ | Forward the messages as the specified peer |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | いいえ | Add the messages to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead. |\n| `effect` | `long` | いいえ | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |\n| `video_timestamp` | `int` | いいえ | 指定したタイムスタンプ (秒) でビデオの再生を開始します。 |\n| `allow_paid_stars` | `long` | いいえ | For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message. |\n| `suggested_post` | `SuggestedPost` | いいえ | Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow. |"}, "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": "Report a new incoming chat for spam, if the peer settings of the chat allow us to do that", "description": "Report a new incoming chat for spam, if the [peer settings](https://core.telegram.org/constructor/peerSettings.md) of the chat allow us to do that\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer to report"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer to report |"}, "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": "Get peer settings", "description": "Get peer settings\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getPeerSettings", "x-tl-id": "4024018594", "x-tl-result": "messages.PeerSettings", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.PeerSettings."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Report a message in a chat for violation of telegram's Terms of Service", "description": "Report a message in a chat for violation of telegram's Terms of Service\n\n**Who can call this method** · Telegram users only.", "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 Result · `ReportResult`.\n\n[ReportResult](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 Type: ReportResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MESSAGE_REQUIRED` — A non-empty list of IDs must be passed to `id`.\n- 400 · `OPTION_INVALID` — Invalid option selected.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "IDs of messages to report"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Menu option, intially empty"}, "message": {"type": "string", "x-tl-type": "string", "description": "Comment for report moderation"}}, "additionalProperties": false, "required": ["peer", "id", "option", "message"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `id` | `Vector<int>` | はい | IDs of messages to report |\n| `option` | `bytes` | はい | Menu option, intially empty |\n| `message` | `string` | はい | Comment for report moderation |"}, "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": "Returns chat basic info on their IDs.", "description": "Returns chat basic info on their IDs.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: messages.Chats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "List of chat IDs"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | はい | List of chat IDs |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1240027791"}}, "/catalog/messages.getFullChat": {"post": {"operationId": "messages.getFullChat", "tags": ["メッセージ"], "summary": "Get full info about a basic group.", "description": "Get full info about a [basic group](https://core.telegram.org/api/channel.md#basic-groups).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getFullChat", "x-tl-id": "2930772788", "x-tl-result": "messages.ChatFull", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.ChatFull."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Basic group](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` | はい | [Basic group](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": "Changes chat name and sends a service message on it.", "description": "Changes chat name and sends a service message on it.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `CHAT_TITLE_EMPTY` — No chat title provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New chat name, different from the old one"}}, "additionalProperties": false, "required": ["chat_id", "title"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | はい | チャットID |\n| `title` | `string` | はい | New chat name, different from the old one |"}, "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": "Changes chat photo and sends a service message on it", "description": "Changes chat photo and sends a service message on it\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Photo is too small.\n- 400 · `PHOTO_EXT_INVALID` — The extension of the photo is invalid.\n- 400 · `PHOTO_INVALID` — Photo invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Photo to be set"}}, "additionalProperties": false, "required": ["chat_id", "photo"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | はい | チャットID |\n| `photo` | `InputChatPhoto` | はい | Photo to be set |"}, "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": "Adds a user to a chat and sends a service message on it.", "description": "Adds a user to a chat and sends a service message on it.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.InvitedUsers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_GROUPS_BLOCKED` — This bot can't be added to groups.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Could not add participants.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USERS_TOO_MUCH` — The maximum number of users has been exceeded (to create a chat, for example).\n- 400 · `USER_ALREADY_PARTICIPANT` — The user is already in the group.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 400 · `USER_IS_BLOCKED` — You were blocked by this user.\n- 403 · `USER_NOT_MUTUAL_CONTACT` — The provided user is not a mutual contact.\n- 403 · `USER_PRIVACY_RESTRICTED` — The user's privacy settings do not allow you to do this.\n- 400 · `YOU_BLOCKED_USER` — You blocked this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "User ID to be added"}, "fwd_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of last messages to be forwarded"}}, "additionalProperties": false, "required": ["chat_id", "user_id", "fwd_limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | はい | チャットID |\n| `user_id` | `InputUser` | はい | User ID to be added |\n| `fwd_limit` | `int` | はい | Number of last messages to be forwarded |"}, "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": "Deletes a user from a chat and sends a service message on it.", "description": "Deletes a user from a chat and sends a service message on it.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 400 · `USER_NOT_PARTICIPANT` — You're not a member of this supergroup/channel."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Remove the entire chat history of the specified user in this chat."}, "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": "User ID to be deleted"}}, "additionalProperties": false, "required": ["chat_id", "user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `revoke_history` | `true` | いいえ | Remove the entire chat history of the specified user in this chat. |\n| `chat_id` | `long` | はい | チャットID |\n| `user_id` | `InputUser` | はい | User ID to be deleted |"}, "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": "Creates a new chat.", "description": "Creates a new chat.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.InvitedUsers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 500 · `CHAT_ID_GENERATE_FAILED` — Failure while generating the chat ID.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Could not add participants.\n- 400 · `CHAT_TITLE_EMPTY` — No chat title provided.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `TTL_PERIOD_INVALID` — The specified TTL period is invalid.\n- 400 · `USERS_TOO_FEW` — Not enough users (to create a chat, for example).\n- 406 · `USER_RESTRICTED` — You're spamreported, you can't create channels or chats."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "List of user IDs to be invited"}, "title": {"type": "string", "x-tl-type": "string", "description": "Chat name"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md) to edit this value later."}}, "additionalProperties": false, "required": ["users", "title"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `users` | `Vector<InputUser>` | はい | List of user IDs to be invited |\n| `title` | `string` | はい | Chat name |\n| `ttl_period` | `int` | いいえ | Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md) to edit this value later. |"}, "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": "Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.", "description": "Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.DhConfig."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `RANDOM_LENGTH_INVALID` — Random length invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Value of the **version** parameter from [messages.dhConfig](https://core.telegram.org/constructor/messages.dhConfig.md), available at the client"}, "random_length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Length of the required random sequence"}}, "additionalProperties": false, "required": ["version", "random_length"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `version` | `int` | はい | Value of the **version** parameter from [messages.dhConfig](https://core.telegram.org/constructor/messages.dhConfig.md), available at the client |\n| `random_length` | `int` | はい | Length of the required random sequence |"}, "x-telegram-rpc-errors": ["RANDOM_LENGTH_INVALID"], "x-browser-schema-id": "651135312"}}, "/catalog/messages.requestEncryption": {"post": {"operationId": "messages.requestEncryption", "tags": ["メッセージ"], "summary": "Sends a request to start a secret chat to the user.", "description": "Sends a request to start a secret chat to the user.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.requestEncryption", "x-tl-id": "4132286275", "x-tl-result": "EncryptedChat", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `EncryptedChat`.\n\n[EncryptedChat](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 Type: EncryptedChat."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DH_G_A_INVALID` — g_a invalid.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Unique client request ID required to prevent resending. This also doubles as the chat ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}, "g_a": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`A = g ^ a mod p`、[Wikipedia](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` | はい | Unique client request ID required to prevent resending. This also doubles as the chat ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `g_a` | `bytes` | はい | `A = g ^ a mod p`、[Wikipedia](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": "Confirms creation of a secret chat", "description": "Confirms creation of a secret chat\n\n**Who can call this method** · Telegram users only.", "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 result · `EncryptedChat`.\n\n[EncryptedChat](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 Type: EncryptedChat."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `ENCRYPTION_ALREADY_ACCEPTED` — Secret chat already accepted.\n- 400 · `ENCRYPTION_ALREADY_DECLINED` — The secret chat was already declined."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Secret chat ID"}, "g_b": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)"}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "64-bit fingerprint of the received key", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "g_b", "key_fingerprint"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | はい | Secret chat ID |\n| `g_b` | `bytes` | はい | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) |\n| `key_fingerprint` | `long` | はい | 64-bit fingerprint of the received key |"}, "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": "Cancels a request for creation and/or delete info on secret chat.", "description": "Cancels a request for creation and/or delete info on secret chat.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_EMPTY` — The provided chat ID is empty.\n- 400 · `ENCRYPTION_ALREADY_ACCEPTED` — Secret chat already accepted.\n- 400 · `ENCRYPTION_ALREADY_DECLINED` — The secret chat was already declined.\n- 400 · `ENCRYPTION_ID_INVALID` — The provided secret chat ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to delete the entire chat history for the other user as well"}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Secret chat ID"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `delete_history` | `true` | いいえ | Whether to delete the entire chat history for the other user as well |\n| `chat_id` | `int` | はい | Secret chat 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": "Send typing event by the current user to a secret chat.", "description": "Send typing event by the current user to a secret chat.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Secret chat ID"}, "typing": {"type": "boolean", "x-tl-type": "Bool", "description": "Typing. **Possible values**: [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), if the user started typing and more than **5 seconds** have passed since the last request [(boolFalse)](https://core.telegram.org/constructor/boolFalse.md), if the user stopped typing"}}, "additionalProperties": false, "required": ["peer", "typing"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | はい | Secret chat ID |\n| `typing` | `Bool` | はい | Typing. **Possible values**: [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md), if the user started typing and more than **5 seconds** have passed since the last request [(boolFalse)](https://core.telegram.org/constructor/boolFalse.md), if the user stopped typing |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID"], "x-browser-schema-id": "2031374829"}}, "/catalog/messages.readEncryptedHistory": {"post": {"operationId": "messages.readEncryptedHistory", "tags": ["メッセージ"], "summary": "Marks message history within a secret chat as read.", "description": "Marks message history within a secret chat as read.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `MAX_DATE_INVALID` — The specified maximum date is invalid.\n- 400 · `MSG_WAIT_FAILED` — A waiting call returned an error."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Secret chat ID"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum date value for received messages in history"}}, "additionalProperties": false, "required": ["peer", "max_date"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | はい | Secret chat ID |\n| `max_date` | `int` | はい | Maximum date value for received messages in history |"}, "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": "Sends a text message to a secret chat.", "description": "Sends a text message to a secret chat.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendEncrypted", "x-tl-id": "1157265941", "x-tl-result": "messages.SentEncryptedMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SentEncryptedMessage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `DATA_INVALID` — Encrypted data invalid.\n- 400 · `DATA_TOO_LONG` — Data too long.\n- 400 · `ENCRYPTION_DECLINED` — The secret chat was declined.\n- 500 · `MSG_WAIT_FAILED` — A waiting call returned an error.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Send encrypted message without a notification"}, "peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Secret chat ID"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique client message ID, necessary to avoid message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL-serialization of [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) type, encrypted with a key that was created during chat initialization"}}, "additionalProperties": false, "required": ["peer", "random_id", "data"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Send encrypted message without a notification |\n| `peer` | `InputEncryptedChat` | はい | Secret chat ID |\n| `random_id` | `long` | はい | Unique client message ID, necessary to avoid message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `data` | `bytes` | はい | TL-serialization of [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) type, encrypted with a key that was created during chat initialization |"}, "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": "Sends a message with a file attachment to a secret chat", "description": "Sends a message with a file attachment to a secret chat\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendEncryptedFile", "x-tl-id": "1431914525", "x-tl-result": "messages.SentEncryptedMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SentEncryptedMessage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `DATA_TOO_LONG` — Data too long.\n- 400 · `ENCRYPTION_DECLINED` — The secret chat was declined.\n- 400 · `FILE_EMTPY` — An empty file was provided.\n- 400 · `MD5_CHECKSUM_INVALID` — The MD5 checksums do not match.\n- 400 · `MSG_WAIT_FAILED` — A waiting call returned an error."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to send the file without triggering a notification"}, "peer": {"type": "object", "x-tl-type": "InputEncryptedChat", "oneOf": [{"$ref": "#/components/schemas/inputEncryptedChat"}], "description": "Secret chat ID"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique client message ID necessary to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL-serialization of [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) type, encrypted with a key generated during chat initialization"}, "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": "File attachment for the secret chat"}}, "additionalProperties": false, "required": ["peer", "random_id", "data", "file"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Whether to send the file without triggering a notification |\n| `peer` | `InputEncryptedChat` | はい | Secret chat ID |\n| `random_id` | `long` | はい | Unique client message ID necessary to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `data` | `bytes` | はい | TL-serialization of [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) type, encrypted with a key generated during chat initialization |\n| `file` | `InputEncryptedFile` | はい | File attachment for the secret chat |"}, "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": "Sends a service message to a secret chat.", "description": "Sends a service message to a secret chat.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendEncryptedService", "x-tl-id": "852769188", "x-tl-result": "messages.SentEncryptedMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SentEncryptedMessage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `DATA_INVALID` — Encrypted data invalid.\n- 400 · `DATA_TOO_LONG` — Data too long.\n- 400 · `ENCRYPTION_DECLINED` — The secret chat was declined.\n- 400 · `ENCRYPTION_ID_INVALID` — The provided secret chat ID is invalid.\n- 500 · `MSG_WAIT_FAILED` — A waiting call returned an error.\n- 403 · `USER_DELETED` — You can't send this secret message because the other participant deleted their account.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Secret chat ID"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique client message ID required to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL-serialization of  [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) type, encrypted with a key generated during chat initialization"}}, "additionalProperties": false, "required": ["peer", "random_id", "data"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | はい | Secret chat ID |\n| `random_id` | `long` | はい | Unique client message ID required to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `data` | `bytes` | はい | TL-serialization of  [DecryptedMessage](https://core.telegram.org/type/DecryptedMessage.md) type, encrypted with a key generated during chat initialization |"}, "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": "Confirms receipt of messages in a secret chat by client, cancels push notifications.  ", "description": "Confirms receipt of messages in a secret chat by client, cancels push notifications.  \nThe method returns a list of **random\\_id**s of messages for which push notifications were cancelled.\n\n**Who can call this method** · Telegram users only.", "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 result · `Vector<long>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[long](https://core.telegram.org/type/long.md)&gt;", "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 errors (RPC)\n\n- 400 · `MAX_QTS_INVALID` — The specified max_qts is invalid.\n- 500 · `MSG_WAIT_FAILED` — A waiting call returned an error."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Maximum qts value available at the client"}}, "additionalProperties": false, "required": ["max_qts"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `max_qts` | `int` | はい | Maximum qts value available at the client |"}, "x-telegram-rpc-errors": ["MAX_QTS_INVALID", "MSG_WAIT_FAILED"], "x-browser-schema-id": "1436924774"}}, "/catalog/messages.reportEncryptedSpam": {"post": {"operationId": "messages.reportEncryptedSpam", "tags": ["メッセージ"], "summary": "Report a secret chat for spam", "description": "Report a secret chat for spam\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The secret chat to report"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | はい | The secret chat to report |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID"], "x-browser-schema-id": "1259113487"}}, "/catalog/messages.readMessageContents": {"post": {"operationId": "messages.readMessageContents", "tags": ["メッセージ"], "summary": "Notifies the sender about the recipient having listened a voice message or watched a video, emitting an updateReadMessagesContents.", "description": "Notifies the sender about the recipient having listened a voice message or watched a video, emitting an [updateReadMessagesContents](https://core.telegram.org/constructor/updateReadMessagesContents.md).\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: messages.AffectedMessages."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Message ID list"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<int>` | はい | Message ID list |"}, "x-browser-schema-id": "916930423"}}, "/catalog/messages.getStickers": {"post": {"operationId": "messages.getStickers", "tags": ["メッセージ"], "summary": "Get stickers by emoji", "description": "Get stickers by emoji\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getStickers", "x-tl-id": "3584414625", "x-tl-result": "messages.Stickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Stickers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMOTICON_EMPTY` — The emoji is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The emoji"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["emoticon", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `emoticon` | `string` | はい | The emoji |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](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": "Get all installed stickers", "description": "Get all installed stickers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getAllStickers", "x-tl-id": "3097534888", "x-tl-result": "messages.AllStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto Result · `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 type: messages.AllStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getAllStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3097534888"}}, "/catalog/messages.getWebPagePreview": {"post": {"operationId": "messages.getWebPagePreview", "tags": ["メッセージ"], "summary": "Get preview of webpage", "description": "Get preview of webpage\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)", "x-tl-method": "messages.getWebPagePreview", "x-tl-id": "1460498287", "x-tl-result": "messages.WebPagePreview", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"]], "responses": {"200": {"description": "MTProto Result · `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 type: messages.WebPagePreview."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `MESSAGE_EMPTY` — The provided message is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Message from which to extract the preview"}, "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)"}}, "additionalProperties": false, "required": ["message"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `message` | `string` | はい | Message from which to extract the preview |\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": "Export an invite link for a chat", "description": "Export an invite link for a chat\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.exportChatInvite", "x-tl-id": "2757090960", "x-tl-result": "ExportedChatInvite", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `ExportedChatInvite`.\n\n[ExportedChatInvite](https://core.telegram.org/type/ExportedChatInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedChatInvite", "oneOf": [{"$ref": "#/components/schemas/chatInviteExported"}, {"$ref": "#/components/schemas/chatInvitePublicJoinRequests"}], "description": "TL Type: ExportedChatInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `EXPIRE_DATE_INVALID` — The specified expiration date is invalid.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PRICING_CHAT_INVALID` — The pricing for the [subscription](https://core.telegram.org/api/subscriptions.md) is invalid, the maximum price is specified in the [`stars_subscription_amount_max` config key&nbsp;&raquo;](https://core.telegram.org/api/config.md#stars-subscription-amount-max).\n- 400 · `SUBSCRIPTION_PERIOD_INVALID` — The specified subscription_pricing.period is invalid.\n- 400 · `USAGE_LIMIT_INVALID` — The specified usage limit is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.exportChatInvite"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"legacy_revoke_permanent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients."}, "request_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Whether admin confirmation is required before admitting each separate user into the chat"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Chat"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Expiration date"}, "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": "Description of the invite link, visible only to administrators"}, "subscription_pricing": {"type": "object", "x-tl-type": "StarsSubscriptionPricing", "oneOf": [{"$ref": "#/components/schemas/starsSubscriptionPricing"}], "description": "[Telegram Star サブスクリプション »](https://core.telegram.org/api/stars.md#star-subscriptions) には、ユーザーがプライベート チャネルに参加するためにアクティブ化する必要があるサブスクリプションの価格が含まれています。", "x-tl-flag": "flags.5?StarsSubscriptionPricing"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `legacy_revoke_permanent` | `true` | いいえ | Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients. |\n| `request_needed` | `true` | いいえ | Whether admin confirmation is required before admitting each separate user into the chat |\n| `peer` | `InputPeer` | はい | Chat |\n| `expire_date` | `int` | いいえ | Expiration date |\n| `usage_limit` | `int` | いいえ | このリンクを使用して参加できるユーザーの最大数 |\n| `title` | `string` | いいえ | Description of the invite link, visible only to administrators |\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": "Check the validity of a chat invite link and get basic info about it", "description": "Check the validity of a chat invite link and get basic info about it\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "messages.checkChatInvite", "x-tl-id": "1051570619", "x-tl-result": "ChatInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto Result · `ChatInvite`.\n\n[ChatInvite](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 Type: ChatInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `INVITE_HASH_EMPTY` — The invite hash is empty.\n- 406 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `INVITE_HASH_INVALID` — The invite hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Invite hash from [chat invite deep link »](https://core.telegram.org/api/links.md#chat-invite-links)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `string` | はい | Invite hash from [chat invite deep link »](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": "Import a chat invite and join a private chat/supergroup/channel", "description": "Import a chat invite and join a private chat/supergroup/channel\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)", "x-tl-method": "messages.importChatInvite", "x-tl-id": "3734061934", "x-tl-result": "messages.ChatInviteJoinResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ChatInviteJoinResult`.\n\n[Updates](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 errors (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — You have joined too many channels/supergroups.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `INVITE_HASH_EMPTY` — The invite hash is empty.\n- 406 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `INVITE_HASH_INVALID` — The invite hash is invalid.\n- 400 · `INVITE_REQUEST_SENT` — You have successfully requested to join this chat or channel.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STARS_PAYMENT_REQUIRED` — To import this chat invite link, you must first [pay for the associated Telegram Star subscription&nbsp;&raquo;](https://core.telegram.org/api/subscriptions.md#channel-subscriptions).\n- 400 · `USERS_TOO_MUCH` — The maximum number of users has been exceeded (to create a chat, for example).\n- 400 · `USER_ALREADY_PARTICIPANT` — The user is already in the group.\n- 400 · `USER_CHANNELS_TOO_MUCH` — One of the users you tried to add is already in too many channels/supergroups."}}, "externalDocs": {"description": "Official Telegram documentation", "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` from a [chat invite deep link](https://core.telegram.org/api/links.md#chat-invite-links)"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `string` | はい | `hash` from a [chat invite deep link](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": "Get info about a stickerset", "description": "Get info about a stickerset\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getStickerSet", "x-tl-id": "3365989492", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMOTICON_STICKERPACK_MISSING` — inputStickerSetDice.emoji cannot be empty.\n- 406 · `STICKERSET_INVALID` — The provided sticker set is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Install a stickerset", "description": "Install a stickerset\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.StickerSetInstallResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `STICKERSET_INVALID` — The provided sticker set is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Stickerset to install"}, "archived": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to archive stickerset"}}, "additionalProperties": false, "required": ["stickerset", "archived"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | はい | Stickerset to install |\n| `archived` | `Bool` | はい | Whether to archive stickerset |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "3348096096"}}, "/catalog/messages.uninstallStickerSet": {"post": {"operationId": "messages.uninstallStickerSet", "tags": ["メッセージ"], "summary": "Uninstall a stickerset", "description": "Uninstall a stickerset\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `STICKERSET_INVALID` — The provided sticker set is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The stickerset to uninstall"}}, "additionalProperties": false, "required": ["stickerset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | はい | The stickerset to uninstall |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "4184757726"}}, "/catalog/messages.startBot": {"post": {"operationId": "messages.startBot", "tags": ["メッセージ"], "summary": "Start a conversation with a bot using a deep linking parameter", "description": "Start a conversation with a bot using a [deep linking parameter](https://core.telegram.org/api/links.md#bot-links)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "messages.startBot", "x-tl-id": "3873403768", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `START_PARAM_EMPTY` — The start parameter is empty.\n- 400 · `START_PARAM_INVALID` — Start parameter invalid.\n- 400 · `START_PARAM_TOO_LONG` — Start parameter is too long."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The chat where to start the bot, can be the bot's private chat or a group"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Random ID to avoid resending the same message. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "start_param": {"type": "string", "x-tl-type": "string", "description": "[Deep linking parameter](https://core.telegram.org/api/links.md#bot-links)"}}, "additionalProperties": false, "required": ["bot", "peer", "random_id", "start_param"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot |\n| `peer` | `InputPeer` | はい | The chat where to start the bot, can be the bot's private chat or a group |\n| `random_id` | `long` | はい | Random ID to avoid resending the same message. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `start_param` | `string` | はい | [Deep linking parameter](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": "Get and increase the view counter of a message sent or forwarded from a channel", "description": "Get and increase the view counter of a message sent or forwarded from a [channel](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getMessagesViews", "x-tl-id": "1468322785", "x-tl-result": "messages.MessageViews", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.MessageViews."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the message was found"}, "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": "Whether to mark the message as viewed and increment the view counter"}}, "additionalProperties": false, "required": ["peer", "id", "increment"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the message was found |\n| `id` | `Vector<int>` | はい | メッセージのID |\n| `increment` | `Bool` | はい | Whether to mark the message as viewed and increment the view counter |"}, "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": "Make a user admin in a basic group.", "description": "Make a user admin in a [basic group](https://core.telegram.org/api/channel.md#basic-groups).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatAdmin", "x-tl-id": "2824589762", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 400 · `USER_NOT_PARTICIPANT` — You're not a member of this supergroup/channel."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The ID of the group", "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": "The user to make admin"}, "is_admin": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to make them admin"}}, "additionalProperties": false, "required": ["chat_id", "user_id", "is_admin"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | はい | The ID of the group |\n| `user_id` | `InputUser` | はい | The user to make admin |\n| `is_admin` | `Bool` | はい | Whether to make them admin |"}, "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": "Turn a basic group into a supergroup", "description": "Turn a [basic group into a supergroup](https://core.telegram.org/api/channel.md#migration)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.migrateChat", "x-tl-id": "2726777625", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — You have joined too many channels/supergroups.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 500 · `CHAT_INVALID` — Invalid chat.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Basic group](https://core.telegram.org/api/channel.md#basic-groups) to migrate", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["chat_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chat_id` | `long` | はい | [Basic group](https://core.telegram.org/api/channel.md#basic-groups) to migrate |"}, "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": "Search for messages and peers globally", "description": "Search for messages and peers globally\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Search and filters](https://core.telegram.org/api/search.md)\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.searchGlobal", "x-tl-id": "1629922364", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Search and filters", "https://core.telegram.org/api/search.md"], ["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FOLDER_ID_INVALID` — Invalid folder ID.\n- 400 · `INPUT_FILTER_INVALID` — The specified filter is invalid.\n- 400 · `SEARCH_QUERY_EMPTY` — The search query is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, only returns results from channels (used in the [global channel search tab »](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": "Whether to search only in groups"}, "users_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Whether to search only in private chats"}, "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 Type: InputChannel.", "x-tl-flag": "flags.4?InputChannel"}, "q": {"type": "string", "x-tl-type": "string", "description": "Query"}, "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": "Global search filter"}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was specified, the method will return only messages with date bigger than min_date"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was transferred, the method will return only messages with date smaller than max_date"}, "offset_rate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Initially 0, then set to the [`next_rate` parameter of messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md), or if that is absent, the `date` of the last returned message."}, "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": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](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` | いいえ | If set, only returns results from channels (used in the [global channel search tab »](https://core.telegram.org/api/search.md#global-search)). |\n| `groups_only` | `true` | いいえ | Whether to search only in groups |\n| `users_only` | `true` | いいえ | Whether to search only in private chats |\n| `folder_id` | `int` | いいえ | [ピアフォルダーID、詳細についてはここをクリック](https://core.telegram.org/api/folders.md#peer-folders) |\n| `community` | `InputChannel` | いいえ | TL Type: InputChannel. |\n| `q` | `string` | はい | Query |\n| `filter` | `MessagesFilter` | はい | Global search filter |\n| `min_date` | `int` | はい | If a positive value was specified, the method will return only messages with date bigger than min_date |\n| `max_date` | `int` | はい | If a positive value was transferred, the method will return only messages with date smaller than max_date |\n| `offset_rate` | `int` | はい | Initially 0, then set to the [`next_rate` parameter of messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md), or if that is absent, the `date` of the last returned message. |\n| `offset_peer` | `InputPeer` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | [Offsets for pagination, for more info click here](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": "Reorder installed stickersets", "description": "Reorder installed stickersets\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.reorderStickerSets", "x-tl-id": "2016638777", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Reorder mask stickersets"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Reorder [custom emoji stickersets](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": "New stickerset order by stickerset IDs"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `masks` | `true` | いいえ | Reorder mask stickersets |\n| `emojis` | `true` | いいえ | Reorder [custom emoji stickersets](https://core.telegram.org/api/custom-emoji.md) |\n| `order` | `Vector<long>` | はい | New stickerset order by stickerset IDs |"}, "x-browser-schema-id": "2016638777"}}, "/catalog/messages.getDocumentByHash": {"post": {"operationId": "messages.getDocumentByHash", "tags": ["メッセージ"], "summary": "Get a document by its SHA256 hash, mainly used for gifs", "description": "Get a document by its SHA256 hash, mainly used for gifs\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Document`.\n\n[Document](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 Type: Document."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SHA256_HASH_INVALID` — The provided SHA256 hash is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 of file"}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "Size of the file in bytes", "x-tl-type": "long"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "Mime type"}}, "additionalProperties": false, "required": ["sha256", "size", "mime_type"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `sha256` | `bytes` | はい | SHA256 of file |\n| `size` | `long` | はい | Size of the file in bytes |\n| `mime_type` | `string` | はい | Mime type |"}, "x-telegram-rpc-errors": ["SHA256_HASH_INVALID"], "x-browser-schema-id": "2985428511"}}, "/catalog/messages.getSavedGifs": {"post": {"operationId": "messages.getSavedGifs", "tags": ["メッセージ"], "summary": "Get saved GIFs.", "description": "Get saved GIFs.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSavedGifs", "x-tl-id": "1559270965", "x-tl-result": "messages.SavedGifs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SavedGifs."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getSavedGifs"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1559270965"}}, "/catalog/messages.saveGif": {"post": {"operationId": "messages.saveGif", "tags": ["メッセージ"], "summary": "Add GIF to saved gifs list", "description": "Add GIF to saved gifs list\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GIF_ID_INVALID` — The provided GIF ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 to save"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to remove GIF from saved gifs list"}}, "additionalProperties": false, "required": ["id", "unsave"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | はい | GIF to save |\n| `unsave` | `Bool` | はい | Whether to remove GIF from saved gifs list |"}, "x-telegram-rpc-errors": ["GIF_ID_INVALID"], "x-browser-schema-id": "846868683"}}, "/catalog/messages.getInlineBotResults": {"post": {"operationId": "messages.getInlineBotResults", "tags": ["メッセージ"], "summary": "Query an inline bot", "description": "Query an inline bot\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: messages.BotResults."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INLINE_DISABLED` — This bot can't be used in inline mode.\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `BOT_RESPONSE_TIMEOUT` — A timeout occurred while fetching data from the bot.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot to query"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The currently opened chat"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "oneOf": [{"$ref": "#/components/schemas/inputGeoPointEmpty"}, {"$ref": "#/components/schemas/inputGeoPoint"}], "description": "The geolocation, if requested", "x-tl-flag": "flags.0?InputGeoPoint"}, "query": {"type": "string", "x-tl-type": "string", "description": "The query"}, "offset": {"type": "string", "x-tl-type": "string", "description": "The offset within the results, will be passed directly as-is to the bot."}}, "additionalProperties": false, "required": ["bot", "peer", "query", "offset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot to query |\n| `peer` | `InputPeer` | はい | The currently opened chat |\n| `geo_point` | `InputGeoPoint` | いいえ | The geolocation, if requested |\n| `query` | `string` | はい | The query |\n| `offset` | `string` | はい | The offset within the results, will be passed directly as-is to the bot. |"}, "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": "Answer an inline query, for bots only", "description": "Answer an inline query, for bots only\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.setInlineBotResults", "x-tl-id": "3138561049", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ARTICLE_TITLE_EMPTY` — The title of the article is empty.\n- 400 · `AUDIO_CONTENT_URL_EMPTY` — The remote URL specified in the content field is empty.\n- 400 · `AUDIO_TITLE_EMPTY` — An empty audio title was provided.\n- 400 · `BUTTON_DATA_INVALID` — The data of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_TYPE_INVALID` — The type of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_URL_INVALID` — Button URL invalid.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 400 · `FILE_CONTENT_TYPE_INVALID` — File content-type is invalid.\n- 400 · `FILE_TITLE_EMPTY` — An empty file title was specified.\n- 400 · `GIF_CONTENT_TYPE_INVALID` — GIF content-type invalid.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — The caption is too long.\n- 400 · `MESSAGE_EMPTY` — The provided message is empty.\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `NEXT_OFFSET_INVALID` — The specified offset is longer than 64 bytes.\n- 400 · `PEER_TYPES_INVALID` — The passed [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline.md).`peer_types` field is invalid.\n- 400 · `PHOTO_CONTENT_TYPE_INVALID` — Photo mime-type invalid.\n- 400 · `PHOTO_CONTENT_URL_EMPTY` — Photo URL invalid.\n- 400 · `PHOTO_INVALID` — Photo invalid.\n- 400 · `PHOTO_THUMB_URL_EMPTY` — Photo thumbnail URL is empty.\n- 400 · `QUERY_ID_INVALID` — The query ID is invalid.\n- 400 · `REPLY_MARKUP_INVALID` — The provided reply markup is invalid.\n- 400 · `RESULTS_TOO_MUCH` — Too many results were provided.\n- 400 · `RESULT_ID_DUPLICATE` — You provided a duplicate result ID.\n- 400 · `RESULT_ID_INVALID` — One of the specified result IDs is invalid.\n- 400 · `RESULT_TYPE_INVALID` — Result type invalid.\n- 400 · `SEND_MESSAGE_MEDIA_INVALID` — Invalid media provided.\n- 400 · `SEND_MESSAGE_TYPE_INVALID` — The message type is invalid.\n- 400 · `START_PARAM_EMPTY` — The start parameter is empty.\n- 400 · `START_PARAM_INVALID` — Start parameter invalid.\n- 400 · `STICKER_DOCUMENT_INVALID` — The specified sticker document is invalid.\n- 400 · `SWITCH_PM_TEXT_EMPTY` — The switch_pm.text field was empty.\n- 400 · `SWITCH_WEBVIEW_URL_INVALID` — The URL specified in switch_webview.url is invalid!\n- 400 · `URL_INVALID` — Invalid URL provided.\n- 403 · `USER_BOT_INVALID` — User accounts must provide the `bot` method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `VIDEO_CONTENT_TYPE_INVALID` — The video's content type is invalid.\n- 400 · `VIDEO_TITLE_EMPTY` — The specified video title is empty.\n- 400 · `WEBDOCUMENT_INVALID` — Invalid webdocument URL provided.\n- 400 · `WEBDOCUMENT_MIME_INVALID` — Invalid webdocument mime type provided.\n- 400 · `WEBDOCUMENT_SIZE_TOO_BIG` — Webdocument is too big!\n- 400 · `WEBDOCUMENT_URL_EMPTY` — The passed web document URL is empty.\n- 400 · `WEBDOCUMENT_URL_INVALID` — The specified webdocument URL is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag if the results are composed of media files"}, "private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique identifier for the answered query", "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 Type: InputBotInlineResult."}, "x-tl-type": "Vector<InputBotInlineResult>", "description": "Vector of results for the inline query"}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300."}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes."}, "switch_pm": {"type": "object", "x-tl-type": "InlineBotSwitchPM", "oneOf": [{"$ref": "#/components/schemas/inlineBotSwitchPM"}], "description": "If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter.", "x-tl-flag": "flags.3?InlineBotSwitchPM"}, "switch_webview": {"type": "object", "x-tl-type": "InlineBotWebView", "oneOf": [{"$ref": "#/components/schemas/inlineBotWebView"}], "description": "If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified [inline mode mini app](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` | いいえ | Set this flag if the results are composed of media files |\n| `private` | `true` | いいえ | Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query |\n| `query_id` | `long` | はい | Unique identifier for the answered query |\n| `results` | `Vector<InputBotInlineResult>` | はい | Vector of results for the inline query |\n| `cache_time` | `int` | はい | The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300. |\n| `next_offset` | `string` | いいえ | Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes. |\n| `switch_pm` | `InlineBotSwitchPM` | いいえ | If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter. |\n| `switch_webview` | `InlineBotWebView` | いいえ | If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified [inline mode mini app](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": "Send a result obtained using messages.getInlineBotResults.", "description": "Send a result obtained using [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendInlineBotResult", "x-tl-id": "3234821702", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — This peer charges %d [Telegram Stars](https://core.telegram.org/api/stars.md) per message, but the `allow_paid_stars` was not set or its value is smaller than %d.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_GUEST_SEND_FORBIDDEN` — You join the discussion group before commenting, see [here&nbsp;&raquo;](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group) for more info.\n- 400 · `CHAT_RESTRICTED` — You can't send messages in this chat, you were restricted.\n- 403 · `CHAT_SEND_AUDIOS_FORBIDDEN` — You can't send audio messages in this chat.\n- 403 · `CHAT_SEND_GAME_FORBIDDEN` — You can't send a game to this chat.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — You can't send gifs in this chat.\n- 403 · `CHAT_SEND_INLINE_FORBIDDEN` — You can't send inline messages in this group.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — You can't send media in this chat.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — You can't send photos in this chat.\n- 403 · `CHAT_SEND_PLAIN_FORBIDDEN` — You can't send non-media (text) messages in this chat.\n- 403 · `CHAT_SEND_STICKERS_FORBIDDEN` — You can't send stickers in this chat.\n- 403 · `CHAT_SEND_VOICES_FORBIDDEN` — You can't send voice recordings in this chat.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `INLINE_RESULT_EXPIRED` — The inline query expired.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MEDIA_EMPTY` — The provided media object is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.\n- 400 · `QUERY_ID_EMPTY` — The query ID is empty.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) shortcuts may be created, the limit was reached.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) messages, the limit was reached.\n- 400 · `RESULT_ID_EMPTY` — Result ID empty.\n- 400 · `RESULT_ID_INVALID` — One of the specified result IDs is invalid.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — You can't schedule a message this far in the future.\n- 400 · `SCHEDULE_TOO_MUCH` — There are too many scheduled messages.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer.\n- 500 · `SEND_MEDIA_INVALID` — The specified media is invalid.\n- 420 · `SLOWMODE_WAIT_%d` — Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.\n- 400 · `TOPIC_DELETED` — The specified topic was deleted.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `VOICE_MESSAGES_FORBIDDEN` — This user's privacy settings forbid you from sending voice messages.\n- 400 · `WEBPAGE_CURL_FAILED` — Failure while fetching the webpage with cURL.\n- 400 · `WEBPAGE_MEDIA_EMPTY` — Webpage media empty.\n- 400 · `YOU_BLOCKED_USER` — You blocked this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to send the message silently (no notification will be triggered on the other client)"}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Whether to send the message in background"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Whether to clear the [draft](https://core.telegram.org/api/drafts.md)"}, "hide_via": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true", "description": "Whether to hide the `via @botname` in the resulting message (only for bot usernames encountered in the [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": "Destination"}, "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": "If set, indicates that the message should be sent in reply to the specified message or story.", "x-tl-flag": "flags.0?InputReplyTo"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Random ID to avoid resending the same query. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Query ID from [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)", "x-tl-type": "long"}, "id": {"type": "string", "x-tl-type": "string", "description": "Result ID from [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Scheduled message date for 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": "Send this message as the specified peer", "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": "Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead.", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}}, "additionalProperties": false, "required": ["peer", "random_id", "query_id", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Whether to send the message silently (no notification will be triggered on the other client) |\n| `background` | `true` | いいえ | Whether to send the message in background |\n| `clear_draft` | `true` | いいえ | Whether to clear the [draft](https://core.telegram.org/api/drafts.md) |\n| `hide_via` | `true` | いいえ | Whether to hide the `via @botname` in the resulting message (only for bot usernames encountered in the [config](https://core.telegram.org/constructor/config.md)) |\n| `peer` | `InputPeer` | はい | Destination |\n| `reply_to` | `InputReplyTo` | いいえ | If set, indicates that the message should be sent in reply to the specified message or story. |\n| `random_id` | `long` | はい | Random ID to avoid resending the same query. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `query_id` | `long` | はい | Query ID from [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) |\n| `id` | `string` | はい | Result ID from [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md) |\n| `schedule_date` | `int` | いいえ | Scheduled message date for scheduled messages |\n| `send_as` | `InputPeer` | いいえ | Send this message as the specified peer |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | いいえ | Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead. |\n| `allow_paid_stars` | `long` | いいえ | For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message. |"}, "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": "Find out if a media message's caption can be edited", "description": "Find out if a media message's caption can be edited\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.MessageEditData."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 403 · `MESSAGE_AUTHOR_REQUIRED` — Message author required.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the media was sent"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージのID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the media was sent |\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": "Edit message", "description": "Edits a message by ID in the selected chat.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Scheduled messages](https://core.telegram.org/api/scheduled-messages.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.editMessage", "x-tl-id": "2970019436", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Scheduled messages", "https://core.telegram.org/api/scheduled-messages.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_DOMAIN_INVALID` — Bot domain invalid.\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `BUSINESS_PEER_INVALID` — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `BUTTON_COPY_TEXT_INVALID` — The specified [keyboardButtonCopy](https://core.telegram.org/constructor/keyboardButtonCopy.md).`copy_text` is invalid.\n- 400 · `BUTTON_DATA_INVALID` — The data of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_TYPE_INVALID` — The type of one or more of the buttons you provided is invalid.\n- 400 · `BUTTON_URL_INVALID` — Button URL invalid.\n- 400 · `BUTTON_USER_PRIVACY_RESTRICTED` — The privacy setting of the user specified in a [inputKeyboardButtonUserProfile](https://core.telegram.org/constructor/inputKeyboardButtonUserProfile.md) button do not allow creating such a button.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — You can't forward messages from a protected chat.\n- 403 · `CHAT_SEND_GIFS_FORBIDDEN` — You can't send gifs in this chat.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 406 · `EDIT_MESSAGE_TEMP_RESTRICTED` — Message editing is temporarily forbidden for this user due to regulatory restrictions.\n- 400 · `ENTITIES_TOO_LONG` — You provided too many styled message entities.\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `FILE_PARTS_INVALID` — The number of file parts is invalid.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 403 · `INLINE_BOT_REQUIRED` — Only the inline bot can edit message.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — The caption is too long.\n- 400 · `MEDIA_EMPTY` — The provided media object is invalid.\n- 400 · `MEDIA_GROUPED_INVALID` — You tried to send media of different types in an album.\n- 400 · `MEDIA_INVALID` — Media invalid.\n- 400 · `MEDIA_NEW_INVALID` — The new media is invalid.\n- 400 · `MEDIA_PREV_INVALID` — Previous media invalid.\n- 400 · `MEDIA_TTL_INVALID` — The specified media TTL is invalid.\n- 403 · `MESSAGE_AUTHOR_REQUIRED` — Message author required.\n- 400 · `MESSAGE_EDIT_TIME_EXPIRED` — You can't edit this message anymore, too much time has passed since its creation.\n- 400 · `MESSAGE_EMPTY` — The provided message is empty.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MESSAGE_NOT_MODIFIED` — The provided message data is identical to the previous message data, the message wasn't modified.\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 500 · `MSG_WAIT_FAILED` — A waiting call returned an error.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PEER_TYPES_INVALID` — The passed [keyboardButtonSwitchInline](https://core.telegram.org/constructor/keyboardButtonSwitchInline.md).`peer_types` field is invalid.\n- 400 · `PHOTO_EXT_INVALID` — The extension of the photo is invalid.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — The photo dimensions are invalid.\n- 400 · `PHOTO_SAVE_FILE_INVALID` — Internal issues, try again later.\n- 400 · `REPLY_MARKUP_INVALID` — The provided reply markup is invalid.\n- 400 · `REPLY_MARKUP_TOO_LONG` — The specified reply_markup is too long.\n- 400 · `SCHEDULE_DATE_INVALID` — Invalid schedule date provided.\n- 400 · `TODO_ITEMS_EMPTY` — A checklist was specified, but no [checklist items](https://core.telegram.org/api/todo.md) were passed.\n- 400 · `TODO_ITEM_DUPLICATE` — Duplicate [checklist items](https://core.telegram.org/api/todo.md) detected.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `WEBPAGE_NOT_FOUND` — A preview for the specified webpage `url` could not be generated."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Disable link previews."}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Chat where the message is located."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message being edited."}, "message": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.11?string", "description": "New message text."}, "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": "New attached media", "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": "Reply markup for inline keyboards", "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "Formatting elements for new text."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int", "description": "Scheduled message date for [scheduled messages](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": "Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on repeating scheduled messages."}, "quick_reply_shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int", "description": "If specified, edits a [quick reply shortcut message, instead »](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` | いいえ | Disable link previews. |\n| `invert_media` | `true` | いいえ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |\n| `peer` | `InputPeer` | はい | Chat where the message is located. |\n| `id` | `int` | はい | ID of the message being edited. |\n| `message` | `string` | いいえ | New message text. |\n| `media` | `InputMedia` | いいえ | New attached media |\n| `reply_markup` | `ReplyMarkup` | いいえ | Reply markup for inline keyboards |\n| `entities` | `Vector<MessageEntity>` | いいえ | Formatting elements for new text. |\n| `schedule_date` | `int` | いいえ | Scheduled message date for [scheduled messages](https://core.telegram.org/api/scheduled-messages.md) |\n| `schedule_repeat_period` | `int` | いいえ | Once sent, this message will be automatically re-scheduled to be re-sent again this many seconds in the future, see [here »](https://core.telegram.org/api/scheduled-messages.md#repeating-scheduled-messages) for more info on repeating scheduled messages. |\n| `quick_reply_shortcut_id` | `int` | いいえ | If specified, edits a [quick reply shortcut message, instead »](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": "Edit an inline bot message", "description": "Edit an inline bot message\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)", "x-tl-method": "messages.editInlineBotMessage", "x-tl-id": "2753805137", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUTTON_DATA_INVALID` — The data of one or more of the buttons you provided is invalid.\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MESSAGE_NOT_MODIFIED` — The provided message data is identical to the previous message data, the message wasn't modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Disable webpage preview"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true", "description": "If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."}, "id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineMessageID"}, {"$ref": "#/components/schemas/inputBotInlineMessageID64"}], "description": "Sent inline message 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": "Media", "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": "Reply markup for inline keyboards", "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.23?InputRichMessage"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `no_webpage` | `true` | いいえ | Disable webpage preview |\n| `invert_media` | `true` | いいえ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |\n| `id` | `InputBotInlineMessageID` | はい | Sent inline message ID |\n| `message` | `string` | いいえ | メッセージ |\n| `media` | `InputMedia` | いいえ | Media |\n| `reply_markup` | `ReplyMarkup` | いいえ | Reply markup for inline keyboards |\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": "Press an inline callback button and get a callback answer from the bot", "description": "Press an inline callback button and get a callback answer from the bot\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)", "x-tl-method": "messages.getBotCallbackAnswer", "x-tl-id": "2470627847", "x-tl-result": "messages.BotCallbackAnswer", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.BotCallbackAnswer."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_RESPONSE_TIMEOUT` — A timeout occurred while fetching data from the bot.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `DATA_INVALID` — Encrypted data invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PASSWORD_MISSING` — You must [enable 2FA](https://core.telegram.org/api/srp.md) before executing this operation.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether this is a \"play game\" button"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Where was the inline keyboard sent"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the Message with the inline keyboard"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes", "description": "Callback data"}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "For buttons [requiring you to verify your identity with your 2FA password](https://core.telegram.org/constructor/keyboardButtonCallback.md), the SRP payload generated using [SRP](https://core.telegram.org/api/srp.md).", "x-tl-flag": "flags.2?InputCheckPasswordSRP"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `game` | `true` | いいえ | Whether this is a \"play game\" button |\n| `peer` | `InputPeer` | はい | Where was the inline keyboard sent |\n| `msg_id` | `int` | はい | ID of the Message with the inline keyboard |\n| `data` | `bytes` | いいえ | Callback data |\n| `password` | `InputCheckPasswordSRP` | いいえ | For buttons [requiring you to verify your identity with your 2FA password](https://core.telegram.org/constructor/keyboardButtonCallback.md), the SRP payload generated using [SRP](https://core.telegram.org/api/srp.md). |"}, "x-telegram-rpc-errors": ["BOT_RESPONSE_TIMEOUT", "CHANNEL_INVALID", "CHANNEL_PRIVATE", "DATA_INVALID", "MESSAGE_ID_INVALID", "MSG_ID_INVALID", "PASSWORD_MISSING", "PEER_ID_INVALID"], "x-browser-schema-id": "2470627847"}}, "/catalog/messages.setBotCallbackAnswer": {"post": {"operationId": "messages.setBotCallbackAnswer", "tags": ["メッセージ"], "summary": "Set the callback answer to a user button press (bots only)", "description": "Set the callback answer to a user button press (bots only)\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `QUERY_ID_INVALID` — The query ID is invalid.\n- 400 · `URL_INVALID` — Invalid URL provided.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to show the message as a popup instead of a toast notification"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "クエリID", "x-tl-type": "long"}, "message": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Popup to show"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "URL to open"}, "cache_time": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Cache validity"}}, "additionalProperties": false, "required": ["query_id", "cache_time"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `alert` | `true` | いいえ | Whether to show the message as a popup instead of a toast notification |\n| `query_id` | `long` | はい | クエリID |\n| `message` | `string` | いいえ | Popup to show |\n| `url` | `string` | いいえ | URL to open |\n| `cache_time` | `int` | はい | Cache validity |"}, "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": "Get dialog info of specified peers", "description": "Get dialog info of specified peers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "messages.getPeerDialogs", "x-tl-id": "3832593661", "x-tl-result": "messages.PeerDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.PeerDialogs."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and cannot access the specified peer.\n- 400 · `INPUT_PEERS_EMPTY` — The specified peer array is empty.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: 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": "Save a message draft associated to a chat.", "description": "Save a message [draft](https://core.telegram.org/api/drafts.md) associated to a chat.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)\n- [Message drafts](https://core.telegram.org/api/drafts.md)", "x-tl-method": "messages.saveDraft", "x-tl-id": "2903482716", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"], ["Message drafts", "https://core.telegram.org/api/drafts.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Disable generation of the webpage preview"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."}, "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": "If set, indicates that the message should be sent in reply to the specified message or story.", "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": "Destination of the message that should be sent"}, "message": {"type": "string", "x-tl-type": "string", "description": "The draft"}, "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>", "description": "スタイル付きテキストのメッセージ [entities](https://core.telegram.org/api/entities.md)]"}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "付属メディア", "x-tl-flag": "flags.5?InputMedia"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message.", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "oneOf": [{"$ref": "#/components/schemas/suggestedPost"}], "description": "Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow.", "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` | いいえ | Disable generation of the webpage preview |\n| `invert_media` | `true` | いいえ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |\n| `reply_to` | `InputReplyTo` | いいえ | If set, indicates that the message should be sent in reply to the specified message or story. |\n| `peer` | `InputPeer` | はい | Destination of the message that should be sent |\n| `message` | `string` | はい | The draft |\n| `entities` | `Vector<MessageEntity>` | いいえ | スタイル付きテキストのメッセージ [entities](https://core.telegram.org/api/entities.md)] |\n| `media` | `InputMedia` | いいえ | 付属メディア |\n| `effect` | `long` | いいえ | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |\n| `suggested_post` | `SuggestedPost` | いいえ | Used to [suggest a post to a channel, see here »](https://core.telegram.org/api/suggested-posts.md) for more info on the full flow. |\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": "Return all message drafts.  ", "description": "Return all message [drafts](https://core.telegram.org/api/drafts.md).  \nReturns all the latest [updateDraftMessage](https://core.telegram.org/constructor/updateDraftMessage.md) updates related to all chats with drafts.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)", "x-tl-method": "messages.getAllDrafts", "x-tl-id": "1782549861", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getAllDrafts"}, "x-browser-schema-id": "1782549861"}}, "/catalog/messages.getFeaturedStickers": {"post": {"operationId": "messages.getFeaturedStickers", "tags": ["メッセージ"], "summary": "Get featured stickers", "description": "Get featured stickers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getFeaturedStickers", "x-tl-id": "1685588756", "x-tl-result": "messages.FeaturedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.FeaturedStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getFeaturedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1685588756"}}, "/catalog/messages.readFeaturedStickers": {"post": {"operationId": "messages.readFeaturedStickers", "tags": ["メッセージ"], "summary": "Mark new featured stickers as read", "description": "Mark new featured stickers as read", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "IDs of stickersets to mark as read"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<long>` | はい | IDs of stickersets to mark as read |"}, "x-browser-schema-id": "1527873830"}}, "/catalog/messages.getRecentStickers": {"post": {"operationId": "messages.getRecentStickers", "tags": ["メッセージ"], "summary": "Get recent stickers", "description": "Get recent stickers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getRecentStickers", "x-tl-id": "2645114939", "x-tl-result": "messages.RecentStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.RecentStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get stickers recently attached to photo or video files"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `attached` | `true` | いいえ | Get stickers recently attached to photo or video files |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2645114939"}}, "/catalog/messages.saveRecentSticker": {"post": {"operationId": "messages.saveRecentSticker", "tags": ["メッセージ"], "summary": "Add/remove sticker from recent stickers list", "description": "Add/remove sticker from recent stickers list\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKER_ID_INVALID` — The provided sticker ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to add/remove stickers recently attached to photo or video files"}, "id": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Sticker"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to save or unsave the sticker"}}, "additionalProperties": false, "required": ["id", "unsave"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `attached` | `true` | いいえ | Whether to add/remove stickers recently attached to photo or video files |\n| `id` | `InputDocument` | はい | Sticker |\n| `unsave` | `Bool` | はい | Whether to save or unsave the sticker |"}, "x-telegram-rpc-errors": ["STICKER_ID_INVALID"], "x-browser-schema-id": "958863608"}}, "/catalog/messages.clearRecentStickers": {"post": {"operationId": "messages.clearRecentStickers", "tags": ["メッセージ"], "summary": "Clear recent stickers", "description": "Clear recent stickers", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag to clear the list of stickers recently attached to photo or video files"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `attached` | `true` | いいえ | Set this flag to clear the list of stickers recently attached to photo or video files |"}, "x-browser-schema-id": "2308530221"}}, "/catalog/messages.getArchivedStickers": {"post": {"operationId": "messages.getArchivedStickers", "tags": ["メッセージ"], "summary": "Get all archived stickers", "description": "Get all archived stickers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getArchivedStickers", "x-tl-id": "1475442322", "x-tl-result": "messages.ArchivedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.ArchivedStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get [mask stickers](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": "Get [custom emoji stickers](https://core.telegram.org/api/custom-emoji.md)"}, "offset_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `masks` | `true` | いいえ | Get [mask stickers](https://core.telegram.org/api/stickers.md#mask-stickers) |\n| `emojis` | `true` | いいえ | Get [custom emoji stickers](https://core.telegram.org/api/custom-emoji.md) |\n| `offset_id` | `long` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "1475442322"}}, "/catalog/messages.getMaskStickers": {"post": {"operationId": "messages.getMaskStickers", "tags": ["メッセージ"], "summary": "Get installed mask stickers", "description": "Get installed mask stickers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getMaskStickers", "x-tl-id": "1678738104", "x-tl-result": "messages.AllStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto Result · `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 type: messages.AllStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getMaskStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1678738104"}}, "/catalog/messages.getAttachedStickers": {"post": {"operationId": "messages.getAttachedStickers", "tags": ["メッセージ"], "summary": "Get stickers attached to a photo or video", "description": "Get stickers attached to a photo or video\n\n**Who can call this method** · Telegram users only.", "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 result · `Vector<StickerSetCovered>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[StickerSetCovered](https://core.telegram.org/type/StickerSetCovered.md)&gt;", "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 Type: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MEDIA_EMPTY` — The provided media object is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Stickered media"}}, "additionalProperties": false, "required": ["media"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `media` | `InputStickeredMedia` | はい | Stickered media |"}, "x-telegram-rpc-errors": ["MEDIA_EMPTY"], "x-browser-schema-id": "3428542412"}}, "/catalog/messages.setGameScore": {"post": {"operationId": "messages.setGameScore", "tags": ["メッセージ"], "summary": "Use this method to set the score of the specified user in a game sent as a normal message (bots only).", "description": "Use this method to set the score of the specified user in a game sent as a normal message (bots only).\n\n**Who can call this method** · Telegram bots only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_SCORE_NOT_MODIFIED` — The score wasn't modified.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SCORE_INVALID` — The specified game score is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag if the game message should be automatically edited to include the current scoreboard"}, "force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Unique identifier of target chat"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Identifier of the sent message"}, "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": "New score"}}, "additionalProperties": false, "required": ["peer", "id", "user_id", "score"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `edit_message` | `true` | いいえ | Set this flag if the game message should be automatically edited to include the current scoreboard |\n| `force` | `true` | いいえ | Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters |\n| `peer` | `InputPeer` | はい | Unique identifier of target chat |\n| `id` | `int` | はい | Identifier of the sent message |\n| `user_id` | `InputUser` | はい | ユーザー識別子 |\n| `score` | `int` | はい | New score |"}, "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": "Use this method to set the score of the specified user in a game sent as an inline message (bots only).", "description": "Use this method to set the score of the specified user in a game sent as an inline message (bots only).\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag if the game message should be automatically edited to include the current scoreboard"}, "force": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"}, "id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "oneOf": [{"$ref": "#/components/schemas/inputBotInlineMessageID"}, {"$ref": "#/components/schemas/inputBotInlineMessageID64"}], "description": "ID of the inline message"}, "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": "New score"}}, "additionalProperties": false, "required": ["id", "user_id", "score"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `edit_message` | `true` | いいえ | Set this flag if the game message should be automatically edited to include the current scoreboard |\n| `force` | `true` | いいえ | Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters |\n| `id` | `InputBotInlineMessageID` | はい | ID of the inline message |\n| `user_id` | `InputUser` | はい | ユーザー識別子 |\n| `score` | `int` | はい | New score |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "363700068"}}, "/catalog/messages.getGameHighScores": {"post": {"operationId": "messages.getGameHighScores", "tags": ["メッセージ"], "summary": "Get highscores of a game", "description": "Get highscores of a game\n\n**Who can call this method** · Telegram bots only.", "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 Result · `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": "Type TL: messages.HighScores."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Where was the game sent"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of message with game media attachment"}, "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": "Get high scores made by a certain user"}}, "additionalProperties": false, "required": ["peer", "id", "user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Where was the game sent |\n| `id` | `int` | はい | ID of message with game media attachment |\n| `user_id` | `InputUser` | はい | Get high scores made by a certain user |"}, "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": "Get highscores of a game sent using an inline bot", "description": "Get highscores of a game sent using an inline bot\n\n**Who can call this method** · Telegram bots only.", "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 Result · `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": "Type TL: messages.HighScores."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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 of inline message"}, "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": "Get high scores of a certain user"}}, "additionalProperties": false, "required": ["id", "user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputBotInlineMessageID` | はい | ID of inline message |\n| `user_id` | `InputUser` | はい | Get high scores of a certain user |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "258170395"}}, "/catalog/messages.getCommonChats": {"post": {"operationId": "messages.getCommonChats", "tags": ["メッセージ"], "summary": "Get chats in common with a user", "description": "Get chats in common with a user\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getCommonChats", "x-tl-id": "3826032900", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Chats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Maximum ID of chat to return (see [pagination](https://core.telegram.org/api/offsets.md))", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](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` | はい | Maximum ID of chat to return (see [pagination](https://core.telegram.org/api/offsets.md)) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Get instant view page", "description": "Get [instant view](https://instantview.telegram.org) page\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getWebPage", "x-tl-id": "2375455395", "x-tl-result": "messages.WebPage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.WebPage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `WC_CONVERT_URL_INVALID` — WC convert URL invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getWebPage"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string", "x-tl-type": "string", "description": "URL of IV page to fetch"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).  **Note**: the usual hash generation algorithm cannot be used in this case, please re-use the [webPage](https://core.telegram.org/constructor/webPage.md).`hash` field returned by a previous call to the method, or pass 0 if this is the first call or if the previous call did not return a [webPage](https://core.telegram.org/constructor/webPage.md)."}}, "additionalProperties": false, "required": ["url", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `url` | `string` | はい | URL of IV page to fetch |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).  **Note**: the usual hash generation algorithm cannot be used in this case, please re-use the [webPage](https://core.telegram.org/constructor/webPage.md).`hash` field returned by a previous call to the method, or pass 0 if this is the first call or if the previous call did not return a [webPage](https://core.telegram.org/constructor/webPage.md). |"}, "x-telegram-rpc-errors": ["WC_CONVERT_URL_INVALID"], "x-browser-schema-id": "2375455395"}}, "/catalog/messages.toggleDialogPin": {"post": {"operationId": "messages.toggleDialogPin", "tags": ["メッセージ"], "summary": "Pin/unpin a dialog", "description": "Pin/unpin a dialog\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `PEER_HISTORY_EMPTY` — You can't pin an empty chat with a user.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Too many pinned dialogs."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to pin or unpin the dialog"}, "peer": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "The dialog to pin"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `pinned` | `true` | いいえ | Whether to pin or unpin the dialog |\n| `peer` | `InputDialogPeer` | はい | The dialog to pin |"}, "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": "Reorder pinned dialogs", "description": "Reorder pinned dialogs\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.reorderPinnedDialogs", "x-tl-id": "991616823", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, dialogs pinned server-side but not present in the `order` field will be unpinned."}, "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 Type: InputDialogPeer."}, "x-tl-type": "Vector<InputDialogPeer>", "description": "New dialog order"}}, "additionalProperties": false, "required": ["folder_id", "order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `force` | `true` | いいえ | If set, dialogs pinned server-side but not present in the `order` field will be unpinned. |\n| `folder_id` | `int` | はい | [ピアフォルダーID、詳細についてはここをクリック](https://core.telegram.org/api/folders.md#peer-folders) |\n| `order` | `Vector<InputDialogPeer>` | はい | New dialog order |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "991616823"}}, "/catalog/messages.getPinnedDialogs": {"post": {"operationId": "messages.getPinnedDialogs", "tags": ["メッセージ"], "summary": "Get pinned dialogs", "description": "Get pinned dialogs\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.getPinnedDialogs", "x-tl-id": "3602468338", "x-tl-result": "messages.PeerDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.PeerDialogs."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FOLDER_ID_INVALID` — Invalid folder ID."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If you sent an invoice requesting a shipping address and the parameter is\\_flexible was specified, the bot will receive an updateBotShippingQuery update. Use this method to reply to shipping queries.", "description": "If you sent an invoice requesting a shipping address and the parameter is\\_flexible was specified, the bot will receive an [updateBotShippingQuery](https://core.telegram.org/constructor/updateBotShippingQuery.md) update. Use this method to reply to shipping queries.\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `QUERY_ID_INVALID` — The query ID is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Unique identifier for the query to be answered", "x-tl-type": "long"}, "error": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable\"). Telegram will display this message to the user."}, "shipping_options": {"type": "array", "items": {"type": "object", "x-tl-type": "ShippingOption", "oneOf": [{"$ref": "#/components/schemas/shippingOption"}], "description": "TL Type: ShippingOption."}, "x-tl-type": "Vector<ShippingOption>", "x-tl-flag": "flags.1?Vector<ShippingOption>", "description": "A vector of available shipping options."}}, "additionalProperties": false, "required": ["query_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `query_id` | `long` | はい | Unique identifier for the query to be answered |\n| `error` | `string` | いいえ | Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable\"). Telegram will display this message to the user. |\n| `shipping_options` | `Vector<ShippingOption>` | いいえ | A vector of available shipping options. |"}, "x-telegram-rpc-errors": ["QUERY_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3858133754"}}, "/catalog/messages.setBotPrecheckoutResults": {"post": {"operationId": "messages.setBotPrecheckoutResults", "tags": ["メッセージ"], "summary": "Once the user has confirmed their payment and shipping details, the bot receives an updateBotPrecheckoutQuery update.  ", "description": "Once the user has confirmed their payment and shipping details, the bot receives an [updateBotPrecheckoutQuery](https://core.telegram.org/constructor/updateBotPrecheckoutQuery.md) update.  \nUse this method to respond to such pre-checkout queries.  \n**Note**: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ERROR_TEXT_EMPTY` — The provided error message is empty.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the `error` field, instead"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique identifier for the query to be answered", "x-tl-type": "long"}, "error": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Required if the `success` isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user."}}, "additionalProperties": false, "required": ["query_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `success` | `true` | いいえ | Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the `error` field, instead |\n| `query_id` | `long` | はい | Unique identifier for the query to be answered |\n| `error` | `string` | いいえ | Required if the `success` isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user. |"}, "x-telegram-rpc-errors": ["ERROR_TEXT_EMPTY", "USER_BOT_REQUIRED"], "x-browser-schema-id": "163765653"}}, "/catalog/messages.uploadMedia": {"post": {"operationId": "messages.uploadMedia", "tags": ["メッセージ"], "summary": "Upload a file and associate it to a chat (without actually sending it to the chat)", "description": "Upload a file and associate it to a chat (without actually sending it to the chat)\n\nMay also be used in a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md), *not* by wrapping the query in [invokeWithBusinessConnection »](https://core.telegram.org/method/invokeWithBusinessConnection.md), but rather by specifying the business connection ID in the `business_connection_id` parameter.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "messages.uploadMedia", "x-tl-id": "345405816", "x-tl-result": "MessageMedia", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "MTProto result · `MessageMedia`.\n\n[MessageMedia](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 Type: MessageMedia."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_RESTRICTED` — You can't send messages in this chat, you were restricted.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `FILE_PARTS_INVALID` — The number of file parts is invalid.\n- 400 · `FILE_PART_LENGTH_INVALID` — The length of a file part is invalid.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MEDIA_INVALID` — Media invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PHOTO_EXT_INVALID` — The extension of the photo is invalid.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — The photo dimensions are invalid.\n- 400 · `PHOTO_SAVE_FILE_INVALID` — Internal issues, try again later.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `VOICE_MESSAGES_FORBIDDEN` — This user's privacy settings forbid you from sending voice messages.\n- 400 · `WEBPAGE_CURL_FAILED` — Failure while fetching the webpage with cURL."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the media will be used only in the specified [business connection »](https://core.telegram.org/api/bots/connected-business-bots.md), and not directly by the bot."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The chat, can be [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) for bots and [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) for users."}, "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": "File uploaded in chunks as described in [files »](https://core.telegram.org/api/files.md)"}}, "additionalProperties": false, "required": ["peer", "media"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `business_connection_id` | `string` | いいえ | Whether the media will be used only in the specified [business connection »](https://core.telegram.org/api/bots/connected-business-bots.md), and not directly by the bot. |\n| `peer` | `InputPeer` | はい | The chat, can be [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) for bots and [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) for users. |\n| `media` | `InputMedia` | はい | File uploaded in chunks as described in [files »](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": "Notify the other user in a private chat that a screenshot of the chat was taken", "description": "Notify the other user in a private chat that a screenshot of the chat was taken\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.sendScreenshotNotification", "x-tl-id": "2705348631", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `REPLY_MESSAGE_ID_INVALID` — The specified reply-to message ID is invalid.\n- 400 · `STORY_ID_INVALID` — The specified story ID is invalid.\n- 400 · `YOU_BLOCKED_USER` — You blocked this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Other user"}, "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": "Indicates the message that was screenshotted (the specified message ID can also be `0` to avoid indicating any specific message)."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Random ID to avoid message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "reply_to", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Other user |\n| `reply_to` | `InputReplyTo` | はい | Indicates the message that was screenshotted (the specified message ID can also be `0` to avoid indicating any specific message). |\n| `random_id` | `long` | はい | Random ID to avoid message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |"}, "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": "Get faved stickers", "description": "Get faved stickers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getFavedStickers", "x-tl-id": "82946729", "x-tl-result": "messages.FavedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.FavedStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getFavedStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "82946729"}}, "/catalog/messages.faveSticker": {"post": {"operationId": "messages.faveSticker", "tags": ["メッセージ"], "summary": "Mark or unmark a sticker as favorite", "description": "Mark or unmark a sticker as favorite\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKER_ID_INVALID` — The provided sticker ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Sticker in question"}, "unfave": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to add or remove a sticker from favorites"}}, "additionalProperties": false, "required": ["id", "unfave"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | はい | Sticker in question |\n| `unfave` | `Bool` | はい | Whether to add or remove a sticker from favorites |"}, "x-telegram-rpc-errors": ["STICKER_ID_INVALID"], "x-browser-schema-id": "3120547163"}}, "/catalog/messages.getUnreadMentions": {"post": {"operationId": "messages.getUnreadMentions", "tags": ["メッセージ"], "summary": "Get unread messages where we were mentioned", "description": "Get unread messages where we were mentioned\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getUnreadMentions", "x-tl-id": "4043827088", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where to look for mentions"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "If set, considers only messages within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum message ID to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Minimum message ID to return, [see pagination](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` | はい | Peer where to look for mentions |\n| `top_msg_id` | `int` | いいえ | If set, considers only messages within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | はい | Maximum message ID to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `min_id` | `int` | はい | Minimum message ID to return, [see pagination](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": "Mark mentions as read; can be used in forums but **cannot** be used in monoforums.", "description": "Mark mentions as read; can be used in [forums](https://core.telegram.org/api/forum.md) but **cannot** be used in [monoforums](https://core.telegram.org/api/monoforum.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.readMentions", "x-tl-id": "921026381", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Dialog"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Mark as read only mentions within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) (except for monoforums)."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Dialog |\n| `top_msg_id` | `int` | いいえ | Mark as read only mentions within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) (except for monoforums). |"}, "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": "Get all recent live locations sent to a specific chat: returns up to 1 location message (messageMediaGeoLive) per chat participant.", "description": "Get all recent [live locations](https://core.telegram.org/api/live-location.md) sent to a specific chat: returns up to 1 location message ([messageMediaGeoLive](https://core.telegram.org/constructor/messageMediaGeoLive.md)) per chat participant.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Live geolocation](https://core.telegram.org/api/live-location.md)", "x-tl-method": "messages.getRecentLocations", "x-tl-id": "1881817312", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Live geolocation", "https://core.telegram.org/api/live-location.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Target group or private chat."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](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` | はい | Target group or private chat. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Send an album or grouped media", "description": "Send an [album or grouped media](https://core.telegram.org/api/files.md#albums-grouped-media)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [File references](https://core.telegram.org/api/file-references.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendMultiMedia", "x-tl-id": "469278068", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"], ["Stickers and masks", "https://core.telegram.org/api/stickers.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["File references", "https://core.telegram.org/api/file-references.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `ALLOW_PAYMENT_REQUIRED_%d` — This peer charges %d [Telegram Stars](https://core.telegram.org/api/stars.md) per message, but the `allow_paid_stars` was not set or its value is smaller than %d.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `BUSINESS_PEER_INVALID` — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_FORWARDS_RESTRICTED` — You can't forward messages from a protected chat.\n- 403 · `CHAT_SEND_MEDIA_FORBIDDEN` — You can't send media in this chat.\n- 403 · `CHAT_SEND_PHOTOS_FORBIDDEN` — You can't send photos in this chat.\n- 403 · `CHAT_SEND_VIDEOS_FORBIDDEN` — You can't send videos in this chat.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `EFFECT_ID_INVALID` — The specified effect ID is invalid.\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 400 · `FILE_REFERENCE_%d_EMPTY` — The file reference of the media file at offset %d in the multi_media array is invalid.\n- 400 · `FILE_REFERENCE_%d_EXPIRED` — The file reference of the media file at index %d in the passed media array expired, it [must be refreshed as specified in the documentation](https://core.telegram.org/api/file-references.md). .\n- 400 · `FILE_REFERENCE_%d_INVALID` — The [file reference](https://core.telegram.org/api/file-references.md) of the media file at index %d in the passed media array is invalid.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — The caption is too long.\n- 400 · `MEDIA_EMPTY` — The provided media object is invalid.\n- 400 · `MEDIA_INVALID` — Media invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `MULTI_MEDIA_TOO_LONG` — Too many media files for album.\n- 406 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.\n- 400 · `QUICK_REPLIES_BOT_NOT_ALLOWED` — [Quick replies](https://core.telegram.org/api/business.md#quick-reply-shortcuts) cannot be used by bots.\n- 400 · `QUICK_REPLIES_TOO_MUCH` — A maximum of [appConfig.`quick_replies_limit`](https://core.telegram.org/api/config.md#quick-replies-limit) shortcuts may be created, the limit was reached.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `RANDOM_ID_EMPTY` — Random ID empty.\n- 400 · `REPLY_MESSAGES_TOO_MUCH` — Each shortcut can contain a maximum of [appConfig.`quick_reply_messages_limit`](https://core.telegram.org/api/config.md#quick-reply-messages-limit) messages, the limit was reached.\n- 400 · `REPLY_TO_INVALID` — The specified `reply_to` field is invalid.\n- 400 · `SCHEDULE_DATE_TOO_LATE` — You can't schedule a message this far in the future.\n- 400 · `SCHEDULE_TOO_MUCH` — There are too many scheduled messages.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer.\n- 420 · `SLOWMODE_WAIT_%d` — Slowmode is enabled in this chat: wait %d seconds before sending another message to this chat.\n- 400 · `TOPIC_CLOSED` — This topic was closed, you can't send messages to it anymore.\n- 400 · `TOPIC_DELETED` — The specified topic was deleted.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `USER_IS_BLOCKED` — You were blocked by this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to send the album silently (no notification triggered)"}, "background": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Send in background?"}, "clear_draft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Whether to clear [drafts](https://core.telegram.org/api/drafts.md)"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true", "description": "Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled"}, "update_stickersets_order": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true", "description": "Whether to move used stickersets to top, [see here for more info on this flag »](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": "If set, any eventual webpage preview will be shown on top of the message instead of at the bottom."}, "allow_paid_floodskip": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true", "description": "Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The destination chat"}, "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": "If set, indicates that the message should be sent in reply to the specified message or story.", "x-tl-flag": "flags.0?InputReplyTo"}, "multi_media": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSingleMedia", "oneOf": [{"$ref": "#/components/schemas/inputSingleMedia"}], "description": "TL Type: InputSingleMedia."}, "x-tl-type": "Vector<InputSingleMedia>", "description": "The medias to send: note that they must be separately uploaded using [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md) first, using raw `inputMediaUploaded*` constructors is not supported."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int", "description": "Scheduled message date for 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": "Send this message as the specified peer", "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": "Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead.", "x-tl-flag": "flags.17?InputQuickReplyShortcut"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message.", "x-tl-type": "long", "x-tl-flag": "flags.21?long"}}, "additionalProperties": false, "required": ["peer", "multi_media"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Whether to send the album silently (no notification triggered) |\n| `background` | `true` | いいえ | Send in background? |\n| `clear_draft` | `true` | いいえ | Whether to clear [drafts](https://core.telegram.org/api/drafts.md) |\n| `noforwards` | `true` | いいえ | Only for bots, disallows forwarding and saving of the messages, even if the destination chat doesn't have [content protection](https://telegram.org/blog/content-protection-delete-by-date-and-more) enabled |\n| `update_stickersets_order` | `true` | いいえ | Whether to move used stickersets to top, [see here for more info on this flag »](https://core.telegram.org/api/stickers.md#recent-stickersets) |\n| `invert_media` | `true` | いいえ | If set, any eventual webpage preview will be shown on top of the message instead of at the bottom. |\n| `allow_paid_floodskip` | `true` | いいえ | Bots only: if set, allows sending up to 1000 messages per second, ignoring [broadcasting limits](https://core.telegram.org/bots/faq.md#how-can-i-message-all-of-my-bot-39s-subscribers-at-once) for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance. |\n| `peer` | `InputPeer` | はい | The destination chat |\n| `reply_to` | `InputReplyTo` | いいえ | If set, indicates that the message should be sent in reply to the specified message or story. |\n| `multi_media` | `Vector<InputSingleMedia>` | はい | The medias to send: note that they must be separately uploaded using [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md) first, using raw `inputMediaUploaded*` constructors is not supported. |\n| `schedule_date` | `int` | いいえ | Scheduled message date for scheduled messages |\n| `send_as` | `InputPeer` | いいえ | Send this message as the specified peer |\n| `quick_reply_shortcut` | `InputQuickReplyShortcut` | いいえ | Add the message to the specified [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts), instead. |\n| `effect` | `long` | いいえ | Specifies a [message effect »](https://core.telegram.org/api/effects.md) to use for the message. |\n| `allow_paid_stars` | `long` | いいえ | For [paid messages »](https://core.telegram.org/api/paid-messages.md), specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the user has agreed to pay in order to send the message. |"}, "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": "Upload encrypted file and associate it to a secret chat (without actually sending it to the chat).", "description": "Upload encrypted file and associate it to a secret chat (without actually sending it to the chat).\n\n**Who can call this method** · Telegram users only.", "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 result · `EncryptedFile`.\n\n[EncryptedFile](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 Type: EncryptedFile."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The secret chat to associate the file to"}, "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": "The file"}}, "additionalProperties": false, "required": ["peer", "file"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputEncryptedChat` | はい | The secret chat to associate the file to |\n| `file` | `InputEncryptedFile` | はい | The file |"}, "x-telegram-rpc-errors": ["CHAT_ID_INVALID"], "x-browser-schema-id": "1347929239"}}, "/catalog/messages.searchStickerSets": {"post": {"operationId": "messages.searchStickerSets", "tags": ["メッセージ"], "summary": "Search for stickersets", "description": "Search for stickersets\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.searchStickerSets", "x-tl-id": "896555914", "x-tl-result": "messages.FoundStickerSets", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.FoundStickerSets."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Exclude featured stickersets from results"}, "q": {"type": "string", "x-tl-type": "string", "description": "Query string"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["q", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `exclude_featured` | `true` | いいえ | Exclude featured stickersets from results |\n| `q` | `string` | はい | Query string |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "896555914"}}, "/catalog/messages.getSplitRanges": {"post": {"operationId": "messages.getSplitRanges", "tags": ["メッセージ"], "summary": "Get message ranges for saving the user's chat history", "description": "Get message ranges for saving the user's chat history", "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 result · `Vector<MessageRange>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[MessageRange](https://core.telegram.org/type/MessageRange.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageRange", "oneOf": [{"$ref": "#/components/schemas/messageRange"}], "description": "TL Type: MessageRange."}, "x-tl-type": "Vector<MessageRange>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getSplitRanges"}, "x-browser-schema-id": "486505992"}}, "/catalog/messages.markDialogUnread": {"post": {"operationId": "messages.markDialogUnread", "tags": ["メッセージ"], "summary": "Manually mark dialog as unread", "description": "Manually mark dialog as unread\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.markDialogUnread", "x-tl-id": "2354054904", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Mark as unread/read"}, "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": "If set, must be equal to the ID of a [monoforum](https://core.telegram.org/api/monoforum.md), and will affect the monoforum topic passed in `peer`.", "x-tl-flag": "flags.1?InputPeer"}, "peer": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "Dialog"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `unread` | `true` | いいえ | Mark as unread/read |\n| `parent_peer` | `InputPeer` | いいえ | If set, must be equal to the ID of a [monoforum](https://core.telegram.org/api/monoforum.md), and will affect the monoforum topic passed in `peer`. |\n| `peer` | `InputDialogPeer` | はい | Dialog |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2354054904"}}, "/catalog/messages.getDialogUnreadMarks": {"post": {"operationId": "messages.getDialogUnreadMarks", "tags": ["メッセージ"], "summary": "Get dialogs manually marked as unread", "description": "Get dialogs manually marked as unread", "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 result · `Vector<DialogPeer>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[DialogPeer](https://core.telegram.org/type/DialogPeer.md)&gt;", "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 Type: DialogPeer."}, "x-tl-type": "Vector<DialogPeer>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Can be equal to the ID of a monoforum, to fetch monoforum topics manually marked as unread.", "x-tl-flag": "flags.0?InputPeer"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | いいえ | Can be equal to the ID of a monoforum, to fetch monoforum topics manually marked as unread. |"}, "x-browser-schema-id": "555754018"}}, "/catalog/messages.clearAllDrafts": {"post": {"operationId": "messages.clearAllDrafts", "tags": ["メッセージ"], "summary": "Clear all drafts.", "description": "Clear all [drafts](https://core.telegram.org/api/drafts.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message drafts](https://core.telegram.org/api/drafts.md)", "x-tl-method": "messages.clearAllDrafts", "x-tl-id": "2119757468", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message drafts", "https://core.telegram.org/api/drafts.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.clearAllDrafts"}, "x-browser-schema-id": "2119757468"}}, "/catalog/messages.updatePinnedMessage": {"post": {"operationId": "messages.updatePinnedMessage", "tags": ["メッセージ"], "summary": "Pin a message", "description": "Pin a message\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.updatePinnedMessage", "x-tl-id": "3534419948", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_ONESIDE_NOT_AVAIL` — Bots can't pin messages in PM just for themselves.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `BUSINESS_PEER_INVALID` — Messages can't be set to the specified peer through the current [business connection](https://core.telegram.org/api/business.md#connected-bots).\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PIN_RESTRICTED` — You can't pin messages.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Pin the message silently, without triggering a notification"}, "unpin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether the message should unpinned or pinned"}, "pm_oneside": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Whether the message should only be pinned on the local side of a one-to-one chat"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The peer where to pin the message"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The message to pin or unpin"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Pin the message silently, without triggering a notification |\n| `unpin` | `true` | いいえ | Whether the message should unpinned or pinned |\n| `pm_oneside` | `true` | いいえ | Whether the message should only be pinned on the local side of a one-to-one chat |\n| `peer` | `InputPeer` | はい | The peer where to pin the message |\n| `id` | `int` | はい | The message to pin or unpin |"}, "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": "Vote in a poll", "description": "Vote in a [poll](https://core.telegram.org/constructor/poll.md)\n\nStarting from layer 159, the vote will be sent from the peer specified using [messages.saveDefaultSendAs](https://core.telegram.org/method/messages.saveDefaultSendAs.md).\n\nBefore voting, clients should check that the user is actually allowed to vote: voting is not possible if the poll is closed, if it is [subscriber-only »](https://core.telegram.org/api/poll.md#subscriber-only-polls) and the user is not an eligible subscriber, or if it is [country-restricted »](https://core.telegram.org/api/poll.md#country-restricted-polls) and the user's [`phone_country_iso2` »](https://core.telegram.org/api/config.md#phone-country-iso2) is not in the poll's allowed country list. See [vote restrictions »](https://core.telegram.org/api/poll.md#vote-restrictions) for the full list of conditions.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendVote", "x-tl-id": "283795844", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MESSAGE_POLL_CLOSED` — Poll closed.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `OPTIONS_TOO_MUCH` — Too many options provided.\n- 400 · `OPTION_INVALID` — Invalid option selected.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 406 · `POLL_COUNTRY_RESTRICTED` — Users from the current user's country cannot vote in this [country-restricted poll&nbsp;&raquo;](https://core.telegram.org/api/poll.md#country-restricted-polls).\n- 406 · `POLL_MEMBER_RESTRICTED` — Only channel subscribers can vote in this poll.\n- 400 · `REVOTE_NOT_ALLOWED` — You cannot change your vote."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The chat where the poll was sent"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The message ID of the poll"}, "options": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "The options that were chosen"}}, "additionalProperties": false, "required": ["peer", "msg_id", "options"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The chat where the poll was sent |\n| `msg_id` | `int` | はい | The message ID of the poll |\n| `options` | `Vector<bytes>` | はい | The options that were chosen |"}, "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": "Get poll results", "description": "Get poll results\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the poll was found"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID of poll message"}, "poll_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Pass the `poll.hash` from the last received poll state; the server skips returning unchanged data", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "msg_id", "poll_hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the poll was found |\n| `msg_id` | `int` | はい | Message ID of poll message |\n| `poll_hash` | `long` | はい | Pass the `poll.hash` from the last received poll state; the server skips returning unchanged data |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3986940731"}}, "/catalog/messages.getOnlines": {"post": {"operationId": "messages.getOnlines", "tags": ["メッセージ"], "summary": "Get count of online users in a chat", "description": "Get count of online users in a chat\n\n**Who can call this method** · Telegram users only.", "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 result · `ChatOnlines`.\n\n[ChatOnlines](https://core.telegram.org/type/ChatOnlines.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ChatOnlines", "oneOf": [{"$ref": "#/components/schemas/chatOnlines"}], "description": "TL Type: ChatOnlines."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Edit the description of a group/supergroup/channel.", "description": "Edit the description of a [group/supergroup/channel](https://core.telegram.org/api/channel.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatAbout", "x-tl-id": "3740665751", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ABOUT_NOT_MODIFIED` — About text has not changed.\n- 400 · `CHAT_ABOUT_TOO_LONG` — Chat about too long.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [group/supergroup/channel](https://core.telegram.org/api/channel.md)."}, "about": {"type": "string", "x-tl-type": "string", "description": "The new description"}}, "additionalProperties": false, "required": ["peer", "about"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The [group/supergroup/channel](https://core.telegram.org/api/channel.md). |\n| `about` | `string` | はい | The new description |"}, "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": "Edit the default banned rights of a channel/supergroup/group.", "description": "Edit the default banned rights of a [channel/supergroup/group](https://core.telegram.org/api/channel.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatDefaultBannedRights", "x-tl-id": "2777049921", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BANNED_RIGHTS_INVALID` — You provided some invalid flags in the banned rights.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `UNTIL_DATE_INVALID` — Invalid until date provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The new global rights"}}, "additionalProperties": false, "required": ["peer", "banned_rights"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `banned_rights` | `ChatBannedRights` | はい | The new global rights |"}, "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": "Get localized emoji keywords ».", "description": "Get localized [emoji keywords »](https://core.telegram.org/api/custom-emoji.md#emoji-keywords).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiKeywords", "x-tl-id": "899735650", "x-tl-result": "EmojiKeywordsDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `EmojiKeywordsDifference`.\n\n[EmojiKeywordsDifference](https://core.telegram.org/type/EmojiKeywordsDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiKeywordsDifference", "oneOf": [{"$ref": "#/components/schemas/emojiKeywordsDifference"}], "description": "TL Type: EmojiKeywordsDifference."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get changed emoji keywords ».", "description": "Get changed [emoji keywords »](https://core.telegram.org/api/custom-emoji.md#emoji-keywords).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiKeywordsDifference", "x-tl-id": "352892591", "x-tl-result": "EmojiKeywordsDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `EmojiKeywordsDifference`.\n\n[EmojiKeywordsDifference](https://core.telegram.org/type/EmojiKeywordsDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiKeywordsDifference", "oneOf": [{"$ref": "#/components/schemas/emojiKeywordsDifference"}], "description": "TL Type: EmojiKeywordsDifference."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Previous stored emoji keyword list `version`"}}, "additionalProperties": false, "required": ["lang_code", "from_version"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_code` | `string` | はい | 言語コード |\n| `from_version` | `int` | はい | Previous stored emoji keyword list `version` |"}, "x-browser-schema-id": "352892591"}}, "/catalog/messages.getEmojiKeywordsLanguages": {"post": {"operationId": "messages.getEmojiKeywordsLanguages", "tags": ["メッセージ"], "summary": "Obtain a list of related languages that must be used when fetching emoji keyword lists ».", "description": "Obtain a list of related languages that must be used when fetching [emoji keyword lists »](https://core.telegram.org/api/custom-emoji.md#emoji-keywords).\n\nUsually the method will return the passed language codes (if localized) + `en` + some language codes for similar languages (if applicable).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiKeywordsLanguages", "x-tl-id": "1318675378", "x-tl-result": "Vector<EmojiLanguage>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `Vector<EmojiLanguage>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[EmojiLanguage](https://core.telegram.org/type/EmojiLanguage.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiLanguage", "oneOf": [{"$ref": "#/components/schemas/emojiLanguage"}], "description": "TL Type: EmojiLanguage."}, "x-tl-type": "Vector<EmojiLanguage>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user's language codes"}}, "additionalProperties": false, "required": ["lang_codes"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_codes` | `Vector<string>` | はい | The user's language codes |"}, "x-browser-schema-id": "1318675378"}}, "/catalog/messages.getEmojiURL": {"post": {"operationId": "messages.getEmojiURL", "tags": ["メッセージ"], "summary": "Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new emoji keywords ». The URL will be valid for 30 seconds after generation.", "description": "Returns an HTTP URL which can be used to automatically log in into translation platform and suggest new [emoji keywords »](https://core.telegram.org/api/custom-emoji.md#emoji-keywords). The URL will be valid for 30 seconds after generation.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiURL", "x-tl-id": "3585149990", "x-tl-result": "EmojiURL", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `EmojiURL`.\n\n[EmojiURL](https://core.telegram.org/type/EmojiURL.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "EmojiURL", "oneOf": [{"$ref": "#/components/schemas/emojiURL"}], "description": "TL Type: EmojiURL."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Language code for which the emoji keywords will be suggested"}}, "additionalProperties": false, "required": ["lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_code` | `string` | はい | Language code for which the emoji keywords will be suggested |"}, "x-browser-schema-id": "3585149990"}}, "/catalog/messages.getSearchCounters": {"post": {"operationId": "messages.getSearchCounters", "tags": ["メッセージ"], "summary": "Get the number of results that would be found by a messages.search call with the same parameters", "description": "Get the number of results that would be found by a [messages.search](https://core.telegram.org/method/messages.search.md) call with the same parameters\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.getSearchCounters", "x-tl-id": "465367808", "x-tl-result": "Vector<messages.SearchCounter>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Vector<messages.SearchCounter>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[messages.SearchCounter](https://core.telegram.org/type/messages.SearchCounter.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "messages.SearchCounter", "oneOf": [{"$ref": "#/components/schemas/messages.searchCounter"}], "description": "TL type: messages.SearchCounter."}, "x-tl-type": "Vector<messages.SearchCounter>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where to search"}, "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": "Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID.", "x-tl-flag": "flags.2?InputPeer"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "If set, consider only messages within the specified [forum topic](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 Type: MessagesFilter."}, "x-tl-type": "Vector<MessagesFilter>", "description": "Search filters"}}, "additionalProperties": false, "required": ["peer", "filters"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where to search |\n| `saved_peer_id` | `InputPeer` | いいえ | Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID. |\n| `top_msg_id` | `int` | いいえ | If set, consider only messages within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) |\n| `filters` | `Vector<MessagesFilter>` | はい | Search filters |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "465367808"}}, "/catalog/messages.requestUrlAuth": {"post": {"operationId": "messages.requestUrlAuth", "tags": ["メッセージ"], "summary": "Get more info about a Seamless Telegram Login authorization request, for more info click here »", "description": "Get more info about a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.requestUrlAuth", "x-tl-id": "2303510940", "x-tl-result": "UrlAuthResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "MTProto result · `UrlAuthResult`.\n\n[UrlAuthResult](https://core.telegram.org/type/UrlAuthResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "UrlAuthResult", "oneOf": [{"$ref": "#/components/schemas/urlAuthResultRequest"}, {"$ref": "#/components/schemas/urlAuthResultAccepted"}, {"$ref": "#/components/schemas/urlAuthResultDefault"}], "description": "TL Type: UrlAuthResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 500 · `OAUTH_REQUEST_INVALID` — The specified OAuth request is invalid.\n- 400 · `URL_EXPIRED` — The specified OAuth request has expired.\n- 400 · `URL_INVALID` — Invalid URL provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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 where the message is located", "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": "The ID of the button with the authorization request"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "URL used for [link URL authorization, click here for more info »](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": "For [OAuth authorization from mini apps »](https://core.telegram.org/api/url-authorization.md#oauth-authorization-for-mini-apps): the origin of the webview that originated the OAuth request, in the format `scheme://host` (or `scheme://host:port` for non-default ports)"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | いいえ | Peer where the message is located |\n| `msg_id` | `int` | いいえ | メッセージ |\n| `button_id` | `int` | いいえ | The ID of the button with the authorization request |\n| `url` | `string` | いいえ | URL used for [link URL authorization, click here for more info »](https://core.telegram.org/api/url-authorization.md#link-url-authorization) |\n| `in_app_origin` | `string` | いいえ | For [OAuth authorization from mini apps »](https://core.telegram.org/api/url-authorization.md#oauth-authorization-for-mini-apps): the origin of the webview that originated the OAuth request, in the format `scheme://host` (or `scheme://host:port` for non-default ports) |"}, "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": "Use this to accept a Seamless Telegram Login authorization request, for more info click here »", "description": "Use this to accept a Seamless Telegram Login authorization request, for more info [click here »](https://core.telegram.org/api/url-authorization.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.acceptUrlAuth", "x-tl-id": "417156754", "x-tl-result": "UrlAuthResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "MTProto result · `UrlAuthResult`.\n\n[UrlAuthResult](https://core.telegram.org/type/UrlAuthResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "UrlAuthResult", "oneOf": [{"$ref": "#/components/schemas/urlAuthResultRequest"}, {"$ref": "#/components/schemas/urlAuthResultAccepted"}, {"$ref": "#/components/schemas/urlAuthResultDefault"}], "description": "TL Type: UrlAuthResult."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag to allow the bot to send messages to you (if requested)"}, "share_phone_number": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Set this flag to share the user's phone number with the bot (if requested via [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`request_phone_number` and consented to by the user)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The location of the message", "x-tl-flag": "flags.1?InputPeer"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Message ID of the message with the login button"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "ID of the login button"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "URL used for [link URL authorization, click here for more info »](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": "If [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`match_codes` was set, the emoji or code selected by the user from the provided list; must always be provided when `match_codes` is set, even if `match_codes_first` was set and the code was already validated via [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` | いいえ | Set this flag to allow the bot to send messages to you (if requested) |\n| `share_phone_number` | `true` | いいえ | Set this flag to share the user's phone number with the bot (if requested via [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`request_phone_number` and consented to by the user) |\n| `peer` | `InputPeer` | いいえ | The location of the message |\n| `msg_id` | `int` | いいえ | Message ID of the message with the login button |\n| `button_id` | `int` | いいえ | ID of the login button |\n| `url` | `string` | いいえ | URL used for [link URL authorization, click here for more info »](https://core.telegram.org/api/url-authorization.md#link-url-authorization) |\n| `match_code` | `string` | いいえ | If [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`match_codes` was set, the emoji or code selected by the user from the provided list; must always be provided when `match_codes` is set, even if `match_codes_first` was set and the code was already validated via [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": "Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the action bar ».", "description": "Should be called after the user hides the [report spam/add as contact bar](https://core.telegram.org/api/action-bar.md) of a new chat, effectively prevents the user from executing the actions specified in the [action bar »](https://core.telegram.org/api/action-bar.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Action bar](https://core.telegram.org/api/action-bar.md)", "x-tl-method": "messages.hidePeerSettingsBar", "x-tl-id": "1336717624", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Action bar", "https://core.telegram.org/api/action-bar.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get scheduled messages", "description": "Get scheduled messages\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getScheduledHistory", "x-tl-id": "4111889931", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).  To generate the hash, populate the `ids` array with the `id`, `edit_date` (0 if unedited) and `date` (in this order) of the previously returned messages (in order, i.e. `ids = [id1, (edit_date1 ?? 0), date1, id2, (edit_date2 ?? 0), date2, ...]`).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).  To generate the hash, populate the `ids` array with the `id`, `edit_date` (0 if unedited) and `date` (in this order) of the previously returned messages (in order, i.e. `ids = [id1, (edit_date1 ?? 0), date1, id2, (edit_date2 ?? 0), date2, ...]`). |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "4111889931"}}, "/catalog/messages.getScheduledMessages": {"post": {"operationId": "messages.getScheduledMessages", "tags": ["メッセージ"], "summary": "Get scheduled messages", "description": "Get scheduled messages\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "IDs of scheduled messages"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `id` | `Vector<int>` | はい | IDs of scheduled messages |"}, "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": "Send scheduled messages right away", "description": "Send scheduled messages right away\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Scheduled message IDs"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `id` | `Vector<int>` | はい | Scheduled message IDs |"}, "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": "Delete scheduled messages", "description": "Delete scheduled messages\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — You can't delete one of the messages you tried to delete, most likely because it is a service message.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Scheduled message IDs"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `id` | `Vector<int>` | はい | Scheduled message IDs |"}, "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": "Get poll results for non-anonymous polls", "description": "Get poll results for non-anonymous polls\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.VotesList."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `BROADCAST_FORBIDDEN` — Channel poll voters and reactions cannot be fetched to prevent deanonymization.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 403 · `POLL_VOTE_REQUIRED` — Cast a vote in the poll before calling this method."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Chat where the poll was sent"}, "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": "Get only results for the specified poll `option`"}, "offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Offset for results, taken from the `next_offset` field of [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md), initially an empty string.  Note: if no more results are available, the method call will return an empty `next_offset`; thus, avoid providing the `next_offset` returned in [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md) if it is empty, to avoid an infinite loop."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of results to return"}}, "additionalProperties": false, "required": ["peer", "id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Chat where the poll was sent |\n| `id` | `int` | はい | メッセージID |\n| `option` | `bytes` | いいえ | Get only results for the specified poll `option` |\n| `offset` | `string` | いいえ | Offset for results, taken from the `next_offset` field of [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md), initially an empty string.  Note: if no more results are available, the method call will return an empty `next_offset`; thus, avoid providing the `next_offset` returned in [messages.votesList](https://core.telegram.org/constructor/messages.votesList.md) if it is empty, to avoid an infinite loop. |\n| `limit` | `int` | はい | Number of results to return |"}, "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": "Apply changes to multiple stickersets", "description": "Apply changes to multiple stickersets", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Uninstall the specified stickersets"}, "archive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Archive the specified stickersets"}, "unarchive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Unarchive the specified stickersets"}, "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 Type: InputStickerSet."}, "x-tl-type": "Vector<InputStickerSet>", "description": "Stickersets to act upon"}}, "additionalProperties": false, "required": ["stickersets"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `uninstall` | `true` | いいえ | Uninstall the specified stickersets |\n| `archive` | `true` | いいえ | Archive the specified stickersets |\n| `unarchive` | `true` | いいえ | Unarchive the specified stickersets |\n| `stickersets` | `Vector<InputStickerSet>` | はい | Stickersets to act upon |"}, "x-browser-schema-id": "3037016042"}}, "/catalog/messages.getDialogFilters": {"post": {"operationId": "messages.getDialogFilters", "tags": ["メッセージ"], "summary": "Get folders", "description": "Get [folders](https://core.telegram.org/api/folders.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.getDialogFilters", "x-tl-id": "4023684233", "x-tl-result": "messages.DialogFilters", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.DialogFilters."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getDialogFilters"}, "x-browser-schema-id": "4023684233"}}, "/catalog/messages.getSuggestedDialogFilters": {"post": {"operationId": "messages.getSuggestedDialogFilters", "tags": ["メッセージ"], "summary": "Get suggested folders", "description": "Get [suggested folders](https://core.telegram.org/api/folders.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.getSuggestedDialogFilters", "x-tl-id": "2728186924", "x-tl-result": "Vector<DialogFilterSuggested>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `Vector<DialogFilterSuggested>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[DialogFilterSuggested](https://core.telegram.org/type/DialogFilterSuggested.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogFilterSuggested", "oneOf": [{"$ref": "#/components/schemas/dialogFilterSuggested"}], "description": "TL Type: DialogFilterSuggested."}, "x-tl-type": "Vector<DialogFilterSuggested>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getSuggestedDialogFilters"}, "x-browser-schema-id": "2728186924"}}, "/catalog/messages.updateDialogFilter": {"post": {"operationId": "messages.updateDialogFilter", "tags": ["メッセージ"], "summary": "Update folder", "description": "Update [folder](https://core.telegram.org/api/folders.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.updateDialogFilter", "x-tl-id": "450142282", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHATLIST_EXCLUDE_INVALID` — The specified `exclude_peers` are invalid.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_INCLUDE_EMPTY` — The include_peers vector of the filter is empty.\n- 400 · `FILTER_TITLE_EMPTY` — The title field of the filter is empty.\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Folder](https://core.telegram.org/api/folders.md) info", "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` | いいえ | [Folder](https://core.telegram.org/api/folders.md) info |"}, "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": "Reorder folders", "description": "Reorder [folders](https://core.telegram.org/api/folders.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.updateDialogFiltersOrder", "x-tl-id": "3311649252", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New [folder](https://core.telegram.org/api/folders.md) order"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `order` | `Vector<int>` | はい | New [folder](https://core.telegram.org/api/folders.md) order |"}, "x-browser-schema-id": "3311649252"}}, "/catalog/messages.getOldFeaturedStickers": {"post": {"operationId": "messages.getOldFeaturedStickers", "tags": ["メッセージ"], "summary": "Method for fetching previously featured stickers", "description": "Method for fetching previously featured stickers\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getOldFeaturedStickers", "x-tl-id": "2127598753", "x-tl-result": "messages.FeaturedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.FeaturedStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Offset"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["offset", "limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `offset` | `int` | はい | Offset |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2127598753"}}, "/catalog/messages.getReplies": {"post": {"operationId": "messages.getReplies", "tags": ["メッセージ"], "summary": "Get messages in a reply thread", "description": "Get messages in a reply thread\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getReplies", "x-tl-id": "584962828", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TOPIC_ID_INVALID` — The specified topic ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was transferred, the method will return only messages with ID smaller than max_id"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was transferred, the method will return only messages with ID bigger than 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` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `offset_date` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | はい | If a positive value was transferred, the method will return only messages with ID smaller than max_id |\n| `min_id` | `int` | はい | If a positive value was transferred, the method will return only messages with ID bigger than 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": "Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group", "description": "Get [discussion message](https://core.telegram.org/api/threads.md) from the [associated discussion group](https://core.telegram.org/api/discussion.md) of a channel to show it on top of the comment section, without actually joining the group\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Message threads](https://core.telegram.org/api/threads.md)\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "messages.getDiscussionMessage", "x-tl-id": "1147761405", "x-tl-result": "messages.DiscussionMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Message threads", "https://core.telegram.org/api/threads.md"], ["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.DiscussionMessage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TOPIC_ID_INVALID` — The specified topic ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Channel 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` | はい | [Channel 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": "Mark a thread as read", "description": "Mark a [thread](https://core.telegram.org/api/threads.md) as read\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message threads](https://core.telegram.org/api/threads.md)", "x-tl-method": "messages.readDiscussion", "x-tl-id": "4147227124", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message threads", "https://core.telegram.org/api/threads.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group ID"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of message that started the thread"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID up to which thread messages were read"}}, "additionalProperties": false, "required": ["peer", "msg_id", "read_max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Group ID |\n| `msg_id` | `int` | はい | ID of message that started the thread |\n| `read_max_id` | `int` | はい | ID up to which thread messages were read |"}, "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": "Unpin all pinned messages", "description": "[Unpin](https://core.telegram.org/api/pin.md) all pinned messages\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Pinned messages](https://core.telegram.org/api/pin.md)", "x-tl-method": "messages.unpinAllMessages", "x-tl-id": "103667527", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Pinned messages", "https://core.telegram.org/api/pin.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Chat where to unpin"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "[Forum topic](https://core.telegram.org/api/forum.md#forum-topics) where to unpin"}, "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": "If set, must be equal to the ID of a [monoforum topic](https://core.telegram.org/api/monoforum.md), and will unpin all messages pinned in the passed monoforum topic.", "x-tl-flag": "flags.1?InputPeer"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Chat where to unpin |\n| `top_msg_id` | `int` | いいえ | [Forum topic](https://core.telegram.org/api/forum.md#forum-topics) where to unpin |\n| `saved_peer_id` | `InputPeer` | いいえ | If set, must be equal to the ID of a [monoforum topic](https://core.telegram.org/api/monoforum.md), and will unpin all messages pinned in the passed monoforum topic. |"}, "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": "Delete a chat", "description": "Delete a [chat](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.deleteChat", "x-tl-id": "1540419152", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Delete the entire phone call history.", "description": "Delete the entire phone call history.", "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 result · `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": "Type TL: messages.AffectedFoundMessages."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to remove phone call history for participants as well"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `revoke` | `true` | いいえ | Whether to remove phone call history for participants as well |"}, "x-browser-schema-id": "4190888969"}}, "/catalog/messages.checkHistoryImport": {"post": {"operationId": "messages.checkHistoryImport", "tags": ["メッセージ"], "summary": "Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ».", "description": "Obtains information about a chat export file, generated by a foreign chat app, [click here for more info about imported chats »](https://core.telegram.org/api/import.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.checkHistoryImport", "x-tl-id": "1140726259", "x-tl-result": "messages.HistoryImportParsed", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.HistoryImportParsed."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `IMPORT_FORMAT_UNRECOGNIZED` — The specified chat export file was exported from an unsupported chat app."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Beginning of the message file; up to 100 lines."}}, "additionalProperties": false, "required": ["import_head"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `import_head` | `string` | はい | Beginning of the message file; up to 100 lines. |"}, "x-telegram-rpc-errors": ["IMPORT_FORMAT_UNRECOGNIZED"], "x-browser-schema-id": "1140726259"}}, "/catalog/messages.initHistoryImport": {"post": {"operationId": "messages.initHistoryImport", "tags": ["メッセージ"], "summary": "Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ».", "description": "Import chat history from a foreign chat app into a specific Telegram chat, [click here for more info about imported chats »](https://core.telegram.org/api/import.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.initHistoryImport", "x-tl-id": "873008187", "x-tl-result": "messages.HistoryImport", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: messages.HistoryImport."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `IMPORT_FILE_INVALID` — The specified chat export file is invalid.\n- 400 · `IMPORT_FORMAT_DATE_INVALID` — The date specified in the import file is invalid.\n- 400 · `IMPORT_FORMAT_UNRECOGNIZED` — The specified chat export file was exported from an unsupported chat app.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 406 · `PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_%dMIN` — Import for this chat is already in progress, wait %d minutes before starting a new one.\n- 400 · `USER_NOT_MUTUAL_CONTACT` — The provided user is not a mutual contact."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The Telegram chat where the [history should be imported](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": "File with messages to import."}, "media_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of media files associated with the chat that will be uploaded using [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia.md)."}}, "additionalProperties": false, "required": ["peer", "file", "media_count"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The Telegram chat where the [history should be imported](https://core.telegram.org/api/import.md). |\n| `file` | `InputFile` | はい | File with messages to import. |\n| `media_count` | `int` | はい | Number of media files associated with the chat that will be uploaded using [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": "Upload a media file associated with an imported chat, click here for more info ».", "description": "Upload a media file associated with an [imported chat, click here for more info »](https://core.telegram.org/api/import.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.uploadImportedMedia", "x-tl-id": "713433234", "x-tl-result": "MessageMedia", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "MTProto result · `MessageMedia`.\n\n[MessageMedia](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 Type: MessageMedia."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `IMPORT_ID_INVALID` — The specified import ID is invalid.\n- 400 · `MEDIA_INVALID` — Media invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The Telegram chat where the media will be imported"}, "import_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Identifier of a [history import session](https://core.telegram.org/api/import.md), returned by [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md)", "x-tl-type": "long"}, "file_name": {"type": "string", "x-tl-type": "string", "description": "File name"}, "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 metadata"}}, "additionalProperties": false, "required": ["peer", "import_id", "file_name", "media"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The Telegram chat where the media will be imported |\n| `import_id` | `long` | はい | Identifier of a [history import session](https://core.telegram.org/api/import.md), returned by [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) |\n| `file_name` | `string` | はい | File name |\n| `media` | `InputMedia` | はい | Media metadata |"}, "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": "Complete the history import process, importing all messages into the chat.  ", "description": "Complete the [history import process](https://core.telegram.org/api/import.md), importing all messages into the chat.  \nTo be called only after initializing the import with [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) and uploading all files using [messages.uploadImportedMedia](https://core.telegram.org/method/messages.uploadImportedMedia.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.startHistoryImport", "x-tl-id": "3023958852", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `IMPORT_ID_INVALID` — The specified import ID is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The Telegram chat where the messages should be [imported, click here for more info »](https://core.telegram.org/api/import.md)"}, "import_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Identifier of a history import session, returned by [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` | はい | The Telegram chat where the messages should be [imported, click here for more info »](https://core.telegram.org/api/import.md) |\n| `import_id` | `long` | はい | Identifier of a history import session, returned by [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": "Get info about the chat invites of a specific chat", "description": "Get info about the chat invites of a specific chat\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getExportedChatInvites", "x-tl-id": "2729812982", "x-tl-result": "messages.ExportedChatInvites", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.ExportedChatInvites."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ADMIN_ID_INVALID` — The specified admin ID is invalid.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to fetch revoked chat invites"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Chat"}, "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": "Whether to only fetch chat invites from this admin"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "offset_link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "admin_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `revoked` | `true` | いいえ | Whether to fetch revoked chat invites |\n| `peer` | `InputPeer` | はい | Chat |\n| `admin_id` | `InputUser` | はい | Whether to only fetch chat invites from this admin |\n| `offset_date` | `int` | いいえ | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `offset_link` | `string` | いいえ | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Get info about a chat invite", "description": "Get info about a chat invite\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: messages.ExportedChatInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Chat"}, "link": {"type": "string", "x-tl-type": "string", "description": "招待リンク"}}, "additionalProperties": false, "required": ["peer", "link"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Chat |\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": "Edit an exported chat invite", "description": "Edit an exported chat invite\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: messages.ExportedChatInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_INVITE_PERMANENT` — You can't set an expiration date on permanent invite links.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 403 · `EDIT_BOT_INVITE_FORBIDDEN` — Normal users can't edit invites that were created by bots.\n- 400 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USAGE_LIMIT_INVALID` — The specified usage limit is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to revoke the chat invite"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Chat"}, "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": "New expiration date"}, "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": "Whether admin confirmation is required before admitting each separate user into the chat"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string", "description": "Description of the invite link, visible only to administrators"}}, "additionalProperties": false, "required": ["peer", "link"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `revoked` | `true` | いいえ | Whether to revoke the chat invite |\n| `peer` | `InputPeer` | はい | Chat |\n| `link` | `string` | はい | 招待リンク |\n| `expire_date` | `int` | いいえ | New expiration date |\n| `usage_limit` | `int` | いいえ | このリンクを使用して参加できるユーザーの最大数 |\n| `request_needed` | `Bool` | いいえ | Whether admin confirmation is required before admitting each separate user into the chat |\n| `title` | `string` | いいえ | Description of the invite link, visible only to administrators |"}, "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": "Delete all revoked chat invites", "description": "Delete all revoked chat invites\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ADMIN_ID_INVALID` — The specified admin ID is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Chat"}, "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 of the admin that originally generated the revoked chat invites"}}, "additionalProperties": false, "required": ["peer", "admin_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Chat |\n| `admin_id` | `InputUser` | はい | ID of the admin that originally generated the revoked chat invites |"}, "x-telegram-rpc-errors": ["ADMIN_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1452833749"}}, "/catalog/messages.deleteExportedChatInvite": {"post": {"operationId": "messages.deleteExportedChatInvite", "tags": ["メッセージ"], "summary": "Delete a chat invite", "description": "Delete a chat invite\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `INVITE_REVOKED_MISSING` — The specified invite link was already revoked or is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get info about chat invites generated by admins.", "description": "Get info about chat invites generated by admins.\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: messages.ChatAdminsWithInvites."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Chat"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Chat |"}, "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": "Get info about the users that joined the chat using a specific chat invite", "description": "Get info about the users that joined the chat using a specific chat invite\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Invite links](https://core.telegram.org/api/invites.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getChatInviteImporters", "x-tl-id": "3741637966", "x-tl-result": "messages.ChatInviteImporters", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.ChatInviteImporters."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SEARCH_WITH_LINK_NOT_SUPPORTED` — You cannot provide a search query and an invite link at the same time."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, only returns info about users with pending [join requests »](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": "Set this flag if the link is a [Telegram Star subscription link »](https://core.telegram.org/api/stars.md#star-subscriptions) and only members with already expired subscription must be returned."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Chat"}, "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": "Search for a user in the pending [join requests »](https://core.telegram.org/api/invites.md#join-requests) list: only available when the `requested` flag is set, cannot be used together with a specific `link`."}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](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": "User ID for [pagination](https://core.telegram.org/api/offsets.md): if set, `offset_date` must also be set."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset_date", "offset_user", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `requested` | `true` | いいえ | If set, only returns info about users with pending [join requests »](https://core.telegram.org/api/invites.md#join-requests) |\n| `subscription_expired` | `true` | いいえ | Set this flag if the link is a [Telegram Star subscription link »](https://core.telegram.org/api/stars.md#star-subscriptions) and only members with already expired subscription must be returned. |\n| `peer` | `InputPeer` | はい | Chat |\n| `link` | `string` | いいえ | 招待リンク |\n| `q` | `string` | いいえ | Search for a user in the pending [join requests »](https://core.telegram.org/api/invites.md#join-requests) list: only available when the `requested` flag is set, cannot be used together with a specific `link`. |\n| `offset_date` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `offset_user` | `InputUser` | はい | User ID for [pagination](https://core.telegram.org/api/offsets.md): if set, `offset_date` must also be set. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Set maximum Time-To-Live of all messages in the specified chat", "description": "Set maximum Time-To-Live of all messages in the specified chat\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TTL_PERIOD_INVALID` — The specified TTL period is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Automatically delete all messages sent in the chat after this many seconds"}}, "additionalProperties": false, "required": ["peer", "period"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ダイアログ |\n| `period` | `int` | はい | Automatically delete all messages sent in the chat after this many seconds |"}, "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": "Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ».", "description": "Check whether chat history exported from another chat app can be [imported into a specific Telegram chat, click here for more info »](https://core.telegram.org/api/import.md).\n\nIf the check succeeds, and no RPC errors are returned, a [messages.CheckedHistoryImportPeer](https://core.telegram.org/type/messages.CheckedHistoryImportPeer.md) constructor will be returned, with a confirmation text to be shown to the user, before actually initializing the import.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Imported messages](https://core.telegram.org/api/import.md)", "x-tl-method": "messages.checkHistoryImportPeer", "x-tl-id": "1573261059", "x-tl-result": "messages.CheckedHistoryImportPeer", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Imported messages", "https://core.telegram.org/api/import.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.CheckedHistoryImportPeer."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_NOT_MUTUAL_CONTACT` — The provided user is not a mutual contact."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The chat where we want to [import history »](https://core.telegram.org/api/import.md)."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The chat where we want to [import history »](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": "Change the chat theme of a certain chat, see here » for more info.", "description": "Change the chat theme of a certain chat, see [here »](https://core.telegram.org/api/themes.md#chat-themes) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram themes](https://core.telegram.org/api/themes.md)", "x-tl-method": "messages.setChatTheme", "x-tl-id": "135398089", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram themes", "https://core.telegram.org/api/themes.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMOJI_INVALID` — The specified theme emoji is valid.\n- 400 · `EMOJI_NOT_MODIFIED` — The theme wasn't changed.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Private chat where to change theme"}, "theme": {"type": "object", "x-tl-type": "InputChatTheme", "oneOf": [{"$ref": "#/components/schemas/inputChatThemeEmpty"}, {"$ref": "#/components/schemas/inputChatTheme"}, {"$ref": "#/components/schemas/inputChatThemeUniqueGift"}], "description": "The theme to set."}}, "additionalProperties": false, "required": ["peer", "theme"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Private chat where to change theme |\n| `theme` | `InputChatTheme` | はい | The theme to set. |"}, "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": "Get which users read a specific message: only available for groups and supergroups with less than `chat_read_mark_size_threshold` members, read receipts will be stored for `chat_read_mark_expire_period` seconds after the message was sent, see client configuration for more info ».", "description": "Get which users read a specific message: only available for groups and supergroups with less than [`chat_read_mark_size_threshold` members](https://core.telegram.org/api/config.md#chat-read-mark-size-threshold), read receipts will be stored for [`chat_read_mark_expire_period` seconds after the message was sent](https://core.telegram.org/api/config.md#chat-read-mark-expire-period), see [client configuration for more info »](https://core.telegram.org/api/config.md#client-configuration).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.getMessageReadParticipants", "x-tl-id": "834782287", "x-tl-result": "Vector<ReadParticipantDate>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Vector<ReadParticipantDate>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[ReadParticipantDate](https://core.telegram.org/type/ReadParticipantDate.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "ReadParticipantDate", "oneOf": [{"$ref": "#/components/schemas/readParticipantDate"}], "description": "TL Type: ReadParticipantDate."}, "x-tl-type": "Vector<ReadParticipantDate>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_TOO_BIG` — This method is not available for groups with more than `chat_read_mark_size_threshold` members, [see client configuration&nbsp;&raquo;](https://core.telegram.org/api/config.md#client-configuration).\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `MSG_TOO_OLD` — [`chat_read_mark_expire_period` seconds](https://core.telegram.org/api/config.md#chat-read-mark-expire-period) have passed since the message was sent, read receipts were deleted.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Dialog"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Dialog |\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": "Returns information about the next messages of the specified type in the chat split by days.", "description": "Returns information about the next messages of the specified type in the chat split by days.\n\nReturns the results in reverse chronological order.  \nCan return partial results for the last returned day.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSearchResultsCalendar", "x-tl-id": "1789130429", "x-tl-result": "messages.SearchResultsCalendar", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SearchResultsCalendar."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where to search"}, "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": "Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID.", "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": "Message filter, [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md) filters are not supported by this method."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "filter", "offset_id", "offset_date"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where to search |\n| `saved_peer_id` | `InputPeer` | いいえ | Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID. |\n| `filter` | `MessagesFilter` | はい | Message filter, [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md) filters are not supported by this method. |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `offset_date` | `int` | はい | [Offsets for pagination, for more info click here](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": "Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.", "description": "Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.\n\nReturns the results in reverse chronological order (i.e., in order of decreasing message\\_id).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSearchResultsPositions", "x-tl-id": "2625580816", "x-tl-result": "messages.SearchResultsPositions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SearchResultsPositions."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where to search"}, "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": "Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID.", "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": "Message filter, [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md) filters are not supported by this method."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "filter", "offset_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where to search |\n| `saved_peer_id` | `InputPeer` | いいえ | Search within the [saved message dialog »](https://core.telegram.org/api/saved-messages.md) with this ID. |\n| `filter` | `MessagesFilter` | はい | Message filter, [inputMessagesFilterEmpty](https://core.telegram.org/constructor/inputMessagesFilterEmpty.md), [inputMessagesFilterMyMentions](https://core.telegram.org/constructor/inputMessagesFilterMyMentions.md) filters are not supported by this method. |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Dismiss or approve a chat join request related to a specific chat or channel.", "description": "Dismiss or approve a chat [join request](https://core.telegram.org/api/invites.md#join-requests) related to a specific chat or channel.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "messages.hideChatJoinRequest", "x-tl-id": "2145904661", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — You have joined too many channels/supergroups.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `HIDE_REQUESTER_MISSING` — The join request was missing or was already handled.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_ALREADY_PARTICIPANT` — The user is already in the group.\n- 403 · `USER_CHANNELS_TOO_MUCH` — One of the users you tried to add is already in too many channels/supergroups.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to dismiss or approve the chat [join request »](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": "The chat or channel"}, "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": "The user whose [join request »](https://core.telegram.org/api/invites.md#join-requests) should be dismissed or approved"}}, "additionalProperties": false, "required": ["peer", "user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `approved` | `true` | いいえ | Whether to dismiss or approve the chat [join request »](https://core.telegram.org/api/invites.md#join-requests) |\n| `peer` | `InputPeer` | はい | The chat or channel |\n| `user_id` | `InputUser` | はい | The user whose [join request »](https://core.telegram.org/api/invites.md#join-requests) should be dismissed or approved |"}, "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": "Dismiss or approve all join requests related to a specific chat or channel.", "description": "Dismiss or approve all [join requests](https://core.telegram.org/api/invites.md#join-requests) related to a specific chat or channel.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "messages.hideAllChatJoinRequests", "x-tl-id": "3766875370", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — You have joined too many channels/supergroups.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `HIDE_REQUESTER_MISSING` — The join request was missing or was already handled.\n- 400 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_CHANNELS_TOO_MUCH` — One of the users you tried to add is already in too many channels/supergroups."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to dismiss or approve all chat [join requests »](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": "The chat or channel"}, "link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Only dismiss or approve [join requests »](https://core.telegram.org/api/invites.md#join-requests) initiated using this invite link"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `approved` | `true` | いいえ | Whether to dismiss or approve all chat [join requests »](https://core.telegram.org/api/invites.md#join-requests) |\n| `peer` | `InputPeer` | はい | The chat or channel |\n| `link` | `string` | いいえ | Only dismiss or approve [join requests »](https://core.telegram.org/api/invites.md#join-requests) initiated using this invite link |"}, "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": "Enable or disable content protection on a channel, group or private chat.", "description": "Enable or disable [content protection](https://core.telegram.org/api/content-protection.md) on a channel, group or private chat.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Content protection](https://core.telegram.org/api/content-protection.md)", "x-tl-method": "messages.toggleNoForwards", "x-tl-id": "2986875445", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Content protection", "https://core.telegram.org/api/content-protection.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `REQUEST_MSG_EXPIRED` — The request specified in request_msg_id has already expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The chat or channel"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Enable or disable content protection"}, "request_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Used only inside private chats to accept or refuse a request to disable content protection, see [here »](https://core.telegram.org/api/content-protection.md#for-users) for more info on the full flow."}}, "additionalProperties": false, "required": ["peer", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The chat or channel |\n| `enabled` | `Bool` | はい | Enable or disable content protection |\n| `request_msg_id` | `int` | いいえ | Used only inside private chats to accept or refuse a request to disable content protection, see [here »](https://core.telegram.org/api/content-protection.md#for-users) for more info on the full flow. |"}, "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": "Change the default peer that should be used when sending messages, reactions, poll votes to a specific group", "description": "Change the default peer that should be used when sending messages, reactions, poll votes to a specific group\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group"}, "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": "The default peer that should be used when sending messages to the group"}}, "additionalProperties": false, "required": ["peer", "send_as"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Group |\n| `send_as` | `InputPeer` | はい | The default peer that should be used when sending messages to the group |"}, "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": "React to message.", "description": "React to message.\n\nStarting from layer 159, the reaction will be sent from the peer specified using [messages.saveDefaultSendAs](https://core.telegram.org/method/messages.saveDefaultSendAs.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.sendReaction", "x-tl-id": "3540875476", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `CUSTOM_REACTIONS_TOO_MANY` — Too many custom reactions were specified.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MESSAGE_NOT_MODIFIED` — The provided message data is identical to the previous message data, the message wasn't modified.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 400 · `REACTIONS_TOO_MANY` — The message already has exactly `reactions_uniq_max` reaction emojis, you can't react with a new emoji, see [the docs for more info&nbsp;&raquo;](https://core.telegram.org/api/config.md#client-configuration).\n- 400 · `REACTION_EMPTY` — Empty reaction provided.\n- 400 · `REACTION_INVALID` — The specified reaction is invalid.\n- 403 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether a bigger and longer reaction should be shown"}, "add_to_recent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Whether to add this reaction to the [recent reactions list »](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": "Message ID to react to"}, "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 Type: Reaction."}, "x-tl-type": "Vector<Reaction>", "x-tl-flag": "flags.0?Vector<Reaction>", "description": "A list of reactions (doesn't accept [reactionPaid](https://core.telegram.org/constructor/reactionPaid.md) constructors, use [messages.sendPaidReaction](https://core.telegram.org/method/messages.sendPaidReaction.md) to send paid reactions, instead)."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `big` | `true` | いいえ | Whether a bigger and longer reaction should be shown |\n| `add_to_recent` | `true` | いいえ | Whether to add this reaction to the [recent reactions list »](https://core.telegram.org/api/reactions.md#recent-reactions). |\n| `peer` | `InputPeer` | はい | ピア |\n| `msg_id` | `int` | はい | Message ID to react to |\n| `reaction` | `Vector<Reaction>` | いいえ | A list of reactions (doesn't accept [reactionPaid](https://core.telegram.org/constructor/reactionPaid.md) constructors, use [messages.sendPaidReaction](https://core.telegram.org/method/messages.sendPaidReaction.md) to send paid reactions, instead). |"}, "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": "Get message reactions »", "description": "Get [message reactions »](https://core.telegram.org/api/reactions.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getMessagesReactions", "x-tl-id": "2344259814", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Message IDs"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `id` | `Vector<int>` | はい | Message IDs |"}, "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": "Get message reaction list, along with the sender of each reaction.", "description": "Get [message reaction](https://core.telegram.org/api/reactions.md) list, along with the sender of each reaction.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getMessageReactionsList", "x-tl-id": "1176190792", "x-tl-result": "messages.MessageReactionsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.MessageReactionsList."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `BROADCAST_FORBIDDEN` — Channel poll voters and reactions cannot be fetched to prevent deanonymization.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get only reactions of this type", "x-tl-flag": "flags.0?Reaction"}, "offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Offset for pagination (taken from the `next_offset` field of the returned [messages.MessageReactionsList](https://core.telegram.org/type/messages.MessageReactionsList.md)); empty in the first request."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](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` | いいえ | Get only reactions of this type |\n| `offset` | `string` | いいえ | Offset for pagination (taken from the `next_offset` field of the returned [messages.MessageReactionsList](https://core.telegram.org/type/messages.MessageReactionsList.md)); empty in the first request. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Change the set of message reactions » that can be used in a certain group, supergroup or channel", "description": "Change the set of [message reactions »](https://core.telegram.org/api/reactions.md) that can be used in a certain group, supergroup or channel\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.setChatAvailableReactions", "x-tl-id": "2253071745", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 400 · `LIMIT_PER_POST_INVALID` — The specified reactions_limit value is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `REACTION_INVALID` — The specified reaction is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group where to apply changes"}, "available_reactions": {"type": "object", "x-tl-type": "ChatReactions", "oneOf": [{"$ref": "#/components/schemas/chatReactionsNone"}, {"$ref": "#/components/schemas/chatReactionsAll"}, {"$ref": "#/components/schemas/chatReactionsSome"}], "description": "Allowed reaction emojis"}, "reactions_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of [appConfig.reactions_uniq_max](https://core.telegram.org/api/config.md#reactions-uniq-max)); this field and the other info set by the method will then be available to users in [channelFull](https://core.telegram.org/constructor/channelFull.md) and [chatFull](https://core.telegram.org/constructor/chatFull.md).  If this flag is not set, the previously configured `reactions_limit` will not be altered."}, "paid_enabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool", "description": "If this flag is set and a [Bool](https://core.telegram.org/type/Bool.md) is passed, the method will enable or disable [paid message reactions »](https://core.telegram.org/api/reactions.md#paid-reactions). If this flag is not set, the previously stored setting will not be changed."}}, "additionalProperties": false, "required": ["peer", "available_reactions"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Group where to apply changes |\n| `available_reactions` | `ChatReactions` | はい | Allowed reaction emojis |\n| `reactions_limit` | `int` | いいえ | This flag may be used to impose a custom limit of unique reactions (i.e. a customizable version of [appConfig.reactions_uniq_max](https://core.telegram.org/api/config.md#reactions-uniq-max)); this field and the other info set by the method will then be available to users in [channelFull](https://core.telegram.org/constructor/channelFull.md) and [chatFull](https://core.telegram.org/constructor/chatFull.md).  If this flag is not set, the previously configured `reactions_limit` will not be altered. |\n| `paid_enabled` | `Bool` | いいえ | If this flag is set and a [Bool](https://core.telegram.org/type/Bool.md) is passed, the method will enable or disable [paid message reactions »](https://core.telegram.org/api/reactions.md#paid-reactions). If this flag is not set, the previously stored setting will not be changed. |"}, "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": "Obtain available message reactions »", "description": "Obtain available [message reactions »](https://core.telegram.org/api/reactions.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getAvailableReactions", "x-tl-id": "417243308", "x-tl-result": "messages.AvailableReactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.AvailableReactions."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "417243308"}}, "/catalog/messages.setDefaultReaction": {"post": {"operationId": "messages.setDefaultReaction", "tags": ["メッセージ"], "summary": "Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using help.getConfig, `reactions_default` field.", "description": "Change default emoji reaction to use in the quick reaction menu: the value is synced across devices and can be fetched using [help.getConfig, `reactions_default` field](https://core.telegram.org/method/help.getConfig.md).\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `REACTION_INVALID` — The specified reaction is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New emoji reaction"}}, "additionalProperties": false, "required": ["reaction"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `reaction` | `Reaction` | はい | New emoji reaction |"}, "x-telegram-rpc-errors": ["REACTION_INVALID"], "x-browser-schema-id": "1330094102"}}, "/catalog/messages.translateText": {"post": {"operationId": "messages.translateText", "tags": ["メッセージ"], "summary": "Translate a given text.", "description": "Translate a given text.\n\n[Styled text entities](https://core.telegram.org/api/entities.md) will only be preserved for [Telegram Premium](https://core.telegram.org/api/premium.md) users.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [AI features](https://core.telegram.org/api/ai.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)", "x-tl-method": "messages.translateText", "x-tl-id": "2783888197", "x-tl-result": "messages.TranslatedText", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.TranslatedText."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INPUT_TEXT_EMPTY` — The specified text is empty.\n- 400 · `INPUT_TEXT_TOO_LONG` — The specified text is too long.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TO_LANG_INVALID` — The specified destination language is invalid.\n- 500 · `TRANSLATE_REQ_FAILED` — Translation failed, please try again later.\n- 400 · `TRANSLATE_REQ_QUOTA_EXCEEDED` — Translation is currently unavailable due to a temporary server-side lack of resources.\n- 406 · `TRANSLATIONS_DISABLED` — Translations are unavailable, a detailed and localized description for the error will be emitted via an [updateServiceNotification as specified here&nbsp;&raquo;](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 500 · `TRANSLATION_TIMEOUT` — A timeout occurred while translating the specified text."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If the text is a chat message, the peer 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": "A list of message IDs to translate"}, "text": {"type": "array", "items": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "TL Type: TextWithEntities."}, "x-tl-type": "Vector<TextWithEntities>", "x-tl-flag": "flags.1?Vector<TextWithEntities>", "description": "A list of styled messages to translate"}, "to_lang": {"type": "string", "x-tl-type": "string", "description": "Two-letter ISO 639-1 language code of the language to which the message is translated"}, "tone": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "If set, rephrases the translation using the specified [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) (pass the tone identifier)"}}, "additionalProperties": false, "required": ["to_lang"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | いいえ | If the text is a chat message, the peer ID |\n| `id` | `Vector<int>` | いいえ | A list of message IDs to translate |\n| `text` | `Vector<TextWithEntities>` | いいえ | A list of styled messages to translate |\n| `to_lang` | `string` | はい | Two-letter ISO 639-1 language code of the language to which the message is translated |\n| `tone` | `string` | いいえ | If set, rephrases the translation using the specified [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) (pass the tone identifier) |"}, "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": "Get unread reactions to messages you sent", "description": "Get unread reactions to messages you sent\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getUnreadReactions", "x-tl-id": "3179253932", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, considers only reactions to messages within the specified [forum topic](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": "If set, must be equal to the ID of a [monoforum topic](https://core.telegram.org/api/monoforum.md): will affect that topic in the monoforum passed in `peer`.", "x-tl-flag": "flags.1?InputPeer"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Only return reactions for messages up until this message ID"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Only return reactions for messages starting from this message ID"}}, "additionalProperties": false, "required": ["peer", "offset_id", "add_offset", "limit", "max_id", "min_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `top_msg_id` | `int` | いいえ | If set, considers only reactions to messages within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) |\n| `saved_peer_id` | `InputPeer` | いいえ | If set, must be equal to the ID of a [monoforum topic](https://core.telegram.org/api/monoforum.md): will affect that topic in the monoforum passed in `peer`. |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | はい | Only return reactions for messages up until this message ID |\n| `min_id` | `int` | はい | Only return reactions for messages starting from this message ID |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3179253932"}}, "/catalog/messages.readReactions": {"post": {"operationId": "messages.readReactions", "tags": ["メッセージ"], "summary": "Mark message reactions » as read", "description": "Mark [message reactions »](https://core.telegram.org/api/reactions.md) as read\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.readReactions", "x-tl-id": "2663665555", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Mark as read only reactions to messages within the specified [forum topic](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": "If set, must be equal to the ID of a [monoforum topic](https://core.telegram.org/api/monoforum.md): will affect that topic in the monoforum passed in `peer`.", "x-tl-flag": "flags.1?InputPeer"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | ピア |\n| `top_msg_id` | `int` | いいえ | Mark as read only reactions to messages within the specified [forum topic](https://core.telegram.org/api/forum.md#forum-topics) |\n| `saved_peer_id` | `InputPeer` | いいえ | If set, must be equal to the ID of a [monoforum topic](https://core.telegram.org/api/monoforum.md): will affect that topic in the monoforum passed in `peer`. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2663665555"}}, "/catalog/messages.searchSentMedia": {"post": {"operationId": "messages.searchSentMedia", "tags": ["メッセージ"], "summary": "View and search recently sent media.  ", "description": "View and search recently sent media.  \nThis method does not support pagination.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Optional search query"}, "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": "Message filter"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return (max 100)."}}, "additionalProperties": false, "required": ["q", "filter", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `q` | `string` | はい | Optional search query |\n| `filter` | `MessagesFilter` | はい | Message filter |\n| `limit` | `int` | はい | Maximum number of results to return (max 100). |"}, "x-telegram-rpc-errors": ["FILTER_NOT_SUPPORTED"], "x-browser-schema-id": "276705696"}}, "/catalog/messages.getAttachMenuBots": {"post": {"operationId": "messages.getAttachMenuBots", "tags": ["メッセージ"], "summary": "Returns installed attachment menu bot mini apps »", "description": "Returns installed attachment menu [bot mini apps »](https://core.telegram.org/api/bots/attach.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)", "x-tl-method": "messages.getAttachMenuBots", "x-tl-id": "385663691", "x-tl-result": "AttachMenuBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"]], "responses": {"200": {"description": "MTProto result · `AttachMenuBots`.\n\n[AttachMenuBots](https://core.telegram.org/type/AttachMenuBots.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AttachMenuBots", "oneOf": [{"$ref": "#/components/schemas/attachMenuBotsNotModified"}, {"$ref": "#/components/schemas/attachMenuBots"}], "description": "TL Type: AttachMenuBots."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getAttachMenuBots"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "385663691"}}, "/catalog/messages.getAttachMenuBot": {"post": {"operationId": "messages.getAttachMenuBot", "tags": ["メッセージ"], "summary": "Returns attachment menu entry for a bot mini app that can be launched from the attachment menu »", "description": "Returns attachment menu entry for a [bot mini app that can be launched from the attachment menu »](https://core.telegram.org/api/bots/attach.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)", "x-tl-method": "messages.getAttachMenuBot", "x-tl-id": "1998676370", "x-tl-result": "AttachMenuBotsBot", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"]], "responses": {"200": {"description": "MTProto result · `AttachMenuBotsBot`.\n\n[AttachMenuBotsBot](https://core.telegram.org/type/AttachMenuBotsBot.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AttachMenuBotsBot", "oneOf": [{"$ref": "#/components/schemas/attachMenuBotsBot"}], "description": "TL Type: AttachMenuBotsBot."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Enable or disable web bot attachment menu »", "description": "Enable or disable [web bot attachment menu »](https://core.telegram.org/api/bots/attach.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)", "x-tl-method": "messages.toggleBotInAttachMenu", "x-tl-id": "1777704297", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the user authorizes the bot to write messages to them, if requested by [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": "Toggle"}}, "additionalProperties": false, "required": ["bot", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `write_allowed` | `true` | いいえ | Whether the user authorizes the bot to write messages to them, if requested by [attachMenuBot](https://core.telegram.org/constructor/attachMenuBot.md).`request_write_access` |\n| `bot` | `InputUser` | はい | ボットID |\n| `enabled` | `Bool` | はい | Toggle |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1777704297"}}, "/catalog/messages.requestWebView": {"post": {"operationId": "messages.requestWebView", "tags": ["メッセージ"], "summary": "Open a bot mini app, sending over user information after user confirmation.", "description": "Open a [bot mini app](https://core.telegram.org/bots/webapps.md), sending over user information after user confirmation.\n\nAfter calling this method, until the user closes the webview, [messages.prolongWebView](https://core.telegram.org/method/messages.prolongWebView.md) must be called every 60 seconds.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Bot menu button](https://core.telegram.org/api/bots/menu.md)\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "messages.requestWebView", "x-tl-id": "647873217", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot menu button", "https://core.telegram.org/api/bots/menu.md"], ["Deep links", "https://core.telegram.org/api/links.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "MTProto result · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "TL Type: WebViewResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `BOT_WEBVIEW_DISABLED` — A webview cannot be opened in the specified conditions: emitted for example if `from_bot_menu` or `url` are set and `peer` is not the chat with the bot.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PRIVACY_PREMIUM_REQUIRED` — You need a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to send a message to this user.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer.\n- 400 · `THEME_PARAMS_INVALID` — The specified `theme_params` field is invalid.\n- 400 · `URL_INVALID` — Invalid URL provided.\n- 400 · `YOU_BLOCKED_USER` — You blocked this user."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the webview was opened by clicking on the bot's [menu button »](https://core.telegram.org/api/bots/menu.md)."}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent silently (no notifications for the receivers)."}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the `mode` parameter of the [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) is equal to `compact`."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "If set, requests to open the mini app in fullscreen mode (as opposed to normal or compact mode). Must be set if the `mode` parameter of the [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) is equal to `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": "Dialog where the web app is being opened, and where the resulting message will be sent (see the [docs for more info »](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": "Bot that owns the [web app](https://core.telegram.org/api/bots/webapps.md)"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "[Web app URL](https://core.telegram.org/api/bots/webapps.md)"}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "If the web app was opened from the attachment menu using a [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links), `start_param` should contain the `data` from the `startattach` parameter."}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.2?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Short name of the application; 0-64 English letters, digits, and underscores"}, "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": "If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent in reply to the specified message or story.", "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": "Open the web app as the specified peer, sending the resulting the message as the specified peer.", "x-tl-flag": "flags.13?InputPeer"}}, "additionalProperties": false, "required": ["peer", "bot", "platform"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `from_bot_menu` | `true` | いいえ | Whether the webview was opened by clicking on the bot's [menu button »](https://core.telegram.org/api/bots/menu.md). |\n| `silent` | `true` | いいえ | Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent silently (no notifications for the receivers). |\n| `compact` | `true` | いいえ | If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the `mode` parameter of the [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) is equal to `compact`. |\n| `fullscreen` | `true` | いいえ | If set, requests to open the mini app in fullscreen mode (as opposed to normal or compact mode). Must be set if the `mode` parameter of the [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links) is equal to `fullscreen`. |\n| `peer` | `InputPeer` | はい | Dialog where the web app is being opened, and where the resulting message will be sent (see the [docs for more info »](https://core.telegram.org/api/bots/webapps.md)). |\n| `bot` | `InputUser` | はい | Bot that owns the [web app](https://core.telegram.org/api/bots/webapps.md) |\n| `url` | `string` | いいえ | [Web app URL](https://core.telegram.org/api/bots/webapps.md) |\n| `start_param` | `string` | いいえ | If the web app was opened from the attachment menu using a [attachment menu deep link](https://core.telegram.org/api/links.md#bot-attachment-or-side-menu-links), `start_param` should contain the `data` from the `startattach` parameter. |\n| `theme_params` | `DataJSON` | いいえ | [Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | はい | Short name of the application; 0-64 English letters, digits, and underscores |\n| `reply_to` | `InputReplyTo` | いいえ | If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent in reply to the specified message or story. |\n| `send_as` | `InputPeer` | いいえ | Open the web app as the specified peer, sending the resulting the message as the specified peer. |"}, "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": "Indicate to the server (from the user side) that the user is still using a web app.", "description": "Indicate to the server (from the user side) that the user is still using a web app.\n\nIf the method returns a `QUERY_ID_INVALID` error, the webview must be closed.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.prolongWebView", "x-tl-id": "2966952579", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent silently (no notifications for the receivers)."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Dialog where the web app was opened."}, "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": "Bot that owns the [web app](https://core.telegram.org/api/bots/webapps.md)"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Web app interaction ID obtained from [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md)", "x-tl-type": "long"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent in reply to the specified message or story.", "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": "Open the web app as the specified peer", "x-tl-flag": "flags.13?InputPeer"}}, "additionalProperties": false, "required": ["peer", "bot", "query_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `silent` | `true` | いいえ | Whether the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent silently (no notifications for the receivers). |\n| `peer` | `InputPeer` | はい | Dialog where the web app was opened. |\n| `bot` | `InputUser` | はい | Bot that owns the [web app](https://core.telegram.org/api/bots/webapps.md) |\n| `query_id` | `long` | はい | Web app interaction ID obtained from [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md) |\n| `reply_to` | `InputReplyTo` | いいえ | If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is [terminated](https://core.telegram.org/method/messages.sendWebViewResultMessage.md) should be sent in reply to the specified message or story. |\n| `send_as` | `InputPeer` | いいえ | Open the web app as the specified peer |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "2966952579"}}, "/catalog/messages.requestSimpleWebView": {"post": {"operationId": "messages.requestSimpleWebView", "tags": ["メッセージ"], "summary": "Open a bot mini app.", "description": "Open a [bot mini app](https://core.telegram.org/api/bots/webapps.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Bot attachment menu and side menu entries](https://core.telegram.org/api/bots/attach.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.requestSimpleWebView", "x-tl-id": "1094336115", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot attachment menu and side menu entries", "https://core.telegram.org/api/bots/attach.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "TL Type: WebViewResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `URL_INVALID` — Invalid URL provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the webapp was opened by clicking on the `switch_webview` button shown on top of the inline results list returned by [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md)."}, "from_side_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Set this flag if opening the Mini App from the installed [side menu entry »](https://core.telegram.org/api/bots/attach.md)."}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Deprecated."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "Requests to open the app in fullscreen mode."}, "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": "Bot that owns the mini app"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Web app URL, if opening from a keyboard button or inline result"}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string", "description": "Deprecated."}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.0?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Short name of the application; 0-64 English letters, digits, and underscores"}}, "additionalProperties": false, "required": ["bot", "platform"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `from_switch_webview` | `true` | いいえ | Whether the webapp was opened by clicking on the `switch_webview` button shown on top of the inline results list returned by [messages.getInlineBotResults](https://core.telegram.org/method/messages.getInlineBotResults.md). |\n| `from_side_menu` | `true` | いいえ | Set this flag if opening the Mini App from the installed [side menu entry »](https://core.telegram.org/api/bots/attach.md). |\n| `compact` | `true` | いいえ | Deprecated. |\n| `fullscreen` | `true` | いいえ | Requests to open the app in fullscreen mode. |\n| `bot` | `InputUser` | はい | Bot that owns the mini app |\n| `url` | `string` | いいえ | Web app URL, if opening from a keyboard button or inline result |\n| `start_param` | `string` | いいえ | Deprecated. |\n| `theme_params` | `DataJSON` | いいえ | [Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | はい | Short name of the application; 0-64 English letters, digits, and underscores |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "URL_INVALID"], "x-browser-schema-id": "1094336115"}}, "/catalog/messages.sendWebViewResultMessage": {"post": {"operationId": "messages.sendWebViewResultMessage", "tags": ["メッセージ"], "summary": "Terminate webview interaction started with messages.requestWebView, sending the specified message to the chat on behalf of the user.", "description": "Terminate webview interaction started with [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md), sending the specified message to the chat on behalf of the user.\n\n**Who can call this method** · Telegram bots only.", "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 result · `WebViewMessageSent`.\n\n[WebViewMessageSent](https://core.telegram.org/type/WebViewMessageSent.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewMessageSent", "oneOf": [{"$ref": "#/components/schemas/webViewMessageSent"}], "description": "TL Type: WebViewMessageSent."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `QUERY_ID_INVALID` — The query ID is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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 interaction ID obtained from [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": "Message to send"}}, "additionalProperties": false, "required": ["bot_query_id", "result"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot_query_id` | `string` | はい | Webview interaction ID obtained from [messages.requestWebView](https://core.telegram.org/method/messages.requestWebView.md) |\n| `result` | `InputBotInlineResult` | はい | Message to send |"}, "x-telegram-rpc-errors": ["QUERY_ID_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "172168437"}}, "/catalog/messages.sendWebViewData": {"post": {"operationId": "messages.sendWebViewData", "tags": ["メッセージ"], "summary": "Used by the user to relay data from an opened reply keyboard bot mini app to the bot that owns it.", "description": "Used by the user to relay data from an opened [reply keyboard bot mini app](https://core.telegram.org/api/bots/webapps.md) to the bot that owns it.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.sendWebViewData", "x-tl-id": "3691135688", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Web events", "https://core.telegram.org/api/web-events.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Bot that owns the web app"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique client message ID to prevent duplicate sending of the same event. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "button_text": {"type": "string", "x-tl-type": "string", "description": "Text of the [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md) that was pressed to open the web app."}, "data": {"type": "string", "x-tl-type": "string", "description": "Data to relay to the bot, obtained from a [`web_app_data_send` JS event](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` | はい | Bot that owns the web app |\n| `random_id` | `long` | はい | Unique client message ID to prevent duplicate sending of the same event. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `button_text` | `string` | はい | Text of the [keyboardButtonSimpleWebView](https://core.telegram.org/constructor/keyboardButtonSimpleWebView.md) that was pressed to open the web app. |\n| `data` | `string` | はい | Data to relay to the bot, obtained from a [`web_app_data_send` JS event](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": "Transcribe voice message", "description": "[Transcribe voice message](https://core.telegram.org/api/transcribe.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Voice message transcription](https://core.telegram.org/api/transcribe.md)", "x-tl-method": "messages.transcribeAudio", "x-tl-id": "647928393", "x-tl-result": "messages.TranscribedAudio", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Voice message transcription", "https://core.telegram.org/api/transcribe.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.TranscribedAudio."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `MSG_VOICE_MISSING` — The specified message is not a voice message.\n- 400 · `MSG_VOICE_TOO_LONG` — The specified voice message is too long to be transcribed.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 400 · `TRANSCRIPTION_FAILED` — Audio transcription failed."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer ID where the voice message was sent"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Voice message ID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer ID where the voice message was sent |\n| `msg_id` | `int` | はい | Voice message 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": "Rate transcribed voice message", "description": "Rate [transcribed voice message](https://core.telegram.org/api/transcribe.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Voice message transcription](https://core.telegram.org/api/transcribe.md)", "x-tl-method": "messages.rateTranscribedAudio", "x-tl-id": "2132608815", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Voice message transcription", "https://core.telegram.org/api/transcribe.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the voice message was sent"}, "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": "Whether the transcription was correct"}}, "additionalProperties": false, "required": ["peer", "msg_id", "transcription_id", "good"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the voice message was sent |\n| `msg_id` | `int` | はい | メッセージID |\n| `transcription_id` | `long` | はい | 転写ID |\n| `good` | `Bool` | はい | Whether the transcription was correct |"}, "x-browser-schema-id": "2132608815"}}, "/catalog/messages.getCustomEmojiDocuments": {"post": {"operationId": "messages.getCustomEmojiDocuments", "tags": ["メッセージ"], "summary": "Fetch custom emoji stickers ».", "description": "Fetch [custom emoji stickers »](https://core.telegram.org/api/custom-emoji.md).\n\nReturns a list of [documents](https://core.telegram.org/constructor/document.md) with the animated custom emoji in TGS format, and a [documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji.md) attribute with the original emoji and info about the emoji stickerset this custom emoji belongs to.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getCustomEmojiDocuments", "x-tl-id": "3651866452", "x-tl-result": "Vector<Document>", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `Vector<Document>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[Document](https://core.telegram.org/type/Document.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "oneOf": [{"$ref": "#/components/schemas/documentEmpty"}, {"$ref": "#/components/schemas/document"}], "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Custom emoji](https://core.telegram.org/api/custom-emoji.md) IDs from a [messageEntityCustomEmoji](https://core.telegram.org/constructor/messageEntityCustomEmoji.md)."}}, "additionalProperties": false, "required": ["document_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `document_id` | `Vector<long>` | はい | [Custom emoji](https://core.telegram.org/api/custom-emoji.md) IDs from a [messageEntityCustomEmoji](https://core.telegram.org/constructor/messageEntityCustomEmoji.md). |"}, "x-browser-schema-id": "3651866452"}}, "/catalog/messages.getEmojiStickers": {"post": {"operationId": "messages.getEmojiStickers", "tags": ["メッセージ"], "summary": "Gets the list of currently installed custom emoji stickersets.", "description": "Gets the list of currently installed [custom emoji stickersets](https://core.telegram.org/api/custom-emoji.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.getEmojiStickers", "x-tl-id": "4227637647", "x-tl-result": "messages.AllStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto Result · `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 type: messages.AllStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getEmojiStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "4227637647"}}, "/catalog/messages.getFeaturedEmojiStickers": {"post": {"operationId": "messages.getFeaturedEmojiStickers", "tags": ["メッセージ"], "summary": "Gets featured custom emoji stickersets.", "description": "Gets featured custom emoji stickersets.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getFeaturedEmojiStickers", "x-tl-id": "248473398", "x-tl-result": "messages.FeaturedStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.FeaturedStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getFeaturedEmojiStickers"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "248473398"}}, "/catalog/messages.reportReaction": {"post": {"operationId": "messages.reportReaction", "tags": ["メッセージ"], "summary": "Report a message reaction", "description": "Report a [message reaction](https://core.telegram.org/api/reactions.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.reportReaction", "x-tl-id": "1063567478", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the message was sent"}, "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": "Peer that sent the reaction"}}, "additionalProperties": false, "required": ["peer", "id", "reaction_peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the message was sent |\n| `id` | `int` | はい | メッセージID |\n| `reaction_peer` | `InputPeer` | はい | Peer that sent the reaction |"}, "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": "Got popular message reactions", "description": "Got popular [message reactions](https://core.telegram.org/api/reactions.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getTopReactions", "x-tl-id": "3145803194", "x-tl-result": "messages.Reactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Reactions."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3145803194"}}, "/catalog/messages.getRecentReactions": {"post": {"operationId": "messages.getRecentReactions", "tags": ["メッセージ"], "summary": "Get recently used message reactions", "description": "Get recently used [message reactions](https://core.telegram.org/api/reactions.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getRecentReactions", "x-tl-id": "960896434", "x-tl-result": "messages.Reactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Reactions."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "960896434"}}, "/catalog/messages.clearRecentReactions": {"post": {"operationId": "messages.clearRecentReactions", "tags": ["メッセージ"], "summary": "Clear recently used message reactions", "description": "Clear recently used [message reactions](https://core.telegram.org/api/reactions.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.clearRecentReactions", "x-tl-id": "2650730420", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.clearRecentReactions"}, "x-browser-schema-id": "2650730420"}}, "/catalog/messages.getExtendedMedia": {"post": {"operationId": "messages.getExtendedMedia", "tags": ["メッセージ"], "summary": "Fetch updated information about paid media, see here » for the full flow.", "description": "Fetch updated information about [paid media, see here »](https://core.telegram.org/api/paid-media.md) for the full flow.\n\nThis method will return an array of [updateMessageExtendedMedia](https://core.telegram.org/constructor/updateMessageExtendedMedia.md) updates, only for messages containing **already bought** paid media.  \nNo information will be returned for messages containing not yet bought paid media.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Paid media](https://core.telegram.org/api/paid-media.md)", "x-tl-method": "messages.getExtendedMedia", "x-tl-id": "2230847508", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Paid media", "https://core.telegram.org/api/paid-media.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer with visible paid media messages."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of currently visible messages containing paid media."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer with visible paid media messages. |\n| `id` | `Vector<int>` | はい | IDs of currently visible messages containing paid media. |"}, "x-browser-schema-id": "2230847508"}}, "/catalog/messages.setDefaultHistoryTTL": {"post": {"operationId": "messages.setDefaultHistoryTTL", "tags": ["メッセージ"], "summary": "Changes the default value of the Time-To-Live setting, applied to all new chats.", "description": "Changes the default value of the Time-To-Live setting, applied to all new chats.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TTL_PERIOD_INVALID` — The specified TTL period is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The new default Time-To-Live of all messages sent in new chats, in seconds."}}, "additionalProperties": false, "required": ["period"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `period` | `int` | はい | The new default Time-To-Live of all messages sent in new chats, in seconds. |"}, "x-telegram-rpc-errors": ["TTL_PERIOD_INVALID"], "x-browser-schema-id": "2662667333"}}, "/catalog/messages.getDefaultHistoryTTL": {"post": {"operationId": "messages.getDefaultHistoryTTL", "tags": ["メッセージ"], "summary": "Gets the default value of the Time-To-Live setting, applied to all new chats.", "description": "Gets the default value of the Time-To-Live setting, applied to all new chats.", "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 result · `DefaultHistoryTTL`.\n\n[DefaultHistoryTTL](https://core.telegram.org/type/DefaultHistoryTTL.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "DefaultHistoryTTL", "oneOf": [{"$ref": "#/components/schemas/defaultHistoryTTL"}], "description": "TL Type: DefaultHistoryTTL."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getDefaultHistoryTTL"}, "x-browser-schema-id": "1703637384"}}, "/catalog/messages.sendBotRequestedPeer": {"post": {"operationId": "messages.sendBotRequestedPeer", "tags": ["メッセージ"], "summary": "Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.", "description": "Send one or more chosen peers, as requested by a [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) button.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Bot buttons](https://core.telegram.org/api/bots/buttons.md)", "x-tl-method": "messages.sendBotRequestedPeer", "x-tl-id": "1818030759", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Bot buttons", "https://core.telegram.org/api/bots/buttons.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that sent the [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) button."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "ID of the message that contained the reply keyboard with the [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) button."}, "webapp_req_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "If the button was prepared for a [Mini App »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps), the Mini App request ID returned by [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md)."}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The `button_id` field from the [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) constructor."}, "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "The chosen peers."}}, "additionalProperties": false, "required": ["peer", "button_id", "requested_peers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The bot that sent the [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) button. |\n| `msg_id` | `int` | いいえ | ID of the message that contained the reply keyboard with the [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) button. |\n| `webapp_req_id` | `string` | いいえ | If the button was prepared for a [Mini App »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps), the Mini App request ID returned by [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md). |\n| `button_id` | `int` | はい | The `button_id` field from the [keyboardButtonRequestPeer](https://core.telegram.org/constructor/keyboardButtonRequestPeer.md) constructor. |\n| `requested_peers` | `Vector<InputPeer>` | はい | The chosen peers. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "1818030759"}}, "/catalog/messages.getEmojiGroups": {"post": {"operationId": "messages.getEmojiGroups", "tags": ["メッセージ"], "summary": "Represents a list of emoji categories.", "description": "[絵文字カテゴリ](https://core.telegram.org/api/emoji-categories.md)]のリストを表します。\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)", "x-tl-method": "messages.getEmojiGroups", "x-tl-id": "1955122779", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1955122779"}}, "/catalog/messages.getEmojiStatusGroups": {"post": {"operationId": "messages.getEmojiStatusGroups", "tags": ["メッセージ"], "summary": "Represents a list of emoji categories, to be used when selecting custom emojis to set as custom emoji status.", "description": "Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories.md), to be used when selecting custom emojis to set as [custom emoji status](https://core.telegram.org/api.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)", "x-tl-method": "messages.getEmojiStatusGroups", "x-tl-id": "785209037", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "785209037"}}, "/catalog/messages.getEmojiProfilePhotoGroups": {"post": {"operationId": "messages.getEmojiProfilePhotoGroups", "tags": ["メッセージ"], "summary": "Represents a list of emoji categories, to be used when selecting custom emojis to set as profile picture.", "description": "Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories.md), to be used when selecting custom emojis to set as [profile picture](https://core.telegram.org/api/files.md#sticker-profile-pictures).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "messages.getEmojiProfilePhotoGroups", "x-tl-id": "564480243", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"], ["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "564480243"}}, "/catalog/messages.searchCustomEmoji": {"post": {"operationId": "messages.searchCustomEmoji", "tags": ["メッセージ"], "summary": "Look for custom emojis associated to a UTF8 emoji", "description": "Look for [custom emojis](https://core.telegram.org/api/custom-emoji.md) associated to a UTF8 emoji\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.searchCustomEmoji", "x-tl-id": "739360983", "x-tl-result": "EmojiList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `EmojiList`.\n\n[EmojiList](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 Type: EmojiList."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `EMOTICON_EMPTY` — The emoji is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The emoji"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["emoticon", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `emoticon` | `string` | はい | The emoji |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](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": "Show or hide the real-time chat translation popup for a certain chat", "description": "Show or hide the [real-time chat translation popup](https://core.telegram.org/api/translation.md) for a certain chat\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message translation](https://core.telegram.org/api/translation.md)", "x-tl-method": "messages.togglePeerTranslations", "x-tl-id": "3833378169", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message translation", "https://core.telegram.org/api/translation.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to disable or enable the real-time chat translation popup"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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` | いいえ | Whether to disable or enable the real-time chat translation popup |\n| `peer` | `InputPeer` | はい | ピア |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3833378169"}}, "/catalog/messages.getBotApp": {"post": {"operationId": "messages.getBotApp", "tags": ["メッセージ"], "summary": "Obtain information about a direct link Mini App", "description": "Obtain information about a [direct link Mini App](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.getBotApp", "x-tl-id": "889046467", "x-tl-result": "messages.BotApp", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.BotApp."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_APP_BOT_INVALID` — The bot_id passed in the inputBotAppShortName constructor is invalid.\n- 400 · `BOT_APP_INVALID` — The specified bot app is invalid.\n- 400 · `BOT_APP_SHORTNAME_INVALID` — The specified bot app short name is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Bot app information obtained from a [Direct Mini App deep link »](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` | はい | Bot app information obtained from a [Direct Mini App deep link »](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": "Open a bot mini app from a direct Mini App deep link, sending over user information after user confirmation.", "description": "Open a [bot mini app](https://core.telegram.org/bots/webapps.md) from a [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links), sending over user information after user confirmation.\n\nAfter calling this method, until the user closes the webview, [messages.prolongWebView](https://core.telegram.org/method/messages.prolongWebView.md) must be called every 60 seconds.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.requestAppWebView", "x-tl-id": "1398901710", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "TL Type: WebViewResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_APP_BOT_INVALID` — The bot_id passed in the inputBotAppShortName constructor is invalid.\n- 400 · `BOT_APP_INVALID` — The specified bot app is invalid.\n- 400 · `BOT_APP_SHORTNAME_INVALID` — The specified bot app short name is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `THEME_PARAMS_INVALID` — The specified `theme_params` field is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set this flag if the bot is asking permission to send messages to the user as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs, and the user agreed."}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the `mode` parameter of the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `compact`."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "If set, requests to open the mini app in fullscreen mode (as opposed to compact or normal mode). Must be set if the `mode` parameter of the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `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": "If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead."}, "app": {"type": "object", "x-tl-type": "InputBotApp", "oneOf": [{"$ref": "#/components/schemas/inputBotAppID"}, {"$ref": "#/components/schemas/inputBotAppShortName"}], "description": "The app obtained by invoking [messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md) as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs."}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "If the `startapp` query string parameter is present in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links), pass it to `start_param`."}, "theme_params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "[Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.2?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Short name of the application; 0-64 English letters, digits, and underscores"}}, "additionalProperties": false, "required": ["peer", "app", "platform"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `write_allowed` | `true` | いいえ | Set this flag if the bot is asking permission to send messages to the user as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs, and the user agreed. |\n| `compact` | `true` | いいえ | If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the `mode` parameter of the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `compact`. |\n| `fullscreen` | `true` | いいえ | If set, requests to open the mini app in fullscreen mode (as opposed to compact or normal mode). Must be set if the `mode` parameter of the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) is equal to `fullscreen`. |\n| `peer` | `InputPeer` | はい | If the client has clicked on the link in a Telegram chat, pass the chat's peer information; otherwise pass the bot's peer information, instead. |\n| `app` | `InputBotApp` | はい | The app obtained by invoking [messages.getBotApp](https://core.telegram.org/method/messages.getBotApp.md) as specified in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links) docs. |\n| `start_param` | `string` | いいえ | If the `startapp` query string parameter is present in the [direct Mini App deep link](https://core.telegram.org/api/links.md#direct-mini-app-links), pass it to `start_param`. |\n| `theme_params` | `DataJSON` | いいえ | [Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | はい | Short name of the application; 0-64 English letters, digits, and underscores |"}, "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": "Set a custom wallpaper » in a specific private chat with another user.", "description": "Set a custom [wallpaper »](https://core.telegram.org/api/wallpapers.md) in a specific private chat with another user.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Chat wallpapers](https://core.telegram.org/api/wallpapers.md)", "x-tl-method": "messages.setChatWallPaper", "x-tl-id": "2415577825", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Chat wallpapers", "https://core.telegram.org/api/wallpapers.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `WALLPAPER_INVALID` — The specified wallpaper is invalid.\n- 400 · `WALLPAPER_NOT_FOUND` — The specified wallpaper could not be found."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Only for [Premium](https://core.telegram.org/api/premium.md) users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user."}, "revert": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "If we don't like the new wallpaper the other user of the chat has chosen for us using the `for_both` flag, we can re-set our previous wallpaper just on our side using this flag."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The private chat where the wallpaper will be set"}, "wallpaper": {"type": "object", "x-tl-type": "InputWallPaper", "oneOf": [{"$ref": "#/components/schemas/inputWallPaper"}, {"$ref": "#/components/schemas/inputWallPaperSlug"}, {"$ref": "#/components/schemas/inputWallPaperNoFile"}], "description": "The [wallpaper »](https://core.telegram.org/api/wallpapers.md), obtained as described in the [wallpaper documentation »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers); must **not** be provided when installing a wallpaper obtained from a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) service message (`id` must be provided, instead).", "x-tl-flag": "flags.0?InputWallPaper"}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "oneOf": [{"$ref": "#/components/schemas/wallPaperSettings"}], "description": "Wallpaper settings, obtained as described in the [wallpaper documentation »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers) or from [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": "If the wallpaper was obtained from a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) service message, must contain the ID of that message."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_both` | `true` | いいえ | Only for [Premium](https://core.telegram.org/api/premium.md) users, sets the specified wallpaper for both users of the chat, without requiring confirmation from the other user. |\n| `revert` | `true` | いいえ | If we don't like the new wallpaper the other user of the chat has chosen for us using the `for_both` flag, we can re-set our previous wallpaper just on our side using this flag. |\n| `peer` | `InputPeer` | はい | The private chat where the wallpaper will be set |\n| `wallpaper` | `InputWallPaper` | いいえ | The [wallpaper »](https://core.telegram.org/api/wallpapers.md), obtained as described in the [wallpaper documentation »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers); must **not** be provided when installing a wallpaper obtained from a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) service message (`id` must be provided, instead). |\n| `settings` | `WallPaperSettings` | いいえ | Wallpaper settings, obtained as described in the [wallpaper documentation »](https://core.telegram.org/api/wallpapers.md#uploading-wallpapers) or from [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md).`wallpaper`.`settings`. |\n| `id` | `int` | いいえ | If the wallpaper was obtained from a [messageActionSetChatWallPaper](https://core.telegram.org/constructor/messageActionSetChatWallPaper.md) service message, must contain the ID of that message. |"}, "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": "Search for custom emoji stickersets »", "description": "Search for [custom emoji stickersets »](https://core.telegram.org/api/custom-emoji.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "messages.searchEmojiStickerSets", "x-tl-id": "2461288780", "x-tl-result": "messages.FoundStickerSets", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.FoundStickerSets."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Exclude featured stickersets from results"}, "q": {"type": "string", "x-tl-type": "string", "description": "Query string"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["q", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `exclude_featured` | `true` | いいえ | Exclude featured stickersets from results |\n| `q` | `string` | はい | Query string |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2461288780"}}, "/catalog/messages.getSavedDialogs": {"post": {"operationId": "messages.getSavedDialogs", "tags": ["メッセージ"], "summary": "Returns the current saved dialog list » or monoforum topic list ».", "description": "Returns the current [saved dialog list »](https://core.telegram.org/api/saved-messages.md) or [monoforum topic list »](https://core.telegram.org/api/monoforum.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.getSavedDialogs", "x-tl-id": "512883865", "x-tl-result": "messages.SavedDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SavedDialogs."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Exclude pinned dialogs"}, "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": "If set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list.", "x-tl-flag": "flags.1?InputPeer"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) (`top_message` ID used for pagination)"}, "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": "[Offset peer for pagination](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of list elements to be returned"}, "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` | いいえ | Exclude pinned dialogs |\n| `parent_peer` | `InputPeer` | いいえ | If set, fetches the topic list of the passed monoforum, otherwise fetches the saved dialog list. |\n| `offset_date` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) (`top_message` ID used for pagination) |\n| `offset_peer` | `InputPeer` | はい | [Offset peer for pagination](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Number of list elements to be returned |\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": "Fetch saved messages » forwarded from a specific peer, or fetch messages from a monoforum topic ».", "description": "Fetch [saved messages »](https://core.telegram.org/api/saved-messages.md) forwarded from a specific peer, or fetch messages from a [monoforum topic »](https://core.telegram.org/api/monoforum.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.getSavedHistory", "x-tl-id": "2576003081", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PARENT_PEER_INVALID` — The specified `parent_peer` is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, fetches messages from the specified monoforum, otherwise fetches from saved messages.", "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": "Target peer (or topic)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Only return messages starting from the specified message ID"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Only return messages sent before the specified date"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of list elements to be skipped, negative values are also accepted."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of results to return"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was transferred, the method will return only messages with IDs less than **max_id**"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was transferred, the method will return only messages with IDs more than **min_id**"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Result hash](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` | いいえ | If set, fetches messages from the specified monoforum, otherwise fetches from saved messages. |\n| `peer` | `InputPeer` | はい | Target peer (or topic) |\n| `offset_id` | `int` | はい | Only return messages starting from the specified message ID |\n| `offset_date` | `int` | はい | Only return messages sent before the specified date |\n| `add_offset` | `int` | はい | Number of list elements to be skipped, negative values are also accepted. |\n| `limit` | `int` | はい | Number of results to return |\n| `max_id` | `int` | はい | If a positive value was transferred, the method will return only messages with IDs less than **max_id** |\n| `min_id` | `int` | はい | If a positive value was transferred, the method will return only messages with IDs more than **min_id** |\n| `hash` | `long` | はい | [Result hash](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": "Deletes messages from a monoforum topic », or deletes messages forwarded from a specific peer to saved messages ».", "description": "Deletes messages from a [monoforum topic »](https://core.telegram.org/api/monoforum.md), or deletes messages forwarded from a specific peer to [saved messages »](https://core.telegram.org/api/saved-messages.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.deleteSavedHistory", "x-tl-id": "1304758367", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, affects the messages of the passed [monoforum topic »](https://core.telegram.org/api/monoforum.md), otherwise affects [saved messages »](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, whose messages will be deleted from [saved messages »](https://core.telegram.org/api/saved-messages.md), or the ID of the topic."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum ID of message to delete"}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "Delete all messages newer than this UNIX timestamp"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int", "description": "Delete all messages older than this UNIX timestamp"}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | いいえ | If set, affects the messages of the passed [monoforum topic »](https://core.telegram.org/api/monoforum.md), otherwise affects [saved messages »](https://core.telegram.org/api/saved-messages.md). |\n| `peer` | `InputPeer` | はい | Peer, whose messages will be deleted from [saved messages »](https://core.telegram.org/api/saved-messages.md), or the ID of the topic. |\n| `max_id` | `int` | はい | Maximum ID of message to delete |\n| `min_date` | `int` | いいえ | Delete all messages newer than this UNIX timestamp |\n| `max_date` | `int` | いいえ | Delete all messages older than this UNIX timestamp |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1304758367"}}, "/catalog/messages.getPinnedSavedDialogs": {"post": {"operationId": "messages.getPinnedSavedDialogs", "tags": ["メッセージ"], "summary": "Get pinned saved dialogs, see here » for more info.", "description": "Get pinned [saved dialogs, see here »](https://core.telegram.org/api/saved-messages.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.getPinnedSavedDialogs", "x-tl-id": "3594360032", "x-tl-result": "messages.SavedDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SavedDialogs."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getPinnedSavedDialogs"}, "x-browser-schema-id": "3594360032"}}, "/catalog/messages.toggleSavedDialogPin": {"post": {"operationId": "messages.toggleSavedDialogPin", "tags": ["メッセージ"], "summary": "Pin or unpin a saved message dialog ».", "description": "Pin or unpin a [saved message dialog »](https://core.telegram.org/api/saved-messages.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.toggleSavedDialogPin", "x-tl-id": "2894183390", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to pin or unpin the dialog"}, "peer": {"type": "object", "x-tl-type": "InputDialogPeer", "oneOf": [{"$ref": "#/components/schemas/inputDialogPeer"}, {"$ref": "#/components/schemas/inputDialogPeerFolder"}, {"$ref": "#/components/schemas/inputDialogPeerCommunity"}], "description": "The dialog to pin"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `pinned` | `true` | いいえ | Whether to pin or unpin the dialog |\n| `peer` | `InputDialogPeer` | はい | The dialog to pin |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2894183390"}}, "/catalog/messages.reorderPinnedSavedDialogs": {"post": {"operationId": "messages.reorderPinnedSavedDialogs", "tags": ["メッセージ"], "summary": "Reorder pinned saved message dialogs ».", "description": "Reorder pinned [saved message dialogs »](https://core.telegram.org/api/saved-messages.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.reorderPinnedSavedDialogs", "x-tl-id": "2339464583", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, dialogs pinned server-side but not present in the `order` field will be unpinned."}, "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 Type: InputDialogPeer."}, "x-tl-type": "Vector<InputDialogPeer>", "description": "New dialog order"}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `force` | `true` | いいえ | If set, dialogs pinned server-side but not present in the `order` field will be unpinned. |\n| `order` | `Vector<InputDialogPeer>` | はい | New dialog order |"}, "x-browser-schema-id": "2339464583"}}, "/catalog/messages.getSavedReactionTags": {"post": {"operationId": "messages.getSavedReactionTags", "tags": ["メッセージ"], "summary": "Fetch the full list of saved message tags created by the user.", "description": "Fetch the full list of [saved message tags](https://core.telegram.org/api/saved-messages.md#tags) created by the user.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.getSavedReactionTags", "x-tl-id": "909631579", "x-tl-result": "messages.SavedReactionTags", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Saved messages", "https://core.telegram.org/api/saved-messages.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SavedReactionTags."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, returns tags only used in the specified [saved message dialog](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs).", "x-tl-flag": "flags.0?InputPeer"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | いいえ | If set, returns tags only used in the specified [saved message dialog](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs). |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](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": "Update the description of a saved message tag ».", "description": "Update the [description of a saved message tag »](https://core.telegram.org/api/saved-messages.md#tags).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.updateSavedReactionTag", "x-tl-id": "1613331948", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 400 · `REACTION_INVALID` — The specified reaction is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Reaction](https://core.telegram.org/api/reactions.md) associated to the tag"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Tag description, max 12 UTF-8 characters; to remove the description call the method without setting this flag."}}, "additionalProperties": false, "required": ["reaction"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `reaction` | `Reaction` | はい | [Reaction](https://core.telegram.org/api/reactions.md) associated to the tag |\n| `title` | `string` | いいえ | Tag description, max 12 UTF-8 characters; to remove the description call the method without setting this flag. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED", "REACTION_INVALID"], "x-browser-schema-id": "1613331948"}}, "/catalog/messages.getDefaultTagReactions": {"post": {"operationId": "messages.getDefaultTagReactions", "tags": ["メッセージ"], "summary": "Fetch a default recommended list of saved message tag reactions.", "description": "Fetch a default recommended list of [saved message tag reactions](https://core.telegram.org/api/saved-messages.md#tags).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.getDefaultTagReactions", "x-tl-id": "3187225640", "x-tl-result": "messages.Reactions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Reactions."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getDefaultTagReactions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3187225640"}}, "/catalog/messages.getOutboxReadDate": {"post": {"operationId": "messages.getOutboxReadDate", "tags": ["メッセージ"], "summary": "Get the exact read date of one of our messages, sent to a private chat with another user.", "description": "Get the exact read date of one of our messages, sent to a private chat with another user.\n\nCan be only done for private outgoing messages not older than [appConfig.pm\\_read\\_date\\_expire\\_period »](https://core.telegram.org/api/config.md#pm-read-date-expire-period).\n\nIf the `peer`'s [userFull](https://core.telegram.org/constructor/userFull.md).`read_dates_private` flag is set, we will not be able to fetch the exact read date of messages we send to them, and a `USER_PRIVACY_RESTRICTED` RPC error will be emitted.  \nThe exact read date of messages might still be unavailable for other reasons, see [here »](https://core.telegram.org/constructor/globalPrivacySettings.md) for more info.  \nTo set [userFull](https://core.telegram.org/constructor/userFull.md).`read_dates_private` for ourselves invoke [account.setGlobalPrivacySettings](https://core.telegram.org/method/account.setGlobalPrivacySettings.md), setting the `settings.hide_read_marks` flag.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "messages.getOutboxReadDate", "x-tl-id": "2353790557", "x-tl-result": "OutboxReadDate", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "MTProto result · `OutboxReadDate`.\n\n[OutboxReadDate](https://core.telegram.org/type/OutboxReadDate.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "OutboxReadDate", "oneOf": [{"$ref": "#/components/schemas/outboxReadDate"}], "description": "TL Type: OutboxReadDate."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MESSAGE_NOT_READ_YET` — The specified message wasn't read yet.\n- 400 · `MESSAGE_TOO_OLD` — The message is too old, the requested information is not available.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `USER_PRIVACY_RESTRICTED` — The user's privacy settings do not allow you to do this.\n- 403 · `YOUR_PRIVACY_RESTRICTED` — You cannot fetch the read date of this message because you have disallowed other users to do so for *your* messages; to fix, allow other users to see *your* exact last online date OR purchase a [Telegram Premium](https://core.telegram.org/api/premium.md) subscription."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user to whom we sent the message."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The message ID."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The user to whom we sent the message. |\n| `msg_id` | `int` | はい | The message 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": "Fetch basic info about all existing quick reply shortcuts.", "description": "Fetch basic info about all existing [quick reply shortcuts](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.getQuickReplies", "x-tl-id": "3565417128", "x-tl-result": "messages.QuickReplies", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.QuickReplies."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getQuickReplies"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Hash for pagination, generated as specified [here »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (not the usual algorithm used for hash generation.)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | Hash for pagination, generated as specified [here »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (not the usual algorithm used for hash generation.) |"}, "x-browser-schema-id": "3565417128"}}, "/catalog/messages.reorderQuickReplies": {"post": {"operationId": "messages.reorderQuickReplies", "tags": ["メッセージ"], "summary": "Reorder quick reply shortcuts.", "description": "Reorder [quick reply shortcuts](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\nThis will emit an [updateQuickReplies](https://core.telegram.org/constructor/updateQuickReplies.md) update to other logged-in sessions.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.reorderQuickReplies", "x-tl-id": "1613961479", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "IDs of all created [quick reply shortcuts](https://core.telegram.org/api/business.md#quick-reply-shortcuts), in the desired order."}}, "additionalProperties": false, "required": ["order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `order` | `Vector<int>` | はい | IDs of all created [quick reply shortcuts](https://core.telegram.org/api/business.md#quick-reply-shortcuts), in the desired order. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "1613961479"}}, "/catalog/messages.checkQuickReplyShortcut": {"post": {"operationId": "messages.checkQuickReplyShortcut", "tags": ["メッセージ"], "summary": "Before offering the user the choice to add a message to a quick reply shortcut, to make sure that none of the limits specified here » were reached.", "description": "Before offering the user the choice to add a message to a [quick reply shortcut](https://core.telegram.org/api/business.md#quick-reply-shortcuts), to make sure that none of the limits specified [here »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) were reached.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.checkQuickReplyShortcut", "x-tl-id": "4057005011", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Shorcut name (not ID!)."}}, "additionalProperties": false, "required": ["shortcut"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `shortcut` | `string` | はい | Shorcut name (not ID!). |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "4057005011"}}, "/catalog/messages.editQuickReplyShortcut": {"post": {"operationId": "messages.editQuickReplyShortcut", "tags": ["メッセージ"], "summary": "Rename a quick reply shortcut.  ", "description": "Rename a [quick reply shortcut](https://core.telegram.org/api/business.md#quick-reply-shortcuts).  \nThis will emit an [updateQuickReplies](https://core.telegram.org/constructor/updateQuickReplies.md) update to other logged-in sessions.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.editQuickReplyShortcut", "x-tl-id": "1543519471", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 400 · `SHORTCUT_INVALID` — The specified shortcut is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Shortcut ID](https://core.telegram.org/api/business.md#quick-reply-shortcuts)."}, "shortcut": {"type": "string", "x-tl-type": "string", "description": "New shortcut name."}}, "additionalProperties": false, "required": ["shortcut_id", "shortcut"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | はい | [Shortcut ID](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `shortcut` | `string` | はい | New shortcut name. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED", "SHORTCUT_INVALID"], "x-browser-schema-id": "1543519471"}}, "/catalog/messages.deleteQuickReplyShortcut": {"post": {"operationId": "messages.deleteQuickReplyShortcut", "tags": ["メッセージ"], "summary": "Completely delete a quick reply shortcut.  ", "description": "Completely delete a [quick reply shortcut](https://core.telegram.org/api/business.md#quick-reply-shortcuts).  \nThis will also emit an [updateDeleteQuickReply](https://core.telegram.org/constructor/updateDeleteQuickReply.md) update to other logged-in sessions (and *no* [updateDeleteQuickReplyMessages](https://core.telegram.org/constructor/updateDeleteQuickReplyMessages.md) updates, even if all the messages in the shortcuts are also deleted by this method).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.deleteQuickReplyShortcut", "x-tl-id": "1019234112", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SHORTCUT_INVALID` — The specified shortcut is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Shortcut ID](https://core.telegram.org/api/business.md#quick-reply-shortcuts)"}}, "additionalProperties": false, "required": ["shortcut_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | はい | [Shortcut 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": "Fetch (a subset or all) messages in a quick reply shortcut ».", "description": "Fetch (a subset or all) messages in a [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.getQuickReplyMessages", "x-tl-id": "2493814211", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SHORTCUT_INVALID` — The specified shortcut is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Quick reply shortcut 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": "IDs of the messages to fetch, if empty fetches all of them."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Hash for pagination, generated as specified [here »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (not the usual algorithm used for hash generation).", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["shortcut_id", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | はい | Quick reply shortcut ID. |\n| `id` | `Vector<int>` | いいえ | IDs of the messages to fetch, if empty fetches all of them. |\n| `hash` | `long` | はい | Hash for pagination, generated as specified [here »](https://core.telegram.org/api/business.md#quick-reply-shortcuts) (not the usual algorithm used for hash generation). |"}, "x-telegram-rpc-errors": ["SHORTCUT_INVALID"], "x-browser-schema-id": "2493814211"}}, "/catalog/messages.sendQuickReplyMessages": {"post": {"operationId": "messages.sendQuickReplyMessages", "tags": ["メッセージ"], "summary": "Send a quick reply shortcut ».", "description": "Send a [quick reply shortcut »](https://core.telegram.org/api/business.md#quick-reply-shortcuts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.sendQuickReplyMessages", "x-tl-id": "1819610593", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer where to send the shortcut (users only, for now)."}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The ID of the quick reply shortcut to send."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Specify a subset of messages from the shortcut to send; if empty, defaults to all of them."}, "random_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "Unique client IDs required to prevent message resending, one for each message we're sending, may be empty (but not recommended). See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}}, "additionalProperties": false, "required": ["peer", "shortcut_id", "id", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer where to send the shortcut (users only, for now). |\n| `shortcut_id` | `int` | はい | The ID of the quick reply shortcut to send. |\n| `id` | `Vector<int>` | はい | Specify a subset of messages from the shortcut to send; if empty, defaults to all of them. |\n| `random_id` | `Vector<long>` | はい | Unique client IDs required to prevent message resending, one for each message we're sending, may be empty (but not recommended). See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "1819610593"}}, "/catalog/messages.deleteQuickReplyMessages": {"post": {"operationId": "messages.deleteQuickReplyMessages", "tags": ["メッセージ"], "summary": "Delete one or more messages from a quick reply shortcut. This will also emit an updateDeleteQuickReplyMessages update.", "description": "Delete one or more messages from a [quick reply shortcut](https://core.telegram.org/api/business.md#quick-reply-shortcuts). This will also emit an [updateDeleteQuickReplyMessages](https://core.telegram.org/constructor/updateDeleteQuickReplyMessages.md) update.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "messages.deleteQuickReplyMessages", "x-tl-id": "3775260944", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SHORTCUT_INVALID` — The specified shortcut is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Shortcut 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": "IDs of shortcut messages to delete."}}, "additionalProperties": false, "required": ["shortcut_id", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `shortcut_id` | `int` | はい | [Shortcut ID](https://core.telegram.org/api/business.md#quick-reply-shortcuts). |\n| `id` | `Vector<int>` | はい | IDs of shortcut messages to delete. |"}, "x-telegram-rpc-errors": ["SHORTCUT_INVALID"], "x-browser-schema-id": "3775260944"}}, "/catalog/messages.toggleDialogFilterTags": {"post": {"operationId": "messages.toggleDialogFilterTags", "tags": ["メッセージ"], "summary": "Enable or disable folder tags ».", "description": "Enable or disable [folder tags »](https://core.telegram.org/api/folders.md#folder-tags).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "messages.toggleDialogFilterTags", "x-tl-id": "4247640649", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Enable or disable folder tags."}}, "additionalProperties": false, "required": ["enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `enabled` | `Bool` | はい | Enable or disable folder tags. |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "4247640649"}}, "/catalog/messages.getMyStickers": {"post": {"operationId": "messages.getMyStickers", "tags": ["メッセージ"], "summary": "Fetch all stickersets » owned by the current user.", "description": "Fetch all [stickersets »](https://core.telegram.org/api/stickers.md) owned by the current user.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)", "x-tl-method": "messages.getMyStickers", "x-tl-id": "3501580796", "x-tl-result": "messages.MyStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Stickers and masks", "https://core.telegram.org/api/stickers.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.MyStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `offset_id` | `long` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "3501580796"}}, "/catalog/messages.getEmojiStickerGroups": {"post": {"operationId": "messages.getEmojiStickerGroups", "tags": ["メッセージ"], "summary": "Represents a list of emoji categories, to be used when choosing a sticker.", "description": "Represents a list of [emoji categories](https://core.telegram.org/api/emoji-categories.md), to be used when choosing a sticker.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Emoji categories](https://core.telegram.org/api/emoji-categories.md)", "x-tl-method": "messages.getEmojiStickerGroups", "x-tl-id": "500711669", "x-tl-result": "messages.EmojiGroups", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Emoji categories", "https://core.telegram.org/api/emoji-categories.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.EmojiGroups."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "500711669"}}, "/catalog/messages.getAvailableEffects": {"post": {"operationId": "messages.getAvailableEffects", "tags": ["メッセージ"], "summary": "Fetch the full list of usable animated message effects ».", "description": "Fetch the full list of usable [animated message effects »](https://core.telegram.org/api/effects.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Animated message effects](https://core.telegram.org/api/effects.md)", "x-tl-method": "messages.getAvailableEffects", "x-tl-id": "3735161401", "x-tl-result": "messages.AvailableEffects", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Animated message effects", "https://core.telegram.org/api/effects.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.AvailableEffects."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3735161401"}}, "/catalog/messages.editFactCheck": {"post": {"operationId": "messages.editFactCheck", "tags": ["メッセージ"], "summary": "Edit/create a fact-check on a message.", "description": "Edit/create a [fact-check](https://core.telegram.org/api/factcheck.md) on a message.\n\nCan only be used by independent fact-checkers as specified by the [appConfig.can\\_edit\\_factcheck](https://core.telegram.org/api/config.md#can-edit-factcheck) configuration flag.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Fact checks](https://core.telegram.org/api/factcheck.md)", "x-tl-method": "messages.editFactCheck", "x-tl-id": "92925557", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Fact checks", "https://core.telegram.org/api/factcheck.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `CHAT_ACTION_FORBIDDEN` — You cannot execute this action.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the message was sent"}, "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": "Fact-check (maximum UTF-8 length specified in [appConfig.factcheck_length_limit](https://core.telegram.org/api/config.md#factcheck-length-limit))."}}, "additionalProperties": false, "required": ["peer", "msg_id", "text"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the message was sent |\n| `msg_id` | `int` | はい | メッセージID |\n| `text` | `TextWithEntities` | はい | Fact-check (maximum UTF-8 length specified in [appConfig.factcheck_length_limit](https://core.telegram.org/api/config.md#factcheck-length-limit)). |"}, "x-telegram-rpc-errors": ["CHAT_ACTION_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "92925557"}}, "/catalog/messages.deleteFactCheck": {"post": {"operationId": "messages.deleteFactCheck", "tags": ["メッセージ"], "summary": "Delete a fact-check from a message.", "description": "Delete a [fact-check](https://core.telegram.org/api/factcheck.md) from a message.\n\nCan only be used by independent fact-checkers as specified by the [appConfig.can\\_edit\\_factcheck](https://core.telegram.org/api/config.md#can-edit-factcheck) configuration flag.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Fact checks](https://core.telegram.org/api/factcheck.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "messages.deleteFactCheck", "x-tl-id": "3520762892", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Fact checks", "https://core.telegram.org/api/factcheck.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `CHAT_ACTION_FORBIDDEN` — You cannot execute this action.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the message was sent."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージID"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the message was sent. |\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": "Fetch one or more factchecks, see here » for the full flow.", "description": "Fetch one or more [factchecks, see here »](https://core.telegram.org/api/factcheck.md) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Fact checks](https://core.telegram.org/api/factcheck.md)", "x-tl-method": "messages.getFactCheck", "x-tl-id": "3117270510", "x-tl-result": "Vector<FactCheck>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Fact checks", "https://core.telegram.org/api/factcheck.md"]], "responses": {"200": {"description": "MTProto result · `Vector<FactCheck>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[FactCheck](https://core.telegram.org/type/FactCheck.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FactCheck", "oneOf": [{"$ref": "#/components/schemas/factCheck"}], "description": "TL Type: FactCheck."}, "x-tl-type": "Vector<FactCheck>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the messages were sent."}, "msg_id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Messages that have associated [factCheck](https://core.telegram.org/constructor/factCheck.md) constructors with the `need_check` flag set."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the messages were sent. |\n| `msg_id` | `Vector<int>` | はい | Messages that have associated [factCheck](https://core.telegram.org/constructor/factCheck.md) constructors with the `need_check` flag set. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3117270510"}}, "/catalog/messages.requestMainWebView": {"post": {"operationId": "messages.requestMainWebView", "tags": ["メッセージ"], "summary": "Open a Main Mini App.", "description": "Open a [Main Mini App](https://core.telegram.org/api/bots/webapps.md#main-mini-apps).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.requestMainWebView", "x-tl-id": "3386908283", "x-tl-result": "WebViewResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `WebViewResult`.\n\n[WebViewResult](https://core.telegram.org/type/WebViewResult.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "TL Type: WebViewResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the `mode` parameter of the [Main Mini App link](https://core.telegram.org/api/links.md#main-mini-app-links) is equal to `compact`."}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true", "description": "If set, requests to open the mini app in fullscreen mode (as opposed to compact or normal mode). Must be set if the `mode` parameter of the [Main Mini App link](https://core.telegram.org/api/links.md#main-mini-app-links) is equal to `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": "Currently open chat, may be [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) if no chat is currently open."}, "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": "Bot that owns the main mini app."}, "start_param": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Start parameter, if opening from a [Main Mini App link »](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": "[Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters)", "x-tl-flag": "flags.0?DataJSON"}, "platform": {"type": "string", "x-tl-type": "string", "description": "Short name of the application; 0-64 English letters, digits, and underscores"}}, "additionalProperties": false, "required": ["peer", "bot", "platform"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `compact` | `true` | いいえ | If set, requests to open the mini app in compact mode (as opposed to normal or fullscreen mode). Must be set if the `mode` parameter of the [Main Mini App link](https://core.telegram.org/api/links.md#main-mini-app-links) is equal to `compact`. |\n| `fullscreen` | `true` | いいえ | If set, requests to open the mini app in fullscreen mode (as opposed to compact or normal mode). Must be set if the `mode` parameter of the [Main Mini App link](https://core.telegram.org/api/links.md#main-mini-app-links) is equal to `fullscreen`. |\n| `peer` | `InputPeer` | はい | Currently open chat, may be [inputPeerEmpty](https://core.telegram.org/constructor/inputPeerEmpty.md) if no chat is currently open. |\n| `bot` | `InputUser` | はい | Bot that owns the main mini app. |\n| `start_param` | `string` | いいえ | Start parameter, if opening from a [Main Mini App link »](https://core.telegram.org/api/links.md#main-mini-app-links). |\n| `theme_params` | `DataJSON` | いいえ | [Theme parameters »](https://core.telegram.org/api/bots/webapps.md#theme-parameters) |\n| `platform` | `string` | はい | Short name of the application; 0-64 English letters, digits, and underscores |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "3386908283"}}, "/catalog/messages.sendPaidReaction": {"post": {"operationId": "messages.sendPaidReaction", "tags": ["メッセージ"], "summary": "Sends one or more paid Telegram Star reactions », transferring Telegram Stars » to a channel's balance.", "description": "Sends one or more [paid Telegram Star reactions »](https://core.telegram.org/api/reactions.md#paid-reactions), transferring [Telegram Stars »](https://core.telegram.org/api/stars.md) to a channel's balance.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.sendPaidReaction", "x-tl-id": "1488702288", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BALANCE_TOO_LOW` — The transaction cannot be completed because the current [Telegram Stars balance](https://core.telegram.org/api/stars.md) is too low.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `RANDOM_ID_EMPTY` — Random ID empty.\n- 400 · `RANDOM_ID_EXPIRED` — The specified `random_id` was expired (most likely it didn't follow the required `uint64_t random_id = (time() << 32) | ((uint64_t)random_uint32_t())` format, or the specified time is too far in the past).\n- 400 · `REACTIONS_COUNT_INVALID` — The specified number of reactions is invalid.\n- 400 · `SEND_AS_PEER_INVALID` — You can't send messages as the specified peer."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The message to react to"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The number of [stars](https://core.telegram.org/api/stars.md) to send (each will increment the reaction counter by one)."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique client message ID required to prevent message resending. **Note**: this argument **must** be composed of a 64-bit integer where the lower 32 bits are random, and the higher 32 bits **are equal to the current unixtime**, i.e. `uint64_t random_id = (time() &lt;&lt; 32). See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "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": "Each post with star reactions has a leaderboard with the top senders, but users can opt out of appearing there if they prefer more privacy. Not populating this field will use the default reaction privacy, stored on the server and synced to clients using [updatePaidReactionPrivacy](https://core.telegram.org/constructor/updatePaidReactionPrivacy.md) (see [here](https://core.telegram.org/api/reactions.md#paid-reaction-privacy) for more info).", "x-tl-flag": "flags.0?PaidReactionPrivacy"}}, "additionalProperties": false, "required": ["peer", "msg_id", "count", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The channel |\n| `msg_id` | `int` | はい | The message to react to |\n| `count` | `int` | はい | The number of [stars](https://core.telegram.org/api/stars.md) to send (each will increment the reaction counter by one). |\n| `random_id` | `long` | はい | Unique client message ID required to prevent message resending. **Note**: this argument **must** be composed of a 64-bit integer where the lower 32 bits are random, and the higher 32 bits **are equal to the current unixtime**, i.e. `uint64_t random_id = (time() &lt;&lt; 32). See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `private` | `PaidReactionPrivacy` | いいえ | Each post with star reactions has a leaderboard with the top senders, but users can opt out of appearing there if they prefer more privacy. Not populating this field will use the default reaction privacy, stored on the server and synced to clients using [updatePaidReactionPrivacy](https://core.telegram.org/constructor/updatePaidReactionPrivacy.md) (see [here](https://core.telegram.org/api/reactions.md#paid-reaction-privacy) for more info). |"}, "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": "Changes the privacy of already sent paid reactions on a specific message.", "description": "Changes the privacy of already sent [paid reactions](https://core.telegram.org/api/reactions.md#paid-reactions) on a specific message.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.togglePaidReactionPrivacy", "x-tl-id": "1129874869", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `REACTION_EMPTY` — Empty reaction provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The ID of the message to which we sent the paid reactions"}, "private": {"type": "object", "x-tl-type": "PaidReactionPrivacy", "oneOf": [{"$ref": "#/components/schemas/paidReactionPrivacyDefault"}, {"$ref": "#/components/schemas/paidReactionPrivacyAnonymous"}, {"$ref": "#/components/schemas/paidReactionPrivacyPeer"}], "description": "If true, makes the current anonymous in the top sender leaderboard for this message; otherwise, does the opposite."}}, "additionalProperties": false, "required": ["peer", "msg_id", "private"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The channel |\n| `msg_id` | `int` | はい | The ID of the message to which we sent the paid reactions |\n| `private` | `PaidReactionPrivacy` | はい | If true, makes the current anonymous in the top sender leaderboard for this message; otherwise, does the opposite. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "REACTION_EMPTY"], "x-browser-schema-id": "1129874869"}}, "/catalog/messages.getPaidReactionPrivacy": {"post": {"operationId": "messages.getPaidReactionPrivacy", "tags": ["メッセージ"], "summary": "Fetches an updatePaidReactionPrivacy update with the current default paid reaction privacy, see here » for more info.", "description": "Fetches an [updatePaidReactionPrivacy](https://core.telegram.org/constructor/updatePaidReactionPrivacy.md) update with the current [default paid reaction privacy, see here »](https://core.telegram.org/api/reactions.md#paid-reactions) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.getPaidReactionPrivacy", "x-tl-id": "1193563562", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getPaidReactionPrivacy"}, "x-browser-schema-id": "1193563562"}}, "/catalog/messages.viewSponsoredMessage": {"post": {"operationId": "messages.viewSponsoredMessage", "tags": ["メッセージ"], "summary": "Mark a specific sponsored message » as read", "description": "Mark a specific [sponsored message »](https://core.telegram.org/api/sponsored-messages.md) as read\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.viewSponsoredMessage", "x-tl-id": "647902787", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The ad's unique ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `random_id` | `bytes` | はい | The ad's unique ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |"}, "x-browser-schema-id": "647902787"}}, "/catalog/messages.clickSponsoredMessage": {"post": {"operationId": "messages.clickSponsoredMessage", "tags": ["メッセージ"], "summary": "Informs the server that the user has interacted with a sponsored message in one of the ways listed here ».", "description": "Informs the server that the user has interacted with a sponsored message in [one of the ways listed here »](https://core.telegram.org/api/sponsored-messages.md#clicking-on-sponsored-messages).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.clickSponsoredMessage", "x-tl-id": "2184512894", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user clicked on the media"}, "fullscreen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "The user expanded the video to full screen, and then clicked on it."}, "random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "The ad's unique ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `media` | `true` | いいえ | The user clicked on the media |\n| `fullscreen` | `true` | いいえ | The user expanded the video to full screen, and then clicked on it. |\n| `random_id` | `bytes` | はい | The ad's unique ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |"}, "x-browser-schema-id": "2184512894"}}, "/catalog/messages.reportSponsoredMessage": {"post": {"operationId": "messages.reportSponsoredMessage", "tags": ["メッセージ"], "summary": "Report a sponsored message », see here » for more info on the full flow.", "description": "Report a [sponsored message »](https://core.telegram.org/api/sponsored-messages.md), see [here »](https://core.telegram.org/api/sponsored-messages.md#reporting-sponsored-messages) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.reportSponsoredMessage", "x-tl-id": "315355332", "x-tl-result": "channels.SponsoredMessageReportResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "MTProto result · `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 type: channels.SponsoredMessageReportResult."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The ad's unique ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Chosen report option, initially an empty string, see [here »](https://core.telegram.org/api/sponsored-messages.md#reporting-sponsored-messages) for more info on the full flow."}}, "additionalProperties": false, "required": ["random_id", "option"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `random_id` | `bytes` | はい | The ad's unique ID. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `option` | `bytes` | はい | Chosen report option, initially an empty string, see [here »](https://core.telegram.org/api/sponsored-messages.md#reporting-sponsored-messages) for more info on the full flow. |"}, "x-browser-schema-id": "315355332"}}, "/catalog/messages.getSponsoredMessages": {"post": {"operationId": "messages.getSponsoredMessages", "tags": ["メッセージ"], "summary": "Get a list of sponsored messages for a peer, see here » for more info.", "description": "Get a list of [sponsored messages for a peer, see here »](https://core.telegram.org/api/sponsored-messages.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Sponsored messages](https://core.telegram.org/api/sponsored-messages.md)", "x-tl-method": "messages.getSponsoredMessages", "x-tl-id": "1030547536", "x-tl-result": "messages.SponsoredMessages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Sponsored messages", "https://core.telegram.org/api/sponsored-messages.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.SponsoredMessages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The currently open channel/bot."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Must be set when fetching [sponsored messages to show on channel videos »](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements)."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The currently open channel/bot. |\n| `msg_id` | `int` | いいえ | Must be set when fetching [sponsored messages to show on channel videos »](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": "Save a prepared inline message, to be shared by the user of the mini app using a web\\_app\\_send\\_prepared\\_message event", "description": "Save a [prepared inline message](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message), to be shared by the user of the mini app using a [web\\_app\\_send\\_prepared\\_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Inline queries](https://core.telegram.org/api/bots/inline.md)", "x-tl-method": "messages.savePreparedInlineMessage", "x-tl-id": "4062150447", "x-tl-result": "messages.BotPreparedInlineMessage", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Web events", "https://core.telegram.org/api/web-events.md"], ["Inline queries", "https://core.telegram.org/api/bots/inline.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.BotPreparedInlineMessage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `RESULT_ID_INVALID` — One of the specified result IDs is invalid.\n- 400 · `SEND_MESSAGE_GAME_INVALID` — An inputBotInlineMessageGame can only be contained in an inputBotInlineResultGame, not in an inputBotInlineResult/inputBotInlineResultPhoto/etc.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user to whom the [web_app_send_prepared_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) event will be sent"}, "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 Type: 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` | はい | The user to whom the [web_app_send_prepared_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) event will be sent |\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": "Obtain a prepared inline message generated by a mini app: invoked when handling web\\_app\\_send\\_prepared\\_message events", "description": "Obtain a [prepared inline message](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message) generated by a [mini app](https://core.telegram.org/api/bots/webapps.md): invoked when handling [web\\_app\\_send\\_prepared\\_message events](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Inline queries](https://core.telegram.org/api/bots/inline.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "messages.getPreparedInlineMessage", "x-tl-id": "2239675832", "x-tl-result": "messages.PreparedInlineMessage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Web events", "https://core.telegram.org/api/web-events.md"], ["Inline queries", "https://core.telegram.org/api/bots/inline.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.PreparedInlineMessage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ID_EXPIRED` — The passed prepared inline message ID has expired.\n- 400 · `ID_INVALID` — The passed ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the mini app that emitted the [web_app_send_prepared_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)"}, "id": {"type": "string", "x-tl-type": "string", "description": "The `id` from the [web_app_send_prepared_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message)"}}, "additionalProperties": false, "required": ["bot", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the mini app that emitted the [web_app_send_prepared_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) |\n| `id` | `string` | はい | The `id` from the [web_app_send_prepared_message event](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) |"}, "x-telegram-rpc-errors": ["ID_EXPIRED", "ID_INVALID"], "x-browser-schema-id": "2239675832"}}, "/catalog/messages.searchStickers": {"post": {"operationId": "messages.searchStickers", "tags": ["メッセージ"], "summary": "Search for stickers using AI-powered keyword search", "description": "Search for stickers using AI-powered keyword search\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "messages.searchStickers", "x-tl-id": "699516522", "x-tl-result": "messages.FoundStickers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.FoundStickers."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, returns [custom emoji stickers](https://core.telegram.org/api/custom-emoji.md)"}, "q": {"type": "string", "x-tl-type": "string", "description": "The search term"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "Space-separated list of emojis to search for"}, "lang_code": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "List of possible IETF language tags of the user's input language; may be empty if unknown"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offset for pagination](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).  The hash may be generated locally by using the `id`s of the returned or stored sticker [document](https://core.telegram.org/constructor/document.md)s.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["q", "emoticon", "lang_code", "offset", "limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `emojis` | `true` | いいえ | If set, returns [custom emoji stickers](https://core.telegram.org/api/custom-emoji.md) |\n| `q` | `string` | はい | The search term |\n| `emoticon` | `string` | はい | Space-separated list of emojis to search for |\n| `lang_code` | `Vector<string>` | はい | List of possible IETF language tags of the user's input language; may be empty if unknown |\n| `offset` | `int` | はい | [Offset for pagination](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation).  The hash may be generated locally by using the `id`s of the returned or stored sticker [document](https://core.telegram.org/constructor/document.md)s. |"}, "x-browser-schema-id": "699516522"}}, "/catalog/messages.reportMessagesDelivery": {"post": {"operationId": "messages.reportMessagesDelivery", "tags": ["メッセージ"], "summary": "Used for Telegram Gateway verification messages »: indicate to the server that one or more messages were received by the client, if requested by the message.**report\\_delivery\\_until\\_date** flag or the equivalent flag in push notifications.", "description": "Used for [Telegram Gateway verification messages »](https://telegram.org/blog/star-messages-gateway-2-0-and-more#save-even-more-on-user-verification): indicate to the server that one or more [message](https://core.telegram.org/constructor/message.md)s were received by the client, if requested by the [message](https://core.telegram.org/constructor/message.md).**report\\_delivery\\_until\\_date** flag or the equivalent flag in [push notifications](https://core.telegram.org/api/push-updates.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)", "x-tl-method": "messages.reportMessagesDelivery", "x-tl-id": "1517122453", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Must be set if the messages were received from a [push notification](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": "The peer where the messages were received."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "The IDs of the received messages."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `push` | `true` | いいえ | Must be set if the messages were received from a [push notification](https://core.telegram.org/api/push-updates.md). |\n| `peer` | `InputPeer` | はい | The peer where the messages were received. |\n| `id` | `Vector<int>` | はい | The IDs of the received messages. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1517122453"}}, "/catalog/messages.getSavedDialogsByID": {"post": {"operationId": "messages.getSavedDialogsByID", "tags": ["メッセージ"], "summary": "Obtain information about specific saved message dialogs » or monoforum topics ».", "description": "Obtain information about specific [saved message dialogs »](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs) or [monoforum topics »](https://core.telegram.org/api/monoforum.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Saved messages](https://core.telegram.org/api/saved-messages.md)", "x-tl-method": "messages.getSavedDialogsByID", "x-tl-id": "1869585558", "x-tl-result": "messages.SavedDialogs", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Saved messages", "https://core.telegram.org/api/saved-messages.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.SavedDialogs."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, fetches [monoforum topics »](https://core.telegram.org/api/monoforum.md), otherwise fetches [saved message dialogs »](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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "IDs of dialogs (topics) to fetch."}}, "additionalProperties": false, "required": ["ids"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | いいえ | If set, fetches [monoforum topics »](https://core.telegram.org/api/monoforum.md), otherwise fetches [saved message dialogs »](https://core.telegram.org/api/saved-messages.md#saved-message-dialogs). |\n| `ids` | `Vector<InputPeer>` | はい | IDs of dialogs (topics) to fetch. |"}, "x-browser-schema-id": "1869585558"}}, "/catalog/messages.readSavedHistory": {"post": {"operationId": "messages.readSavedHistory", "tags": ["メッセージ"], "summary": "Mark messages as read in a monoforum topic ».", "description": "Mark messages as read in a [monoforum topic »](https://core.telegram.org/api/monoforum.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "messages.readSavedHistory", "x-tl-id": "3125427035", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PARENT_PEER_INVALID` — The specified `parent_peer` is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "ID of the monoforum group."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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 of the topic."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value is passed, only messages with identifiers less than or equal to the given one will be read."}}, "additionalProperties": false, "required": ["parent_peer", "peer", "max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `parent_peer` | `InputPeer` | はい | ID of the monoforum group. |\n| `peer` | `InputPeer` | はい | ID of the topic. |\n| `max_id` | `int` | はい | If a positive value is passed, only messages with identifiers less than or equal to the given one will be read. |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PARENT_PEER_INVALID"], "x-browser-schema-id": "3125427035"}}, "/catalog/messages.toggleTodoCompleted": {"post": {"operationId": "messages.toggleTodoCompleted", "tags": ["メッセージ"], "summary": "Mark one or more items of a todo list » as completed or not completed.", "description": "Mark one or more items of a [todo list »](https://core.telegram.org/api/todo.md) as completed or not completed.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.toggleTodoCompleted", "x-tl-id": "3554685220", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the todo list was posted."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message with the todo list."}, "completed": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Items to mark as completed."}, "incompleted": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Items to mark as not completed."}}, "additionalProperties": false, "required": ["peer", "msg_id", "completed", "incompleted"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the todo list was posted. |\n| `msg_id` | `int` | はい | ID of the message with the todo list. |\n| `completed` | `Vector<int>` | はい | Items to mark as completed. |\n| `incompleted` | `Vector<int>` | はい | Items to mark as not completed. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3554685220"}}, "/catalog/messages.appendTodoList": {"post": {"operationId": "messages.appendTodoList", "tags": ["メッセージ"], "summary": "Appends one or more items to a todo list ».", "description": "Appends one or more items to a [todo list »](https://core.telegram.org/api/todo.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Checklists and to-do lists](https://core.telegram.org/api/todo.md)", "x-tl-method": "messages.appendTodoList", "x-tl-id": "564531287", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Checklists and to-do lists", "https://core.telegram.org/api/todo.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TODO_ITEM_DUPLICATE` — Duplicate [checklist items](https://core.telegram.org/api/todo.md) detected.\n- 400 · `TODO_NOT_MODIFIED` — No todo items were specified, so no changes were made to the todo list."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the todo list was posted."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message with the todo list."}, "list": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoItem", "oneOf": [{"$ref": "#/components/schemas/todoItem"}], "description": "TL Type: TodoItem."}, "x-tl-type": "Vector<TodoItem>", "description": "Items to append."}}, "additionalProperties": false, "required": ["peer", "msg_id", "list"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the todo list was posted. |\n| `msg_id` | `int` | はい | ID of the message with the todo list. |\n| `list` | `Vector<TodoItem>` | はい | Items to append. |"}, "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": "Approve or reject a suggested post ».", "description": "Approve or reject a [suggested post »](https://core.telegram.org/api/suggested-posts.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Suggested posts](https://core.telegram.org/api/suggested-posts.md)", "x-tl-method": "messages.toggleSuggestedPostApproval", "x-tl-id": "2164737372", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Suggested posts", "https://core.telegram.org/api/suggested-posts.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Reject the suggested post."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Both for users and channels, must contain the ID of the [direct messages monoforum »](https://core.telegram.org/api/monoforum.md) (for channels, the topic ID is extracted automatically from the `msg_id`)."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the suggestion message."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Custom scheduling date."}, "reject_comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Optional comment for rejections (can only be used if `reject` is set)."}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `reject` | `true` | いいえ | Reject the suggested post. |\n| `peer` | `InputPeer` | はい | Both for users and channels, must contain the ID of the [direct messages monoforum »](https://core.telegram.org/api/monoforum.md) (for channels, the topic ID is extracted automatically from the `msg_id`). |\n| `msg_id` | `int` | はい | ID of the suggestion message. |\n| `schedule_date` | `int` | いいえ | Custom scheduling date. |\n| `reject_comment` | `string` | いいえ | Optional comment for rejections (can only be used if `reject` is set). |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2164737372"}}, "/catalog/messages.getForumTopics": {"post": {"operationId": "messages.getForumTopics", "tags": ["メッセージ"], "summary": "Get topics of a forum", "description": "Get [topics of a forum](https://core.telegram.org/api/forum.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.getForumTopics", "x-tl-id": "3331072410", "x-tl-result": "messages.ForumTopics", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.ForumTopics."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_FORUM_MISSING` — This supergroup is not a forum.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located."}, "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": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic."}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last message of the last found topic (or initially `0`)."}, "offset_topic": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last found topic (or initially `0`)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md). For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit."}}, "additionalProperties": false, "required": ["peer", "offset_date", "offset_id", "offset_topic", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |\n| `q` | `string` | いいえ | 検索クエリ |\n| `icon_emoji_id` | `long` | いいえ | 64-битное целое в десятичной записи. |\n| `closed` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `offset_date` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), date of the last message of the last found topic. Use 0 or any date in the future to get results from the last topic. |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last message of the last found topic (or initially `0`). |\n| `offset_topic` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md), ID of the last found topic (or initially `0`). |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md). For optimal performance, the number of returned topics is chosen by the server and can be smaller than the specified limit. |"}, "x-telegram-rpc-errors": ["CHANNEL_FORUM_MISSING", "CHANNEL_INVALID"], "x-browser-schema-id": "3331072410"}}, "/catalog/messages.getForumTopicsByID": {"post": {"operationId": "messages.getForumTopicsByID", "tags": ["メッセージ"], "summary": "Get forum topics by their ID", "description": "Get forum topics by their ID\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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": "Type TL: messages.ForumTopics."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `TOPICS_EMPTY` — You specified no topic IDs."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located."}, "topics": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Topic IDs"}}, "additionalProperties": false, "required": ["peer", "topics"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |\n| `topics` | `Vector<int>` | はい | Topic IDs |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "TOPICS_EMPTY"], "x-browser-schema-id": "2936687112"}}, "/catalog/messages.editForumTopic": {"post": {"operationId": "messages.editForumTopic", "tags": ["メッセージ"], "summary": "Edit forum topic.", "description": "Edit [forum topic](https://core.telegram.org/api/forum.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.editForumTopic", "x-tl-id": "3469480244", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `TOPIC_CLOSE_SEPARATELY` — The `close` flag cannot be provided together with any of the other flags.\n- 400 · `TOPIC_NOT_MODIFIED` — The updated topic info is equal to the current topic info, nothing was changed."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Topic ID"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "If present, will update the topic title (maximum UTF-8 length: 128)."}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "If present, updates the [custom emoji](https://core.telegram.org/api/custom-emoji.md) used as topic icon. [Telegram Premium](https://core.telegram.org/api/premium.md) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md) emoji pack. Pass 0 to switch to the fallback topic icon.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "closed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "If present, will update the open/closed status of the topic."}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool", "description": "If present, will hide/unhide the topic (only valid for the \"General\" topic, `id=1`)."}}, "additionalProperties": false, "required": ["peer", "topic_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |\n| `topic_id` | `int` | はい | Topic ID |\n| `title` | `string` | いいえ | If present, will update the topic title (maximum UTF-8 length: 128). |\n| `icon_emoji_id` | `long` | いいえ | If present, updates the [custom emoji](https://core.telegram.org/api/custom-emoji.md) used as topic icon. [Telegram Premium](https://core.telegram.org/api/premium.md) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md) emoji pack. Pass 0 to switch to the fallback topic icon. |\n| `closed` | `Bool` | いいえ | If present, will update the open/closed status of the topic. |\n| `hidden` | `Bool` | いいえ | If present, will hide/unhide the topic (only valid for the \"General\" topic, `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": "Pin or unpin forum topics", "description": "Pin or unpin [forum topics](https://core.telegram.org/api/forum.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.updatePinnedForumTopic", "x-tl-id": "392032849", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Forum topic ID](https://core.telegram.org/api/forum.md)"}, "pinned": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to pin or unpin the topic"}}, "additionalProperties": false, "required": ["peer", "topic_id", "pinned"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |\n| `topic_id` | `int` | はい | [Forum topic ID](https://core.telegram.org/api/forum.md) |\n| `pinned` | `Bool` | はい | Whether to pin or unpin the topic |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "392032849"}}, "/catalog/messages.reorderPinnedForumTopics": {"post": {"operationId": "messages.reorderPinnedForumTopics", "tags": ["メッセージ"], "summary": "Reorder pinned forum topics", "description": "Reorder pinned forum topics\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.reorderPinnedForumTopics", "x-tl-id": "242762224", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If not set, the order of only the topics present both server-side and in `order` will be changed (i.e. mentioning topics not pinned server-side in `order` will not pin them, and not mentioning topics pinned server-side will not unpin them).   If set, the entire server-side pinned topic list will be replaced with `order` (i.e. mentioning topics not pinned server-side in `order` will pin them, and not mentioning topics pinned server-side will unpin them)"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "[Topic IDs »](https://core.telegram.org/api/forum.md)"}}, "additionalProperties": false, "required": ["peer", "order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `force` | `true` | いいえ | If not set, the order of only the topics present both server-side and in `order` will be changed (i.e. mentioning topics not pinned server-side in `order` will not pin them, and not mentioning topics pinned server-side will not unpin them).   If set, the entire server-side pinned topic list will be replaced with `order` (i.e. mentioning topics not pinned server-side in `order` will pin them, and not mentioning topics pinned server-side will unpin them) |\n| `peer` | `InputPeer` | はい | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |\n| `order` | `Vector<int>` | はい | [Topic IDs »](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": "Create a forum topic.", "description": "Create a [forum topic](https://core.telegram.org/api/forum.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "messages.createForumTopic", "x-tl-id": "798540757", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"], ["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `BOT_FORUM_CREATE_FORBIDDEN` — Since the bot's user.bot_forum_can_manage_topics flag is **not** set, the user cannot create or modify bot forum topics.\n- 400 · `CHANNEL_FORUM_MISSING` — This supergroup is not a forum.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, the topic has no user-defined title, can only be set for the per-user topics of [bot forums](https://core.telegram.org/api/forum.md#bot-forums); if this field is set, the topic title likely needs to be changed by the bot."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The supergroup, private chat (for forum-enabled bots) or forum bot (for users) where to create the topic."}, "title": {"type": "string", "x-tl-type": "string", "description": "Topic title (maximum UTF-8 length: 128)"}, "icon_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of `0x6FB9F0`, `0xFFD67E`, `0xCB86DB`, `0x8EEE98`, `0xFF93B2`, or `0xFB6F5F`."}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ID of the [custom emoji](https://core.telegram.org/api/custom-emoji.md) used as topic icon. [Telegram Premium](https://core.telegram.org/api/premium.md) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md) emoji pack.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique client message ID to prevent duplicate sending of the same event. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "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": "Create the topic as the specified peer", "x-tl-flag": "flags.2?InputPeer"}}, "additionalProperties": false, "required": ["peer", "title", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `title_missing` | `true` | いいえ | If set, the topic has no user-defined title, can only be set for the per-user topics of [bot forums](https://core.telegram.org/api/forum.md#bot-forums); if this field is set, the topic title likely needs to be changed by the bot. |\n| `peer` | `InputPeer` | はい | The supergroup, private chat (for forum-enabled bots) or forum bot (for users) where to create the topic. |\n| `title` | `string` | はい | Topic title (maximum UTF-8 length: 128) |\n| `icon_color` | `int` | いいえ | If no custom emoji icon is specified, specifies the color of the fallback topic icon (RGB), one of `0x6FB9F0`, `0xFFD67E`, `0xCB86DB`, `0x8EEE98`, `0xFF93B2`, or `0xFB6F5F`. |\n| `icon_emoji_id` | `long` | いいえ | ID of the [custom emoji](https://core.telegram.org/api/custom-emoji.md) used as topic icon. [Telegram Premium](https://core.telegram.org/api/premium.md) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md) emoji pack. |\n| `random_id` | `long` | はい | Unique client message ID to prevent duplicate sending of the same event. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `send_as` | `InputPeer` | いいえ | Create the topic as the specified 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": "Delete message history of a forum topic", "description": "Delete message history of a [forum topic](https://core.telegram.org/api/forum.md)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "messages.deleteTopicHistory", "x-tl-id": "3531697936", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Topic ID"}}, "additionalProperties": false, "required": ["peer", "top_msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |\n| `top_msg_id` | `int` | はい | Topic ID |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "3531697936"}}, "/catalog/messages.getEmojiGameInfo": {"post": {"operationId": "messages.getEmojiGameInfo", "tags": ["メッセージ"], "summary": "Fetch dice game information.", "description": "Fetch dice game information.", "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 result · `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": "Type TL: messages.EmojiGameInfo."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.getEmojiGameInfo"}, "x-browser-schema-id": "4219374759"}}, "/catalog/messages.summarizeText": {"post": {"operationId": "messages.summarizeText", "tags": ["メッセージ"], "summary": "Summarize the contents of a message with AI, see here » for more info.", "description": "Summarize the contents of a message with AI, see [here »](https://core.telegram.org/api/ai.md#summarize-messages) for more info.\n\nClients should use [message](https://core.telegram.org/constructor/message.md).`summary_from_language` as a hint for showing a summarization button; its absence does not forbid invoking this method.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "messages.summarizeText", "x-tl-id": "2881213254", "x-tl-result": "TextWithEntities", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "MTProto result · `TextWithEntities`.\n\n[TextWithEntities](https://core.telegram.org/type/TextWithEntities.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "TL Type: TextWithEntities."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INPUT_TEXT_TOO_LONG` — The specified text is too long.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer where the message is located."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID."}, "to_lang": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "If set, generates the summary in the specified target language (two-letter ISO 639-1 language code) instead of the message's language."}, "tone": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "If set, rephrases the summary using the specified [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) (pass the tone identifier)"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer where the message is located. |\n| `id` | `int` | はい | Message ID. |\n| `to_lang` | `string` | いいえ | If set, generates the summary in the specified target language (two-letter ISO 639-1 language code) instead of the message's language. |\n| `tone` | `string` | いいえ | If set, rephrases the summary using the specified [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) (pass the tone identifier) |"}, "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": "Transfer the ownership of a basic group, supergroup or channel to another user, see here » for the full flow.", "description": "Transfer the ownership of a basic group, supergroup or channel to another user, see [here »](https://core.telegram.org/api/channel.md#transferring-ownership-of-a-group-channel) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.editChatCreator", "x-tl-id": "4148410455", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — You're admin of too many public channels, make some channels private to change the username of this channel.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Could not add participants.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid.\n- 400 · `PASSWORD_MISSING` — You must [enable 2FA](https://core.telegram.org/api/srp.md) before executing this operation.\n- 400 · `PASSWORD_TOO_FRESH_%d` — The password was modified less than 24 hours ago, try again in %d seconds.\n- 400 · `SESSION_TOO_FRESH_%d` — This session was created less than 24 hours ago, try again in %d seconds.\n- 400 · `SRP_ID_INVALID` — Invalid SRP ID provided.\n- 400 · `USERS_TOO_MUCH` — The maximum number of users has been exceeded (to create a chat, for example).\n- 403 · `USER_CHANNELS_TOO_MUCH` — One of the users you tried to add is already in too many channels/supergroups.\n- 400 · `USER_NOT_MUTUAL_CONTACT` — The provided user is not a mutual contact.\n- 403 · `USER_PRIVACY_RESTRICTED` — The user's privacy settings do not allow you to do this."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Owned group/supergroup/channel."}, "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 of the new owner."}, "password": {"type": "object", "x-tl-type": "InputCheckPasswordSRP", "oneOf": [{"$ref": "#/components/schemas/inputCheckPasswordEmpty"}, {"$ref": "#/components/schemas/inputCheckPasswordSRP"}], "description": "The current account's [2FA password](https://core.telegram.org/api/srp.md)."}}, "additionalProperties": false, "required": ["peer", "user_id", "password"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Owned group/supergroup/channel. |\n| `user_id` | `InputUser` | はい | ID of the new owner. |\n| `password` | `InputCheckPasswordSRP` | はい | The current account's [2FA password](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": "Group/channel owners only: returns the ID of the user that will become the new owner of the group if we decide to leave the group, see here » for more info on the full flow.", "description": "Group/channel owners only: returns the ID of the user that will become the new owner of the group if we decide to leave the group, see [here »](https://core.telegram.org/api/channel.md#leaving-groups-channels) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "messages.getFutureChatCreatorAfterLeave", "x-tl-id": "998051494", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `User`.\n\n[User](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": "Type TL: User."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_ID_INVALID` — The specified supergroup ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The basic group/supergroup/channel we're about to leave."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The basic group/supergroup/channel we're about to leave. |"}, "x-telegram-rpc-errors": ["CHANNEL_ID_INVALID"], "x-browser-schema-id": "998051494"}}, "/catalog/messages.editChatParticipantRank": {"post": {"operationId": "messages.editChatParticipantRank", "tags": ["メッセージ"], "summary": "Edit a group participant's tag ».", "description": "Edit a group participant's [tag »](https://core.telegram.org/api/rank.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Group participant tags](https://core.telegram.org/api/rank.md)", "x-tl-method": "messages.editChatParticipantRank", "x-tl-id": "2685350576", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Group participant tags", "https://core.telegram.org/api/rank.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The basic group/supergroup."}, "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": "The participant."}, "rank": {"type": "string", "x-tl-type": "string", "description": "The new tag."}}, "additionalProperties": false, "required": ["peer", "participant", "rank"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The basic group/supergroup. |\n| `participant` | `InputPeer` | はい | The participant. |\n| `rank` | `string` | はい | The new tag. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2685350576"}}, "/catalog/messages.declineUrlAuth": {"post": {"operationId": "messages.declineUrlAuth", "tags": ["メッセージ"], "summary": "Decline an incoming OAuth authorization request », notifying the server that the user refused the login request.", "description": "Decline an incoming [OAuth authorization request »](https://core.telegram.org/api/url-authorization.md#oauth-authorization), notifying the server that the user refused the login request.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Handling PUSH-notifications](https://core.telegram.org/api/push-updates.md)\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.declineUrlAuth", "x-tl-id": "893610940", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Handling PUSH-notifications", "https://core.telegram.org/api/push-updates.md"], ["Web events", "https://core.telegram.org/api/web-events.md"], ["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `URL_INVALID` — Invalid URL provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The OAuth deep link from the [OAUTH_REQUEST push notification](https://core.telegram.org/api/push-updates.md#oauth-request) or the [`oauth_request` web event](https://core.telegram.org/api/web-events.md#oauth-request)"}}, "additionalProperties": false, "required": ["url"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `url` | `string` | はい | The OAuth deep link from the [OAUTH_REQUEST push notification](https://core.telegram.org/api/push-updates.md#oauth-request) or the [`oauth_request` web event](https://core.telegram.org/api/web-events.md#oauth-request) |"}, "x-telegram-rpc-errors": ["URL_INVALID"], "x-browser-schema-id": "893610940"}}, "/catalog/messages.checkUrlAuthMatchCode": {"post": {"operationId": "messages.checkUrlAuthMatchCode", "tags": ["メッセージ"], "summary": "Validate the match code selected by the user against the code shown on the login page, as part of the OAuth authorization flow ».", "description": "Validate the match code selected by the user against the code shown on the login page, as part of the [OAuth authorization flow »](https://core.telegram.org/api/url-authorization.md#oauth-authorization).\n\nOnly usable when both `match_codes` and `match_codes_first` are set in the [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md) returned by [messages.requestUrlAuth](https://core.telegram.org/method/messages.requestUrlAuth.md).  \nIf [boolTrue](https://core.telegram.org/constructor/boolTrue.md) is returned, proceed with the login flow and pass the verified code to [messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md).`match_code`.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Seamless Telegram Login](https://core.telegram.org/api/url-authorization.md)", "x-tl-method": "messages.checkUrlAuthMatchCode", "x-tl-id": "3382999819", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Seamless Telegram Login", "https://core.telegram.org/api/url-authorization.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `URL_INVALID` — Invalid URL provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The OAuth deep link"}, "match_code": {"type": "string", "x-tl-type": "string", "description": "The emoji or code selected by the user from the list in [urlAuthResultRequest](https://core.telegram.org/constructor/urlAuthResultRequest.md).`match_codes`"}}, "additionalProperties": false, "required": ["url", "match_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `url` | `string` | はい | The OAuth deep link |\n| `match_code` | `string` | はい | The emoji or code selected by the user from the list in [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": "Invokes telegram's AI Editor that can translate, transform, fixup and/or emojify your message in a number of different ways, privately powered by Cocoon, see here » for more info!", "description": "Invokes telegram's AI Editor that can translate, transform, fixup and/or emojify your message in a number of different ways, privately powered by [Cocoon](https://cocoon.org), see [here »](https://core.telegram.org/api/ai.md#compose-messages) for more info!\n\nAll of the modes specified below can be combined.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [AI features](https://core.telegram.org/api/ai.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "messages.composeMessageWithAI", "x-tl-id": "3672950153", "x-tl-result": "messages.ComposedMessageWithAI", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.ComposedMessageWithAI."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AICOMPOSE_FLOOD_PREMIUM` — You've reached the daily limit of AI text transformations, upgrade to [Telegram Premium](https://core.telegram.org/api/premium.md) to get **50x** times more AI text transformations per day!\n- 500 · `AICOMPOSE_TIMEOUT` — A timeout occurred while composing the message.\n- 400 · `AI_COMPOSE_TASK_MISSING` — No AI task was specified. The caller must provide at least one of: proofread, translate (with a target language), tone, or emojify.\n- 400 · `MESSAGE_EMPTY` — The provided message is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, proofreads and fixes mistakes in the message"}, "emojify": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "If set, adds emojis to the message"}, "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": "If set, translates the message to the specified language"}, "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": "If set, rephrases the message using the specified [AI composer tone »](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` | いいえ | If set, proofreads and fixes mistakes in the message |\n| `emojify` | `true` | いいえ | If set, adds emojis to the message |\n| `text` | `TextWithEntities` | はい | メッセージ |\n| `translate_to_lang` | `string` | いいえ | If set, translates the message to the specified language |\n| `tone` | `InputAiComposeTone` | いいえ | If set, rephrases the message using the specified [AI composer tone »](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": "Report viewport read metrics for visible messages, indicating how long each message stayed in the chat viewport, see here » for more info on the full flow.", "description": "Report viewport read metrics for visible messages, indicating how long each message stayed in the chat viewport, see [here »](https://core.telegram.org/api/views.md#read-metrics) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Views and read metrics](https://core.telegram.org/api/views.md)", "x-tl-method": "messages.reportReadMetrics", "x-tl-id": "1080542694", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Views and read metrics", "https://core.telegram.org/api/views.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the messages are located"}, "metrics": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMessageReadMetric", "oneOf": [{"$ref": "#/components/schemas/inputMessageReadMetric"}], "description": "TL Type: InputMessageReadMetric."}, "x-tl-type": "Vector<InputMessageReadMetric>", "description": "List of read metrics for individual messages"}}, "additionalProperties": false, "required": ["peer", "metrics"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the messages are located |\n| `metrics` | `Vector<InputMessageReadMetric>` | はい | List of read metrics for individual messages |"}, "x-browser-schema-id": "1080542694"}}, "/catalog/messages.reportMusicListen": {"post": {"operationId": "messages.reportMusicListen", "tags": ["メッセージ"], "summary": "Report the listening duration of a music track (audio document without the `voice` flag), see here » for more info on the full flow.", "description": "Report the listening duration of a music track (audio document without the `voice` flag), see [here »](https://core.telegram.org/api/views.md#music-listens) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Views and read metrics](https://core.telegram.org/api/views.md)", "x-tl-method": "messages.reportMusicListen", "x-tl-id": "3720140825", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Views and read metrics", "https://core.telegram.org/api/views.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [InputDocument](https://core.telegram.org/type/InputDocument.md) of the listened song"}, "listened_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Accumulated playing time in whole seconds"}}, "additionalProperties": false, "required": ["id", "listened_duration"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `InputDocument` | はい | The [InputDocument](https://core.telegram.org/type/InputDocument.md) of the listened song |\n| `listened_duration` | `int` | はい | Accumulated playing time in whole seconds |"}, "x-browser-schema-id": "3720140825"}}, "/catalog/messages.addPollAnswer": {"post": {"operationId": "messages.addPollAnswer", "tags": ["メッセージ"], "summary": "Add an answer option to an open-answer poll »", "description": "Add an answer option to an [open-answer poll »](https://core.telegram.org/api/poll.md#open-answer-polls)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.addPollAnswer", "x-tl-id": "431770477", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.addPollAnswer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Peer where the poll is located"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID of the poll"}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "oneOf": [{"$ref": "#/components/schemas/pollAnswer"}, {"$ref": "#/components/schemas/inputPollAnswer"}], "description": "The new answer option to add, use [inputPollAnswer](https://core.telegram.org/constructor/inputPollAnswer.md)"}}, "additionalProperties": false, "required": ["peer", "msg_id", "answer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the poll is located |\n| `msg_id` | `int` | はい | Message ID of the poll |\n| `answer` | `PollAnswer` | はい | The new answer option to add, use [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": "Remove an answer option from an open-answer poll »", "description": "Remove an answer option from an [open-answer poll »](https://core.telegram.org/api/poll.md#open-answer-polls)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.deletePollAnswer", "x-tl-id": "2894398885", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/messages.deletePollAnswer"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Peer where the poll is located"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID of the poll"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "The `option` identifier of the answer to remove"}}, "additionalProperties": false, "required": ["peer", "msg_id", "option"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the poll is located |\n| `msg_id` | `int` | はい | Message ID of the poll |\n| `option` | `bytes` | はい | The `option` identifier of the answer to remove |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2894398885"}}, "/catalog/messages.getUnreadPollVotes": {"post": {"operationId": "messages.getUnreadPollVotes", "tags": ["メッセージ"], "summary": "Get messages containing polls with unread votes »", "description": "Get messages containing polls with [unread votes »](https://core.telegram.org/api/poll.md#unread-poll-votes)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.getUnreadPollVotes", "x-tl-id": "1126722802", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The chat to fetch unread poll votes from"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "If the chat is a forum, restrict results to this topic"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "add_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Only return messages with IDs less than or equal to this value"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Only return messages with IDs greater than or equal to this value"}}, "additionalProperties": false, "required": ["peer", "offset_id", "add_offset", "limit", "max_id", "min_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The chat to fetch unread poll votes from |\n| `top_msg_id` | `int` | いいえ | If the chat is a forum, restrict results to this topic |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `add_offset` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | はい | Only return messages with IDs less than or equal to this value |\n| `min_id` | `int` | はい | Only return messages with IDs greater than or equal to this value |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1126722802"}}, "/catalog/messages.readPollVotes": {"post": {"operationId": "messages.readPollVotes", "tags": ["メッセージ"], "summary": "Mark all unread poll votes » in a chat as read", "description": "Mark all [unread poll votes »](https://core.telegram.org/api/poll.md#unread-poll-votes) in a chat as read\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Polls and quizzes](https://core.telegram.org/api/poll.md)", "x-tl-method": "messages.readPollVotes", "x-tl-id": "388019416", "x-tl-result": "messages.AffectedHistory", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Polls and quizzes", "https://core.telegram.org/api/poll.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The chat to mark poll votes as read in"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "If the chat is a forum, restrict to this topic"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The chat to mark poll votes as read in |\n| `top_msg_id` | `int` | いいえ | If the chat is a forum, restrict to this topic |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "388019416"}}, "/catalog/messages.setBotGuestChatResult": {"post": {"operationId": "messages.setBotGuestChatResult", "tags": ["メッセージ"], "summary": "Bots may use this method to answer a guest mode » query received via an updateBotGuestChatQuery update, providing the message to post into the chat as a guest, see here » for more info.", "description": "Bots may use this method to answer a [guest mode »](https://core.telegram.org/api/bots/guest-mode.md) query received via an [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md) update, providing the message to post into the chat as a guest, see [here »](https://core.telegram.org/api/bots/guest-mode.md#handling-guest-queries-bot-side) for more info.\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Guest mode for bots](https://core.telegram.org/api/bots/guest-mode.md)", "x-tl-method": "messages.setBotGuestChatResult", "x-tl-id": "3102803683", "x-tl-result": "InputBotInlineMessageID", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Guest mode for bots", "https://core.telegram.org/api/bots/guest-mode.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: InputBotInlineMessageID."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `USER_BOT_INVALID` — User accounts must provide the `bot` method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Query identifier from the [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id` field", "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": "The result to send as the answer to the query"}}, "additionalProperties": false, "required": ["query_id", "result"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `query_id` | `long` | はい | Query identifier from the [updateBotGuestChatQuery](https://core.telegram.org/constructor/updateBotGuestChatQuery.md).`query_id` field |\n| `result` | `InputBotInlineResult` | はい | The result to send as the answer to the query |"}, "x-telegram-rpc-errors": ["USER_BOT_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3102803683"}}, "/catalog/messages.deleteParticipantReactions": {"post": {"operationId": "messages.deleteParticipantReactions", "tags": ["メッセージ"], "summary": "As an admin, remove all of a specific participant's reactions from every message in a group or channel.", "description": "As an admin, remove all of a specific participant's [reactions](https://core.telegram.org/api/reactions.md) from every message in a group or channel.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.deleteParticipantReactions", "x-tl-id": "2696416504", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The group or channel where the participant's reactions should be removed"}, "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": "The participant whose reactions should be removed"}}, "additionalProperties": false, "required": ["peer", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The group or channel where the participant's reactions should be removed |\n| `participant` | `InputPeer` | はい | The participant whose reactions should be removed |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2696416504"}}, "/catalog/messages.deleteParticipantReaction": {"post": {"operationId": "messages.deleteParticipantReaction", "tags": ["メッセージ"], "summary": "As an admin, remove all of a specific participant's reactions from a single message.", "description": "As an admin, remove all of a specific participant's [reactions](https://core.telegram.org/api/reactions.md) from a single message.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "messages.deleteParticipantReaction", "x-tl-id": "3820484652", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The group or channel where the message is located"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message whose reactions should be removed"}, "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": "The participant whose reactions should be removed from the message"}}, "additionalProperties": false, "required": ["peer", "msg_id", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The group or channel where the message is located |\n| `msg_id` | `int` | はい | ID of the message whose reactions should be removed |\n| `participant` | `InputPeer` | はい | The participant whose reactions should be removed from the message |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3820484652"}}, "/catalog/messages.getPersonalChannelHistory": {"post": {"operationId": "messages.getPersonalChannelHistory", "tags": ["メッセージ"], "summary": "Fetch the message history of a user's personal channel ».", "description": "Fetch the message history of a user's [personal channel »](https://core.telegram.org/api/profile.md#personal-channel).\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "messages.getPersonalChannelHistory", "x-tl-id": "1442515350", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user whose personal channel history to fetch"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was transferred, the method will return only messages with IDs less than **max_id**"}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "If a positive value was transferred, the method will return only messages with IDs more than **min_id**"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Result hash](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` | はい | The user whose personal channel history to fetch |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `max_id` | `int` | はい | If a positive value was transferred, the method will return only messages with IDs less than **max_id** |\n| `min_id` | `int` | はい | If a positive value was transferred, the method will return only messages with IDs more than **min_id** |\n| `hash` | `long` | はい | [Result hash](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 result · `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": "Type 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 Type: InputPeer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "TL 型 `int` の値。"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | TL Type: 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 Type: 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 Type: 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 result · `WebViewResult`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "WebViewResult", "oneOf": [{"$ref": "#/components/schemas/webViewResultUrl"}], "description": "TL Type: 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 type: 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 type: 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 result · `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 Type: 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 Type: 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 Type: 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 Type: 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 result · `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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: 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 Type: 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 result · `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 Type: 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 Type: 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 result · `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 Type: 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 Type: 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 result · `messages.TranscribedAudio`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.TranscribedAudio", "oneOf": [{"$ref": "#/components/schemas/messages.transcribedAudio"}], "description": "Type TL: messages.TranscribedAudio."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Тип TL: InputFile."}}, "additionalProperties": false, "required": ["file"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file` | `InputFile` | はい | Тип TL: InputFile. |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "120401655"}}, "/catalog/messages.getTranscriptionLangs": {"post": {"operationId": "messages.getTranscriptionLangs", "tags": ["メッセージ"], "summary": "messages.getTranscriptionLangs", "description": "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 Type: InputPeer.", "x-tl-flag": "flags.0?InputPeer"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | いいえ | TL Type: 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 result · `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 Type: InputUser."}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "TL 型 `Vector<InputUser>` の値。"}}, "additionalProperties": false, "required": ["bot", "users"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | TL Type: InputUser. |\n| `users` | `Vector<InputUser>` | はい | TL 型 `Vector<InputUser>` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "498593787"}}, "/catalog/messages.getTranscriptionModels": {"post": {"operationId": "messages.getTranscriptionModels", "tags": ["メッセージ"], "summary": "messages.getTranscriptionModels", "description": "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 result · `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 result · `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 Type: InputPeer."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | TL Type: 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": "Returns a current state of updates.", "description": "Returns a current state of updates.", "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 result · `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 Type: updates.State."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/updates.getState"}, "x-browser-schema-id": "3990128682"}}, "/catalog/updates.getDifference": {"post": {"operationId": "updates.getDifference", "tags": ["更新"], "summary": "Get new updates.", "description": "Get new [updates](https://core.telegram.org/api/updates.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "updates.getDifference", "x-tl-id": "432207715", "x-tl-result": "updates.Difference", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: updates.Difference."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — You can't call this method in a CDN DC.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `DATE_EMPTY` — Date empty.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PERSISTENT_TIMESTAMP_EMPTY` — Persistent timestamp empty.\n- 400 · `PERSISTENT_TIMESTAMP_INVALID` — Persistent timestamp invalid.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USER_NOT_PARTICIPANT` — You're not a member of this supergroup/channel."}}, "externalDocs": {"description": "Official Telegram documentation", "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, see [updates](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 limit"}, "pts_total_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](https://core.telegram.org/constructor/updates.differenceTooLong.md) will be returned. Simply tells the server to not return the difference if it is bigger than `pts_total_limit` If the remote pts is too big (&gt; ~4000000), this field will default to 1000000"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "date, see [updates](https://core.telegram.org/api/updates.md)."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "QTS, see [updates](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 limit"}}, "additionalProperties": false, "required": ["pts", "date", "qts"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `pts` | `int` | はい | PTS, see [updates](https://core.telegram.org/api/updates.md). |\n| `pts_limit` | `int` | いいえ | PTS limit |\n| `pts_total_limit` | `int` | いいえ | For fast updating: if provided and `pts + pts_total_limit < remote pts`, [updates.differenceTooLong](https://core.telegram.org/constructor/updates.differenceTooLong.md) will be returned. Simply tells the server to not return the difference if it is bigger than `pts_total_limit` If the remote pts is too big (&gt; ~4000000), this field will default to 1000000 |\n| `date` | `int` | はい | date, see [updates](https://core.telegram.org/api/updates.md). |\n| `qts` | `int` | はい | QTS, see [updates](https://core.telegram.org/api/updates.md). |\n| `qts_limit` | `int` | いいえ | QTS limit |"}, "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": "Returns the difference between the current state of updates of a certain channel and transmitted.", "description": "Returns the difference between the current state of updates of a certain channel and transmitted.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "updates.getChannelDifference", "x-tl-id": "51854712", "x-tl-result": "updates.ChannelDifference", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: updates.ChannelDifference."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHANNEL_PUBLIC_GROUP_NA` — channel/supergroup not available.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `FROM_MESSAGE_BOT_DISABLED` — Bots can't use fromMessage min constructors.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and cannot access the specified peer.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PERSISTENT_TIMESTAMP_EMPTY` — Persistent timestamp empty.\n- 400 · `PERSISTENT_TIMESTAMP_INVALID` — Persistent timestamp invalid.\n- 500 · `PERSISTENT_TIMESTAMP_OUTDATED` — Channel internal replication issues, try again later (treat this like an RPC_CALL_FAIL).\n- 400 · `PINNED_DIALOGS_TOO_MUCH` — Too many pinned dialogs.\n- 400 · `RANGES_INVALID` — Invalid range provided.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set to true to skip some possibly unneeded updates and reduce server-side load"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "The channel"}, "filter": {"type": "object", "x-tl-type": "ChannelMessagesFilter", "oneOf": [{"$ref": "#/components/schemas/channelMessagesFilterEmpty"}, {"$ref": "#/components/schemas/channelMessagesFilter"}], "description": "Messsage filter"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Persistent timestamp (see [updates](https://core.telegram.org/api/updates.md))"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "How many updates to fetch, max `100000` Ordinary (non-bot) users are supposed to pass `10-100`"}}, "additionalProperties": false, "required": ["channel", "filter", "pts", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `force` | `true` | いいえ | Set to true to skip some possibly unneeded updates and reduce server-side load |\n| `channel` | `InputChannel` | はい | The channel |\n| `filter` | `ChannelMessagesFilter` | はい | Messsage filter |\n| `pts` | `int` | はい | Persistent timestamp (see [updates](https://core.telegram.org/api/updates.md)) |\n| `limit` | `int` | はい | How many updates to fetch, max `100000` Ordinary (non-bot) users are supposed to pass `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": "Installs a previously uploaded photo as a profile photo.", "description": "Installs a previously uploaded photo as a profile photo.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: photos.Photo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ALBUM_PHOTOS_TOO_MANY` — You have uploaded too many profile photos, delete some before retrying.\n- 400 · `BOT_FALLBACK_UNSUPPORTED` — The fallback flag can't be set for bots.\n- 400 · `FILE_PARTS_INVALID` — The number of file parts is invalid.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 400 · `LOCATION_INVALID` — The provided location is invalid.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Photo is too small.\n- 400 · `PHOTO_EXT_INVALID` — The extension of the photo is invalid.\n- 400 · `PHOTO_ID_INVALID` — Photo ID invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings."}, "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": "Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user.", "x-tl-flag": "flags.1?InputUser"}, "id": {"type": "object", "x-tl-type": "InputPhoto", "oneOf": [{"$ref": "#/components/schemas/inputPhotoEmpty"}, {"$ref": "#/components/schemas/inputPhoto"}], "description": "Input photo"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `fallback` | `true` | いいえ | If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. |\n| `bot` | `InputUser` | いいえ | Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. |\n| `id` | `InputPhoto` | はい | Input photo |"}, "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": "Updates current user profile photo.", "description": "Updates current user profile photo.\n\n`file`、`video`、および `video_emoji_markup` フラグは相互に排他的です。\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "photos.uploadProfilePhoto", "x-tl-id": "59286453", "x-tl-result": "photos.Photo", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "MTProto result · `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 type: photos.Photo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ALBUM_PHOTOS_TOO_MANY` — You have uploaded too many profile photos, delete some before retrying.\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `EMOJI_MARKUP_INVALID` — The specified `video_emoji_markup` was invalid.\n- 400 · `FILE_PARTS_INVALID` — The number of file parts is invalid.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 400 · `PHOTO_CROP_FILE_MISSING` — Photo crop file missing.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Photo is too small.\n- 400 · `PHOTO_EXT_INVALID` — The extension of the photo is invalid.\n- 400 · `PHOTO_FILE_MISSING` — Profile photo file missing.\n- 400 · `PHOTO_INVALID` — Photo invalid.\n- 400 · `STICKER_MIME_INVALID` — The specified sticker MIME type is invalid.\n- 400 · `VIDEO_FILE_INVALID` — The specified video file is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings."}, "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": "Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user.", "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": "Profile photo", "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": "[Animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) video", "x-tl-flag": "flags.1?InputFile"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.2?double", "description": "Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if `video` or `video_emoji_markup` is set."}, "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` | いいえ | If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. |\n| `bot` | `InputUser` | いいえ | Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. |\n| `file` | `InputFile` | いいえ | Profile photo |\n| `video` | `InputFile` | いいえ | [Animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) video |\n| `video_start_ts` | `double` | いいえ | Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if `video` or `video_emoji_markup` is set. |\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": "Deletes profile photos. The method returns a list of successfully deleted photo IDs.", "description": "Deletes profile photos. The method returns a list of successfully deleted photo IDs.", "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 result · `Vector<long>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[long](https://core.telegram.org/type/long.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputPhoto."}, "x-tl-type": "Vector<InputPhoto>", "description": "Input photos to delete"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputPhoto>` | はい | Input photos to delete |"}, "x-browser-schema-id": "2278522671"}}, "/catalog/photos.getUserPhotos": {"post": {"operationId": "photos.getUserPhotos", "tags": ["写真"], "summary": "Returns the list of user photos.", "description": "Returns the list of user photos.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [File references](https://core.telegram.org/api/file-references.md)", "x-tl-method": "photos.getUserPhotos", "x-tl-id": "2446144168", "x-tl-result": "photos.Photos", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["File references", "https://core.telegram.org/api/file-references.md"]], "responses": {"200": {"description": "MTProto result · `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 type: photos.Photos."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MAX_ID_INVALID` — The provided max ID is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Number of list elements to be skipped"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "If a positive value was transferred, the method will return only photos with IDs less than the set one. This parameter is often useful when [refetching file references »](https://core.telegram.org/api/file-references.md), as in conjuction with `limit=1` and `offset=-1` the [photo](https://core.telegram.org/constructor/photo.md) object with the `id` specified in `max_id` can be fetched.", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of list elements to be returned"}}, "additionalProperties": false, "required": ["user_id", "offset", "max_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | ユーザーID |\n| `offset` | `int` | はい | Number of list elements to be skipped |\n| `max_id` | `long` | はい | If a positive value was transferred, the method will return only photos with IDs less than the set one. This parameter is often useful when [refetching file references »](https://core.telegram.org/api/file-references.md), as in conjuction with `limit=1` and `offset=-1` the [photo](https://core.telegram.org/constructor/photo.md) object with the `id` specified in `max_id` can be fetched. |\n| `limit` | `int` | はい | Number of list elements to be returned |"}, "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": "Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.", "description": "Upload a custom profile picture for a contact, or suggest a new profile picture to a contact.\n\n`file`、`video`、および `video_emoji_markup` フラグは相互に排他的です。\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)", "x-tl-method": "photos.uploadContactProfilePhoto", "x-tl-id": "3779873393", "x-tl-result": "photos.Photo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"]], "responses": {"200": {"description": "MTProto result · `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 type: photos.Photo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CONTACT_MISSING` — The specified user is not a contact.\n- 400 · `NEED_ACTION_MISSING` — The caller didn't specify a valid action (either save or suggest) for the contact profile photo upload.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, will send a [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) service message to `user_id`, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user)."}, "save": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply delete the [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) service message with [messages.deleteMessages](https://core.telegram.org/method/messages.deleteMessages.md))."}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "The contact"}, "file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Profile photo", "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": "[Animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) video", "x-tl-flag": "flags.1?InputFile"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.2?double", "description": "Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if `video` or `video_emoji_markup` is set."}, "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` | いいえ | If set, will send a [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) service message to `user_id`, suggesting them to use the specified profile picture; otherwise, will set a personal profile picture for the user (only visible to the current user). |\n| `save` | `true` | いいえ | If set, removes a previously set personal profile picture (does not affect suggested profile pictures, to remove them simply delete the [messageActionSuggestProfilePhoto](https://core.telegram.org/constructor/messageActionSuggestProfilePhoto.md) service message with [messages.deleteMessages](https://core.telegram.org/method/messages.deleteMessages.md)). |\n| `user_id` | `InputUser` | はい | The contact |\n| `file` | `InputFile` | いいえ | Profile photo |\n| `video` | `InputFile` | いいえ | [Animated profile picture](https://core.telegram.org/api/files.md#animated-profile-pictures) video |\n| `video_start_ts` | `double` | いいえ | Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if `video` or `video_emoji_markup` is set. |\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": "Saves a part of file for further sending to one of the methods.", "description": "Saves a part of file for further sending to one of the methods.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILE_PART_EMPTY` — The provided file part is empty.\n- 400 · `FILE_PART_INVALID` — The file part number is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Numerical order of a part"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Binary data, content of a part"}}, "additionalProperties": false, "required": ["file_id", "file_part", "bytes"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file_id` | `long` | はい | クライアントによって作成されたランダムなファイル識別子 |\n| `file_part` | `int` | はい | Numerical order of a part |\n| `bytes` | `bytes` | はい | Binary data, content of a part |"}, "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": "Returns content of a whole file or its part.", "description": "Returns content of a whole file or its part.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [File references](https://core.telegram.org/api/file-references.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "upload.getFile", "x-tl-id": "3193124286", "x-tl-result": "upload.File", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["File references", "https://core.telegram.org/api/file-references.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: upload.File."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — You can't call this method in a CDN DC.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 406 · `FILEREF_UPGRADE_NEEDED` — The client has to be updated in order to support [file references](https://core.telegram.org/api/file-references.md).\n- 400 · `FILE_ID_INVALID` — The provided file id is invalid.\n- 400 · `FILE_REFERENCE_EMPTY` — An empty [file reference](https://core.telegram.org/api/file-references.md) was specified.\n- 400 · `FILE_REFERENCE_EXPIRED` — File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file-references.md).\n- 400 · `FILE_REFERENCE_INVALID` — The specified [file reference](https://core.telegram.org/api/file-references.md) is invalid.\n- 420 · `FLOOD_PREMIUM_WAIT_%d` — Please wait %d seconds before repeating the action, or purchase a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to remove this rate limit.\n- 400 · `LIMIT_INVALID` — The provided limit is invalid.\n- 400 · `LOCATION_INVALID` — The provided location is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `OFFSET_INVALID` — The provided offset is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Disable some checks on limit and offset values, useful for example to stream videos by keyframes"}, "cdn_supported": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether the current client supports [CDN downloads](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": "File location"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Number of bytes to be skipped", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of bytes to be returned"}}, "additionalProperties": false, "required": ["location", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `precise` | `true` | いいえ | Disable some checks on limit and offset values, useful for example to stream videos by keyframes |\n| `cdn_supported` | `true` | いいえ | Whether the current client supports [CDN downloads](https://core.telegram.org/cdn.md) |\n| `location` | `InputFileLocation` | はい | File location |\n| `offset` | `long` | はい | Number of bytes to be skipped |\n| `limit` | `int` | はい | Number of bytes to be returned |"}, "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": "Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.", "description": "Saves a part of a large file (over 10 MB in size) to be later passed to one of the methods.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILE_PARTS_INVALID` — The number of file parts is invalid.\n- 400 · `FILE_PART_EMPTY` — The provided file part is empty.\n- 400 · `FILE_PART_INVALID` — The file part number is invalid.\n- 400 · `FILE_PART_SIZE_CHANGED` — Provided file part size has changed.\n- 400 · `FILE_PART_SIZE_INVALID` — The provided file part size is invalid.\n- 400 · `FILE_PART_TOO_BIG` — The uploaded file part is too big.\n- 400 · `FILE_PART_TOO_SMALL` — The size of the uploaded file part is too small, please see the documentation for the allowed sizes."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Part sequence number"}, "file_total_parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Total number of parts"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Binary data, part contents"}}, "additionalProperties": false, "required": ["file_id", "file_part", "file_total_parts", "bytes"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file_id` | `long` | はい | クライアントによって作成されたランダムなファイル ID |\n| `file_part` | `int` | はい | Part sequence number |\n| `file_total_parts` | `int` | はい | Total number of parts |\n| `bytes` | `bytes` | はい | Binary data, part contents |"}, "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": "Returns content of a web file, by proxying the request through telegram, see the webfile docs for more info.", "description": "Returns content of a web file, by proxying the request through telegram, see the [webfile docs for more info](https://core.telegram.org/api/files.md#downloading-webfiles).\n\n**Note**: the query must be sent to the DC specified in the `webfile_dc_id` [MTProto configuration field](https://core.telegram.org/api/config.md#mtproto-configuration).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Uploading and Downloading Files](https://core.telegram.org/api/files.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "upload.getWebFile", "x-tl-id": "619086221", "x-tl-result": "upload.WebFile", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Uploading and Downloading Files", "https://core.telegram.org/api/files.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: upload.WebFile."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DOCUMENT_INVALID` — The specified document is invalid.\n- 400 · `LOCATION_INVALID` — The provided location is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The file to download"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of bytes to be skipped"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Number of bytes to be returned"}}, "additionalProperties": false, "required": ["location", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `location` | `InputWebFileLocation` | はい | The file to download |\n| `offset` | `int` | はい | Number of bytes to be skipped |\n| `limit` | `int` | はい | Number of bytes to be returned |"}, "x-telegram-rpc-errors": ["DOCUMENT_INVALID", "LOCATION_INVALID"], "x-browser-schema-id": "619086221"}}, "/catalog/upload.getCdnFile": {"post": {"operationId": "upload.getCdnFile", "tags": ["ファイル"], "summary": "Download a CDN file.", "description": "Download a [CDN](https://core.telegram.org/cdn.md) file.\n\n**Who can call this method** · Telegram users only.", "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 result · `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 Type: upload.CdnFile."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILE_TOKEN_INVALID` — The master DC did not accept the `file_token` (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.\n- 404 · `METHOD_INVALID` — The specified method is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "File token"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Offset of chunk to download", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Length of chunk to download"}}, "additionalProperties": false, "required": ["file_token", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file_token` | `bytes` | はい | File token |\n| `offset` | `long` | はい | Offset of chunk to download |\n| `limit` | `int` | はい | Length of chunk to download |"}, "x-telegram-rpc-errors": ["FILE_TOKEN_INVALID", "METHOD_INVALID"], "x-browser-schema-id": "962554330"}}, "/catalog/upload.reuploadCdnFile": {"post": {"operationId": "upload.reuploadCdnFile", "tags": ["ファイル"], "summary": "Request a reupload of a certain file to a CDN DC.", "description": "Request a reupload of a certain file to a [CDN DC](https://core.telegram.org/cdn.md).\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Vector<FileHash>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[FileHash](https://core.telegram.org/type/FileHash.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "oneOf": [{"$ref": "#/components/schemas/fileHash"}], "description": "TL Type: FileHash."}, "x-tl-type": "Vector<FileHash>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — You can't call this method in a CDN DC.\n- 500 · `CDN_UPLOAD_TIMEOUT` — A server-side timeout occurred while reuploading the file to the CDN DC.\n- 400 · `FILE_TOKEN_INVALID` — The master DC did not accept the `file_token` (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.\n- 400 · `LOCATION_INVALID` — The provided location is invalid.\n- 400 · `REQUEST_TOKEN_INVALID` — The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile.\n- 400 · `RSA_DECRYPT_FAILED` — Internal RSA decryption failed."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "File token"}, "request_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Request token"}}, "additionalProperties": false, "required": ["file_token", "request_token"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file_token` | `bytes` | はい | File token |\n| `request_token` | `bytes` | はい | Request token |"}, "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": "Get SHA256 hashes for verifying downloaded CDN files", "description": "Get SHA256 hashes for verifying downloaded [CDN](https://core.telegram.org/cdn.md) files\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Vector<FileHash>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[FileHash](https://core.telegram.org/type/FileHash.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "oneOf": [{"$ref": "#/components/schemas/fileHash"}], "description": "TL Type: FileHash."}, "x-tl-type": "Vector<FileHash>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CDN_METHOD_INVALID` — You can't call this method in a CDN DC.\n- 400 · `FILE_TOKEN_INVALID` — The master DC did not accept the `file_token` (e.g., the token has expired). Continue downloading the file from the master DC using upload.getFile.\n- 400 · `RSA_DECRYPT_FAILED` — Internal RSA decryption failed."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "File"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Offset from which to start getting hashes", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["file_token", "offset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `file_token` | `bytes` | はい | File |\n| `offset` | `long` | はい | Offset from which to start getting hashes |"}, "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": "Get SHA256 hashes for verifying downloaded files", "description": "Get SHA256 hashes for verifying downloaded files\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Vector<FileHash>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[FileHash](https://core.telegram.org/type/FileHash.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "oneOf": [{"$ref": "#/components/schemas/fileHash"}], "description": "TL Type: FileHash."}, "x-tl-type": "Vector<FileHash>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `LOCATION_INVALID` — The provided location is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "File"}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "Offset from which to get file hashes", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["location", "offset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `location` | `InputFileLocation` | はい | File |\n| `offset` | `long` | はい | Offset from which to get file hashes |"}, "x-telegram-rpc-errors": ["LOCATION_INVALID"], "x-browser-schema-id": "2438371370"}}, "/catalog/help.getConfig": {"post": {"operationId": "help.getConfig", "tags": ["設定とヘルプ"], "summary": "Returns current configuration, including data center configuration.", "description": "Returns current configuration, including data center configuration.\n\n**Who can call this method** · Telegram users and bots.", "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 Result · `Config`.\n\n[Config](https://core.telegram.org/type/Config.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Config", "oneOf": [{"$ref": "#/components/schemas/config"}], "description": "TL Type: Config."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CONNECTION_API_ID_INVALID` — The provided API id is invalid.\n- 400 · `CONNECTION_APP_VERSION_EMPTY` — App version is empty.\n- 400 · `CONNECTION_LAYER_INVALID` — Layer invalid.\n- 400 · `DATA_INVALID` — Encrypted data invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 403 · `USER_PRIVACY_RESTRICTED` — The user's privacy settings do not allow you to do this."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Returns info on data center nearest to the user.", "description": "Returns info on data center nearest to the user.\n\n**Who can call this method** · Telegram users only.", "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 result · `NearestDc`.\n\n[NearestDc](https://core.telegram.org/type/NearestDc.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "NearestDc", "oneOf": [{"$ref": "#/components/schemas/nearestDc"}], "description": "TL Type: NearestDc."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/help.getNearestDc"}, "x-browser-schema-id": "531836966"}}, "/catalog/help.getAppUpdate": {"post": {"operationId": "help.getAppUpdate", "tags": ["設定とヘルプ"], "summary": "Returns information on update availability for the current application.", "description": "Returns information on update availability for the current application.", "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 result · `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": "Type TL: help.AppUpdate."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Source"}}, "additionalProperties": false, "required": ["source"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `source` | `string` | はい | Source |"}, "x-browser-schema-id": "1378703997"}}, "/catalog/help.getInviteText": {"post": {"operationId": "help.getInviteText", "tags": ["設定とヘルプ"], "summary": "Returns localized text of a text message with an invitation.", "description": "Returns localized text of a text message with an invitation.", "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 result · `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": "Type TL: help.InviteText."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/help.getInviteText"}, "x-browser-schema-id": "1295590211"}}, "/catalog/help.getSupport": {"post": {"operationId": "help.getSupport", "tags": ["設定とヘルプ"], "summary": "Returns the support user for the \"ask a question\" feature.", "description": "Returns the support user for the \"ask a question\" feature.", "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 result · `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": "Type TL: help.Support."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/help.getSupport"}, "x-browser-schema-id": "2631862477"}}, "/catalog/help.setBotUpdatesStatus": {"post": {"operationId": "help.setBotUpdatesStatus", "tags": ["設定とヘルプ"], "summary": "Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only", "description": "Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Number of pending updates"}, "message": {"type": "string", "x-tl-type": "string", "description": "Error message, if present"}}, "additionalProperties": false, "required": ["pending_updates_count", "message"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `pending_updates_count` | `int` | はい | Number of pending updates |\n| `message` | `string` | はい | Error message, if present |"}, "x-telegram-rpc-errors": ["USER_BOT_REQUIRED"], "x-browser-schema-id": "3961704397"}}, "/catalog/help.getCdnConfig": {"post": {"operationId": "help.getCdnConfig", "tags": ["設定とヘルプ"], "summary": "Get configuration for CDN file downloads.", "description": "Get configuration for [CDN](https://core.telegram.org/cdn.md) file downloads.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `CdnConfig`.\n\n[CdnConfig](https://core.telegram.org/type/CdnConfig.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "CdnConfig", "oneOf": [{"$ref": "#/components/schemas/cdnConfig"}], "description": "TL Type: CdnConfig."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/help.getCdnConfig"}, "x-browser-schema-id": "1375900482"}}, "/catalog/help.getRecentMeUrls": {"post": {"operationId": "help.getRecentMeUrls", "tags": ["設定とヘルプ"], "summary": "Get recently used `t.me` links.", "description": "Get recently used `t.me` links.\n\nWhen installing official applications from \"Download Telegram\" buttons present in [t.me](https://t.me) pages, a referral parameter is passed to applications after installation.  \nIf, after downloading the application, the user creates a new account (instead of logging into an existing one), the referral parameter should be imported using this method, which returns the [t.me](https://t.me) pages the user recently opened, before installing Telegram.", "x-tl-method": "help.getRecentMeUrls", "x-tl-id": "1036054804", "x-tl-result": "help.RecentMeUrls", "x-catalog-only": true, "x-telegram-audience": null, "x-telegram-related": [], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.RecentMeUrls."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Referrer"}}, "additionalProperties": false, "required": ["referer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `referer` | `string` | はい | Referrer |"}, "x-browser-schema-id": "1036054804"}}, "/catalog/help.getTermsOfServiceUpdate": {"post": {"operationId": "help.getTermsOfServiceUpdate", "tags": ["設定とヘルプ"], "summary": "Look for updates of telegram's terms of service", "description": "Look for updates of telegram's terms of service", "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 result · `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": "Type TL: help.TermsOfServiceUpdate."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/help.getTermsOfServiceUpdate"}, "x-browser-schema-id": "749019089"}}, "/catalog/help.acceptTermsOfService": {"post": {"operationId": "help.acceptTermsOfService", "tags": ["設定とヘルプ"], "summary": "Accept the new terms of service", "description": "Accept the new terms of service\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DATA_JSON_INVALID` — The provided JSON data is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 of terms of service"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `DataJSON` | はい | ID of terms of service |"}, "x-telegram-rpc-errors": ["DATA_JSON_INVALID"], "x-browser-schema-id": "4000511898"}}, "/catalog/help.getDeepLinkInfo": {"post": {"operationId": "help.getDeepLinkInfo", "tags": ["設定とヘルプ"], "summary": "Get info about an unsupported deep link, see here for more info ».", "description": "Get info about an unsupported deep link, see [here for more info »](https://core.telegram.org/api/links.md#unsupported-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "help.getDeepLinkInfo", "x-tl-id": "1072547679", "x-tl-result": "help.DeepLinkInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.DeepLinkInfo."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Path component of a `tg:` link"}}, "additionalProperties": false, "required": ["path"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `path` | `string` | はい | Path component of a `tg:` link |"}, "x-browser-schema-id": "1072547679"}}, "/catalog/help.getAppConfig": {"post": {"operationId": "help.getAppConfig", "tags": ["設定とヘルプ"], "summary": "Get app-specific configuration, see client configuration for more info on the result.", "description": "Get app-specific configuration, see [client configuration](https://core.telegram.org/api/config.md#client-configuration) for more info on the result.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "help.getAppConfig", "x-tl-id": "1642330196", "x-tl-result": "help.AppConfig", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `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 type: help.AppConfig."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1642330196"}}, "/catalog/help.saveAppLog": {"post": {"operationId": "help.saveAppLog", "tags": ["設定とヘルプ"], "summary": "Saves logs of application on the server.", "description": "Saves logs of application on the server.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputAppEvent."}, "x-tl-type": "Vector<InputAppEvent>", "description": "List of input events"}}, "additionalProperties": false, "required": ["events"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `events` | `Vector<InputAppEvent>` | はい | List of input events |"}, "x-browser-schema-id": "1862465352"}}, "/catalog/help.getPassportConfig": {"post": {"operationId": "help.getPassportConfig", "tags": ["設定とヘルプ"], "summary": "Get passport configuration", "description": "Get [passport](https://core.telegram.org/passport.md) configuration\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "help.getPassportConfig", "x-tl-id": "3328290056", "x-tl-result": "help.PassportConfig", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.PassportConfig."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3328290056"}}, "/catalog/help.getSupportName": {"post": {"operationId": "help.getSupportName", "tags": ["設定とヘルプ"], "summary": "Get localized name of the telegram support user", "description": "Get localized name of the telegram support user\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: help.SupportName."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `USER_INVALID` — Invalid user provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Can only be used by TSF members to obtain internal information.", "description": "Can only be used by TSF members to obtain internal information.\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: help.UserInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `USER_INVALID` — Invalid user provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)", "x-tl-method": "help.editUserInfo", "x-tl-id": "1723407216", "x-tl-result": "help.UserInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Styled text with message entities", "https://core.telegram.org/api/entities.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.UserInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ENTITY_BOUNDS_INVALID` — A specified [entity offset or length](https://core.telegram.org/api/entities.md#entity-length) is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/entities.md#entity-length) for info on how to properly compute the entity offset/length.\n- 403 · `USER_INVALID` — Invalid user provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)"}}, "additionalProperties": false, "required": ["user_id", "message", "entities"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | ユーザー |\n| `message` | `string` | はい | メッセージ |\n| `entities` | `Vector<MessageEntity>` | はい | [スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md) |"}, "x-telegram-rpc-errors": ["ENTITY_BOUNDS_INVALID", "USER_INVALID"], "x-browser-schema-id": "1723407216"}}, "/catalog/help.getPromoData": {"post": {"operationId": "help.getPromoData", "tags": ["設定とヘルプ"], "summary": "Returns a set of useful suggestions and PSA/MTProxy sponsored peers, see here » for more info.", "description": "Returns a set of useful suggestions and PSA/MTProxy sponsored peers, see [here »](https://core.telegram.org/api/config.md#suggestions) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "help.getPromoData", "x-tl-id": "3231151137", "x-tl-result": "help.PromoData", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.PromoData."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/help.getPromoData"}, "x-browser-schema-id": "3231151137"}}, "/catalog/help.hidePromoData": {"post": {"operationId": "help.hidePromoData", "tags": ["設定とヘルプ"], "summary": "Hide MTProxy/Public Service Announcement information", "description": "Hide MTProxy/Public Service Announcement information", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer to hide"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer to hide |"}, "x-browser-schema-id": "505748629"}}, "/catalog/help.dismissSuggestion": {"post": {"operationId": "help.dismissSuggestion", "tags": ["設定とヘルプ"], "summary": "Dismiss a suggestion, see here for more info ».", "description": "Dismiss a [suggestion, see here for more info »](https://core.telegram.org/api/config.md#suggestions).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "help.dismissSuggestion", "x-tl-id": "4111317665", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "In the case of pending suggestions in [channels](https://core.telegram.org/constructor/channelFull.md), the channel ID."}, "suggestion": {"type": "string", "x-tl-type": "string", "description": "[Suggestion, see here for more info »](https://core.telegram.org/api/config.md#suggestions)."}}, "additionalProperties": false, "required": ["peer", "suggestion"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | In the case of pending suggestions in [channels](https://core.telegram.org/constructor/channelFull.md), the channel ID. |\n| `suggestion` | `string` | はい | [Suggestion, see here for more info »](https://core.telegram.org/api/config.md#suggestions). |"}, "x-browser-schema-id": "4111317665"}}, "/catalog/help.getCountriesList": {"post": {"operationId": "help.getCountriesList", "tags": ["設定とヘルプ"], "summary": "Get name, ISO code, localized name and phone codes/patterns of all available countries", "description": "Get name, ISO code, localized name and phone codes/patterns of all available countries\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "help.getCountriesList", "x-tl-id": "1935116200", "x-tl-result": "help.CountriesList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.CountriesList."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Language code of the current user"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["lang_code", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_code` | `string` | はい | Language code of the current user |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1935116200"}}, "/catalog/help.getPremiumPromo": {"post": {"operationId": "help.getPremiumPromo", "tags": ["設定とヘルプ"], "summary": "Get Telegram Premium promotion information", "description": "Get Telegram Premium promotion information", "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 result · `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": "Type TL: help.PremiumPromo."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/help.getPremiumPromo"}, "x-browser-schema-id": "3088815060"}}, "/catalog/help.getPeerColors": {"post": {"operationId": "help.getPeerColors", "tags": ["設定とヘルプ"], "summary": "Get the set of accent color palettes » that can be used for message accents.", "description": "Get the set of [accent color palettes »](https://core.telegram.org/api/colors.md) that can be used for message accents.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "help.getPeerColors", "x-tl-id": "3665884207", "x-tl-result": "help.PeerColors", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.PeerColors."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "3665884207"}}, "/catalog/help.getPeerProfileColors": {"post": {"operationId": "help.getPeerProfileColors", "tags": ["設定とヘルプ"], "summary": "Get the set of accent color palettes » that can be used in profile page backgrounds.", "description": "Get the set of [accent color palettes »](https://core.telegram.org/api/colors.md) that can be used in profile page backgrounds.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)", "x-tl-method": "help.getPeerProfileColors", "x-tl-id": "2882513405", "x-tl-result": "help.PeerColors", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.PeerColors."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "2882513405"}}, "/catalog/help.getTimezonesList": {"post": {"operationId": "help.getTimezonesList", "tags": ["設定とヘルプ"], "summary": "Returns timezone information that may be used elsewhere in the API, such as to set Telegram Business opening hours ».", "description": "Returns timezone information that may be used elsewhere in the API, such as to set [Telegram Business opening hours »](https://core.telegram.org/api/business.md#opening-hours).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "help.getTimezonesList", "x-tl-id": "1236468288", "x-tl-result": "help.TimezonesList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: help.TimezonesList."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation)."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). |"}, "x-browser-schema-id": "1236468288"}}, "/catalog/channels.readHistory": {"post": {"operationId": "channels.readHistory", "tags": ["チャンネルとスーパーグループ"], "summary": "Mark channel/supergroup history as read", "description": "Mark [channel/supergroup](https://core.telegram.org/api/channel.md) history as read\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.readHistory", "x-tl-id": "3423619383", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Channel/supergroup](https://core.telegram.org/api/channel.md)"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of message up to which messages should be marked as read"}}, "additionalProperties": false, "required": ["channel", "max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | [Channel/supergroup](https://core.telegram.org/api/channel.md) |\n| `max_id` | `int` | はい | ID of message up to which messages should be marked as read |"}, "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": "Delete messages in a channel/supergroup", "description": "Delete messages in a [channel/supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.deleteMessages", "x-tl-id": "2227305806", "x-tl-result": "messages.AffectedMessages", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.AffectedMessages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 420 · `FROZEN_METHOD_INVALID` — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and thus cannot execute the specified action.\n- 403 · `MESSAGE_DELETE_FORBIDDEN` — You can't delete one of the messages you tried to delete, most likely because it is a service message.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Channel/supergroup](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": "IDs of messages to delete"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | [Channel/supergroup](https://core.telegram.org/api/channel.md) |\n| `id` | `Vector<int>` | はい | IDs of messages to delete |"}, "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": "Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup", "description": "Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup"}, "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": "Participant whose messages should be reported"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of spam messages"}}, "additionalProperties": false, "required": ["channel", "participant", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup |\n| `participant` | `InputPeer` | はい | Participant whose messages should be reported |\n| `id` | `Vector<int>` | はい | IDs of spam messages |"}, "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": "Get channel/supergroup messages", "description": "Get [channel/supergroup](https://core.telegram.org/api/channel.md) messages\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.getMessages", "x-tl-id": "2911672867", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `FROZEN_PARTICIPANT_MISSING` — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and cannot access the specified peer.\n- 400 · `MESSAGE_IDS_EMPTY` — No message ids were provided.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputMessage."}, "x-tl-type": "Vector<InputMessage>", "description": "IDs of messages to get"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | チャンネル/スーパーグループ |\n| `id` | `Vector<InputMessage>` | はい | IDs of messages to get |"}, "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": "Get the participants of a supergroup/channel", "description": "Get the participants of a [supergroup/channel](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getParticipants", "x-tl-id": "2010044880", "x-tl-result": "channels.ChannelParticipants", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: channels.ChannelParticipants."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel"}, "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": "Which participant types to fetch"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offset](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Limit](https://core.telegram.org/api/offsets.md)"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[Hash](https://core.telegram.org/api/offsets.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["channel", "filter", "offset", "limit", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Channel |\n| `filter` | `ChannelParticipantsFilter` | はい | Which participant types to fetch |\n| `offset` | `int` | はい | [Offset](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | [Limit](https://core.telegram.org/api/offsets.md) |\n| `hash` | `long` | はい | [Hash](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": "Get info about a channel/supergroup participant", "description": "Get info about a [channel/supergroup](https://core.telegram.org/api/channel.md) participant\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getParticipant", "x-tl-id": "2695589062", "x-tl-result": "channels.ChannelParticipant", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: channels.ChannelParticipant."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PARTICIPANT_ID_INVALID` — The specified participant ID is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 400 · `USER_NOT_PARTICIPANT` — You're not a member of this supergroup/channel."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Participant to get info about"}}, "additionalProperties": false, "required": ["channel", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | チャンネル/スーパーグループ |\n| `participant` | `InputPeer` | はい | Participant to get info about |"}, "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": "Get info about channels/supergroups", "description": "Get info about [channels/supergroups](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getChannels", "x-tl-id": "176122811", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Chats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputChannel."}, "x-tl-type": "Vector<InputChannel>", "description": "IDs of channels/supergroups to get info about"}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputChannel>` | はい | IDs of channels/supergroups to get info about |"}, "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": "Get channel details", "description": "Returns extended data for a channel, supergroup, or gigagroup.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getFullChannel", "x-tl-id": "141781513", "x-tl-result": "messages.ChatFull", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.ChatFull."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHANNEL_PUBLIC_GROUP_NA` — channel/supergroup not available.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel or group about which you want to obtain information."}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The channel or group about which you want to obtain information. |"}, "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": "Create a supergroup/channel.", "description": "Create a [supergroup/channel](https://core.telegram.org/api/channel.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)\n- [Nearby users&chats](https://core.telegram.org/api/nearby.md)", "x-tl-method": "channels.createChannel", "x-tl-id": "2432722695", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"], ["Nearby users&chats", "https://core.telegram.org/api/nearby.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ADDRESS_INVALID` — The specified geopoint address is invalid.\n- 400 · `CHANNELS_ADMIN_LOCATED_TOO_MUCH` — The user has reached the limit of public geogroups.\n- 400 · `CHANNELS_TOO_MUCH` — You have joined too many channels/supergroups.\n- 400 · `CHAT_ABOUT_TOO_LONG` — Chat about too long.\n- 500 · `CHAT_INVALID` — Invalid chat.\n- 400 · `CHAT_TITLE_EMPTY` — No chat title provided.\n- 400 · `TTL_PERIOD_INVALID` — The specified TTL period is invalid.\n- 406 · `USER_RESTRICTED` — You're spamreported, you can't create channels or chats."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to create a [channel](https://core.telegram.org/api/channel.md)"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether to create a [supergroup](https://core.telegram.org/api/channel.md)"}, "for_import": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "Whether the supergroup is being created to import messages from a foreign chat service using [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": "Whether to create a [forum](https://core.telegram.org/api/forum.md)"}, "title": {"type": "string", "x-tl-type": "string", "description": "Channel title"}, "about": {"type": "string", "x-tl-type": "string", "description": "Channel description"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "oneOf": [{"$ref": "#/components/schemas/inputGeoPointEmpty"}, {"$ref": "#/components/schemas/inputGeoPoint"}], "description": "Geogroup location, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups.", "x-tl-flag": "flags.2?InputGeoPoint"}, "address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Geogroup address, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups."}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int", "description": "Time-to-live of all messages that will be sent in the supergroup: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md) to edit this value later."}}, "additionalProperties": false, "required": ["title", "about"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `broadcast` | `true` | いいえ | Whether to create a [channel](https://core.telegram.org/api/channel.md) |\n| `megagroup` | `true` | いいえ | Whether to create a [supergroup](https://core.telegram.org/api/channel.md) |\n| `for_import` | `true` | いいえ | Whether the supergroup is being created to import messages from a foreign chat service using [messages.initHistoryImport](https://core.telegram.org/method/messages.initHistoryImport.md) |\n| `forum` | `true` | いいえ | Whether to create a [forum](https://core.telegram.org/api/forum.md) |\n| `title` | `string` | はい | Channel title |\n| `about` | `string` | はい | Channel description |\n| `geo_point` | `InputGeoPoint` | いいえ | Geogroup location, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups. |\n| `address` | `string` | いいえ | Geogroup address, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups. |\n| `ttl_period` | `int` | いいえ | Time-to-live of all messages that will be sent in the supergroup: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use [messages.setDefaultHistoryTTL](https://core.telegram.org/method/messages.setDefaultHistoryTTL.md) to edit this value later. |"}, "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": "Modify the admin rights of a user in a supergroup/channel.", "description": "Modify the admin rights of a user in a [supergroup/channel](https://core.telegram.org/api/channel.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.editAdmin", "x-tl-id": "2593697128", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `ADMINS_TOO_MUCH` — There are too many admins.\n- 400 · `ADMIN_RANK_EMOJI_NOT_ALLOWED` — An admin rank cannot contain emojis.\n- 400 · `ADMIN_RANK_INVALID` — The specified admin rank is invalid.\n- 400 · `BOTS_TOO_MUCH` — There are too many bots in this chat/channel.\n- 400 · `BOT_CHANNELS_NA` — Bots can't edit admin privileges.\n- 400 · `BOT_GROUPS_BLOCKED` — This bot can't be added to groups.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_INVITE_REQUIRED` — You do not have the rights to do this.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 406 · `FRESH_CHANGE_ADMINS_FORBIDDEN` — You were just elected admin, you can't add or modify other admins yet.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 403 · `RIGHT_FORBIDDEN` — Your admin rights do not allow you to do this.\n- 400 · `USERS_TOO_MUCH` — The maximum number of users has been exceeded (to create a chat, for example).\n- 400 · `USER_BLOCKED` — User blocked.\n- 403 · `USER_CHANNELS_TOO_MUCH` — One of the users you tried to add is already in too many channels/supergroups.\n- 400 · `USER_CREATOR` — For channels.editAdmin: you've tried to edit the admin rights of the owner, but you're not the owner; for channels.leaveChannel: you can't leave this channel, because you're its creator.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 400 · `USER_KICKED` — This user was kicked from this supergroup/channel.\n- 403 · `USER_NOT_MUTUAL_CONTACT` — The provided user is not a mutual contact.\n- 403 · `USER_PRIVACY_RESTRICTED` — The user's privacy settings do not allow you to do this.\n- 403 · `USER_RESTRICTED` — You're spamreported, you can't create channels or chats."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [supergroup/channel](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": "The ID of the user whose admin rights should be modified"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "oneOf": [{"$ref": "#/components/schemas/chatAdminRights"}], "description": "The admin rights"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Indicates the role (rank) of the admin in the group: just an arbitrary string. If the flag is not set, the rank is left unchanged."}}, "additionalProperties": false, "required": ["channel", "user_id", "admin_rights"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The [supergroup/channel](https://core.telegram.org/api/channel.md). |\n| `user_id` | `InputUser` | はい | The ID of the user whose admin rights should be modified |\n| `admin_rights` | `ChatAdminRights` | はい | The admin rights |\n| `rank` | `string` | いいえ | Indicates the role (rank) of the admin in the group: just an arbitrary string. If the flag is not set, the rank is left unchanged. |"}, "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": "Edit the name of a channel/supergroup", "description": "Edit the name of a [channel/supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.editTitle", "x-tl-id": "1450044624", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `CHAT_TITLE_EMPTY` — No chat title provided.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "New name"}}, "additionalProperties": false, "required": ["channel", "title"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | チャンネル/スーパーグループ |\n| `title` | `string` | はい | New name |"}, "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": "Change the photo of a channel/supergroup", "description": "Change the photo of a [channel/supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [File references](https://core.telegram.org/api/file-references.md)", "x-tl-method": "channels.editPhoto", "x-tl-id": "4046346185", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["File references", "https://core.telegram.org/api/file-references.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `FILE_PARTS_INVALID` — The number of file parts is invalid.\n- 400 · `FILE_REFERENCE_INVALID` — The specified [file reference](https://core.telegram.org/api/file-references.md) is invalid.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PHOTO_CROP_SIZE_SMALL` — Photo is too small.\n- 400 · `PHOTO_EXT_INVALID` — The extension of the photo is invalid.\n- 400 · `PHOTO_FILE_MISSING` — Profile photo file missing.\n- 400 · `PHOTO_INVALID` — Photo invalid.\n- 400 · `STICKER_MIME_INVALID` — The specified sticker MIME type is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel/supergroup whose photo should be edited"}, "photo": {"type": "object", "x-tl-type": "InputChatPhoto", "oneOf": [{"$ref": "#/components/schemas/inputChatPhotoEmpty"}, {"$ref": "#/components/schemas/inputChatUploadedPhoto"}, {"$ref": "#/components/schemas/inputChatPhoto"}], "description": "New photo"}}, "additionalProperties": false, "required": ["channel", "photo"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Channel/supergroup whose photo should be edited |\n| `photo` | `InputChatPhoto` | はい | New photo |"}, "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": "Check if a username is free and can be assigned to a channel/supergroup", "description": "Check if a username is free and can be assigned to a channel/supergroup\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.checkUsername", "x-tl-id": "283557164", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — You're admin of too many public channels, make some channels private to change the username of this channel.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_OCCUPIED` — The provided username is already occupied.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — The specified username can be purchased on https://fragment.com."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [channel/supergroup](https://core.telegram.org/api/channel.md) that will assigned the specified username"}, "username": {"type": "string", "x-tl-type": "string", "description": "The username to check"}}, "additionalProperties": false, "required": ["channel", "username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The [channel/supergroup](https://core.telegram.org/api/channel.md) that will assigned the specified username |\n| `username` | `string` | はい | The username to check |"}, "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": "Change or remove the username of a supergroup/channel", "description": "Change or remove the username of a supergroup/channel\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — You're admin of too many public channels, make some channels private to change the username of this channel.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_NOT_MODIFIED` — The username was not modified.\n- 400 · `USERNAME_OCCUPIED` — The provided username is already occupied.\n- 400 · `USERNAME_PURCHASE_AVAILABLE` — The specified username can be purchased on https://fragment.com."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel"}, "username": {"type": "string", "x-tl-type": "string", "description": "New username, pass an empty string to remove the username"}}, "additionalProperties": false, "required": ["channel", "username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Channel |\n| `username` | `string` | はい | New username, pass an empty string to remove the username |"}, "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": "Join a channel/supergroup", "description": "Join a channel/supergroup\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.joinChannel", "x-tl-id": "1097643276", "x-tl-result": "messages.ChatInviteJoinResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "Результат MTProto · `messages.ChatInviteJoinResult`.\n\n[Updates](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 errors (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — You have joined too many channels/supergroups.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 420 · `FROZEN_METHOD_INVALID` — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and thus cannot execute the specified action.\n- 400 · `INVITE_HASH_EMPTY` — The invite hash is empty.\n- 406 · `INVITE_HASH_EXPIRED` — The invite link has expired.\n- 400 · `INVITE_HASH_INVALID` — The invite hash is invalid.\n- 400 · `INVITE_REQUEST_SENT` — You have successfully requested to join this chat or channel.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USERS_TOO_MUCH` — The maximum number of users has been exceeded (to create a chat, for example).\n- 400 · `USER_ALREADY_PARTICIPANT` — The user is already in the group.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `USER_CHANNELS_TOO_MUCH` — One of the users you tried to add is already in too many channels/supergroups."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel/supergroup to join"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_news` | `true` | いいえ | TL 型 `true` の値。 |\n| `channel` | `InputChannel` | はい | Channel/supergroup to join |"}, "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": "Leave a channel/supergroup", "description": "Leave a [channel/supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.leaveChannel", "x-tl-id": "4164332181", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHANNEL_PUBLIC_GROUP_NA` — channel/supergroup not available.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `USER_CREATOR` — For channels.editAdmin: you've tried to edit the admin rights of the owner, but you're not the owner; for channels.leaveChannel: you can't leave this channel, because you're its creator.\n- 400 · `USER_NOT_PARTICIPANT` — You're not a member of this supergroup/channel."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Channel/supergroup](https://core.telegram.org/api/channel.md) to leave"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | [Channel/supergroup](https://core.telegram.org/api/channel.md) to leave |"}, "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": "Invite users to a channel/supergroup", "description": "Invite users to a channel/supergroup\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.inviteToChannel", "x-tl-id": "3387112788", "x-tl-result": "messages.InvitedUsers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.InvitedUsers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOTS_TOO_MUCH` — There are too many bots in this chat/channel.\n- 400 · `BOT_GROUPS_BLOCKED` — This bot can't be added to groups.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_INVALID` — Invalid chat.\n- 400 · `CHAT_MEMBER_ADD_FAILED` — Could not add participants.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `USERS_TOO_MUCH` — The maximum number of users has been exceeded (to create a chat, for example).\n- 400 · `USER_BANNED_IN_CHANNEL` — You're banned from sending messages in supergroups/channels.\n- 400 · `USER_BLOCKED` — User blocked.\n- 400 · `USER_BOT` — Bots can only be admins in channels.\n- 403 · `USER_CHANNELS_TOO_MUCH` — One of the users you tried to add is already in too many channels/supergroups.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 400 · `USER_KICKED` — This user was kicked from this supergroup/channel.\n- 403 · `USER_NOT_MUTUAL_CONTACT` — The provided user is not a mutual contact.\n- 403 · `USER_PRIVACY_RESTRICTED` — The user's privacy settings do not allow you to do this."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "Users to invite"}}, "additionalProperties": false, "required": ["channel", "users"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | チャンネル/スーパーグループ |\n| `users` | `Vector<InputUser>` | はい | Users to invite |"}, "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": "Delete a channel/supergroup", "description": "Delete a [channel/supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.deleteChannel", "x-tl-id": "3222347747", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 406 · `CHANNEL_TOO_LARGE` — Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change).\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Channel/supergroup](https://core.telegram.org/api/channel.md) to delete"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | [Channel/supergroup](https://core.telegram.org/api/channel.md) to delete |"}, "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": "Get link and embed info of a message in a channel/supergroup", "description": "Get link and embed info of a message in a [channel/supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.exportMessageLink", "x-tl-id": "3862932971", "x-tl-result": "ExportedMessageLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `ExportedMessageLink`.\n\n[ExportedMessageLink](https://core.telegram.org/type/ExportedMessageLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedMessageLink", "oneOf": [{"$ref": "#/components/schemas/exportedMessageLink"}], "description": "TL Type: ExportedMessageLink."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to include other grouped media (for albums)"}, "thread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether to also include a thread ID, if available, inside of the link"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Channel"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージID"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `grouped` | `true` | いいえ | Whether to include other grouped media (for albums) |\n| `thread` | `true` | いいえ | Whether to also include a thread ID, if available, inside of the link |\n| `channel` | `InputChannel` | はい | Channel |\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": "Enable/disable message signatures in channels", "description": "Enable/disable message signatures in channels\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, enables message signatures."}, "profiles_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "If set, messages from channel admins will link to their profiles, just like for group messages: can only be set if the `signatures_enabled` flag is set."}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "Channel"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `signatures_enabled` | `true` | いいえ | If set, enables message signatures. |\n| `profiles_enabled` | `true` | いいえ | If set, messages from channel admins will link to their profiles, just like for group messages: can only be set if the `signatures_enabled` flag is set. |\n| `channel` | `InputChannel` | はい | Channel |"}, "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": "Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the limit for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups.", "description": "Get [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md) we're admin in. Usually called when the user exceeds the [limit](https://core.telegram.org/constructor/config.md) for owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md), and the user is given the choice to remove one of his channels/supergroups/geogroups.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "channels.getAdminedPublicChannels", "x-tl-id": "4172297903", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Chats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_ADMIN_LOCATED_TOO_MUCH` — The user has reached the limit of public geogroups.\n- 400 · `CHANNELS_ADMIN_PUBLIC_TOO_MUCH` — You're admin of too many public channels, make some channels private to change the username of this channel."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get geogroups"}, "check_limit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "If set and the user has reached the limit of owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md), instead of returning the channel list one of the specified [errors](#possible-errors) will be returned. Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in [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": "Set this flag to only fetch the full list of channels that may be passed to [account.updatePersonalChannel](https://core.telegram.org/method/account.updatePersonalChannel.md) to [display them on our profile page](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` | いいえ | Get geogroups |\n| `check_limit` | `true` | いいえ | If set and the user has reached the limit of owned public [channels/supergroups/geogroups](https://core.telegram.org/api/channel.md), instead of returning the channel list one of the specified [errors](#possible-errors) will be returned. Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in [channels.checkUsername](https://core.telegram.org/method/channels.checkUsername.md)/[channels.updateUsername](https://core.telegram.org/method/channels.updateUsername.md). |\n| `for_personal` | `true` | いいえ | Set this flag to only fetch the full list of channels that may be passed to [account.updatePersonalChannel](https://core.telegram.org/method/account.updatePersonalChannel.md) to [display them on our profile page](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": "Ban/unban/kick a user in a supergroup/channel.", "description": "Ban/unban/kick a user in a [supergroup/channel](https://core.telegram.org/api/channel.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.editBanned", "x-tl-id": "2531708289", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `BANNED_RIGHTS_INVALID` — You provided some invalid flags in the banned rights.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PARTICIPANT_ID_INVALID` — The specified participant ID is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_ADMIN_INVALID` — You're not an admin.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [supergroup/channel](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": "Participant to ban"}, "banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "oneOf": [{"$ref": "#/components/schemas/chatBannedRights"}], "description": "The banned rights"}}, "additionalProperties": false, "required": ["channel", "participant", "banned_rights"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The [supergroup/channel](https://core.telegram.org/api/channel.md). |\n| `participant` | `InputPeer` | はい | Participant to ban |\n| `banned_rights` | `ChatBannedRights` | はい | The banned rights |"}, "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": "Get the admin log of a channel/supergroup", "description": "Get the admin log of a [channel/supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getAdminLog", "x-tl-id": "870184064", "x-tl-result": "channels.AdminLogResults", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: channels.AdminLogResults."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel"}, "q": {"type": "string", "x-tl-type": "string", "description": "Search query, can be empty"}, "events_filter": {"type": "object", "x-tl-type": "ChannelAdminLogEventsFilter", "oneOf": [{"$ref": "#/components/schemas/channelAdminLogEventsFilter"}], "description": "Event filter", "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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.1?Vector<InputUser>", "description": "Only show events from these admins"}, "max_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Maximum ID of message to return (see [pagination](https://core.telegram.org/api/offsets.md))", "x-tl-type": "long"}, "min_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Minimum ID of message to return (see [pagination](https://core.telegram.org/api/offsets.md))", "x-tl-type": "long"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["channel", "q", "max_id", "min_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Channel |\n| `q` | `string` | はい | Search query, can be empty |\n| `events_filter` | `ChannelAdminLogEventsFilter` | いいえ | Event filter |\n| `admins` | `Vector<InputUser>` | いいえ | Only show events from these admins |\n| `max_id` | `long` | はい | Maximum ID of message to return (see [pagination](https://core.telegram.org/api/offsets.md)) |\n| `min_id` | `long` | はい | Minimum ID of message to return (see [pagination](https://core.telegram.org/api/offsets.md)) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Associate a stickerset to the supergroup", "description": "Associate a stickerset to the supergroup\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `PARTICIPANTS_TOO_FEW` — Not enough participants.\n- 406 · `STICKERSET_OWNER_ANONYMOUS` — Provided stickerset can't be installed as group stickerset to prevent admin deanonymization."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup"}, "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": "The stickerset to associate"}}, "additionalProperties": false, "required": ["channel", "stickerset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup |\n| `stickerset` | `InputStickerSet` | はい | The stickerset to associate |"}, "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": "Mark channel/supergroup message contents as read, emitting an updateChannelReadMessagesContents.", "description": "Mark [channel/supergroup](https://core.telegram.org/api/channel.md) message contents as read, emitting an [updateChannelReadMessagesContents](https://core.telegram.org/constructor/updateChannelReadMessagesContents.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.readMessageContents", "x-tl-id": "3937786936", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 406 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Channel/supergroup](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": "IDs of messages whose contents should be marked as read"}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | [Channel/supergroup](https://core.telegram.org/api/channel.md) |\n| `id` | `Vector<int>` | はい | IDs of messages whose contents should be marked as read |"}, "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": "Delete the history of a supergroup", "description": "Delete the history of a [supergroup](https://core.telegram.org/api/channel.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.deleteHistory", "x-tl-id": "2611648071", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PARICIPANT_MISSING` — The current user is not in the channel.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHANNEL_TOO_BIG` — This channel has too many participants (>1000) to be deleted.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the history should be deleted for everyone"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Supergroup](https://core.telegram.org/api/channel.md) whose history must be deleted"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of message **up to which** the history must be deleted"}}, "additionalProperties": false, "required": ["channel", "max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_everyone` | `true` | いいえ | Whether the history should be deleted for everyone |\n| `channel` | `InputChannel` | はい | [Supergroup](https://core.telegram.org/api/channel.md) whose history must be deleted |\n| `max_id` | `int` | はい | ID of message **up to which** the history must be deleted |"}, "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": "Hide/unhide message history for new channel/supergroup users", "description": "Hide/unhide message history for new channel/supergroup users\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.togglePreHistoryHidden", "x-tl-id": "3938171212", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_LINK_EXISTS` — The chat is public, you can't hide the history to new users.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `FORUM_ENABLED` — You can't execute the specified action because the group is a [forum](https://core.telegram.org/api/forum.md), disable forum functionality to continue."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Hide/unhide"}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | チャンネル/スーパーグループ |\n| `enabled` | `Bool` | はい | Hide/unhide |"}, "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": "Get a list of channels/supergroups we left, requires a takeout session, see here » for more info.", "description": "Get a list of [channels/supergroups](https://core.telegram.org/api/channel.md) we left, requires a [takeout session, see here » for more info](https://core.telegram.org/api/takeout.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Takeout API](https://core.telegram.org/api/takeout.md)", "x-tl-method": "channels.getLeftChannels", "x-tl-id": "2202135744", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Takeout API", "https://core.telegram.org/api/takeout.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Chats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TAKEOUT_INVALID` — The specified takeout ID is invalid.\n- 403 · `TAKEOUT_REQUIRED` — A [takeout](https://core.telegram.org/api/takeout.md) session needs to be initialized first, [see here &raquo; for more info](https://core.telegram.org/api/takeout.md)."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get all groups that can be used as discussion groups.", "description": "Get all groups that can be used as [discussion groups](https://core.telegram.org/api/discussion.md).\n\nReturned [basic group chats](https://core.telegram.org/api/channel.md#basic-groups) must be first upgraded to [supergroups](https://core.telegram.org/api/channel.md#supergroups) before they can be set as a discussion group.  \nTo set a returned supergroup as a discussion group, access to its old messages must be enabled using [channels.togglePreHistoryHidden](https://core.telegram.org/method/channels.togglePreHistoryHidden.md), first.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.getGroupsForDiscussion", "x-tl-id": "4124758904", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Chats."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/channels.getGroupsForDiscussion"}, "x-browser-schema-id": "4124758904"}}, "/catalog/channels.setDiscussionGroup": {"post": {"operationId": "channels.setDiscussionGroup", "tags": ["チャンネルとスーパーグループ"], "summary": "Associate a group to a channel as discussion group for that channel", "description": "Associate a group to a channel as [discussion group](https://core.telegram.org/api/discussion.md) for that channel\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "channels.setDiscussionGroup", "x-tl-id": "1079520178", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BROADCAST_ID_INVALID` — Broadcast ID invalid.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `LINK_NOT_MODIFIED` — Discussion link not modified.\n- 400 · `MEGAGROUP_ID_INVALID` — Invalid supergroup ID.\n- 400 · `MEGAGROUP_PREHISTORY_HIDDEN` — Group with hidden history for new members can't be set as discussion groups."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel"}, "group": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Discussion group](https://core.telegram.org/api/discussion.md) to associate to the channel"}}, "additionalProperties": false, "required": ["broadcast", "group"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `broadcast` | `InputChannel` | はい | Channel |\n| `group` | `InputChannel` | はい | [Discussion group](https://core.telegram.org/api/discussion.md) to associate to the channel |"}, "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": "Edit location of geogroup, see here » for more info on geogroups.", "description": "Edit location of geogroup, see [here »](https://core.telegram.org/api/nearby.md) for more info on geogroups.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Nearby users&chats](https://core.telegram.org/api/nearby.md)", "x-tl-method": "channels.editLocation", "x-tl-id": "1491484525", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Nearby users&chats", "https://core.telegram.org/api/nearby.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `MEGAGROUP_GEO_REQUIRED` — This method can only be invoked on a geogroup.\n- 400 · `MEGAGROUP_REQUIRED` — You can only use this method on a supergroup."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Geogroup](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": "New geolocation"}, "address": {"type": "string", "x-tl-type": "string", "description": "Address string"}}, "additionalProperties": false, "required": ["channel", "geo_point", "address"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | [Geogroup](https://core.telegram.org/api/channel.md) |\n| `geo_point` | `InputGeoPoint` | はい | New geolocation |\n| `address` | `string` | はい | 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": "Toggle supergroup slow mode: if enabled, users will only be able to send one message every `seconds` seconds", "description": "Toggle supergroup slow mode: if enabled, users will only be able to send one message every `seconds` seconds\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.toggleSlowMode", "x-tl-id": "3990134512", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `SECONDS_INVALID` — Invalid duration provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [supergroup](https://core.telegram.org/api/channel.md)"}, "seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Users will only be able to send one message every `seconds` seconds, `0` to disable the limitation"}}, "additionalProperties": false, "required": ["channel", "seconds"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The [supergroup](https://core.telegram.org/api/channel.md) |\n| `seconds` | `int` | はい | Users will only be able to send one message every `seconds` seconds, `0` to disable the limitation |"}, "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": "Get inactive channels and supergroups", "description": "Get inactive channels and supergroups", "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 result · `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": "Type TL: messages.InactiveChats."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/channels.getInactiveChannels"}, "x-browser-schema-id": "300429806"}}, "/catalog/channels.convertToGigagroup": {"post": {"operationId": "channels.convertToGigagroup", "tags": ["チャンネルとスーパーグループ"], "summary": "Convert a supergroup to a gigagroup, when requested by channel suggestions.", "description": "Convert a [supergroup](https://core.telegram.org/api/channel.md) to a [gigagroup](https://core.telegram.org/api/channel.md), when requested by [channel suggestions](https://core.telegram.org/api/config.md#channel-suggestions).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.convertToGigagroup", "x-tl-id": "187239529", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_ID_INVALID` — The specified supergroup ID is invalid.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `FORUM_ENABLED` — You can't execute the specified action because the group is a [forum](https://core.telegram.org/api/forum.md), disable forum functionality to continue.\n- 400 · `PARTICIPANTS_TOO_FEW` — Not enough participants."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [supergroup](https://core.telegram.org/api/channel.md) to convert"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The [supergroup](https://core.telegram.org/api/channel.md) to convert |"}, "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": "Obtains a list of peers that can be displayed as the sender in a specific context. With `for_live_stories`, returns peers that may author live story in-call messages ».", "description": "Obtains a list of peers that can be displayed as the sender in a specific context. With `for_live_stories`, returns peers that may author [live story in-call messages »](https://core.telegram.org/api/group-calls.md#in-call-messages).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "channels.getSendAs", "x-tl-id": "3884295231", "x-tl-result": "channels.SendAsPeers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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 type: channels.SendAsPeers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, fetches the list of peers that can be used to send [paid reactions](https://core.telegram.org/api/reactions.md#paid-reactions) to messages of a specific peer."}, "for_live_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Fetch the peers that may be passed to [phone.sendGroupCallMessage](https://core.telegram.org/method/phone.sendGroupCallMessage.md).`send_as` to comment or react in a [live story »](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": "The target peer; when `for_live_stories` is set, the peer that owns the live story."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_paid_reactions` | `true` | いいえ | If set, fetches the list of peers that can be used to send [paid reactions](https://core.telegram.org/api/reactions.md#paid-reactions) to messages of a specific peer. |\n| `for_live_stories` | `true` | いいえ | Fetch the peers that may be passed to [phone.sendGroupCallMessage](https://core.telegram.org/method/phone.sendGroupCallMessage.md).`send_as` to comment or react in a [live story »](https://core.telegram.org/api/group-calls.md#in-call-messages). |\n| `peer` | `InputPeer` | はい | The target peer; when `for_live_stories` is set, the peer that owns the live story. |"}, "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": "Delete all messages sent by a specific participant of a given supergroup", "description": "Delete all messages sent by a specific participant of a given supergroup\n\n**Who can call this method** · Telegram users only.", "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 Result · `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": "Type TL: messages.AffectedHistory."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PARTICIPANT_ID_INVALID` — The specified participant ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup"}, "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": "The participant whose messages should be deleted"}}, "additionalProperties": false, "required": ["channel", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup |\n| `participant` | `InputPeer` | はい | The participant whose messages should be deleted |"}, "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": "Set whether all users should join a discussion group in order to comment on a post »", "description": "Set whether all users [should join a discussion group in order to comment on a post »](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Discussion groups](https://core.telegram.org/api/discussion.md)", "x-tl-method": "channels.toggleJoinToSend", "x-tl-id": "3838547328", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Discussion groups", "https://core.telegram.org/api/discussion.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Discussion group"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Toggle"}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Discussion group |\n| `enabled` | `Bool` | はい | Toggle |"}, "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": "Set whether all users should request admin approval to join the group ».", "description": "Set whether all users should [request admin approval to join the group »](https://core.telegram.org/api/invites.md#join-requests).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "channels.toggleJoinRequest", "x-tl-id": "248260120", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `CHAT_PUBLIC_REQUIRED` — You can only enable join requests in public groups."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Toggle"}, "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 Type: InputUser.", "x-tl-flag": "flags.0?InputUser"}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `apply_to_invites` | `true` | いいえ | TL 型 `true` の値。 |\n| `channel` | `InputChannel` | はい | Group |\n| `enabled` | `Bool` | はい | Toggle |\n| `guard_bot` | `InputUser` | いいえ | TL Type: InputUser. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_ADMIN_REQUIRED", "CHAT_ID_INVALID", "CHAT_NOT_MODIFIED", "CHAT_PUBLIC_REQUIRED"], "x-browser-schema-id": "248260120"}}, "/catalog/channels.reorderUsernames": {"post": {"operationId": "channels.reorderUsernames", "tags": ["チャンネルとスーパーグループ"], "summary": "Reorder active usernames", "description": "Reorder active usernames\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup or channel"}, "order": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "The new order for active usernames. All active usernames must be specified."}}, "additionalProperties": false, "required": ["channel", "order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The supergroup or channel |\n| `order` | `Vector<string>` | はい | The new order for active usernames. All active usernames must be specified. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "3025988893"}}, "/catalog/channels.toggleUsername": {"post": {"operationId": "channels.toggleUsername", "tags": ["チャンネルとスーパーグループ"], "summary": "Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own.", "description": "Activate or deactivate a purchased [fragment.com](https://fragment.com) username associated to a [supergroup or channel](https://core.telegram.org/api/channel.md) we own.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "channels.toggleUsername", "x-tl-id": "1358053637", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `USERNAMES_ACTIVE_TOO_MUCH` — The maximum number of active usernames was reached.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_NOT_MODIFIED` — The username was not modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Supergroup or channel](https://core.telegram.org/api/channel.md)"}, "username": {"type": "string", "x-tl-type": "string", "description": "ユーザー名"}, "active": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to activate or deactivate the username"}}, "additionalProperties": false, "required": ["channel", "username", "active"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | [Supergroup or channel](https://core.telegram.org/api/channel.md) |\n| `username` | `string` | はい | ユーザー名 |\n| `active` | `Bool` | はい | Whether to activate or deactivate the username |"}, "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": "Disable all purchased usernames of a supergroup or channel", "description": "Disable all purchased usernames of a supergroup or channel\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup or channel"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup or channel |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "170155475"}}, "/catalog/channels.toggleForum": {"post": {"operationId": "channels.toggleForum", "tags": ["チャンネルとスーパーグループ"], "summary": "Enable or disable forum functionality in a supergroup.", "description": "Enable or disable [forum functionality](https://core.telegram.org/api/forum.md) in a supergroup.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.toggleForum", "x-tl-id": "2727684948", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_DISCUSSION_UNALLOWED` — You can't enable forum topics in a discussion group linked to a channel.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup ID"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Enable or disable forum functionality"}, "tabs": {"type": "boolean", "x-tl-type": "Bool", "description": "If true enables the tabbed forum UI, otherwise enables the list-based forum UI."}, "sidebar": {"type": "boolean", "x-tl-type": "Bool", "description": "TL 型 `Bool` の値。"}}, "additionalProperties": false, "required": ["channel", "enabled", "tabs", "sidebar"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup ID |\n| `enabled` | `Bool` | はい | Enable or disable forum functionality |\n| `tabs` | `Bool` | はい | If true enables the tabbed forum UI, otherwise enables the list-based forum 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": "Enable or disable the native antispam system.", "description": "Enable or disable the [native antispam system](https://core.telegram.org/api/antispam.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Native antispam system](https://core.telegram.org/api/antispam.md)", "x-tl-method": "channels.toggleAntiSpam", "x-tl-id": "1760814315", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Native antispam system", "https://core.telegram.org/api/antispam.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup ID. The specified supergroup must have at least `telegram_antispam_group_size_min` members to enable antispam functionality, as specified by the [client configuration parameters](https://core.telegram.org/api/config.md#client-configuration)."}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Enable or disable the native antispam system."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup ID. The specified supergroup must have at least `telegram_antispam_group_size_min` members to enable antispam functionality, as specified by the [client configuration parameters](https://core.telegram.org/api/config.md#client-configuration). |\n| `enabled` | `Bool` | はい | Enable or disable the native antispam system. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "CHAT_NOT_MODIFIED"], "x-browser-schema-id": "1760814315"}}, "/catalog/channels.reportAntiSpamFalsePositive": {"post": {"operationId": "channels.reportAntiSpamFalsePositive", "tags": ["チャンネルとスーパーグループ"], "summary": "Report a native antispam false positive", "description": "Report a [native antispam](https://core.telegram.org/api/antispam.md) false positive\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Native antispam system](https://core.telegram.org/api/antispam.md)\n- [Admin log](https://core.telegram.org/api/recent-actions.md)", "x-tl-method": "channels.reportAntiSpamFalsePositive", "x-tl-id": "2823857811", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Native antispam system", "https://core.telegram.org/api/antispam.md"], ["Admin log", "https://core.telegram.org/api/recent-actions.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup ID"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID that was mistakenly deleted by the [native antispam](https://core.telegram.org/api/antispam.md) system, taken from the [admin log](https://core.telegram.org/api/recent-actions.md)"}}, "additionalProperties": false, "required": ["channel", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup ID |\n| `msg_id` | `int` | はい | Message ID that was mistakenly deleted by the [native antispam](https://core.telegram.org/api/antispam.md) system, taken from the [admin log](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": "Hide or display the participants list in a supergroup.", "description": "Hide or display the participants list in a [supergroup](https://core.telegram.org/api/channel.md).\n\nThe supergroup must have at least `hidden_members_group_size_min` participants in order to use this method, as specified by the [client configuration parameters »](https://core.telegram.org/api/config.md#client-configuration).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "channels.toggleParticipantsHidden", "x-tl-id": "1785624660", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `PARTICIPANTS_TOO_FEW` — Not enough participants."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Supergroup ID"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "If true, will hide the participants list; otherwise will unhide it."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Supergroup ID |\n| `enabled` | `Bool` | はい | If true, will hide the participants list; otherwise will unhide it. |"}, "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": "Update the accent color and background custom emoji » of a channel.", "description": "Update the [accent color and background custom emoji »](https://core.telegram.org/api/colors.md) of a channel.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Accent colors](https://core.telegram.org/api/colors.md)\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "channels.updateColor", "x-tl-id": "3635033713", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Accent colors", "https://core.telegram.org/api/colors.md"], ["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOOSTS_REQUIRED` — The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost.md) in order to perform this action.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed.  Channels can change both message and profile palettes; supergroups can only change the profile palette, of course after reaching the [appropriate boost level](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": "Channel whose accent color should be changed."}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "[ID of the accent color palette »](https://core.telegram.org/api/colors.md) to use (not RGB24, see [here »](https://core.telegram.org/api/colors.md) for more info); if not set, the default palette is used."}, "background_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Custom emoji ID used in the accent color pattern.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_profile` | `true` | いいえ | Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed.  Channels can change both message and profile palettes; supergroups can only change the profile palette, of course after reaching the [appropriate boost level](https://core.telegram.org/api/colors.md). |\n| `channel` | `InputChannel` | はい | Channel whose accent color should be changed. |\n| `color` | `int` | いいえ | [ID of the accent color palette »](https://core.telegram.org/api/colors.md) to use (not RGB24, see [here »](https://core.telegram.org/api/colors.md) for more info); if not set, the default palette is used. |\n| `background_emoji_id` | `long` | いいえ | Custom emoji ID used in the accent color pattern. |"}, "x-telegram-rpc-errors": ["BOOSTS_REQUIRED", "CHANNEL_INVALID"], "x-browser-schema-id": "3635033713"}}, "/catalog/channels.toggleViewForumAsMessages": {"post": {"operationId": "channels.toggleViewForumAsMessages", "tags": ["チャンネルとスーパーグループ"], "summary": "Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a \"View as messages\" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.", "description": "Users may also choose to display messages from all topics of a [forum](https://core.telegram.org/api/forum.md) as if they were sent to a normal group, using a \"View as messages\" setting in the local client: this setting only affects the current account, and is synced to other logged in sessions using this method.\n\nInvoking this method will update the value of the `view_forum_as_messages` flag of [channelFull](https://core.telegram.org/constructor/channelFull.md) or [dialog](https://core.telegram.org/constructor/dialog.md) and emit an [updateChannelViewForumAsMessages](https://core.telegram.org/constructor/updateChannelViewForumAsMessages.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Forum topics](https://core.telegram.org/api/forum.md)", "x-tl-method": "channels.toggleViewForumAsMessages", "x-tl-id": "2537077525", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Forum topics", "https://core.telegram.org/api/forum.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The forum"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "The new value of the `view_forum_as_messages` flag."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The forum |\n| `enabled` | `Bool` | はい | The new value of the `view_forum_as_messages` flag. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "2537077525"}}, "/catalog/channels.getChannelRecommendations": {"post": {"operationId": "channels.getChannelRecommendations", "tags": ["チャンネルとスーパーグループ"], "summary": "Obtain a list of similarly themed public channels, selected based on similarities in their **subscriber bases**.", "description": "Obtain a list of similarly themed public channels, selected based on similarities in their **subscriber bases**.\n\n**Who can call this method** · Telegram users only.", "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 result · `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 type: messages.Chats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The method will return channels related to the passed `channel`. If not set, the method will returns channels related to channels the user has joined.", "x-tl-flag": "flags.0?InputChannel"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | いいえ | The method will return channels related to the passed `channel`. If not set, the method will returns channels related to channels the user has joined. |"}, "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": "Set an emoji status for a channel or supergroup.", "description": "Set an [emoji status](https://core.telegram.org/api/emoji-status.md) for a channel or supergroup.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "channels.updateEmojiStatus", "x-tl-id": "4040418984", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel/supergroup, must have at least [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) boosts."}, "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": "[Emoji status](https://core.telegram.org/api/emoji-status.md) to set"}}, "additionalProperties": false, "required": ["channel", "emoji_status"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The channel/supergroup, must have at least [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) boosts. |\n| `emoji_status` | `EmojiStatus` | はい | [Emoji status](https://core.telegram.org/api/emoji-status.md) to set |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "4040418984"}}, "/catalog/channels.setBoostsToUnblockRestrictions": {"post": {"operationId": "channels.setBoostsToUnblockRestrictions", "tags": ["チャンネルとスーパーグループ"], "summary": "Admins with ban\\_users admin rights » may allow users that apply a certain number of booosts » to the group to bypass slow mode » and other » supergroup restrictions, see here » for more info.", "description": "Admins with [ban\\_users admin rights »](https://core.telegram.org/constructor/chatAdminRights.md) may allow users that apply a certain number of [booosts »](https://core.telegram.org/api/boost.md) to the group to bypass [slow mode »](https://core.telegram.org/method/channels.toggleSlowMode.md) and [other »](https://core.telegram.org/api/rights.md#default-rights) supergroup restrictions, see [here »](https://core.telegram.org/api/boost.md#bypass-slowmode-and-chat-restrictions) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Admin, banned, default rights](https://core.telegram.org/api/rights.md)", "x-tl-method": "channels.setBoostsToUnblockRestrictions", "x-tl-id": "2906234094", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Admin, banned, default rights", "https://core.telegram.org/api/rights.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup."}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The number of required boosts (1-8, 0 to disable)."}}, "additionalProperties": false, "required": ["channel", "boosts"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The supergroup. |\n| `boosts` | `int` | はい | The number of required boosts (1-8, 0 to disable). |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "2906234094"}}, "/catalog/channels.setEmojiStickers": {"post": {"operationId": "channels.setEmojiStickers", "tags": ["チャンネルとスーパーグループ"], "summary": "Set a custom emoji stickerset for supergroups. Only usable after reaching at least the boost level » specified in the `group_emoji_stickers_level_min` » config parameter.", "description": "Set a [custom emoji stickerset](https://core.telegram.org/api/custom-emoji.md) for supergroups. Only usable after reaching at least the [boost level »](https://core.telegram.org/api/boost.md) specified in the [`group_emoji_stickers_level_min` »](https://core.telegram.org/api/config.md#group-emoji-stickers-level-min) config parameter.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "channels.setEmojiStickers", "x-tl-id": "1020866743", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The supergroup"}, "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": "The custom emoji stickerset to associate to the supergroup"}}, "additionalProperties": false, "required": ["channel", "stickerset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The supergroup |\n| `stickerset` | `InputStickerSet` | はい | The custom emoji stickerset to associate to the supergroup |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "1020866743"}}, "/catalog/channels.restrictSponsoredMessages": {"post": {"operationId": "channels.restrictSponsoredMessages", "tags": ["チャンネルとスーパーグループ"], "summary": "Disable ads on the specified channel, for all users.", "description": "Disable ads on the specified channel, for all users.\n\nAvailable only after reaching at least the [boost level »](https://core.telegram.org/api/boost.md) specified in the [`channel_restrict_sponsored_level_min` »](https://core.telegram.org/api/config.md#channel-restrict-sponsored-level-min) config parameter.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "channels.restrictSponsoredMessages", "x-tl-id": "2598966553", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to disable or re-enable ads."}}, "additionalProperties": false, "required": ["channel", "restricted"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | チャンネル。 |\n| `restricted` | `Bool` | はい | Whether to disable or re-enable ads. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "2598966553"}}, "/catalog/channels.searchPosts": {"post": {"operationId": "channels.searchPosts", "tags": ["チャンネルとスーパーグループ"], "summary": "Globally search for posts from public channels » (*including* those we aren't a member of) containing either a specific hashtag, *or* a full text query.", "description": "Globally search for posts from public [channels »](https://core.telegram.org/api/channel.md) (*including* those we aren't a member of) containing either a specific hashtag, *or* a full text query.\n\nExactly one of `query` and `hashtag` must be set.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Search and filters](https://core.telegram.org/api/search.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [User Authorization](https://core.telegram.org/api/auth.md)", "x-tl-method": "channels.searchPosts", "x-tl-id": "4072993357", "x-tl-result": "messages.Messages", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Search and filters", "https://core.telegram.org/api/search.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["User Authorization", "https://core.telegram.org/api/auth.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: messages.Messages."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 420 · `FROZEN_METHOD_INVALID` — The current account is [frozen](https://core.telegram.org/api/auth.md#frozen-accounts), and thus cannot execute the specified action.\n- 400 · `OFFSET_PEER_ID_INVALID` — The provided offset peer is invalid.\n- 403 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The hashtag to search, without the `#` character."}, "query": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "The full text query: each user has a limited amount of free full text search slots, after which payment is required, see [here »](https://core.telegram.org/api/search.md#posts-tab) for more info on the full flow."}, "offset_rate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Initially 0, then set to the [`next_rate` parameter of messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md), or if that is absent, the `date` of the last returned message."}, "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": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "For full text post searches (`query`), allows payment of the specified amount of Stars for the search, see [here »](https://core.telegram.org/api/search.md#posts-tab) for more info on the full flow.", "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` | いいえ | The hashtag to search, without the `#` character. |\n| `query` | `string` | いいえ | The full text query: each user has a limited amount of free full text search slots, after which payment is required, see [here »](https://core.telegram.org/api/search.md#posts-tab) for more info on the full flow. |\n| `offset_rate` | `int` | はい | Initially 0, then set to the [`next_rate` parameter of messages.messagesSlice](https://core.telegram.org/constructor/messages.messagesSlice.md), or if that is absent, the `date` of the last returned message. |\n| `offset_peer` | `InputPeer` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |\n| `allow_paid_stars` | `long` | いいえ | For full text post searches (`query`), allows payment of the specified amount of Stars for the search, see [here »](https://core.telegram.org/api/search.md#posts-tab) for more info on the full flow. |"}, "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": "Enable or disable paid messages » in this supergroup or monoforum.", "description": "Enable or disable [paid messages »](https://core.telegram.org/api/paid-messages.md) in this [supergroup](https://core.telegram.org/api/channel.md) or [monoforum](https://core.telegram.org/api/monoforum.md).\n\nAlso used to [enable or disable monoforums aka direct messages in a channel](https://core.telegram.org/api/monoforum.md).\n\nNote that passing the ID of the monoforum itself to `channel` will return a `CHANNEL_MONOFORUM_UNSUPPORTED` error: pass the ID of the associated channel to edit the settings of the associated monoforum, instead.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)", "x-tl-method": "channels.updatePaidMessagesPrice", "x-tl-id": "1259483771", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 400 · `CHAT_NOT_MODIFIED` — No changes were made to chat information because the new information you passed is identical to the current information.\n- 400 · `STARS_AMOUNT_INVALID` — The specified amount in stars is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Only usable for channels, enables or disables the associated [monoforum aka direct messages](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": "Pass the supergroup ID for supergroups and the ID of the [channel](https://core.telegram.org/api/channel.md) to modify the setting in the associated monoforum."}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Specifies the required amount of [Telegram Stars](https://core.telegram.org/api/stars.md) users must pay to send messages to the supergroup or monoforum.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["channel", "send_paid_messages_stars"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `broadcast_messages_allowed` | `true` | いいえ | Only usable for channels, enables or disables the associated [monoforum aka direct messages](https://core.telegram.org/api/monoforum.md). |\n| `channel` | `InputChannel` | はい | Pass the supergroup ID for supergroups and the ID of the [channel](https://core.telegram.org/api/channel.md) to modify the setting in the associated monoforum. |\n| `send_paid_messages_stars` | `long` | はい | Specifies the required amount of [Telegram Stars](https://core.telegram.org/api/stars.md) users must pay to send messages to the supergroup or monoforum. |"}, "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": "Toggle autotranslation in a channel, for all users: see here » for more info.", "description": "Toggle autotranslation in a channel, for all users: see [here »](https://core.telegram.org/api/translation.md#autotranslation-for-channels) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message translation](https://core.telegram.org/api/translation.md)", "x-tl-method": "channels.toggleAutotranslation", "x-tl-id": "377471137", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message translation", "https://core.telegram.org/api/translation.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel where to toggle autotranslation."}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to enable or disable autotranslation."}}, "additionalProperties": false, "required": ["channel", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | The channel where to toggle autotranslation. |\n| `enabled` | `Bool` | はい | Whether to enable or disable autotranslation. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "377471137"}}, "/catalog/channels.getMessageAuthor": {"post": {"operationId": "channels.getMessageAuthor", "tags": ["チャンネルとスーパーグループ"], "summary": "Can only be invoked by non-bot admins of a monoforum », obtains the original sender of a message sent by other monoforum admins to the monoforum, on behalf of the channel associated to the monoforum.", "description": "Can only be invoked by non-bot admins of a [monoforum »](https://core.telegram.org/api/monoforum.md), obtains the original sender of a message sent by other monoforum admins to the monoforum, on behalf of the channel associated to the monoforum.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Direct messages to channels](https://core.telegram.org/api/monoforum.md)", "x-tl-method": "channels.getMessageAuthor", "x-tl-id": "3974275302", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Direct messages to channels", "https://core.telegram.org/api/monoforum.md"]], "responses": {"200": {"description": "MTProto result · `User`.\n\n[User](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": "Type TL: User."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 of the monoforum."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message sent by a monoforum admin."}}, "additionalProperties": false, "required": ["channel", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | ID of the monoforum. |\n| `id` | `int` | はい | ID of the message sent by a monoforum admin. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID"], "x-browser-schema-id": "3974275302"}}, "/catalog/channels.checkSearchPostsFlood": {"post": {"operationId": "channels.checkSearchPostsFlood", "tags": ["チャンネルとスーパーグループ"], "summary": "Check if the specified global post search » requires payment.", "description": "Check if the specified [global post search »](https://core.telegram.org/api/search.md#posts-tab) requires payment.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Search and filters](https://core.telegram.org/api/search.md)", "x-tl-method": "channels.checkSearchPostsFlood", "x-tl-id": "576090389", "x-tl-result": "SearchPostsFlood", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Search and filters", "https://core.telegram.org/api/search.md"]], "responses": {"200": {"description": "MTProto result · `SearchPostsFlood`.\n\n[SearchPostsFlood](https://core.telegram.org/type/SearchPostsFlood.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "SearchPostsFlood", "oneOf": [{"$ref": "#/components/schemas/searchPostsFlood"}], "description": "TL Type: SearchPostsFlood."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The query."}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `query` | `string` | いいえ | The query. |"}, "x-browser-schema-id": "576090389"}}, "/catalog/channels.setMainProfileTab": {"post": {"operationId": "channels.setMainProfileTab", "tags": ["チャンネルとスーパーグループ"], "summary": "Changes the main profile tab of a channel, see here » for more info.", "description": "Changes the main profile tab of a channel, see [here »](https://core.telegram.org/api/profile.md#tabs) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [User profiles](https://core.telegram.org/api/profile.md)", "x-tl-method": "channels.setMainProfileTab", "x-tl-id": "897842353", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["User profiles", "https://core.telegram.org/api/profile.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The tab to set as main tab."}}, "additionalProperties": false, "required": ["channel", "tab"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | チャンネル。 |\n| `tab` | `ProfileTab` | はい | The tab to set as main tab. |"}, "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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "TL Type: InputChannel."}, "news": {"type": "boolean", "x-tl-type": "Bool", "description": "TL 型 `Bool` の値。"}}, "additionalProperties": false, "required": ["channel", "news"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | TL Type: InputChannel. |\n| `news` | `Bool` | はい | TL 型 `Bool` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "3607427461"}}, "/catalog/bots.sendCustomRequest": {"post": {"operationId": "bots.sendCustomRequest", "tags": ["ボット"], "summary": "Sends a custom request; for bots only", "description": "Sends a custom request; for bots only\n\n**Who can call this method** · Telegram bots only.", "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 result · `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 type: DataJSON."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DATA_JSON_INVALID` — The provided JSON data is invalid.\n- 400 · `METHOD_INVALID` — The specified method is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The method name"}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "JSON-serialized method parameters"}}, "additionalProperties": false, "required": ["custom_method", "params"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `custom_method` | `string` | はい | The method name |\n| `params` | `DataJSON` | はい | JSON-serialized method parameters |"}, "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": "Answers a custom query; for bots only", "description": "Answers a custom query; for bots only\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DATA_JSON_INVALID` — The provided JSON data is invalid.\n- 400 · `QUERY_ID_INVALID` — The query ID is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Identifier of a custom query", "x-tl-type": "long"}, "data": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "JSON-serialized answer to the query"}}, "additionalProperties": false, "required": ["query_id", "data"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `query_id` | `long` | はい | Identifier of a custom query |\n| `data` | `DataJSON` | はい | JSON-serialized answer to the query |"}, "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": "Set bot command list", "description": "Set bot command list\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_COMMAND_DESCRIPTION_INVALID` — The specified command description is invalid.\n- 400 · `BOT_COMMAND_INVALID` — The specified command is invalid.\n- 400 · `LANG_CODE_INVALID` — The specified language code is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Command scope"}, "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 Type: BotCommand."}, "x-tl-type": "Vector<BotCommand>", "description": "Bot commands"}}, "additionalProperties": false, "required": ["scope", "lang_code", "commands"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `scope` | `BotCommandScope` | はい | Command scope |\n| `lang_code` | `string` | はい | 言語コード |\n| `commands` | `Vector<BotCommand>` | はい | Bot commands |"}, "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": "Clear bot commands for the specified bot scope and language code", "description": "Clear bot commands for the specified bot scope and language code\n\n**Who can call this method** · Telegram bots only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `LANG_CODE_INVALID` — The specified language code is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Command scope"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "言語コード"}}, "additionalProperties": false, "required": ["scope", "lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `scope` | `BotCommandScope` | はい | Command scope |\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": "Obtain a list of bot commands for the specified bot scope and language code", "description": "Obtain a list of bot commands for the specified bot scope and language code\n\n**Who can call this method** · Telegram bots only.", "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 result · `Vector<BotCommand>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[BotCommand](https://core.telegram.org/type/BotCommand.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "BotCommand", "oneOf": [{"$ref": "#/components/schemas/botCommand"}], "description": "TL Type: BotCommand."}, "x-tl-type": "Vector<BotCommand>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Command scope"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "言語コード"}}, "additionalProperties": false, "required": ["scope", "lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `scope` | `BotCommandScope` | はい | Command scope |\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": "Sets the menu button action » for a given user or for all users", "description": "Sets the [menu button action »](https://core.telegram.org/api/bots/menu.md) for a given user or for all users\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Bot menu button](https://core.telegram.org/api/bots/menu.md)", "x-tl-method": "bots.setBotMenuButton", "x-tl-id": "1157944655", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Bot menu button", "https://core.telegram.org/api/bots/menu.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUTTON_INVALID` — The specified button is invalid.\n- 400 · `BUTTON_TEXT_INVALID` — The specified button text is invalid.\n- 400 · `BUTTON_URL_INVALID` — Button URL invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Bot menu button action"}}, "additionalProperties": false, "required": ["user_id", "button"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | ユーザーID |\n| `button` | `BotMenuButton` | はい | Bot menu button action |"}, "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": "Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton; users can see this information in the botInfo constructor.", "description": "Gets the menu button action for a given user or for all users, previously set using [bots.setBotMenuButton](https://core.telegram.org/method/bots.setBotMenuButton.md); users can see this information in the [botInfo](https://core.telegram.org/constructor/botInfo.md) constructor.\n\n**Who can call this method** · Telegram bots only.", "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 result · `BotMenuButton`.\n\n[BotMenuButton](https://core.telegram.org/type/BotMenuButton.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BotMenuButton", "oneOf": [{"$ref": "#/components/schemas/botMenuButtonDefault"}, {"$ref": "#/components/schemas/botMenuButtonCommands"}, {"$ref": "#/components/schemas/botMenuButton"}], "description": "TL Type: BotMenuButton."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "User ID or empty for the default menu button."}}, "additionalProperties": false, "required": ["user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | User ID or empty for the default menu button. |"}, "x-telegram-rpc-errors": ["USER_BOT_REQUIRED"], "x-browser-schema-id": "2623597352"}}, "/catalog/bots.setBotBroadcastDefaultAdminRights": {"post": {"operationId": "bots.setBotBroadcastDefaultAdminRights", "tags": ["ボット"], "summary": "Set the default suggested admin rights for bots being added as admins to channels, see here for more info on how to handle them ».", "description": "Set the default [suggested admin rights](https://core.telegram.org/api/rights.md#suggested-bot-rights) for bots being added as admins to channels, see [here for more info on how to handle them »](https://core.telegram.org/api/rights.md#suggested-bot-rights).\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Admin, banned, default rights](https://core.telegram.org/api/rights.md)", "x-tl-method": "bots.setBotBroadcastDefaultAdminRights", "x-tl-id": "2021942497", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Admin, banned, default rights", "https://core.telegram.org/api/rights.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `RIGHTS_NOT_MODIFIED` — The new admin rights are equal to the old rights, no change was made.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Admin rights"}}, "additionalProperties": false, "required": ["admin_rights"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `admin_rights` | `ChatAdminRights` | はい | Admin rights |"}, "x-telegram-rpc-errors": ["RIGHTS_NOT_MODIFIED", "USER_BOT_REQUIRED"], "x-browser-schema-id": "2021942497"}}, "/catalog/bots.setBotGroupDefaultAdminRights": {"post": {"operationId": "bots.setBotGroupDefaultAdminRights", "tags": ["ボット"], "summary": "Set the default suggested admin rights for bots being added as admins to groups, see here for more info on how to handle them ».", "description": "Set the default [suggested admin rights](https://core.telegram.org/api/rights.md#suggested-bot-rights) for bots being added as admins to groups, see [here for more info on how to handle them »](https://core.telegram.org/api/rights.md#suggested-bot-rights).\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Admin, banned, default rights](https://core.telegram.org/api/rights.md)", "x-tl-method": "bots.setBotGroupDefaultAdminRights", "x-tl-id": "2455685610", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Admin, banned, default rights", "https://core.telegram.org/api/rights.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `RIGHTS_NOT_MODIFIED` — The new admin rights are equal to the old rights, no change was made.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Admin rights"}}, "additionalProperties": false, "required": ["admin_rights"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `admin_rights` | `ChatAdminRights` | はい | Admin rights |"}, "x-telegram-rpc-errors": ["RIGHTS_NOT_MODIFIED", "USER_BOT_REQUIRED"], "x-browser-schema-id": "2455685610"}}, "/catalog/bots.setBotInfo": {"post": {"operationId": "bots.setBotInfo", "tags": ["ボット"], "summary": "Set localized name, about text and description of a bot (or of the current account, if called by a bot).", "description": "Set localized name, about text and description of a bot (or of the current account, if called by a bot).\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `USER_BOT_INVALID` — User accounts must provide the `bot` method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If called by a user, **must** contain the peer of a bot we own.", "x-tl-flag": "flags.2?InputUser"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Language code, if left empty update the fallback about text and description"}, "name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "New bot name"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "New about text"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "New description"}}, "additionalProperties": false, "required": ["lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | いいえ | If called by a user, **must** contain the peer of a bot we own. |\n| `lang_code` | `string` | はい | Language code, if left empty update the fallback about text and description |\n| `name` | `string` | いいえ | New bot name |\n| `about` | `string` | いいえ | New about text |\n| `description` | `string` | いいえ | New description |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USER_BOT_INVALID"], "x-browser-schema-id": "282013987"}}, "/catalog/bots.getBotInfo": {"post": {"operationId": "bots.getBotInfo", "tags": ["ボット"], "summary": "Get localized name, about text and description of a bot (or of the current account, if called by a bot).", "description": "Get localized name, about text and description of a bot (or of the current account, if called by a bot).\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: bots.BotInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `LANG_CODE_INVALID` — The specified language code is invalid.\n- 400 · `USER_BOT_INVALID` — User accounts must provide the `bot` method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If called by a user, **must** contain the peer of a bot we own.", "x-tl-flag": "flags.0?InputUser"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Language code, if left empty this method will return the fallback about text and description."}}, "additionalProperties": false, "required": ["lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | いいえ | If called by a user, **must** contain the peer of a bot we own. |\n| `lang_code` | `string` | はい | Language code, if left empty this method will return the fallback about text and description. |"}, "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": "Reorder usernames associated to a bot we own.", "description": "Reorder usernames associated to a bot we own.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `USERNAME_NOT_MODIFIED` — The username was not modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot"}, "order": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "The new order for active usernames. All active usernames must be specified."}}, "additionalProperties": false, "required": ["bot", "order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot |\n| `order` | `Vector<string>` | はい | The new order for active usernames. All active usernames must be specified. |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "2533994946"}}, "/catalog/bots.toggleUsername": {"post": {"operationId": "bots.toggleUsername", "tags": ["ボット"], "summary": "Activate or deactivate a purchased fragment.com username associated to a bot we own.", "description": "Activate or deactivate a purchased [fragment.com](https://fragment.com) username associated to a bot we own.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `USERNAME_NOT_MODIFIED` — The username was not modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot"}, "username": {"type": "string", "x-tl-type": "string", "description": "ユーザー名"}, "active": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to activate or deactivate it"}}, "additionalProperties": false, "required": ["bot", "username", "active"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot |\n| `username` | `string` | はい | ユーザー名 |\n| `active` | `Bool` | はい | Whether to activate or deactivate it |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USERNAME_NOT_MODIFIED"], "x-browser-schema-id": "87861619"}}, "/catalog/bots.canSendMessage": {"post": {"operationId": "bots.canSendMessage", "tags": ["ボット"], "summary": "Check whether the specified bot can send us messages", "description": "Check whether the specified bot can send us messages\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "324662502"}}, "/catalog/bots.allowSendMessage": {"post": {"operationId": "bots.allowSendMessage", "tags": ["ボット"], "summary": "Allow the specified bot to send us messages", "description": "Allow the specified bot to send us messages\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "4046644207"}}, "/catalog/bots.invokeWebViewCustomMethod": {"post": {"operationId": "bots.invokeWebViewCustomMethod", "tags": ["ボット"], "summary": "Send a custom request from a mini bot app, triggered by a web\\_app\\_invoke\\_custom\\_method event ».", "description": "Send a custom request from a [mini bot app](https://core.telegram.org/api/bots/webapps.md), triggered by a [web\\_app\\_invoke\\_custom\\_method event »](https://core.telegram.org/api/web-events.md#web-app-invoke-custom-method).\n\nThe response should be sent using a [custom\\_method\\_invoked](https://core.telegram.org/api/bots/webapps.md#custom-method-invoked) event, [see here »](https://core.telegram.org/api/web-events.md#web-app-invoke-custom-method) for more info on the flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Web events](https://core.telegram.org/api/web-events.md)", "x-tl-method": "bots.invokeWebViewCustomMethod", "x-tl-id": "142591463", "x-tl-result": "DataJSON", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Web events", "https://core.telegram.org/api/web-events.md"]], "responses": {"200": {"description": "MTProto result · `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 type: DataJSON."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `DATA_JSON_INVALID` — The provided JSON data is invalid.\n- 400 · `METHOD_INVALID` — The specified method is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Identifier of the bot associated to the [mini bot app](https://core.telegram.org/api/bots/webapps.md)"}, "custom_method": {"type": "string", "x-tl-type": "string", "description": "Identifier of the custom method to invoke"}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Method parameters"}}, "additionalProperties": false, "required": ["bot", "custom_method", "params"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | Identifier of the bot associated to the [mini bot app](https://core.telegram.org/api/bots/webapps.md) |\n| `custom_method` | `string` | はい | Identifier of the custom method to invoke |\n| `params` | `DataJSON` | はい | Method parameters |"}, "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": "Fetch popular Main Mini Apps, to be used in the apps tab of global search ».", "description": "Fetch popular [Main Mini Apps](https://core.telegram.org/api/bots/webapps.md#main-mini-apps), to be used in the [apps tab of global search »](https://core.telegram.org/api/search.md#apps-tab).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Search and filters](https://core.telegram.org/api/search.md)", "x-tl-method": "bots.getPopularAppBots", "x-tl-id": "3260088722", "x-tl-result": "bots.PopularAppBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Search and filters", "https://core.telegram.org/api/search.md"]], "responses": {"200": {"description": "MTProto result · `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 type: bots.PopularAppBots."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Offset for [pagination](https://core.telegram.org/api/offsets.md), initially an empty string, then re-use the `next_offset` returned by the previous query."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `offset` | `string` | はい | Offset for [pagination](https://core.telegram.org/api/offsets.md), initially an empty string, then re-use the `next_offset` returned by the previous query. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "3260088722"}}, "/catalog/bots.addPreviewMedia": {"post": {"operationId": "bots.addPreviewMedia", "tags": ["ボット"], "summary": "Add a main mini app preview, see here » for more info.", "description": "Add a [main mini app preview, see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info.\n\nOnly owners of bots with a configured Main Mini App can use this method, see [see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info on how to check if you can invoke this method.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.addPreviewMedia", "x-tl-id": "397326170", "x-tl-result": "BotPreviewMedia", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `BotPreviewMedia`.\n\n[BotPreviewMedia](https://core.telegram.org/type/BotPreviewMedia.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BotPreviewMedia", "oneOf": [{"$ref": "#/components/schemas/botPreviewMedia"}], "description": "TL Type: BotPreviewMedia."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the Main Mini App."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 language code, indicating the localization of the preview to add."}, "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": "The photo/video preview, uploaded using [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md)."}}, "additionalProperties": false, "required": ["bot", "lang_code", "media"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the Main Mini App. |\n| `lang_code` | `string` | はい | ISO 639-1 language code, indicating the localization of the preview to add. |\n| `media` | `InputMedia` | はい | The photo/video preview, uploaded using [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": "Edit a main mini app preview, see here » for more info.", "description": "Edit a [main mini app preview, see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info.\n\nOnly owners of bots with a configured Main Mini App can use this method, see [see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info on how to check if you can invoke this method.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.editPreviewMedia", "x-tl-id": "2233819247", "x-tl-result": "BotPreviewMedia", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `BotPreviewMedia`.\n\n[BotPreviewMedia](https://core.telegram.org/type/BotPreviewMedia.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "BotPreviewMedia", "oneOf": [{"$ref": "#/components/schemas/botPreviewMedia"}], "description": "TL Type: BotPreviewMedia."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the Main Mini App."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 language code, indicating the localization of the preview to edit."}, "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": "The photo/video preview to replace, previously fetched as specified [here »](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": "The new photo/video preview, uploaded using [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md)."}}, "additionalProperties": false, "required": ["bot", "lang_code", "media", "new_media"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the Main Mini App. |\n| `lang_code` | `string` | はい | ISO 639-1 language code, indicating the localization of the preview to edit. |\n| `media` | `InputMedia` | はい | The photo/video preview to replace, previously fetched as specified [here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews). |\n| `new_media` | `InputMedia` | はい | The new photo/video preview, uploaded using [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": "Delete a main mini app preview, see here » for more info.", "description": "Delete a [main mini app preview, see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info.\n\nOnly owners of bots with a configured Main Mini App can use this method, see [see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info on how to check if you can invoke this method.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.deletePreviewMedia", "x-tl-id": "755054003", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the Main Mini App."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 language code, indicating the localization of the preview to delete."}, "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 Type: InputMedia."}, "x-tl-type": "Vector<InputMedia>", "description": "The photo/video preview to delete, previously fetched as specified [here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews)."}}, "additionalProperties": false, "required": ["bot", "lang_code", "media"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the Main Mini App. |\n| `lang_code` | `string` | はい | ISO 639-1 language code, indicating the localization of the preview to delete. |\n| `media` | `Vector<InputMedia>` | はい | The photo/video preview to delete, previously fetched as specified [here »](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": "Reorder a main mini app previews, see here » for more info.", "description": "Reorder a [main mini app previews, see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info.\n\nOnly owners of bots with a configured Main Mini App can use this method, see [see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info on how to check if you can invoke this method.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.reorderPreviewMedias", "x-tl-id": "3056071594", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the Main Mini App."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ISO 639-1 language code, indicating the localization of the previews to reorder."}, "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 Type: InputMedia."}, "x-tl-type": "Vector<InputMedia>", "description": "New order of the previews."}}, "additionalProperties": false, "required": ["bot", "lang_code", "order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the Main Mini App. |\n| `lang_code` | `string` | はい | ISO 639-1 language code, indicating the localization of the previews to reorder. |\n| `order` | `Vector<InputMedia>` | はい | New order of the previews. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "3056071594"}}, "/catalog/bots.getPreviewInfo": {"post": {"operationId": "bots.getPreviewInfo", "tags": ["ボット"], "summary": "Bot owners only, fetch main mini app preview information, see here » for more info.", "description": "Bot owners only, fetch [main mini app preview information, see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info.\n\nNote: technically non-owners may also invoke this method, but it will always behave exactly as [bots.getPreviewMedias](https://core.telegram.org/method/bots.getPreviewMedias.md), returning only previews for the current language and an empty `lang_codes` array, regardless of the passed `lang_code`, so please only use [bots.getPreviewMedias](https://core.telegram.org/method/bots.getPreviewMedias.md) if you're not the owner of the `bot`.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.getPreviewInfo", "x-tl-id": "1111143341", "x-tl-result": "bots.PreviewInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `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 type: bots.PreviewInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the Main Mini App."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Fetch previews for the specified ISO 639-1 language code."}}, "additionalProperties": false, "required": ["bot", "lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the Main Mini App. |\n| `lang_code` | `string` | はい | Fetch previews for the specified ISO 639-1 language code. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1111143341"}}, "/catalog/bots.getPreviewMedias": {"post": {"operationId": "bots.getPreviewMedias", "tags": ["ボット"], "summary": "Fetch main mini app previews, see here » for more info.", "description": "Fetch [main mini app previews, see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)", "x-tl-method": "bots.getPreviewMedias", "x-tl-id": "2728745293", "x-tl-result": "Vector<BotPreviewMedia>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"]], "responses": {"200": {"description": "MTProto result · `Vector<BotPreviewMedia>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[BotPreviewMedia](https://core.telegram.org/type/BotPreviewMedia.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "BotPreviewMedia", "oneOf": [{"$ref": "#/components/schemas/botPreviewMedia"}], "description": "TL Type: BotPreviewMedia."}, "x-tl-type": "Vector<BotPreviewMedia>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the Main Mini App."}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the Main Mini App. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "2728745293"}}, "/catalog/bots.updateUserEmojiStatus": {"post": {"operationId": "bots.updateUserEmojiStatus", "tags": ["ボット"], "summary": "Change the emoji status of a user (invoked by bots, see here » for more info on the full flow)", "description": "Change the emoji status of a user (invoked by bots, see [here »](https://core.telegram.org/api/emoji-status.md#setting-an-emoji-status-from-a-bot) for more info on the full flow)\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "bots.updateUserEmojiStatus", "x-tl-id": "3986632901", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 403 · `USER_PERMISSION_DENIED` — The user hasn't granted or has revoked the bot's access to change their emoji status using [bots.toggleUserEmojiStatusPermission](https://core.telegram.org/method/bots.toggleUserEmojiStatusPermission.md)."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user whose emoji status should be changed"}, "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": "The emoji status"}}, "additionalProperties": false, "required": ["user_id", "emoji_status"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | The user whose emoji status should be changed |\n| `emoji_status` | `EmojiStatus` | はい | The emoji status |"}, "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": "Allow or prevent a bot from changing our emoji status »", "description": "Allow or prevent a bot from [changing our emoji status »](https://core.telegram.org/api/emoji-status.md#setting-an-emoji-status-from-a-bot)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Emoji status](https://core.telegram.org/api/emoji-status.md)", "x-tl-method": "bots.toggleUserEmojiStatusPermission", "x-tl-id": "115237778", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Emoji status", "https://core.telegram.org/api/emoji-status.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot"}, "enabled": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to allow or prevent the bot from changing our emoji status"}}, "additionalProperties": false, "required": ["bot", "enabled"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot |\n| `enabled` | `Bool` | はい | Whether to allow or prevent the bot from changing our emoji status |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "115237778"}}, "/catalog/bots.checkDownloadFileParams": {"post": {"operationId": "bots.checkDownloadFileParams", "tags": ["ボット"], "summary": "Check if a mini app can request the download of a specific file: called when handling web\\_app\\_request\\_file\\_download events »", "description": "Check if a [mini app](https://core.telegram.org/api/bots/webapps.md) can request the download of a specific file: called when handling [web\\_app\\_request\\_file\\_download events »](https://core.telegram.org/api/web-events.md#web-app-request-file-download)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Web events](https://core.telegram.org/api/web-events.md)", "x-tl-method": "bots.checkDownloadFileParams", "x-tl-id": "1342666121", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Web events", "https://core.telegram.org/api/web-events.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the [mini app](https://core.telegram.org/api/bots/webapps.md) that requested the download"}, "file_name": {"type": "string", "x-tl-type": "string", "description": "The `filename` from the [web_app_request_file_download event »](https://core.telegram.org/api/web-events.md#web-app-request-file-download)"}, "url": {"type": "string", "x-tl-type": "string", "description": "The `url` from the [web_app_request_file_download event »](https://core.telegram.org/api/web-events.md#web-app-request-file-download)"}}, "additionalProperties": false, "required": ["bot", "file_name", "url"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the [mini app](https://core.telegram.org/api/bots/webapps.md) that requested the download |\n| `file_name` | `string` | はい | The `filename` from the [web_app_request_file_download event »](https://core.telegram.org/api/web-events.md#web-app-request-file-download) |\n| `url` | `string` | はい | The `url` from the [web_app_request_file_download event »](https://core.telegram.org/api/web-events.md#web-app-request-file-download) |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "1342666121"}}, "/catalog/bots.getAdminedBots": {"post": {"operationId": "bots.getAdminedBots", "tags": ["ボット"], "summary": "Get a list of bots owned by the current user", "description": "Get a list of bots owned by the current user", "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 result · `Vector<User>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[User](https://core.telegram.org/type/User.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/bots.getAdminedBots"}, "x-browser-schema-id": "2960203139"}}, "/catalog/bots.updateStarRefProgram": {"post": {"operationId": "bots.updateStarRefProgram", "tags": ["ボット"], "summary": "Create, edit or delete the affiliate program of a bot we own", "description": "Create, edit or delete the [affiliate program](https://core.telegram.org/api/bots/referrals.md) of a bot we own\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "bots.updateStarRefProgram", "x-tl-id": "2005621427", "x-tl-result": "StarRefProgram", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: StarRefProgram."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `STARREF_AWAITING_END` — The previous referral program was terminated less than 24 hours ago: further changes can be made after the date specified in userFull.starref_program.end_date.\n- 400 · `STARREF_PERMILLE_INVALID` — The specified commission_permille is invalid: the minimum and maximum values for this parameter are contained in the [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) and [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille) client configuration parameters.\n- 400 · `STARREF_PERMILLE_TOO_LOW` — The specified commission_permille is too low: the minimum and maximum values for this parameter are contained in the [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) and [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille) client configuration parameters."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot"}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "The permille commission rate: it indicates the share of Telegram Stars received by affiliates for every transaction made by users they referred inside of the bot.     The minimum and maximum values for this parameter are contained in the [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) and [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille) client configuration parameters.    Can be `0` to terminate the affiliate program.   Both the duration and the commission may only be raised after creation of the program: to lower them, the program must first be terminated and a new one created."}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int", "description": "Indicates the duration of the affiliate program; if not set, there is no expiration date."}}, "additionalProperties": false, "required": ["bot", "commission_permille"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot |\n| `commission_permille` | `int` | はい | The permille commission rate: it indicates the share of Telegram Stars received by affiliates for every transaction made by users they referred inside of the bot.     The minimum and maximum values for this parameter are contained in the [starref_min_commission_permille](https://core.telegram.org/api/config.md#starref-min-commission-permille) and [starref_max_commission_permille](https://core.telegram.org/api/config.md#starref-max-commission-permille) client configuration parameters.    Can be `0` to terminate the affiliate program.   Both the duration and the commission may only be raised after creation of the program: to lower them, the program must first be terminated and a new one created. |\n| `duration_months` | `int` | いいえ | Indicates the duration of the affiliate program; if not set, there is no expiration date. |"}, "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": "Verify a user or chat on behalf of an organization ».", "description": "Verify a user or chat [on behalf of an organization »](https://core.telegram.org/api/bots/verification.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Third-party verification](https://core.telegram.org/api/bots/verification.md)", "x-tl-method": "bots.setCustomVerification", "x-tl-id": "4103366487", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Third-party verification", "https://core.telegram.org/api/bots/verification.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 403 · `BOT_VERIFIER_FORBIDDEN` — This bot cannot assign [verification icons](https://core.telegram.org/api/bots/verification.md).\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, adds the verification; otherwise removes verification."}, "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": "Must **not** be set if invoked by a bot, **must** be set to the ID of an owned bot if invoked by a user.", "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": "The peer to verify"}, "custom_description": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Custom description for the verification, the UTF-8 length limit for this field is contained in [bot_verification_description_length_limit »](https://core.telegram.org/api/config.md#bot-verification-description-length-limit).  If not set, `Was verified by organization \"organization_name\"` will be used as description.", "x-tl-flag": "flags.2?TextWithEntities"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `enabled` | `true` | いいえ | If set, adds the verification; otherwise removes verification. |\n| `bot` | `InputUser` | いいえ | Must **not** be set if invoked by a bot, **must** be set to the ID of an owned bot if invoked by a user. |\n| `peer` | `InputPeer` | はい | The peer to verify |\n| `custom_description` | `TextWithEntities` | いいえ | Custom description for the verification, the UTF-8 length limit for this field is contained in [bot_verification_description_length_limit »](https://core.telegram.org/api/config.md#bot-verification-description-length-limit).  If not set, `Was verified by organization \"organization_name\"` will be used as description. |"}, "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": "Obtain a list of similarly themed bots, selected based on similarities in their subscriber bases, see here » for more info.", "description": "Obtain a list of similarly themed bots, selected based on similarities in their subscriber bases, see [here »](https://core.telegram.org/api/recommend.md) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Similar channels and bots](https://core.telegram.org/api/recommend.md)", "x-tl-method": "bots.getBotRecommendations", "x-tl-id": "2713126933", "x-tl-result": "users.Users", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Similar channels and bots", "https://core.telegram.org/api/recommend.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: users.Users."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The method will return bots related to the passed bot."}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The method will return bots related to the passed bot. |"}, "x-telegram-rpc-errors": ["BOT_INVALID"], "x-browser-schema-id": "2713126933"}}, "/catalog/bots.checkUsername": {"post": {"operationId": "bots.checkUsername", "tags": ["ボット"], "summary": "Check whether a username is available and valid for use when creating a managed bot ».", "description": "Check whether a username is available and valid for use when [creating a managed bot »](https://core.telegram.org/api/bots/managed-bots.md#creating-a-managed-bot).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.checkUsername", "x-tl-id": "3819719777", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_OCCUPIED` — The provided username is already occupied.\n- 400 · `USERNAME_SUFFIX_MISSING` — The required `bot` suffix is missing from the passed username."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Username to check; only letters, digits and underscores are allowed, must end in `bot`, and the full username must be 5–32 characters long"}}, "additionalProperties": false, "required": ["username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `additional` | `true` | いいえ | TL 型 `true` の値。 |\n| `username` | `string` | はい | Username to check; only letters, digits and underscores are allowed, must end in `bot`, and the full username must be 5–32 characters long |"}, "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": "Create a managed bot » owned by the current user and controlled by the specified manager bot.", "description": "Create a [managed bot »](https://core.telegram.org/api/bots/managed-bots.md#creating-a-managed-bot) owned by the current user and controlled by the specified manager bot.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "bots.createBot", "x-tl-id": "3853614891", "x-tl-result": "User", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `User`.\n\n[User](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": "Type TL: User."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_CREATE_LIMIT_EXCEEDED` — The current user already owns the maximum allowed number of owned bots, as specified by [`bots_create_limit_default`&nbsp;&raquo;](https://core.telegram.org/api/config.md#bots-create-limit-default) and [`bots_create_limit_premium`&nbsp;&raquo;](https://core.telegram.org/api/config.md#bots-create-limit-premium); if the current user doesn't have Telegram Premium, upgrading to Premium will allow them to create more bots.\n- 400 · `MANAGER_INVALID` — The specified manager bot is invalid.\n- 400 · `MANAGER_PERMISSION_MISSING` — The specified manager bot does not have the [user](https://core.telegram.org/constructor/user.md).`bot_can_manage_bots` flag set.\n- 400 · `NAME_INVALID` — The specified bot name is invalid.\n- 400 · `USERNAME_INVALID` — The provided username is not valid.\n- 400 · `USERNAME_OCCUPIED` — The provided username is already occupied.\n- 400 · `USERNAME_SUFFIX_MISSING` — The required `bot` suffix is missing from the passed username."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set only if the creation prompt was opened from a [managed bot creation request deep link »](https://core.telegram.org/api/links.md#managed-bot-creation-request-links)"}, "name": {"type": "string", "x-tl-type": "string", "description": "Display name of the bot, 1–64 characters"}, "username": {"type": "string", "x-tl-type": "string", "description": "Username for the bot, as validated by [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": "The manager bot that will control the created bot; must have the [user](https://core.telegram.org/constructor/user.md).`bot_can_manage_bots` flag set"}}, "additionalProperties": false, "required": ["name", "username", "manager_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `via_deeplink` | `true` | いいえ | Set only if the creation prompt was opened from a [managed bot creation request deep link »](https://core.telegram.org/api/links.md#managed-bot-creation-request-links) |\n| `name` | `string` | はい | Display name of the bot, 1–64 characters |\n| `username` | `string` | はい | Username for the bot, as validated by [bots.checkUsername](https://core.telegram.org/method/bots.checkUsername.md) |\n| `manager_id` | `InputUser` | はい | The manager bot that will control the created bot; must have the [user](https://core.telegram.org/constructor/user.md).`bot_can_manage_bots` flag set |"}, "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": "Export the bot token of a managed bot »; can only be called by the manager bot.", "description": "Export the bot token of a [managed bot »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot); can only be called by the manager bot.\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.exportBotToken", "x-tl-id": "3171785195", "x-tl-result": "bots.ExportedBotToken", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "MTProto result · `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 type: bots.ExportedBotToken."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The managed bot to export the token for"}, "revoke": {"type": "boolean", "x-tl-type": "Bool", "description": "If [boolTrue](https://core.telegram.org/constructor/boolTrue.md), revoke the current token and generate a new one"}}, "additionalProperties": false, "required": ["bot", "revoke"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The managed bot to export the token for |\n| `revoke` | `Bool` | はい | If [boolTrue](https://core.telegram.org/constructor/boolTrue.md), revoke the current token and generate a new one |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "3171785195"}}, "/catalog/bots.requestWebViewButton": {"post": {"operationId": "bots.requestWebViewButton", "tags": ["ボット"], "summary": "Bots may use this method to prepare a peer request button for a Mini App, see here » for more info.", "description": "Bots may use this method to prepare a peer request button for a [Mini App](https://core.telegram.org/api/bots/webapps.md), see [here »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps) for more info.\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Bot buttons](https://core.telegram.org/api/bots/buttons.md)", "x-tl-method": "bots.requestWebViewButton", "x-tl-id": "832742238", "x-tl-result": "bots.RequestedButton", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Bot buttons", "https://core.telegram.org/api/bots/buttons.md"]], "responses": {"200": {"description": "MTProto result · `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 type: bots.RequestedButton."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUTTON_INVALID` — The specified button is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The user that will use the prepared button in the Mini App"}, "button": {"type": "object", "x-tl-type": "KeyboardButton", "oneOf": [{"$ref": "#/components/schemas/keyboardButton"}], "description": "The button to prepare, an [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.md) of any [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md)"}}, "additionalProperties": false, "required": ["user_id", "button"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | The user that will use the prepared button in the Mini App |\n| `button` | `KeyboardButton` | はい | The button to prepare, an [inputKeyboardButtonRequestPeer](https://core.telegram.org/constructor/inputKeyboardButtonRequestPeer.md) of any [RequestPeerType](https://core.telegram.org/type/RequestPeerType.md) |"}, "x-telegram-rpc-errors": ["BUTTON_INVALID", "USER_BOT_REQUIRED", "USER_ID_INVALID"], "x-browser-schema-id": "832742238"}}, "/catalog/bots.getRequestedWebViewButton": {"post": {"operationId": "bots.getRequestedWebViewButton", "tags": ["ボット"], "summary": "Fetch the peer request button a bot prepared for a Mini App with bots.requestWebViewButton, invoked when the Mini App emits a `web_app_request_chat` event, see here » for more info.", "description": "Fetch the peer request button a bot prepared for a [Mini App](https://core.telegram.org/api/bots/webapps.md) with [bots.requestWebViewButton](https://core.telegram.org/method/bots.requestWebViewButton.md), invoked when the Mini App emits a [`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat) event, see [here »](https://core.telegram.org/api/bots/buttons.md#requesting-peers-via-mini-apps) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Web events](https://core.telegram.org/api/web-events.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Bot buttons](https://core.telegram.org/api/bots/buttons.md)", "x-tl-method": "bots.getRequestedWebViewButton", "x-tl-id": "3206920179", "x-tl-result": "KeyboardButton", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Web events", "https://core.telegram.org/api/web-events.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Bot buttons", "https://core.telegram.org/api/bots/buttons.md"]], "responses": {"200": {"description": "MTProto result · `KeyboardButton`.\n\n[KeyboardButton](https://core.telegram.org/type/KeyboardButton.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "KeyboardButton", "oneOf": [{"$ref": "#/components/schemas/keyboardButton"}], "description": "TL Type: KeyboardButton."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_ID_INVALID` — The specified bot ID is invalid.\n- 400 · `WEBAPP_REQ_ID_INVALID` — The specified webapp_req_id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The bot that owns the Mini App"}, "webapp_req_id": {"type": "string", "x-tl-type": "string", "description": "The Mini App request ID, taken from the [`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat) event's `req_id`"}}, "additionalProperties": false, "required": ["bot", "webapp_req_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The bot that owns the Mini App |\n| `webapp_req_id` | `string` | はい | The Mini App request ID, taken from the [`web_app_request_chat`](https://core.telegram.org/api/web-events.md#web-app-request-chat) event's `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": "Get the access restriction settings » of a managed bot; can only be called by the manager bot.", "description": "Get the [access restriction settings »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot) of a managed bot; can only be called by the manager bot.\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.getAccessSettings", "x-tl-id": "557339555", "x-tl-result": "bots.AccessSettings", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "MTProto result · `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 type: bots.AccessSettings."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The managed bot whose access settings to retrieve"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | The managed bot whose access settings to retrieve |"}, "x-telegram-rpc-errors": ["BOT_INVALID", "USER_BOT_REQUIRED"], "x-browser-schema-id": "557339555"}}, "/catalog/bots.editAccessSettings": {"post": {"operationId": "bots.editAccessSettings", "tags": ["ボット"], "summary": "Edit the access restriction settings » of a managed bot; can only be called by the manager bot.", "description": "Edit the [access restriction settings »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot) of a managed bot; can only be called by the manager bot.\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Managed bots](https://core.telegram.org/api/bots/managed-bots.md)", "x-tl-method": "bots.editAccessSettings", "x-tl-id": "830553304", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Managed bots", "https://core.telegram.org/api/bots/managed-bots.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOT_INVALID` — This is not a valid bot.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, restricts access to the managed bot to only the owner and the users in `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": "The managed bot whose access settings to edit"}, "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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.1?Vector<InputUser>", "description": "Additional users (max 10, excluding the owner) allowed to access the managed bot when `restricted` is set"}}, "additionalProperties": false, "required": ["bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `restricted` | `true` | いいえ | If set, restricts access to the managed bot to only the owner and the users in `add_users` |\n| `bot` | `InputUser` | はい | The managed bot whose access settings to edit |\n| `add_users` | `Vector<InputUser>` | いいえ | Additional users (max 10, excluding the owner) allowed to access the managed bot when `restricted` is set |"}, "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 result · `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 result · `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 Type: InputUser."}, "username": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}}, "additionalProperties": false, "required": ["bot", "username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | TL Type: InputUser. |\n| `username` | `string` | はい | TL 型 `string` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "889307274"}}, "/catalog/bots.removeUsername": {"post": {"operationId": "bots.removeUsername", "tags": ["ボット"], "summary": "bots.removeUsername", "description": "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 result · `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 Type: InputUser."}, "username": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}}, "additionalProperties": false, "required": ["bot", "username"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | TL Type: InputUser. |\n| `username` | `string` | はい | TL 型 `string` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "3338933373"}}, "/catalog/bots.setBotSettings": {"post": {"operationId": "bots.setBotSettings", "tags": ["ボット"], "summary": "bots.setBotSettings", "description": "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 result · `User`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "User", "oneOf": [{"$ref": "#/components/schemas/userEmpty"}, {"$ref": "#/components/schemas/user"}], "description": "Type TL: User."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"bot": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "TL Type: InputUser.", "x-tl-flag": "flags.0?InputUser"}, "inline_mode": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool", "description": "TL 型 `Bool` の値。"}, "inline_placeholder": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "TL 型 `string` の値。"}, "inline_geo": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool", "description": "TL 型 `Bool` の値。"}, "inline_feedback": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int", "description": "TL 型 `int` の値。"}, "nochats": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.5?Bool", "description": "TL 型 `Bool` の値。"}, "chat_history": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.6?Bool", "description": "TL 型 `Bool` の値。"}, "business": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.7?Bool", "description": "TL 型 `Bool` の値。"}, "can_manage_bots": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.8?Bool", "description": "TL 型 `Bool` の値。"}, "guestchat": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.9?Bool", "description": "TL 型 `Bool` の値。"}, "guard": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.10?Bool", "description": "TL 型 `Bool` の値。"}, "forum_view": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.11?Bool", "description": "TL 型 `Bool` の値。"}, "forum_can_manage_topics": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.12?Bool", "description": "TL 型 `Bool` の値。"}, "forum_sidebar": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.13?Bool", "description": "TL 型 `Bool` の値。"}, "bot_to_bot_communication_mode": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.14?Bool", "description": "TL 型 `Bool` の値。"}, "callback_mode": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.15?string", "description": "TL 型 `string` の値。"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | いいえ | TL Type: InputUser. |\n| `inline_mode` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `inline_placeholder` | `string` | いいえ | TL 型 `string` の値。 |\n| `inline_geo` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `inline_feedback` | `int` | いいえ | TL 型 `int` の値。 |\n| `nochats` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `chat_history` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `business` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `can_manage_bots` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `guestchat` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `guard` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `forum_view` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `forum_can_manage_topics` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `forum_sidebar` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `bot_to_bot_communication_mode` | `Bool` | いいえ | TL 型 `Bool` の値。 |\n| `callback_mode` | `string` | いいえ | TL 型 `string` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "2093007050"}}, "/catalog/bots.getProfileWidgetQueryAnswer": {"post": {"operationId": "bots.getProfileWidgetQueryAnswer", "tags": ["ボット"], "summary": "bots.getProfileWidgetQueryAnswer", "description": "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 Type: InputUser."}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "oneOf": [{"$ref": "#/components/schemas/widgetQueryTypeData"}, {"$ref": "#/components/schemas/widgetQueryTypeSignData"}, {"$ref": "#/components/schemas/widgetQueryTypeSentTransaction"}], "description": "Тип TL: WidgetQueryType."}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL 型 `bytes` の値。"}}, "additionalProperties": false, "required": ["bot", "query_type", "data"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | TL Type: InputUser. |\n| `query_type` | `WidgetQueryType` | はい | Тип TL: WidgetQueryType. |\n| `data` | `bytes` | はい | TL 型 `bytes` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "2239004788"}}, "/catalog/bots.editProfileWidgetData": {"post": {"operationId": "bots.editProfileWidgetData", "tags": ["ボット"], "summary": "bots.editProfileWidgetData", "description": "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 result · `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 result · `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 Type: InputUser."}, "chat_data": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}}, "additionalProperties": false, "required": ["user_id", "chat_data"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | TL Type: InputUser. |\n| `chat_data` | `string` | はい | TL 型 `string` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "4240581465"}}, "/catalog/bots.getProfileWidgetPublicData": {"post": {"operationId": "bots.getProfileWidgetPublicData", "tags": ["ボット"], "summary": "bots.getProfileWidgetPublicData", "description": "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 Type: InputUser."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["bot", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `bot` | `InputUser` | はい | TL Type: InputUser. |\n| `hash` | `long` | はい | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "1923143539"}}, "/catalog/payments.getPaymentForm": {"post": {"operationId": "payments.getPaymentForm", "tags": ["支払い"], "summary": "Get a payment form", "description": "Get a payment form\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)", "x-tl-method": "payments.getPaymentForm", "x-tl-id": "924093883", "x-tl-result": "payments.PaymentForm", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.PaymentForm."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `API_GIFT_RESTRICTED_UPDATE_APP` — Please update the app to access the gift API.\n- 400 · `BOOST_PEER_INVALID` — The specified `boost_peer` is invalid.\n- 403 · `BOT_ACCESS_FORBIDDEN` — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.\n- 400 · `BOT_INVOICE_INVALID` — The specified invoice is invalid.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `GIFT_MONTHS_INVALID` — The value passed in invoice.inputInvoicePremiumGiftStars.months is invalid.\n- 400 · `GIFT_STARS_INVALID` — The specified amount of stars is invalid.\n- 400 · `INVOICE_INVALID` — The specified invoice is invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `MESSAGE_TOO_LONG` — The provided message is too long.\n- 400 · `MONTH_INVALID` — The number of months specified in inputInvoicePremiumGiftStars.months is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `NO_PAYMENT_NEEDED` — The upgrade/transfer of the specified gift was already paid for or is free.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PREMIUM_PURPOSE_INVALID` — The specified InputStorePaymentPurpose is invalid.\n- 400 · `SLUG_INVALID` — The specified invoice slug is invalid.\n- 400 · `STARGIFT_ALREADY_CONVERTED` — The specified star gift was already converted to Stars.\n- 400 · `STARGIFT_ALREADY_REFUNDED` — The specified star gift was already refunded.\n- 400 · `STARGIFT_ALREADY_UPGRADED` — The specified gift was already upgraded to a collectible gift.\n- 406 · `STARGIFT_EXPORT_IN_PROGRESS` — A gift export is in progress, a detailed and localized description for the error will be emitted via an [updateServiceNotification as specified here&nbsp;&raquo;](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid.\n- 400 · `STARGIFT_MESSAGE_INVALID` — The specified inputInvoiceStarGift.message is invalid.\n- 400 · `STARGIFT_NOT_FOUND` — The specified gift was not found.\n- 400 · `STARGIFT_NOT_OWNER` — You're not the owner of the gift you trying to transfer.\n- 400 · `STARGIFT_NOT_UNIQUE` — You can't transfer a non-collectible gift.\n- 400 · `STARGIFT_OWNER_INVALID` — You cannot transfer or sell a gift owned by another user.\n- 400 · `STARGIFT_PEER_INVALID` — The specified inputSavedStarGiftChat.peer is invalid.\n- 400 · `STARGIFT_RESELL_CURRENCY_NOT_ALLOWED` — You can't buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).\n- 400 · `STARGIFT_RESELL_TOO_EARLY_%d` — You will be able to resell this gift in %d seconds.\n- 400 · `STARGIFT_SLUG_INVALID` — The specified gift slug is invalid.\n- 400 · `STARGIFT_TRANSFER_TOO_EARLY_%d` — You cannot transfer this gift yet, wait %d seconds.\n- 400 · `STARGIFT_UPGRADE_UNAVAILABLE` — A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`can_upgrade` flag is set.\n- 406 · `STARS_FORM_AMOUNT_MISMATCH` — The form amount has changed, please fetch the new form using [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm.md) and restart the process.\n- 400 · `TO_ID_INVALID` — The specified `to_id` of the passed inputInvoiceStarGiftResale or inputInvoiceStarGiftTransfer is invalid.\n- 400 · `UNTIL_DATE_INVALID` — Invalid until date provided.\n- 403 · `USER_DISALLOWED_STARGIFTS` — The recipient user has configured restrictions on which categories of star gifts they're willing to accept (unique, limited, or unlimited): the sender attempted to get a payment form for a gift that falls into a category the recipient has blocked."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Theme parameters »](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` | いいえ | [Theme parameters »](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": "Get payment receipt", "description": "Get payment receipt\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: payments.PaymentReceipt."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer where the payment receipt was sent"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID of receipt"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer where the payment receipt was sent |\n| `msg_id` | `int` | はい | Message ID of receipt |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID"], "x-browser-schema-id": "611897804"}}, "/catalog/payments.validateRequestedInfo": {"post": {"operationId": "payments.validateRequestedInfo", "tags": ["支払い"], "summary": "Submit requested order information for validation", "description": "Submit requested order information for validation\n\n**Who can call this method** · Telegram users only.", "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 Result · `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 type: payments.ValidatedRequestedInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Save order information to re-use it for future orders"}, "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": "Requested order information"}}, "additionalProperties": false, "required": ["invoice", "info"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `save` | `true` | いいえ | Save order information to re-use it for future orders |\n| `invoice` | `InputInvoice` | はい | 請求書 |\n| `info` | `PaymentRequestedInfo` | はい | Requested order information |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "3066622251"}}, "/catalog/payments.sendPaymentForm": {"post": {"operationId": "payments.sendPaymentForm", "tags": ["支払い"], "summary": "Send compiled payment form", "description": "Send compiled payment form\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: payments.PaymentResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FORM_UNSUPPORTED` — Please update your client.\n- 400 · `INVOICE_INVALID` — The specified invoice is invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PAYMENT_CREDENTIALS_INVALID` — The specified payment credentials are invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TMP_PASSWORD_INVALID` — The passed tmp_password is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "フォーム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": "請求書"}, "requested_info_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "ID of saved and validated [order info](https://core.telegram.org/constructor/payments.validatedRequestedInfo.md)"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Chosen shipping option 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": "Tip, in the smallest units of the currency (integer, not float/double). For example, for a price of `US$ 1.45` pass `amount = 145`. See the exp parameter in [currencies.json](https://core.telegram.org/bots/payments/currencies.json), it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}}, "additionalProperties": false, "required": ["form_id", "invoice", "credentials"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `form_id` | `long` | はい | フォームID |\n| `invoice` | `InputInvoice` | はい | 請求書 |\n| `requested_info_id` | `string` | いいえ | ID of saved and validated [order info](https://core.telegram.org/constructor/payments.validatedRequestedInfo.md) |\n| `shipping_option_id` | `string` | いいえ | Chosen shipping option ID |\n| `credentials` | `InputPaymentCredentials` | はい | 支払い認証情報 |\n| `tip_amount` | `long` | いいえ | Tip, in the smallest units of the currency (integer, not float/double). For example, for a price of `US$ 1.45` pass `amount = 145`. See the exp parameter in [currencies.json](https://core.telegram.org/bots/payments/currencies.json), it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). |"}, "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": "Get saved payment information", "description": "Get saved payment information", "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 result · `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": "Type TL: payments.SavedInfo."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/payments.getSavedInfo"}, "x-browser-schema-id": "578650699"}}, "/catalog/payments.clearSavedInfo": {"post": {"operationId": "payments.clearSavedInfo", "tags": ["支払い"], "summary": "Clear saved payment information", "description": "Clear saved payment information", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Remove saved payment credentials"}, "info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Clear the last order settings saved by the user"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `credentials` | `true` | いいえ | Remove saved payment credentials |\n| `info` | `true` | いいえ | Clear the last order settings saved by the user |"}, "x-browser-schema-id": "3627905217"}}, "/catalog/payments.getBankCardData": {"post": {"operationId": "payments.getBankCardData", "tags": ["支払い"], "summary": "Get info about a credit card", "description": "Get info about a credit card\n\n**Who can call this method** · Telegram users only.", "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 Result · `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 type: payments.BankCardData."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BANK_CARD_NUMBER_INVALID` — The specified card number is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Credit card number"}}, "additionalProperties": false, "required": ["number"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `number` | `string` | はい | Credit card number |"}, "x-telegram-rpc-errors": ["BANK_CARD_NUMBER_INVALID"], "x-browser-schema-id": "779736953"}}, "/catalog/payments.exportInvoice": {"post": {"operationId": "payments.exportInvoice", "tags": ["支払い"], "summary": "Generate an invoice deep link", "description": "Generate an [invoice deep link](https://core.telegram.org/api/links.md#invoice-links)\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.exportInvoice", "x-tl-id": "261206117", "x-tl-result": "payments.ExportedInvoice", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.ExportedInvoice."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `CURRENCY_TOTAL_AMOUNT_INVALID` — The total amount of all prices is invalid.\n- 400 · `INVOICE_PAYLOAD_INVALID` — The specified invoice payload is invalid.\n- 400 · `MEDIA_INVALID` — Media invalid.\n- 400 · `PAYMENT_PROVIDER_INVALID` — The specified payment provider is invalid.\n- 400 · `STARS_INVOICE_INVALID` — The specified Telegram Star invoice is invalid.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `WEBDOCUMENT_MIME_INVALID` — Invalid webdocument mime type provided.\n- 400 · `WEBDOCUMENT_URL_EMPTY` — The passed web document URL is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Informs server about a purchase made through the App Store: for official applications only.", "description": "Informs server about a purchase made through the App Store: for official applications only.\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INPUT_PURPOSE_INVALID` — The specified payment purpose is invalid.\n- 400 · `RECEIPT_EMPTY` — The specified receipt is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Payment purpose"}}, "additionalProperties": false, "required": ["receipt", "purpose"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `receipt` | `bytes` | はい | 領収書 |\n| `purpose` | `InputStorePaymentPurpose` | はい | Payment purpose |"}, "x-telegram-rpc-errors": ["INPUT_PURPOSE_INVALID", "RECEIPT_EMPTY"], "x-browser-schema-id": "2163045501"}}, "/catalog/payments.assignPlayMarketTransaction": {"post": {"operationId": "payments.assignPlayMarketTransaction", "tags": ["支払い"], "summary": "Informs server about a purchase made through the Play Store: for official applications only.", "description": "Informs server about a purchase made through the Play Store: for official applications only.\n\n**Who can call this method** · Telegram users only.", "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 result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `DATA_JSON_INVALID` — The provided JSON data is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Payment purpose"}}, "additionalProperties": false, "required": ["receipt", "purpose"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `receipt` | `DataJSON` | はい | 領収書 |\n| `purpose` | `InputStorePaymentPurpose` | はい | Payment purpose |"}, "x-telegram-rpc-errors": ["DATA_JSON_INVALID"], "x-browser-schema-id": "3757920467"}}, "/catalog/payments.getPremiumGiftCodeOptions": {"post": {"operationId": "payments.getPremiumGiftCodeOptions", "tags": ["支払い"], "summary": "Obtain a list of Telegram Premium giveaway/gift code » options.", "description": "Obtain a list of Telegram Premium [giveaway/gift code »](https://core.telegram.org/api/giveaways.md) options.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.getPremiumGiftCodeOptions", "x-tl-id": "660060756", "x-tl-result": "Vector<PremiumGiftCodeOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "MTProto result · `Vector<PremiumGiftCodeOption>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[PremiumGiftCodeOption](https://core.telegram.org/type/PremiumGiftCodeOption.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "PremiumGiftCodeOption", "oneOf": [{"$ref": "#/components/schemas/premiumGiftCodeOption"}], "description": "TL Type: PremiumGiftCodeOption."}, "x-tl-type": "Vector<PremiumGiftCodeOption>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel that will start the giveaway", "x-tl-flag": "flags.0?InputPeer"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `boost_peer` | `InputPeer` | いいえ | The channel that will start the giveaway |"}, "x-browser-schema-id": "660060756"}}, "/catalog/payments.checkGiftCode": {"post": {"operationId": "payments.checkGiftCode", "tags": ["支払い"], "summary": "Obtain information about a Telegram Premium giftcode »", "description": "Obtain information about a [Telegram Premium giftcode »](https://core.telegram.org/api/giveaways.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.checkGiftCode", "x-tl-id": "2387719361", "x-tl-result": "payments.CheckedGiftCode", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.CheckedGiftCode."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GIFT_SLUG_EXPIRED` — The specified gift slug has expired.\n- 400 · `GIFT_SLUG_INVALID` — The specified slug is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The giftcode to check"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | The giftcode to check |"}, "x-telegram-rpc-errors": ["GIFT_SLUG_EXPIRED", "GIFT_SLUG_INVALID"], "x-browser-schema-id": "2387719361"}}, "/catalog/payments.applyGiftCode": {"post": {"operationId": "payments.applyGiftCode", "tags": ["支払い"], "summary": "Apply a Telegram Premium giftcode »", "description": "Apply a [Telegram Premium giftcode »](https://core.telegram.org/api/giveaways.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.applyGiftCode", "x-tl-id": "4142032980", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GIFT_SLUG_EXPIRED` — The specified gift slug has expired.\n- 400 · `GIFT_SLUG_INVALID` — The specified slug is invalid.\n- 420 · `PREMIUM_SUB_ACTIVE_UNTIL_%d` — You already have a premium subscription active until unixtime %d ."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The code to apply"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | The code to apply |"}, "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": "Obtain information about a Telegram Premium giveaway ».", "description": "Obtain information about a [Telegram Premium giveaway »](https://core.telegram.org/api/giveaways.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.getGiveawayInfo", "x-tl-id": "4095972389", "x-tl-result": "payments.GiveawayInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.GiveawayInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer where the giveaway was posted."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Message ID of the [messageActionGiveawayLaunch](https://core.telegram.org/constructor/messageActionGiveawayLaunch.md) service message"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer where the giveaway was posted. |\n| `msg_id` | `int` | はい | Message ID of the [messageActionGiveawayLaunch](https://core.telegram.org/constructor/messageActionGiveawayLaunch.md) service message |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4095972389"}}, "/catalog/payments.launchPrepaidGiveaway": {"post": {"operationId": "payments.launchPrepaidGiveaway", "tags": ["支払い"], "summary": "Launch a prepaid giveaway ».", "description": "Launch a [prepaid giveaway »](https://core.telegram.org/api/giveaways.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.launchPrepaidGiveaway", "x-tl-id": "1609928480", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer where to launch the giveaway."}, "giveaway_id": {"type": "string", "pattern": "^-?\\d+$", "description": "The prepaid giveaway 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": "Giveway parameters"}}, "additionalProperties": false, "required": ["peer", "giveaway_id", "purpose"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer where to launch the giveaway. |\n| `giveaway_id` | `long` | はい | The prepaid giveaway ID. |\n| `purpose` | `InputStorePaymentPurpose` | はい | Giveway parameters |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1609928480"}}, "/catalog/payments.getStarsTopupOptions": {"post": {"operationId": "payments.getStarsTopupOptions", "tags": ["支払い"], "summary": "Obtain a list of Telegram Stars topup options » as starsTopupOption constructors.", "description": "Obtain a list of [Telegram Stars topup options »](https://core.telegram.org/api/stars.md#buying-or-gifting-stars) as [starsTopupOption](https://core.telegram.org/constructor/starsTopupOption.md) constructors.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsTopupOptions", "x-tl-id": "3222194131", "x-tl-result": "Vector<StarsTopupOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "MTProto Result · `Vector<StarsTopupOption>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[StarsTopupOption](https://core.telegram.org/type/StarsTopupOption.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsTopupOption", "oneOf": [{"$ref": "#/components/schemas/starsTopupOption"}], "description": "TL Type: StarsTopupOption."}, "x-tl-type": "Vector<StarsTopupOption>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/payments.getStarsTopupOptions"}, "x-browser-schema-id": "3222194131"}}, "/catalog/payments.getStarsStatus": {"post": {"operationId": "payments.getStarsStatus", "tags": ["支払い"], "summary": "Get the current Telegram Stars balance of the current account (with peer=inputPeerSelf), or the stars balance of the bot or channel specified in `peer`.", "description": "Get the current [Telegram Stars balance](https://core.telegram.org/api/stars.md) of the current account (with peer=[inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)), or the stars balance of the bot or channel specified in `peer`.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.getStarsStatus", "x-tl-id": "1319744447", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarsStatus."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `BOT_ACCESS_FORBIDDEN` — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, returns the channel/ad revenue balance in nanograms."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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 of which to get the balance."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `ton` | `true` | いいえ | If set, returns the channel/ad revenue balance in nanograms. |\n| `peer` | `InputPeer` | はい | Peer of which to get the balance. |"}, "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": "Fetch Telegram Stars transactions.", "description": "Fetch [Telegram Stars transactions](https://core.telegram.org/api/stars.md#balance-and-transaction-history).\n\nThe `inbound` and `outbound` flags are mutually exclusive: if none of the two are set, both incoming and outgoing transactions are fetched.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "payments.getStarsTransactions", "x-tl-id": "1775912279", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarsStatus."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SUBSCRIPTION_ID_INVALID` — The specified subscription_id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, fetches only incoming transactions."}, "outbound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "If set, fetches only outgoing transactions."}, "ascending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Return transactions in ascending order by date (instead of descending order by date)."}, "ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "If set, returns the channel/ad revenue transactions in nanograms, instead."}, "subscription_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "If set, fetches only transactions for the specified [Telegram Star subscription »](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": "Fetch the transaction history of the peer ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) or a bot we own)."}, "offset": {"type": "string", "x-tl-type": "string", "description": "[Offset for pagination, obtained from the returned `next_offset`, initially an empty string »](https://core.telegram.org/api/offsets.md)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `inbound` | `true` | いいえ | If set, fetches only incoming transactions. |\n| `outbound` | `true` | いいえ | If set, fetches only outgoing transactions. |\n| `ascending` | `true` | いいえ | Return transactions in ascending order by date (instead of descending order by date). |\n| `ton` | `true` | いいえ | If set, returns the channel/ad revenue transactions in nanograms, instead. |\n| `subscription_id` | `string` | いいえ | If set, fetches only transactions for the specified [Telegram Star subscription »](https://core.telegram.org/api/stars.md#star-subscriptions). |\n| `peer` | `InputPeer` | はい | Fetch the transaction history of the peer ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) or a bot we own). |\n| `offset` | `string` | はい | [Offset for pagination, obtained from the returned `next_offset`, initially an empty string »](https://core.telegram.org/api/offsets.md). |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Make a payment using Telegram Stars, see here » for more info.", "description": "Make a payment using [Telegram Stars, see here »](https://core.telegram.org/api/stars.md#using-stars) for more info.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)\n- [Error handling ](https://core.telegram.org/api/errors.md)", "x-tl-method": "payments.sendStarsForm", "x-tl-id": "2040056084", "x-tl-result": "payments.PaymentResult", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"], ["Error handling ", "https://core.telegram.org/api/errors.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.PaymentResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 406 · `API_GIFT_RESTRICTED_UPDATE_APP` — Please update the app to access the gift API.\n- 400 · `BALANCE_TOO_LOW` — The transaction cannot be completed because the current [Telegram Stars balance](https://core.telegram.org/api/stars.md) is too low.\n- 403 · `BOT_ACCESS_FORBIDDEN` — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.\n- 400 · `BOT_INVOICE_INVALID` — The specified invoice is invalid.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `FORM_EXPIRED` — The form was generated more than 10 minutes ago and has expired, please re-generate it using [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm.md) and pass the new `form_id`.\n- 400 · `FORM_ID_EMPTY` — The specified form ID is empty.\n- 400 · `FORM_SUBMIT_DUPLICATE` — The same payment form was already submitted.  .\n- 400 · `FORM_UNSUPPORTED` — Please update your client.\n- 400 · `GIFT_STARS_INVALID` — The specified amount of stars is invalid.\n- 400 · `MEDIA_ALREADY_PAID` — You already paid for the specified media.\n- 400 · `MONTH_INVALID` — The number of months specified in inputInvoicePremiumGiftStars.months is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 406 · `PRECHECKOUT_FAILED` — Precheckout failed, a detailed and localized description for the error will be emitted via an [updateServiceNotification as specified here&nbsp;&raquo;](https://core.telegram.org/api/errors.md#406-not-acceptable).\n- 400 · `PURPOSE_INVALID` — The specified payment purpose is invalid.\n- 400 · `STARGIFT_ALREADY_UPGRADED` — The specified gift was already upgraded to a collectible gift.\n- 400 · `STARGIFT_NOT_FOUND` — The specified gift was not found.\n- 400 · `STARGIFT_OWNER_INVALID` — You cannot transfer or sell a gift owned by another user.\n- 400 · `STARGIFT_SLUG_INVALID` — The specified gift slug is invalid.\n- 400 · `STARGIFT_USAGE_LIMITED` — The gift is sold out.\n- 400 · `STARGIFT_USER_USAGE_LIMITED` — You've reached the starGift.limited_per_user limit, you can't buy any more gifts of this type.\n- 406 · `STARS_FORM_AMOUNT_MISMATCH` — The form amount has changed, please fetch the new form using [payments.getPaymentForm](https://core.telegram.org/method/payments.getPaymentForm.md) and restart the process.\n- 400 · `TO_ID_INVALID` — The specified `to_id` of the passed inputInvoiceStarGiftResale or inputInvoiceStarGiftTransfer is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Payment form 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` | はい | Payment form 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": "Refund a Telegram Stars transaction, see here » for more info.", "description": "Refund a [Telegram Stars](https://core.telegram.org/api/stars.md) transaction, see [here »](https://core.telegram.org/api/payments.md#6-refunds) for more info.\n\n**Who can call this method** · Telegram bots only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Payments API](https://core.telegram.org/api/payments.md)", "x-tl-method": "payments.refundStarsCharge", "x-tl-id": "632196938", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "bot", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Payments API", "https://core.telegram.org/api/payments.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHARGE_ALREADY_REFUNDED` — The transaction was already refunded.\n- 400 · `CHARGE_ID_EMPTY` — The specified charge_id is empty.\n- 400 · `USER_BOT_REQUIRED` — This method can only be called by a bot.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "User to refund."}, "charge_id": {"type": "string", "x-tl-type": "string", "description": "トランザクションID。"}}, "additionalProperties": false, "required": ["user_id", "charge_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | はい | User to refund. |\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": "Get Telegram Star revenue statistics ».", "description": "Get [Telegram Star revenue statistics »](https://core.telegram.org/api/stars.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsRevenueStats", "x-tl-id": "3642751702", "x-tl-result": "payments.StarsRevenueStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarsRevenueStats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to enable dark theme for graph colors"}, "ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "If set, fetches channel/bot ad revenue statistics in 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": "Get statistics for the specified bot, channel or ourselves ([inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md))."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dark` | `true` | いいえ | Whether to enable dark theme for graph colors |\n| `ton` | `true` | いいえ | If set, fetches channel/bot ad revenue statistics in TON. |\n| `peer` | `InputPeer` | はい | Get statistics for the specified bot, channel or ourselves ([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": "Withdraw funds from a channel or bot's star balance ».", "description": "Withdraw funds from a channel or bot's [star balance »](https://core.telegram.org/api/stars.md#withdrawing-revenue).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsRevenueWithdrawalUrl", "x-tl-id": "607378578", "x-tl-result": "payments.StarsRevenueWithdrawalUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarsRevenueWithdrawalUrl."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid.\n- 400 · `PASSWORD_MISSING` — You must [enable 2FA](https://core.telegram.org/api/srp.md) before executing this operation.\n- 400 · `PASSWORD_TOO_FRESH_%d` — The password was modified less than 24 hours ago, try again in %d seconds.\n- 400 · `SESSION_TOO_FRESH_%d` — This session was created less than 24 hours ago, try again in %d seconds."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, withdraws channel/ad revenue in 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": "Channel or bot from which to withdraw funds."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "The amount of stars or nanograms to withdraw.", "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 password, see [here »](https://core.telegram.org/api/srp.md#using-the-2fa-password) for more info."}}, "additionalProperties": false, "required": ["peer", "password"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `ton` | `true` | いいえ | If set, withdraws channel/ad revenue in TON. |\n| `peer` | `InputPeer` | はい | Channel or bot from which to withdraw funds. |\n| `amount` | `long` | いいえ | The amount of stars or nanograms to withdraw. |\n| `password` | `InputCheckPasswordSRP` | はい | 2FA password, see [here »](https://core.telegram.org/api/srp.md#using-the-2fa-password) for more info. |"}, "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": "Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in `peer`, paid using the Telegram Stars owned by the specified `peer`, see here » for more info.", "description": "Returns a URL for a Telegram Ad platform account that can be used to set up advertisements for channel/bot in `peer`, paid using the Telegram Stars owned by the specified `peer`, see [here »](https://core.telegram.org/api/stars.md#paying-for-ads) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsRevenueAdsAccountUrl", "x-tl-id": "3520589765", "x-tl-result": "payments.StarsRevenueAdsAccountUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarsRevenueAdsAccountUrl."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel or bot that owns the stars."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Channel or bot that owns the stars. |"}, "x-telegram-rpc-errors": ["CHAT_WRITE_FORBIDDEN", "PEER_ID_INVALID"], "x-browser-schema-id": "3520589765"}}, "/catalog/payments.getStarsTransactionsByID": {"post": {"operationId": "payments.getStarsTransactionsByID", "tags": ["支払い"], "summary": "Obtain info about Telegram Star transactions » using specific transaction IDs.", "description": "Obtain info about [Telegram Star transactions »](https://core.telegram.org/api/stars.md#balance-and-transaction-history) using specific transaction IDs.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)", "x-tl-method": "payments.getStarsTransactionsByID", "x-tl-id": "768218808", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarsStatus."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `TRANSACTION_ID_INVALID` — The specified transaction ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, returns channel/bot ad revenue transactions in nanograms."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Channel or bot."}, "id": {"type": "array", "items": {"type": "object", "x-tl-type": "InputStarsTransaction", "oneOf": [{"$ref": "#/components/schemas/inputStarsTransaction"}], "description": "TL Type: InputStarsTransaction."}, "x-tl-type": "Vector<InputStarsTransaction>", "description": "Transaction IDs."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `ton` | `true` | いいえ | If set, returns channel/bot ad revenue transactions in nanograms. |\n| `peer` | `InputPeer` | はい | Channel or bot. |\n| `id` | `Vector<InputStarsTransaction>` | はい | Transaction IDs. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "TRANSACTION_ID_INVALID"], "x-browser-schema-id": "768218808"}}, "/catalog/payments.getStarsGiftOptions": {"post": {"operationId": "payments.getStarsGiftOptions", "tags": ["支払い"], "summary": "Obtain a list of Telegram Stars gift options » as starsGiftOption constructors.", "description": "Obtain a list of [Telegram Stars gift options »](https://core.telegram.org/api/stars.md#buying-or-gifting-stars) as [starsGiftOption](https://core.telegram.org/constructor/starsGiftOption.md) constructors.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "payments.getStarsGiftOptions", "x-tl-id": "3553192904", "x-tl-result": "Vector<StarsGiftOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto Result · `Vector<StarsGiftOption>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[StarsGiftOption](https://core.telegram.org/type/StarsGiftOption.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsGiftOption", "oneOf": [{"$ref": "#/components/schemas/starsGiftOption"}], "description": "TL Type: StarsGiftOption."}, "x-tl-type": "Vector<StarsGiftOption>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `USER_GIFT_UNAVAILABLE` — Gifts are not available in the current region ([stars_gifts_enabled](https://core.telegram.org/api/config.md#stars-gifts-enabled) is equal to false).\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Receiver of the gift (optional).", "x-tl-flag": "flags.0?InputUser"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_id` | `InputUser` | いいえ | Receiver of the gift (optional). |"}, "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": "Obtain a list of active, expired or cancelled Telegram Star subscriptions ».", "description": "Obtain a list of active, expired or cancelled [Telegram Star subscriptions »](https://core.telegram.org/api/invites.md#paid-invite-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "payments.getStarsSubscriptions", "x-tl-id": "52761285", "x-tl-result": "payments.StarsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarsStatus."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to return only subscriptions expired due to an excessively low Telegram Star balance."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Always pass [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for pagination, taken from [payments.starsStatus](https://core.telegram.org/constructor/payments.starsStatus.md).`subscriptions_next_offset`."}}, "additionalProperties": false, "required": ["peer", "offset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `missing_balance` | `true` | いいえ | Whether to return only subscriptions expired due to an excessively low Telegram Star balance. |\n| `peer` | `InputPeer` | はい | Always pass [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md). |\n| `offset` | `string` | はい | Offset for pagination, taken from [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": "Activate or deactivate a Telegram Star subscription ».", "description": "Activate or deactivate a [Telegram Star subscription »](https://core.telegram.org/api/invites.md#paid-invite-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "payments.changeStarsSubscription", "x-tl-id": "3346466936", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Always pass [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)."}, "subscription_id": {"type": "string", "x-tl-type": "string", "description": "ID of the subscription."}, "canceled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Whether to cancel or reactivate the subscription."}}, "additionalProperties": false, "required": ["peer", "subscription_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Always pass [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md). |\n| `subscription_id` | `string` | はい | ID of the subscription. |\n| `canceled` | `Bool` | いいえ | Whether to cancel or reactivate the subscription. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3346466936"}}, "/catalog/payments.fulfillStarsSubscription": {"post": {"operationId": "payments.fulfillStarsSubscription", "tags": ["支払い"], "summary": "Re-join a private channel associated to an active Telegram Star subscription ».", "description": "Re-join a private channel associated to an active [Telegram Star subscription »](https://core.telegram.org/api/invites.md#paid-invite-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Invite links](https://core.telegram.org/api/invites.md)", "x-tl-method": "payments.fulfillStarsSubscription", "x-tl-id": "3428576179", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Invite links", "https://core.telegram.org/api/invites.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Always pass [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md)."}, "subscription_id": {"type": "string", "x-tl-type": "string", "description": "ID of the subscription."}}, "additionalProperties": false, "required": ["peer", "subscription_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Always pass [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md). |\n| `subscription_id` | `string` | はい | ID of the subscription. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3428576179"}}, "/catalog/payments.getStarsGiveawayOptions": {"post": {"operationId": "payments.getStarsGiveawayOptions", "tags": ["支払い"], "summary": "Fetch a list of star giveaway options ».", "description": "Fetch a list of [star giveaway options »](https://core.telegram.org/api/giveaways.md#star-giveaways).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)", "x-tl-method": "payments.getStarsGiveawayOptions", "x-tl-id": "3172924734", "x-tl-result": "Vector<StarsGiveawayOption>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"]], "responses": {"200": {"description": "MTProto result · `Vector<StarsGiveawayOption>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[StarsGiveawayOption](https://core.telegram.org/type/StarsGiveawayOption.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsGiveawayOption", "oneOf": [{"$ref": "#/components/schemas/starsGiveawayOption"}], "description": "TL Type: StarsGiveawayOption."}, "x-tl-type": "Vector<StarsGiveawayOption>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/payments.getStarsGiveawayOptions"}, "x-browser-schema-id": "3172924734"}}, "/catalog/payments.getStarGifts": {"post": {"operationId": "payments.getStarGifts", "tags": ["支払い"], "summary": "Get a list of available gifts, see here » for more info.", "description": "Get a list of available [gifts, see here »](https://core.telegram.org/api/gifts.md) for more info.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGifts", "x-tl-id": "3293984144", "x-tl-result": "payments.StarGifts", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarGifts."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "[Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). The hash may be generated locally by using the `id`s of the returned or stored sticker [starGift](https://core.telegram.org/constructor/starGift.md)s."}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `int` | はい | [Hash used for caching, for more info click here](https://core.telegram.org/api/offsets.md#hash-generation). The hash may be generated locally by using the `id`s of the returned or stored sticker [starGift](https://core.telegram.org/constructor/starGift.md)s. |"}, "x-browser-schema-id": "3293984144"}}, "/catalog/payments.saveStarGift": {"post": {"operationId": "payments.saveStarGift", "tags": ["支払い"], "summary": "Display or remove a received or hosted gift » from our profile.", "description": "Display or remove a [received or hosted gift »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) from our profile.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.saveStarGift", "x-tl-id": "707422588", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `SAVED_ID_EMPTY` — The passed inputSavedStarGiftChat.saved_id is empty.\n- 400 · `STARGIFT_OBJECT_INVALID` — The specified star gift object is invalid.\n- 400 · `STARGIFT_OWNER_INVALID` — You cannot transfer or sell a gift owned by another user.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, hides the gift from our profile."}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "oneOf": [{"$ref": "#/components/schemas/inputSavedStarGiftUser"}, {"$ref": "#/components/schemas/inputSavedStarGiftChat"}, {"$ref": "#/components/schemas/inputSavedStarGiftSlug"}], "description": "The gift to display or remove. A [hosted collectible gift »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) may be used by its host or owner."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `unsave` | `true` | いいえ | If set, hides the gift from our profile. |\n| `stargift` | `InputSavedStarGift` | はい | The gift to display or remove. A [hosted collectible gift »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) may be used by its host or owner. |"}, "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": "Convert a received gift » into Telegram Stars: this will permanently destroy the gift, converting it into starGift.`convert_stars` Telegram Stars, added to the user's balance.", "description": "Convert a [received gift »](https://core.telegram.org/api/gifts.md) into Telegram Stars: this will permanently destroy the gift, converting it into [starGift](https://core.telegram.org/constructor/starGift.md).`convert_stars` [Telegram Stars](https://core.telegram.org/api/stars.md), added to the user's balance.\n\nNote that [starGift](https://core.telegram.org/constructor/starGift.md).`convert_stars` will be less than the buying price ([starGift](https://core.telegram.org/constructor/starGift.md).`stars`) of the gift if it was originally bought using Telegram Stars bought a long time ago.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.convertStarGift", "x-tl-id": "1958676331", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `SAVED_ID_EMPTY` — The passed inputSavedStarGiftChat.saved_id is empty.\n- 400 · `STARGIFT_PEER_INVALID` — The specified inputSavedStarGiftChat.peer is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The gift to convert."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | はい | The gift to convert. |"}, "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": "Cancel a bot subscription", "description": "Cancel a [bot subscription](https://core.telegram.org/api/subscriptions.md#bot-subscriptions)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Star subscriptions](https://core.telegram.org/api/subscriptions.md)", "x-tl-method": "payments.botCancelStarsSubscription", "x-tl-id": "1845102114", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Star subscriptions", "https://core.telegram.org/api/subscriptions.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHARGE_ID_INVALID` — The specified charge_id is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If **not** set, disables autorenewal of the subscriptions, and prevents the user from reactivating the subscription once the current period expires: a subscription cancelled by the bot will have the [starsSubscription](https://core.telegram.org/constructor/starsSubscription.md).`bot_canceled` flag set.   The bot can can partially undo this operation by setting this flag: this will allow the user to reactivate the subscription."}, "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": "The ID of the user whose subscription should be (un)cancelled"}, "charge_id": {"type": "string", "x-tl-type": "string", "description": "The `provider_charge_id` from the [messageActionPaymentSentMe](https://core.telegram.org/constructor/messageActionPaymentSentMe.md) service message sent to the bot for the first subscription payment."}}, "additionalProperties": false, "required": ["user_id", "charge_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `restore` | `true` | いいえ | If **not** set, disables autorenewal of the subscriptions, and prevents the user from reactivating the subscription once the current period expires: a subscription cancelled by the bot will have the [starsSubscription](https://core.telegram.org/constructor/starsSubscription.md).`bot_canceled` flag set.   The bot can can partially undo this operation by setting this flag: this will allow the user to reactivate the subscription. |\n| `user_id` | `InputUser` | はい | The ID of the user whose subscription should be (un)cancelled |\n| `charge_id` | `string` | はい | The `provider_charge_id` from the [messageActionPaymentSentMe](https://core.telegram.org/constructor/messageActionPaymentSentMe.md) service message sent to the bot for the first subscription payment. |"}, "x-telegram-rpc-errors": ["CHARGE_ID_INVALID", "USER_ID_INVALID"], "x-browser-schema-id": "1845102114"}}, "/catalog/payments.getConnectedStarRefBots": {"post": {"operationId": "payments.getConnectedStarRefBots", "tags": ["支払い"], "summary": "Fetch all affiliations we have created for a certain peer", "description": "Fetch all affiliations we have created for a certain peer\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "payments.getConnectedStarRefBots", "x-tl-id": "1483318611", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.ConnectedStarRefBots."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The affiliated peer"}, "offset_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int", "description": "If set, returns only results older than the specified unixtime"}, "offset_link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "Offset for [pagination](https://core.telegram.org/api/offsets.md), taken from the last returned [connectedBotStarRef](https://core.telegram.org/constructor/connectedBotStarRef.md).`url` (initially empty)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The affiliated peer |\n| `offset_date` | `int` | いいえ | If set, returns only results older than the specified unixtime |\n| `offset_link` | `string` | いいえ | Offset for [pagination](https://core.telegram.org/api/offsets.md), taken from the last returned [connectedBotStarRef](https://core.telegram.org/constructor/connectedBotStarRef.md).`url` (initially empty) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md) |"}, "x-browser-schema-id": "1483318611"}}, "/catalog/payments.getConnectedStarRefBot": {"post": {"operationId": "payments.getConnectedStarRefBot", "tags": ["支払い"], "summary": "Fetch info about a specific bot affiliation »", "description": "Fetch info about a specific [bot affiliation »](https://core.telegram.org/api/bots/referrals.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.getConnectedStarRefBot", "x-tl-id": "3084490992", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.ConnectedStarRefBots."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The affiliated peer"}, "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": "The bot that offers the affiliate program"}}, "additionalProperties": false, "required": ["peer", "bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The affiliated peer |\n| `bot` | `InputUser` | はい | The bot that offers the affiliate program |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3084490992"}}, "/catalog/payments.getSuggestedStarRefBots": {"post": {"operationId": "payments.getSuggestedStarRefBots", "tags": ["支払い"], "summary": "Obtain a list of suggested mini apps with available affiliate programs", "description": "Obtain a list of suggested [mini apps](https://core.telegram.org/api/bots/webapps.md) with available [affiliate programs](https://core.telegram.org/api/bots/referrals.md)\n\n`order_by_revenue` and `order_by_date` are mutually exclusive: if neither is set, results are sorted by profitability.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Mini Apps on Telegram](https://core.telegram.org/api/bots/webapps.md)\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.getSuggestedStarRefBots", "x-tl-id": "225134839", "x-tl-result": "payments.SuggestedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Mini Apps on Telegram", "https://core.telegram.org/api/bots/webapps.md"], ["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.SuggestedStarRefBots."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, orders results by the expected revenue"}, "order_by_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "If set, orders results by the creation date of the affiliate program"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The peer that will become the affiliate: star commissions will be transferred to this peer's star balance."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for pagination, taken from [payments.suggestedStarRefBots](https://core.telegram.org/constructor/payments.suggestedStarRefBots.md).`next_offset`, initially empty."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `order_by_revenue` | `true` | いいえ | If set, orders results by the expected revenue |\n| `order_by_date` | `true` | いいえ | If set, orders results by the creation date of the affiliate program |\n| `peer` | `InputPeer` | はい | The peer that will become the affiliate: star commissions will be transferred to this peer's star balance. |\n| `offset` | `string` | はい | Offset for pagination, taken from [payments.suggestedStarRefBots](https://core.telegram.org/constructor/payments.suggestedStarRefBots.md).`next_offset`, initially empty. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Join a bot's affiliate program, becoming an affiliate »", "description": "Join a bot's [affiliate program, becoming an affiliate »](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.connectStarRefBot", "x-tl-id": "2127901834", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.ConnectedStarRefBots."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer that will become the affiliate: star commissions will be transferred to this peer's star balance."}, "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": "The bot that offers the affiliate program"}}, "additionalProperties": false, "required": ["peer", "bot"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer that will become the affiliate: star commissions will be transferred to this peer's star balance. |\n| `bot` | `InputUser` | はい | The bot that offers the affiliate program |"}, "x-browser-schema-id": "2127901834"}}, "/catalog/payments.editConnectedStarRefBot": {"post": {"operationId": "payments.editConnectedStarRefBot", "tags": ["支払い"], "summary": "Leave a bot's affiliate program »", "description": "Leave a bot's [affiliate program »](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Affiliate programs](https://core.telegram.org/api/bots/referrals.md)", "x-tl-method": "payments.editConnectedStarRefBot", "x-tl-id": "3841762467", "x-tl-result": "payments.ConnectedStarRefBots", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Affiliate programs", "https://core.telegram.org/api/bots/referrals.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.ConnectedStarRefBots."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARREF_HASH_REVOKED` — The specified affiliate link was already revoked."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, leaves the bot's affiliate program"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The peer that was affiliated"}, "link": {"type": "string", "x-tl-type": "string", "description": "The affiliate link to revoke"}}, "additionalProperties": false, "required": ["peer", "link"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `revoked` | `true` | いいえ | If set, leaves the bot's affiliate program |\n| `peer` | `InputPeer` | はい | The peer that was affiliated |\n| `link` | `string` | はい | The affiliate link to revoke |"}, "x-telegram-rpc-errors": ["STARREF_HASH_REVOKED"], "x-browser-schema-id": "3841762467"}}, "/catalog/payments.getStarGiftUpgradePreview": {"post": {"operationId": "payments.getStarGiftUpgradePreview", "tags": ["支払い"], "summary": "Obtain a preview of the possible attributes (chosen randomly) a gift » can receive after upgrading it to a collectible gift », see here » for more info.", "description": "Obtain a preview of the possible attributes (chosen randomly) a [gift »](https://core.telegram.org/api/gifts.md) can receive after upgrading it to a [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gifts), see [here »](https://core.telegram.org/api/gifts.md#collectible-gifts) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftUpgradePreview", "x-tl-id": "2627386545", "x-tl-result": "payments.StarGiftUpgradePreview", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarGiftUpgradePreview."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid.\n- 400 · `STARGIFT_UPGRADE_UNAVAILABLE` — A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`can_upgrade` flag is set."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The gift to upgrade.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | はい | The gift to upgrade. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID", "STARGIFT_UPGRADE_UNAVAILABLE"], "x-browser-schema-id": "2627386545"}}, "/catalog/payments.upgradeStarGift": {"post": {"operationId": "payments.upgradeStarGift", "tags": ["支払い"], "summary": "Upgrade a gift to a collectible gift: can only be used if the upgrade was already paid by the gift sender; see here » for more info on the full flow (including the different flow to use in case the upgrade was not paid by the gift sender).", "description": "Upgrade a [gift](https://core.telegram.org/api/gifts.md) to a [collectible gift](https://core.telegram.org/api/gifts.md#collectible-gifts): can only be used if the upgrade was already paid by the gift sender; see [here »](https://core.telegram.org/api/gifts.md#upgrade-a-gift-to-a-collectible-gift) for more info on the full flow (including the different flow to use in case the upgrade was not paid by the gift sender).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.upgradeStarGift", "x-tl-id": "2933318901", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PAYMENT_REQUIRED` — Payment is required for this action, see [here&nbsp;&raquo;](https://core.telegram.org/api/gifts.md) for more info.\n- 400 · `SAVED_ID_EMPTY` — The passed inputSavedStarGiftChat.saved_id is empty.\n- 400 · `STARGIFT_ALREADY_CONVERTED` — The specified star gift was already converted to Stars.\n- 400 · `STARGIFT_ALREADY_UPGRADED` — The specified gift was already upgraded to a collectible gift.\n- 400 · `STARGIFT_UPGRADE_UNAVAILABLE` — A received gift can only be upgraded to a collectible gift if the [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md)/[savedStarGift](https://core.telegram.org/constructor/savedStarGift.md).`can_upgrade` flag is set."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "このフラグを設定すると、アップグレードされたギフトに元のギフト テキスト、送信者、受信者が [star GiftAttributeOriginalDetails](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": "The gift to upgrade"}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `keep_original_details` | `true` | いいえ | このフラグを設定すると、アップグレードされたギフトに元のギフト テキスト、送信者、受信者が [star GiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md)] 属性として保持されます。 |\n| `stargift` | `InputSavedStarGift` | はい | The gift to upgrade |"}, "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": "Transfer a collectible gift to another user or channel: can only be used if transfer is free (i.e. messageActionStarGiftUnique.`transfer_stars` is not set); see here » for more info on the full flow (including the different flow to use in case the transfer isn't free).", "description": "Transfer a [collectible gift](https://core.telegram.org/api/gifts.md#collectible-gifts) to another user or channel: can only be used if transfer is free (i.e. [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md).`transfer_stars` is not set); see [here »](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts) for more info on the full flow (including the different flow to use in case the transfer isn't free).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.transferStarGift", "x-tl-id": "2132285290", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PAYMENT_REQUIRED` — Payment is required for this action, see [here&nbsp;&raquo;](https://core.telegram.org/api/gifts.md) for more info.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SAVED_ID_EMPTY` — The passed inputSavedStarGiftChat.saved_id is empty.\n- 400 · `STARGIFT_NOT_FOUND` — The specified gift was not found.\n- 400 · `STARGIFT_NOT_OWNER` — You're not the owner of the gift you trying to transfer.\n- 400 · `STARGIFT_NOT_UNIQUE` — You can't transfer a non-collectible gift.\n- 400 · `STARGIFT_OWNER_INVALID` — You cannot transfer or sell a gift owned by another user.\n- 400 · `STARGIFT_PEER_INVALID` — The specified inputSavedStarGiftChat.peer is invalid.\n- 400 · `STARGIFT_TRANSFER_TOO_EARLY_%d` — You cannot transfer this gift yet, wait %d seconds."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The gift to transfer."}, "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": "Destination peer."}}, "additionalProperties": false, "required": ["stargift", "to_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | はい | The gift to transfer. |\n| `to_id` | `InputPeer` | はい | Destination peer. |"}, "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": "Obtain info about a collectible gift » using a slug obtained from a collectible gift link ».", "description": "Obtain info about a [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gifts) using a slug obtained from a [collectible gift link »](https://core.telegram.org/api/links.md#collectible-gift-link).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "payments.getUniqueStarGift", "x-tl-id": "2711047538", "x-tl-result": "payments.UniqueStarGift", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.UniqueStarGift."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_SLUG_INVALID` — The specified gift slug is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The slug."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | The slug. |"}, "x-telegram-rpc-errors": ["STARGIFT_SLUG_INVALID"], "x-browser-schema-id": "2711047538"}}, "/catalog/payments.getSavedStarGifts": {"post": {"operationId": "payments.getSavedStarGifts", "tags": ["支払い"], "summary": "Fetch the full list of gifts » owned, received or hosted » by a peer.", "description": "Fetch the full list of [gifts »](https://core.telegram.org/api/gifts.md#list-all-received-gifts) owned, received or [hosted »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) by a peer.\n\nNote that unlike what the name suggests, the method can be used to fetch both \"saved\" and \"unsaved\" gifts (aka gifts both pinned and not pinned) to the profile, depending on the passed flags.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Accent colors](https://core.telegram.org/api/colors.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "payments.getSavedStarGifts", "x-tl-id": "2736383337", "x-tl-result": "payments.SavedStarGifts", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Accent colors", "https://core.telegram.org/api/colors.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.SavedStarGifts."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `COLLECTION_ID_INVALID` — The specified collection ID is invalid.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 gifts not pinned on the profile."}, "exclude_saved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Exclude gifts pinned on the profile."}, "exclude_unlimited": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Exclude gifts that do not have the [starGift](https://core.telegram.org/constructor/starGift.md).`limited` flag set."}, "exclude_unique": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Exclude [collectible gifts »](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": "If set, sorts the gifts by price instead of reception date."}, "exclude_upgradable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Exclude gifts that can be [upgraded to collectible gifts »](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": "Exclude gifts that cannot be [upgraded to collectible gifts »](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": "If set, only returns [collectible gifts](https://core.telegram.org/api/gifts.md#collectible-gifts) whose palette can be used as a [collectible message palette »](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": "If set, excludes [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), returning only gifts owned or received by `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": "Fetch only gifts owned, received or [hosted »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) by the specified peer, such as: a user, with peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md); a channel, with peer=[inputPeerChannel](https://core.telegram.org/constructor/inputPeerChannel.md); a [connected business user »](https://core.telegram.org/api/bots/connected-business-bots.md) (when executing the method as a bot, over the business connection), with 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": "Only returns gifts within the specified [collection »](https://core.telegram.org/api/gifts.md#gift-collections)."}, "offset": {"type": "string", "x-tl-type": "string", "description": "[Offset for pagination](https://core.telegram.org/api/offsets.md)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `exclude_unsaved` | `true` | いいえ | Exclude gifts not pinned on the profile. |\n| `exclude_saved` | `true` | いいえ | Exclude gifts pinned on the profile. |\n| `exclude_unlimited` | `true` | いいえ | Exclude gifts that do not have the [starGift](https://core.telegram.org/constructor/starGift.md).`limited` flag set. |\n| `exclude_unique` | `true` | いいえ | Exclude [collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |\n| `sort_by_value` | `true` | いいえ | If set, sorts the gifts by price instead of reception date. |\n| `exclude_upgradable` | `true` | いいえ | Exclude gifts that can be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |\n| `exclude_unupgradable` | `true` | いいえ | Exclude gifts that cannot be [upgraded to collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts). |\n| `peer_color_available` | `true` | いいえ | If set, only returns [collectible gifts](https://core.telegram.org/api/gifts.md#collectible-gifts) whose palette can be used as a [collectible message palette »](https://core.telegram.org/api/colors.md#collectible-message-palettes). |\n| `exclude_hosted` | `true` | いいえ | If set, excludes [hosted collectible gifts »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts), returning only gifts owned or received by `peer`. |\n| `peer` | `InputPeer` | はい | Fetch only gifts owned, received or [hosted »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts) by the specified peer, such as: a user, with peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md); a channel, with peer=[inputPeerChannel](https://core.telegram.org/constructor/inputPeerChannel.md); a [connected business user »](https://core.telegram.org/api/bots/connected-business-bots.md) (when executing the method as a bot, over the business connection), with peer=[inputPeerUser](https://core.telegram.org/constructor/inputPeerUser.md). |\n| `collection_id` | `int` | いいえ | Only returns gifts within the specified [collection »](https://core.telegram.org/api/gifts.md#gift-collections). |\n| `offset` | `string` | はい | [Offset for pagination](https://core.telegram.org/api/offsets.md). |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Fetch info about specific gifts owned by a peer we control.", "description": "Fetch info about specific [gifts](https://core.telegram.org/api/gifts.md) owned by a peer we control.\n\nNote that unlike what the name suggests, the method can be used to fetch both \"saved\" and \"unsaved\" gifts (aka gifts both pinned and not pinned to the profile).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getSavedStarGift", "x-tl-id": "3025510662", "x-tl-result": "payments.SavedStarGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.SavedStarGifts."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SAVED_ID_EMPTY` — The passed inputSavedStarGiftChat.saved_id is empty.\n- 400 · `STARGIFT_OWNER_INVALID` — You cannot transfer or sell a gift owned by another user.\n- 400 · `STARGIFT_SLUG_INVALID` — The specified gift slug is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "List of gifts to fetch info about."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stargift` | `Vector<InputSavedStarGift>` | はい | List of gifts to fetch info about. |"}, "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": "Convert a collectible gift » to an NFT on the TON blockchain.", "description": "Convert a [collectible gift »](https://core.telegram.org/api/gifts.md) to an NFT on the TON blockchain.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Two-factor authentication](https://core.telegram.org/api/srp.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftWithdrawalUrl", "x-tl-id": "3368714619", "x-tl-result": "payments.StarGiftWithdrawalUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Two-factor authentication", "https://core.telegram.org/api/srp.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarGiftWithdrawalUrl."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PASSWORD_HASH_INVALID` — The provided password hash is invalid.\n- 400 · `PASSWORD_TOO_FRESH_%d` — The password was modified less than 24 hours ago, try again in %d seconds.\n- 400 · `SESSION_TOO_FRESH_%d` — This session was created less than 24 hours ago, try again in %d seconds."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The collectible gift to export."}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL 型 `bytes` の値。"}}, "additionalProperties": false, "required": ["stargift", "tmp_password"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | はい | The collectible gift to export. |\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": "Enables or disables the reception of notifications every time a gift » is received by the specified channel, can only be invoked by admins with `post_messages` admin rights.", "description": "Enables or disables the reception of notifications every time a [gift »](https://core.telegram.org/api/gifts.md) is received by the specified channel, can only be invoked by admins with `post_messages` [admin rights](https://core.telegram.org/constructor/chatAdminRights.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.toggleChatStarGiftNotifications", "x-tl-id": "1626009505", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to enable or disable reception of notifications in the form of [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md) and [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md) service messages from the channel."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The channel for which to receive or not receive notifications."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `enabled` | `true` | いいえ | Whether to enable or disable reception of notifications in the form of [messageActionStarGiftUnique](https://core.telegram.org/constructor/messageActionStarGiftUnique.md) and [messageActionStarGift](https://core.telegram.org/constructor/messageActionStarGift.md) service messages from the channel. |\n| `peer` | `InputPeer` | はい | The channel for which to receive or not receive notifications. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1626009505"}}, "/catalog/payments.toggleStarGiftsPinnedToTop": {"post": {"operationId": "payments.toggleStarGiftsPinnedToTop", "tags": ["支払い"], "summary": "Pins a received gift on top of the profile of the user or owned channels by using payments.toggleStarGiftsPinnedToTop.", "description": "Pins a received gift on top of the profile of the user or owned channels by using [payments.toggleStarGiftsPinnedToTop](https://core.telegram.org/method/payments.toggleStarGiftsPinnedToTop.md).\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer where to pin the gift."}, "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 Type: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "The gift to pin."}}, "additionalProperties": false, "required": ["peer", "stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer where to pin the gift. |\n| `stargift` | `Vector<InputSavedStarGift>` | はい | The gift to pin. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "353626032"}}, "/catalog/payments.canPurchaseStore": {"post": {"operationId": "payments.canPurchaseStore", "tags": ["支払い"], "summary": "Checks whether a purchase is possible. Must be called before in-store purchase, official apps only.", "description": "Checks whether a purchase is possible. Must be called before in-store purchase, official apps only.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INPUT_PURPOSE_INVALID` — The specified payment purpose is invalid.\n- 406 · `PREMIUM_CURRENTLY_UNAVAILABLE` — You cannot currently purchase a Premium subscription."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Payment purpose."}}, "additionalProperties": false, "required": ["purpose"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `purpose` | `InputStorePaymentPurpose` | はい | Payment purpose. |"}, "x-telegram-rpc-errors": ["INPUT_PURPOSE_INVALID", "PREMIUM_CURRENTLY_UNAVAILABLE"], "x-browser-schema-id": "1339842215"}}, "/catalog/payments.getResaleStarGifts": {"post": {"operationId": "payments.getResaleStarGifts", "tags": ["支払い"], "summary": "Get collectible gifts of a specific type currently on resale, see here » for more info.", "description": "Get [collectible gifts](https://core.telegram.org/api/gifts.md#collectible-gifts) of a specific type currently on resale, see [here »](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) for more info.\n\n`sort_by_price` and `sort_by_num` are mutually exclusive, if neither are set results are sorted by the unixtime (descending) when their resell price was last changed.\n\nSee [here »](https://core.telegram.org/api/gifts.md#sending-gifts) for detailed documentation on this method.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "payments.getResaleStarGifts", "x-tl-id": "2053087798", "x-tl-result": "payments.ResaleStarGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.ResaleStarGifts."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_ATTRIBUTE_INVALID` — One of the specified star gift attributes is invalid.\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 gifts by price (ascending)."}, "sort_by_num": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Sort gifts by number (ascending)."}, "for_craft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Only return collectible gifts that can be bought and used for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts); render each returned gift's [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`craft_chance_permille` as its crafting success contribution."}, "stars_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Only return gifts that can be bought using [Stars](https://core.telegram.org/api/stars.md)."}, "ton_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "TL 型 `true` の値。"}, "fragment_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "TL 型 `true` の値。"}, "attributes_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "If a previous call to the method was made and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` was set, pass it here to avoid returning any results if they haven't changed.  Otherwise, set this flag and pass `0` to return [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes`, **these two fields will not be set** if this flag is not set.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Mandatory identifier of the base gift from which the collectible gift was upgraded.", "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 Type: StarGiftAttributeId."}, "x-tl-type": "Vector<StarGiftAttributeId>", "x-tl-flag": "flags.3?Vector<StarGiftAttributeId>", "description": "Optionally filter gifts with the specified attributes. If no attributes of a specific type are specified, all attributes of that type are allowed."}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for pagination. If not equal to an empty string, [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`counters` will not be set to avoid returning the counters every time a new page is fetched."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["gift_id", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `sort_by_price` | `true` | いいえ | Sort gifts by price (ascending). |\n| `sort_by_num` | `true` | いいえ | Sort gifts by number (ascending). |\n| `for_craft` | `true` | いいえ | Only return collectible gifts that can be bought and used for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts); render each returned gift's [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`craft_chance_permille` as its crafting success contribution. |\n| `stars_only` | `true` | いいえ | Only return gifts that can be bought using [Stars](https://core.telegram.org/api/stars.md). |\n| `ton_only` | `true` | いいえ | TL 型 `true` の値。 |\n| `fragment_only` | `true` | いいえ | TL 型 `true` の値。 |\n| `attributes_hash` | `long` | いいえ | If a previous call to the method was made and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` was set, pass it here to avoid returning any results if they haven't changed.  Otherwise, set this flag and pass `0` to return [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes_hash` and [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`attributes`, **these two fields will not be set** if this flag is not set. |\n| `gift_id` | `long` | はい | Mandatory identifier of the base gift from which the collectible gift was upgraded. |\n| `attributes` | `Vector<StarGiftAttributeId>` | いいえ | Optionally filter gifts with the specified attributes. If no attributes of a specific type are specified, all attributes of that type are allowed. |\n| `offset` | `string` | はい | Offset for pagination. If not equal to an empty string, [payments.resaleStarGifts](https://core.telegram.org/constructor/payments.resaleStarGifts.md).`counters` will not be set to avoid returning the counters every time a new page is fetched. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "A collectible gift we own » can be put up for sale on the gift marketplace » with this method, see here » for more info.", "description": "A [collectible gift we own »](https://core.telegram.org/api/gifts.md#collectible-gifts) can be put up for sale on the [gift marketplace »](https://telegram.org/blog/gift-marketplace-and-more) with this method, see [here »](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.updateStarGiftPrice", "x-tl-id": "3988679883", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SAVED_ID_EMPTY` — The passed inputSavedStarGiftChat.saved_id is empty.\n- 400 · `STARGIFT_NOT_FOUND` — The specified gift was not found."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The gift to resell."}, "resell_amount": {"type": "object", "x-tl-type": "StarsAmount", "oneOf": [{"$ref": "#/components/schemas/starsAmount"}, {"$ref": "#/components/schemas/starsTonAmount"}], "description": "Resale price of the gift."}}, "additionalProperties": false, "required": ["stargift", "resell_amount"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | はい | The gift to resell. |\n| `resell_amount` | `StarsAmount` | はい | Resale price of the gift. |"}, "x-telegram-rpc-errors": ["SAVED_ID_EMPTY", "STARGIFT_NOT_FOUND"], "x-browser-schema-id": "3988679883"}}, "/catalog/payments.createStarGiftCollection": {"post": {"operationId": "payments.createStarGiftCollection", "tags": ["支払い"], "summary": "Create a star gift collection ».", "description": "Create a [star gift collection »](https://core.telegram.org/api/gifts.md#gift-collections).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.createStarGiftCollection", "x-tl-id": "524947079", "x-tl-result": "StarGiftCollection", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `StarGiftCollection`.\n\n[StarGiftCollection](https://core.telegram.org/type/StarGiftCollection.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StarGiftCollection", "oneOf": [{"$ref": "#/components/schemas/starGiftCollection"}], "description": "TL Type: StarGiftCollection."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where to create the collection."}, "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 Type: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "Gifts added to the collection."}}, "additionalProperties": false, "required": ["peer", "title", "stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where to create the collection. |\n| `title` | `string` | はい | コレクションのタイトル。 |\n| `stargift` | `Vector<InputSavedStarGift>` | はい | Gifts added to the collection. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "524947079"}}, "/catalog/payments.updateStarGiftCollection": {"post": {"operationId": "payments.updateStarGiftCollection", "tags": ["支払い"], "summary": "Add or remove gifts from a star gift collection », or rename the collection.", "description": "Add or remove gifts from a [star gift collection »](https://core.telegram.org/api/gifts.md#gift-collections), or rename the collection.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.updateStarGiftCollection", "x-tl-id": "1339932391", "x-tl-result": "StarGiftCollection", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `StarGiftCollection`.\n\n[StarGiftCollection](https://core.telegram.org/type/StarGiftCollection.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StarGiftCollection", "oneOf": [{"$ref": "#/components/schemas/starGiftCollection"}], "description": "TL Type: StarGiftCollection."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer that owns the collection."}, "collection_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Collection ID."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Title of the collection, to rename the collection."}, "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 Type: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "x-tl-flag": "flags.1?Vector<InputSavedStarGift>", "description": "Can contain a list of gifts to remove from the collection."}, "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 Type: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "x-tl-flag": "flags.2?Vector<InputSavedStarGift>", "description": "Can contain a list of gifts to add to the collection."}, "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 Type: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "x-tl-flag": "flags.3?Vector<InputSavedStarGift>", "description": "Can contain the new gift order."}}, "additionalProperties": false, "required": ["peer", "collection_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer that owns the collection. |\n| `collection_id` | `int` | はい | Collection ID. |\n| `title` | `string` | いいえ | Title of the collection, to rename the collection. |\n| `delete_stargift` | `Vector<InputSavedStarGift>` | いいえ | Can contain a list of gifts to remove from the collection. |\n| `add_stargift` | `Vector<InputSavedStarGift>` | いいえ | Can contain a list of gifts to add to the collection. |\n| `order` | `Vector<InputSavedStarGift>` | いいえ | Can contain the new gift order. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1339932391"}}, "/catalog/payments.reorderStarGiftCollections": {"post": {"operationId": "payments.reorderStarGiftCollections", "tags": ["支払い"], "summary": "Reorder the star gift collections » on an owned peer's profile.", "description": "Reorder the [star gift collections »](https://core.telegram.org/api/gifts.md#gift-collections) on an owned peer's profile.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.reorderStarGiftCollections", "x-tl-id": "3274372300", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The owned peer."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "New collection order."}}, "additionalProperties": false, "required": ["peer", "order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The owned peer. |\n| `order` | `Vector<int>` | はい | New collection order. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3274372300"}}, "/catalog/payments.deleteStarGiftCollection": {"post": {"operationId": "payments.deleteStarGiftCollection", "tags": ["支払い"], "summary": "Delete a star gift collection ».", "description": "Delete a [star gift collection »](https://core.telegram.org/api/gifts.md#gift-collections).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.deleteStarGiftCollection", "x-tl-id": "2908113128", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer that owns the collection."}, "collection_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the collection."}}, "additionalProperties": false, "required": ["peer", "collection_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer that owns the collection. |\n| `collection_id` | `int` | はい | ID of the collection. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2908113128"}}, "/catalog/payments.getStarGiftCollections": {"post": {"operationId": "payments.getStarGiftCollections", "tags": ["支払い"], "summary": "Fetches all star gift collections » of a peer.", "description": "Fetches all [star gift collections »](https://core.telegram.org/api/gifts.md#gift-collections) of a peer.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftCollections", "x-tl-id": "2551943645", "x-tl-result": "payments.StarGiftCollections", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarGiftCollections."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Hash ([generated as specified here »](https://core.telegram.org/api/offsets.md#hash-generation)) using the [starGiftCollection](https://core.telegram.org/constructor/starGiftCollection.md).`hash` field (**not** the `collection_id` field) of all collections returned by a previous method call, to avoid refetching the result if it hasn't changed.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer. |\n| `hash` | `long` | はい | Hash ([generated as specified here »](https://core.telegram.org/api/offsets.md#hash-generation)) using the [starGiftCollection](https://core.telegram.org/constructor/starGiftCollection.md).`hash` field (**not** the `collection_id` field) of all collections returned by a previous method call, to avoid refetching the result if it hasn't changed. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2551943645"}}, "/catalog/payments.getUniqueStarGiftValueInfo": {"post": {"operationId": "payments.getUniqueStarGiftValueInfo", "tags": ["支払い"], "summary": "Get information about the value of a collectible gift ».", "description": "Get information about the value of a [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gifts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getUniqueStarGiftValueInfo", "x-tl-id": "1130737515", "x-tl-result": "payments.UniqueStarGiftValueInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto Result · `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 type: payments.UniqueStarGiftValueInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_SLUG_INVALID` — The specified gift slug is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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` from a [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md)."}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | `slug` from a [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": "Check if the specified gift » can be sent.", "description": "Check if the specified [gift »](https://core.telegram.org/api/gifts.md) can be sent.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.checkCanSendGift", "x-tl-id": "3234131401", "x-tl-result": "payments.CheckCanSendGiftResult", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.CheckCanSendGiftResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Gift ID.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | はい | Gift ID. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "3234131401"}}, "/catalog/payments.getStarGiftAuctionState": {"post": {"operationId": "payments.getStarGiftAuctionState", "tags": ["支払い"], "summary": "Returns info about a collectible gift auction »; also subscribes the user to auction updates, see here » for more info on the full flow.", "description": "Returns info about a [collectible gift auction »](https://core.telegram.org/api/auctions.md); also subscribes the user to auction updates, see [here »](https://core.telegram.org/api/auctions.md) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Collectible gift auctions](https://core.telegram.org/api/auctions.md)", "x-tl-method": "payments.getStarGiftAuctionState", "x-tl-id": "1553986774", "x-tl-result": "payments.StarGiftAuctionState", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Collectible gift auctions", "https://core.telegram.org/api/auctions.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.StarGiftAuctionState."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Either the ID of the gift linked to the auction, or an [auction deep link slug »](https://core.telegram.org/api/links.md#auction-links)."}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Initially `0`, then set to the returned [starGiftAuctionState](https://core.telegram.org/constructor/starGiftAuctionState.md).`version`, to avoid refetching results if they haven't changed."}}, "additionalProperties": false, "required": ["auction", "version"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `auction` | `InputStarGiftAuction` | はい | Either the ID of the gift linked to the auction, or an [auction deep link slug »](https://core.telegram.org/api/links.md#auction-links). |\n| `version` | `int` | はい | Initially `0`, then set to the returned [starGiftAuctionState](https://core.telegram.org/constructor/starGiftAuctionState.md).`version`, to avoid refetching results if they haven't changed. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "1553986774"}}, "/catalog/payments.getStarGiftAuctionAcquiredGifts": {"post": {"operationId": "payments.getStarGiftAuctionAcquiredGifts", "tags": ["支払い"], "summary": "Fetches all the gifts that the current user won in an auction.", "description": "Fetches all the gifts that the current user won in an [auction](https://core.telegram.org/api/auctions.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Collectible gift auctions](https://core.telegram.org/api/auctions.md)", "x-tl-method": "payments.getStarGiftAuctionAcquiredGifts", "x-tl-id": "1805831148", "x-tl-result": "payments.StarGiftAuctionAcquiredGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Collectible gift auctions", "https://core.telegram.org/api/auctions.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.StarGiftAuctionAcquiredGifts."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The gift ID linked to the auction.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | はい | The gift ID linked to the auction. |"}, "x-telegram-rpc-errors": ["STARGIFT_INVALID"], "x-browser-schema-id": "1805831148"}}, "/catalog/payments.getStarGiftActiveAuctions": {"post": {"operationId": "payments.getStarGiftActiveAuctions", "tags": ["支払い"], "summary": "Fetches all currently active gift auctions **the user has ever bid on** (including auctions where the user was outbid and their bid was returned), as long as the auction hasn't ended yet.", "description": "Fetches all currently active [gift auctions](https://core.telegram.org/api/auctions.md) **the user has ever bid on** (including auctions where the user was outbid and their bid was returned), as long as the auction hasn't ended yet.\n\nThis method is primarily used to display an auction badge in the chat list immediately on app startup, without waiting for real-time [updateStarGiftAuctionState](https://core.telegram.org/constructor/updateStarGiftAuctionState.md) updates to arrive: the client calls it to discover which auctions the user is participating in and show the badge proactively.\n\nTo instead fetch the full state of a single auction, subscribe to its real-time updates and render the detailed auction UI (typically when the user opens a specific auction), use [payments.getStarGiftAuctionState](https://core.telegram.org/method/payments.getStarGiftAuctionState.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Collectible gift auctions](https://core.telegram.org/api/auctions.md)", "x-tl-method": "payments.getStarGiftActiveAuctions", "x-tl-id": "2781892941", "x-tl-result": "payments.StarGiftActiveAuctions", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Collectible gift auctions", "https://core.telegram.org/api/auctions.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.StarGiftActiveAuctions."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/payments.getStarGiftActiveAuctions"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Hash generated [as specified here »](https://core.telegram.org/api/auctions.md)", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | Hash generated [as specified here »](https://core.telegram.org/api/auctions.md) |"}, "x-browser-schema-id": "2781892941"}}, "/catalog/payments.resolveStarGiftOffer": {"post": {"operationId": "payments.resolveStarGiftOffer", "tags": ["支払い"], "summary": "Accept or decline a previously received collectible gift purchase offer », see here » for the full flow.", "description": "Accept or decline a previously received [collectible gift purchase offer »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers), see [here »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) for the full flow.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.resolveStarGiftOffer", "x-tl-id": "3922622492", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, declines the offer; otherwise, accepts it."}, "offer_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Identifier of the [messageActionStarGiftPurchaseOffer](https://core.telegram.org/constructor/messageActionStarGiftPurchaseOffer.md) service message describing the offer to act upon."}}, "additionalProperties": false, "required": ["offer_msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `decline` | `true` | いいえ | If set, declines the offer; otherwise, accepts it. |\n| `offer_msg_id` | `int` | はい | Identifier of the [messageActionStarGiftPurchaseOffer](https://core.telegram.org/constructor/messageActionStarGiftPurchaseOffer.md) service message describing the offer to act upon. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID"], "x-browser-schema-id": "3922622492"}}, "/catalog/payments.sendStarGiftOffer": {"post": {"operationId": "payments.sendStarGiftOffer", "tags": ["支払い"], "summary": "Send an offer to purchase a collectible gift », see here » for the full flow.", "description": "Send an offer to purchase a [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers), see [here »](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Paid messages](https://core.telegram.org/api/paid-messages.md)\n- [Telegram Stars](https://core.telegram.org/api/stars.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.sendStarGiftOffer", "x-tl-id": "2411227969", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Paid messages", "https://core.telegram.org/api/paid-messages.md"], ["Telegram Stars", "https://core.telegram.org/api/stars.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INPUT_STARS_AMOUNT_INVALID` — The specified offer amount in stars is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) for the allowed range.\n- 400 · `INPUT_STARS_NANOS_INVALID` — The specified offer amount in nanotons is invalid, see [here&nbsp;&raquo;](https://core.telegram.org/api/gifts.md#collectible-gift-purchase-offers) for the allowed range.\n- 400 · `INVOICE_INVALID` — The specified invoice is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `RESELL_STARS_TOO_FEW` — The offered price is too low.\n- 400 · `RESELL_STARS_TOO_MUCH` — The offered price is too high.\n- 400 · `STARGIFT_OFFER_INVALID` — The specified offer amount is invalid.\n- 400 · `STARGIFT_OFFER_NOT_ALLOWED` — You can't send a purchase offer for this gift.\n- 400 · `STARGIFT_SLUG_INVALID` — The specified gift slug is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Owner of the collectible gift: equal to [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`owner_id`."}, "slug": {"type": "string", "x-tl-type": "string", "description": "Identifier of the collectible gift: equal to [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": "Offer price, in stars or TON."}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Duration of the offer, in seconds: must be one of `21600`, `43200`, `86400`, `129600`, `172800`, or `259200`; can also be `120` in test mode."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Random 64-bit identifier used to avoid sending the same offer twice in case of network issues. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "If the destination peer has [paid messages »](https://core.telegram.org/api/paid-messages.md) enabled, specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the sending user has agreed to pay in order to send the offer (in addition to the amount for the offer itself, contained in `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` | はい | Owner of the collectible gift: equal to [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`owner_id`. |\n| `slug` | `string` | はい | Identifier of the collectible gift: equal to [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`. |\n| `price` | `StarsAmount` | はい | Offer price, in stars or TON. |\n| `duration` | `int` | はい | Duration of the offer, in seconds: must be one of `21600`, `43200`, `86400`, `129600`, `172800`, or `259200`; can also be `120` in test mode. |\n| `random_id` | `long` | はい | Random 64-bit identifier used to avoid sending the same offer twice in case of network issues. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `allow_paid_stars` | `long` | いいえ | If the destination peer has [paid messages »](https://core.telegram.org/api/paid-messages.md) enabled, specifies the amount of [Telegram Stars](https://core.telegram.org/api/stars.md) the sending user has agreed to pay in order to send the offer (in addition to the amount for the offer itself, contained in `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": "Obtains the **full** list of just the collectible attributes that may appear for a gift type once it's upgraded to a collectible gift ».", "description": "Obtains the **full** list of just the collectible attributes that may appear for a gift type once it's upgraded to a [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gifts).\n\nThe result may also include [starGiftAttributeModel](https://core.telegram.org/constructor/starGiftAttributeModel.md) constructors with the `crafted` flag set: these models are reserved for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts) and should be filtered out from regular upgrade previews (and vice versa).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getStarGiftUpgradeAttributes", "x-tl-id": "1828948824", "x-tl-result": "payments.StarGiftUpgradeAttributes", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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 type: payments.StarGiftUpgradeAttributes."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Non-collectible base gift ID, from [starGift](https://core.telegram.org/constructor/starGift.md).`id`", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["gift_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | はい | Non-collectible base gift ID, from [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": "Obtain owned collectible gifts » of a specific type that can be used for crafting ».", "description": "Obtain owned [collectible gifts »](https://core.telegram.org/api/gifts.md#collectible-gifts) of a specific type that can be used for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.getCraftStarGifts", "x-tl-id": "4245019904", "x-tl-result": "payments.SavedStarGifts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: payments.SavedStarGifts."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STARGIFT_INVALID` — The passed gift is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Identifier of the base gift type, equal to [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`gift_id` of the first selected gift.", "x-tl-type": "long"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for pagination."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["gift_id", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `gift_id` | `long` | はい | Identifier of the base gift type, equal to [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`gift_id` of the first selected gift. |\n| `offset` | `string` | はい | Offset for pagination. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Craft a new collectible gift » by combining 1 to 4 owned collectible gifts of the same base gift type.", "description": "Craft a new [collectible gift »](https://core.telegram.org/api/gifts.md#collectible-gifts) by combining 1 to 4 owned collectible gifts of the same base gift type.\n\nThe passed gifts must all have the same [starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`gift_id`, must be usable for crafting, and must not be blocked by a future `can_craft_at` timestamp.\n\nThe first passed gift must not be [located on the TON blockchain](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Gifts](https://core.telegram.org/api/gifts.md)", "x-tl-method": "payments.craftStarGift", "x-tl-id": "2969135183", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Gifts", "https://core.telegram.org/api/gifts.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SAVED_ID_EMPTY` — The passed inputSavedStarGiftChat.saved_id is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputSavedStarGift."}, "x-tl-type": "Vector<InputSavedStarGift>", "description": "1 to 4 owned collectible gifts of the same type to use for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts). The first gift's ID is reused if crafting succeeds."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stargift` | `Vector<InputSavedStarGift>` | はい | 1 to 4 owned collectible gifts of the same type to use for [crafting »](https://core.telegram.org/api/gifts.md#crafting-collectible-gifts). The first gift's ID is reused if crafting succeeds. |"}, "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 result · `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 Type: 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 Type: 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 Type: 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 Type: 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 result · `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 Type: 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 Type: 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 result · `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 Type: InputSavedStarGift."}}, "additionalProperties": false, "required": ["stargift"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stargift` | `InputSavedStarGift` | はい | TL Type: 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 result · `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 Type: 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 Type: 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 Type: InputPeer.", "x-tl-flag": "flags.0?InputPeer"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "TL Type: 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 Type: InputPeer. |\n| `message` | `TextWithEntities` | いいえ | TL Type: 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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"offer_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "TL 型 `int` の値。"}}, "additionalProperties": false, "required": ["offer_msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `offer_msg_id` | `int` | はい | TL 型 `int` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "1511098022"}}, "/catalog/payments.cancelStarGiftOnchainOffer": {"post": {"operationId": "payments.cancelStarGiftOnchainOffer", "tags": ["支払い"], "summary": "payments.cancelStarGiftOnchainOffer", "description": "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 result · `payments.ResaleStarGifts`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "payments.ResaleStarGifts", "oneOf": [{"$ref": "#/components/schemas/payments.resaleStarGifts"}], "description": "Type 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 Type: 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": "Create a stickerset.", "description": "Create a stickerset.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "stickers.createStickerSet", "x-tl-id": "2418125671", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PACK_SHORT_NAME_INVALID` — Short pack name invalid.\n- 400 · `PACK_SHORT_NAME_OCCUPIED` — A stickerpack with this name already exists.\n- 400 · `PACK_TITLE_INVALID` — The stickerpack title is invalid.\n- 400 · `PACK_TYPE_INVALID` — The masks and emojis flags are mutually exclusive.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STICKERS_EMPTY` — No sticker provided.\n- 400 · `STICKER_EMOJI_INVALID` — Sticker emoji invalid.\n- 400 · `STICKER_FILE_INVALID` — Sticker file invalid.\n- 400 · `STICKER_GIF_DIMENSIONS` — The specified video sticker has invalid dimensions.\n- 400 · `STICKER_PNG_DIMENSIONS` — Sticker png dimensions invalid.\n- 400 · `STICKER_PNG_NOPNG` — One of the specified stickers is not a valid PNG file.\n- 400 · `STICKER_TGS_NODOC` — You must send the animated sticker as a document.\n- 400 · `STICKER_TGS_NOTGS` — Invalid TGS sticker provided.\n- 400 · `STICKER_THUMB_PNG_NOPNG` — Incorrect stickerset thumb file provided, PNG / WEBP expected.\n- 400 · `STICKER_THUMB_TGS_NOTGS` — Incorrect stickerset TGS thumb file provided.\n- 400 · `STICKER_VIDEO_BIG` — The specified video sticker is too big.\n- 400 · `STICKER_VIDEO_NODOC` — You must send the video sticker as a document.\n- 400 · `STICKER_VIDEO_NOWEBM` — The specified video sticker is not in webm format.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether this is a mask stickerset"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Whether this is a [custom emoji](https://core.telegram.org/api/custom-emoji.md) stickerset."}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only."}, "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": "Stickerset owner"}, "title": {"type": "string", "x-tl-type": "string", "description": "Stickerset name, `1-64` chars"}, "short_name": {"type": "string", "x-tl-type": "string", "description": "Short name of sticker set, to be used in [sticker deep links »](https://core.telegram.org/api/links.md#stickerset-links). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, **if called by a bot**, must end in `\"_by_<bot_username>\"`. `<bot_username>` is case insensitive. 1-64 characters."}, "thumb": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "Thumbnail", "x-tl-flag": "flags.2?InputDocument"}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputStickerSetItem", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetItem"}], "description": "TL Type: InputStickerSetItem."}, "x-tl-type": "Vector<InputStickerSetItem>", "description": "ステッカー"}, "software": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "Used when [importing stickers using the sticker import SDKs](https://core.telegram.org/import-stickers.md), specifies the name of the software that created the stickers"}}, "additionalProperties": false, "required": ["user_id", "title", "short_name", "stickers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `masks` | `true` | いいえ | Whether this is a mask stickerset |\n| `emojis` | `true` | いいえ | Whether this is a [custom emoji](https://core.telegram.org/api/custom-emoji.md) stickerset. |\n| `text_color` | `true` | いいえ | Whether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only. |\n| `user_id` | `InputUser` | はい | Stickerset owner |\n| `title` | `string` | はい | Stickerset name, `1-64` chars |\n| `short_name` | `string` | はい | Short name of sticker set, to be used in [sticker deep links »](https://core.telegram.org/api/links.md#stickerset-links). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, **if called by a bot**, must end in `\"_by_<bot_username>\"`. `<bot_username>` is case insensitive. 1-64 characters. |\n| `thumb` | `InputDocument` | いいえ | Thumbnail |\n| `stickers` | `Vector<InputStickerSetItem>` | はい | ステッカー |\n| `software` | `string` | いいえ | Used when [importing stickers using the sticker import SDKs](https://core.telegram.org/import-stickers.md), specifies the name of the software that created the stickers |"}, "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": "Remove a sticker from the set where it belongs. The sticker set must have been created by the current user/bot.", "description": "Remove a sticker from the set where it belongs. The sticker set must have been created by the current user/bot.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKER_INVALID` — The provided sticker is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The sticker to remove"}}, "additionalProperties": false, "required": ["sticker"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | はい | The sticker to remove |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "4151709521"}}, "/catalog/stickers.changeStickerPosition": {"post": {"operationId": "stickers.changeStickerPosition", "tags": ["ステッカー"], "summary": "Changes the absolute position of a sticker in the set to which it belongs. The sticker set must have been created by the current user/bot.", "description": "Changes the absolute position of a sticker in the set to which it belongs. The sticker set must have been created by the current user/bot.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKER_INVALID` — The provided sticker is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The new position of the sticker, zero-based"}}, "additionalProperties": false, "required": ["sticker", "position"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | はい | ステッカー |\n| `position` | `int` | はい | The new position of the sticker, zero-based |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "4290172106"}}, "/catalog/stickers.addStickerToSet": {"post": {"operationId": "stickers.addStickerToSet", "tags": ["ステッカー"], "summary": "Add a sticker to a stickerset. The sticker set must have been created by the current user/bot.", "description": "Add a sticker to a stickerset. The sticker set must have been created by the current user/bot.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKERPACK_STICKERS_TOO_MUCH` — There are too many stickers in this stickerpack, you can't add any more.\n- 406 · `STICKERSET_INVALID` — The provided sticker set is invalid.\n- 400 · `STICKERS_TOO_MUCH` — There are too many stickers in this stickerpack, you can't add any more.\n- 400 · `STICKER_PNG_NOPNG` — One of the specified stickers is not a valid PNG file.\n- 400 · `STICKER_TGS_NOTGS` — Invalid TGS sticker provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Set stickerset thumbnail", "description": "Set stickerset thumbnail\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)", "x-tl-method": "stickers.setStickerSetThumb", "x-tl-id": "2808763282", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKERSET_INVALID` — The provided sticker set is invalid.\n- 400 · `STICKER_THUMB_PNG_NOPNG` — Incorrect stickerset thumb file provided, PNG / WEBP expected.\n- 400 · `STICKER_THUMB_TGS_NOTGS` — Incorrect stickerset TGS thumb file provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Thumbnail (only for normal stickersets, not custom emoji stickersets).", "x-tl-flag": "flags.0?InputDocument"}, "thumb_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Only for [custom emoji stickersets](https://core.telegram.org/api/custom-emoji.md), ID of a custom emoji present in the set to use as thumbnail; pass 0 to fallback to the first custom emoji of the set.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "additionalProperties": false, "required": ["stickerset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | はい | ステッカーセット |\n| `thumb` | `InputDocument` | いいえ | Thumbnail (only for normal stickersets, not custom emoji stickersets). |\n| `thumb_document_id` | `long` | いいえ | Only for [custom emoji stickersets](https://core.telegram.org/api/custom-emoji.md), ID of a custom emoji present in the set to use as thumbnail; pass 0 to fallback to the first custom emoji of the set. |"}, "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": "Check whether the given short name is available", "description": "Check whether the given short name is available\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SHORT_NAME_INVALID` — The specified short name is invalid.\n- 400 · `SHORT_NAME_OCCUPIED` — The specified short name is already in use."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Short name"}}, "additionalProperties": false, "required": ["short_name"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `short_name` | `string` | はい | Short name |"}, "x-telegram-rpc-errors": ["SHORT_NAME_INVALID", "SHORT_NAME_OCCUPIED"], "x-browser-schema-id": "676017721"}}, "/catalog/stickers.suggestShortName": {"post": {"operationId": "stickers.suggestShortName", "tags": ["ステッカー"], "summary": "Suggests a short name for a given stickerpack name", "description": "Suggests a short name for a given stickerpack name\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: stickers.SuggestedShortName."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `TITLE_INVALID` — The specified stickerpack title is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Sticker pack name"}}, "additionalProperties": false, "required": ["title"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `title` | `string` | はい | Sticker pack name |"}, "x-telegram-rpc-errors": ["TITLE_INVALID"], "x-browser-schema-id": "1303364867"}}, "/catalog/stickers.changeSticker": {"post": {"operationId": "stickers.changeSticker", "tags": ["ステッカー"], "summary": "Update the keywords, emojis or mask coordinates of a sticker.", "description": "Update the keywords, emojis or [mask coordinates](https://core.telegram.org/api/stickers.md#mask-stickers) of a sticker.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)", "x-tl-method": "stickers.changeSticker", "x-tl-id": "4115889852", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKER_INVALID` — The provided sticker is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, updates the emoji list associated to the sticker"}, "mask_coords": {"type": "object", "x-tl-type": "MaskCoords", "oneOf": [{"$ref": "#/components/schemas/maskCoords"}], "description": "If set, updates the [mask coordinates](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": "If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers."}}, "additionalProperties": false, "required": ["sticker"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | はい | ステッカー |\n| `emoji` | `string` | いいえ | If set, updates the emoji list associated to the sticker |\n| `mask_coords` | `MaskCoords` | いいえ | If set, updates the [mask coordinates](https://core.telegram.org/api/stickers.md#mask-stickers) |\n| `keywords` | `string` | いいえ | If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers. |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "4115889852"}}, "/catalog/stickers.renameStickerSet": {"post": {"operationId": "stickers.renameStickerSet", "tags": ["ステッカー"], "summary": "Renames a stickerset.", "description": "Renames a stickerset.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKERSET_INVALID` — The provided sticker set is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Stickerset to rename"}, "title": {"type": "string", "x-tl-type": "string", "description": "New stickerset title"}}, "additionalProperties": false, "required": ["stickerset", "title"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | はい | Stickerset to rename |\n| `title` | `string` | はい | New stickerset title |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "306912256"}}, "/catalog/stickers.deleteStickerSet": {"post": {"operationId": "stickers.deleteStickerSet", "tags": ["ステッカー"], "summary": "Deletes a stickerset we created.", "description": "Deletes a stickerset we created.\n\n**Who can call this method** · Telegram users and bots.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKERSET_INVALID` — The provided sticker set is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Stickerset to delete"}}, "additionalProperties": false, "required": ["stickerset"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `stickerset` | `InputStickerSet` | はい | Stickerset to delete |"}, "x-telegram-rpc-errors": ["STICKERSET_INVALID"], "x-browser-schema-id": "2272281492"}}, "/catalog/stickers.replaceSticker": {"post": {"operationId": "stickers.replaceSticker", "tags": ["ステッカー"], "summary": "Replace a sticker in a stickerset ».", "description": "Replace a sticker in a [stickerset »](https://core.telegram.org/api/stickers.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Stickers and masks](https://core.telegram.org/api/stickers.md)", "x-tl-method": "stickers.replaceSticker", "x-tl-id": "1184253338", "x-tl-result": "messages.StickerSet", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Stickers and masks", "https://core.telegram.org/api/stickers.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.StickerSet."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `STICKER_INVALID` — The provided sticker is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Old sticker document."}, "new_sticker": {"type": "object", "x-tl-type": "InputStickerSetItem", "oneOf": [{"$ref": "#/components/schemas/inputStickerSetItem"}], "description": "New sticker."}}, "additionalProperties": false, "required": ["sticker", "new_sticker"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `sticker` | `InputDocument` | はい | Old sticker document. |\n| `new_sticker` | `InputStickerSetItem` | はい | New sticker. |"}, "x-telegram-rpc-errors": ["STICKER_INVALID"], "x-browser-schema-id": "1184253338"}}, "/catalog/phone.getCallConfig": {"post": {"operationId": "phone.getCallConfig", "tags": ["通話"], "summary": "DEPRECATED: Get phone call configuration to be passed to the libtgvoip (deprecated) shared config.", "description": "DEPRECATED: Get phone call configuration to be passed to the libtgvoip (deprecated) shared config.", "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 result · `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 type: DataJSON."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/phone.getCallConfig"}, "x-browser-schema-id": "1430593449"}}, "/catalog/phone.requestCall": {"post": {"operationId": "phone.requestCall", "tags": ["通話"], "summary": "Start a telegram phone call, see here » for more info on the full flow.", "description": "Start a telegram phone call, see [here »](https://core.telegram.org/api/calls.md#one-to-one-calls) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [End-to-End Encrypted Voice Calls](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.requestCall", "x-tl-id": "1124046573", "x-tl-result": "phone.PhoneCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["End-to-End Encrypted Voice Calls", "https://core.telegram.org/api/end-to-end/voice-calls.md"], ["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `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 type: phone.PhoneCall."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_PROTOCOL_FLAGS_INVALID` — Call protocol flags invalid.\n- 400 · `CALL_PROTOCOL_LAYER_INVALID` — The specified protocol layer version range is invalid.\n- 400 · `INPUT_USER_DEACTIVATED` — The specified user was deleted.\n- 400 · `PARTICIPANT_VERSION_OUTDATED` — The other participant does not use an up to date telegram client with support for calls.\n- 500 · `RANDOM_ID_DUPLICATE` — You provided a random ID that was already used.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 403 · `USER_IS_BLOCKED` — You were blocked by this user.\n- 403 · `USER_PRIVACY_RESTRICTED` — The user's privacy settings do not allow you to do this."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to start a video call"}, "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": "Destination of the phone call"}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Random ID to avoid resending the same object. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}, "g_a_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md)"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "oneOf": [{"$ref": "#/components/schemas/phoneCallProtocol"}], "description": "Phone call settings"}}, "additionalProperties": false, "required": ["user_id", "random_id", "g_a_hash", "protocol"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `video` | `true` | いいえ | Whether to start a video call |\n| `user_id` | `InputUser` | はい | Destination of the phone call |\n| `random_id` | `int` | はい | Random ID to avoid resending the same object. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `g_a_hash` | `bytes` | はい | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md) |\n| `protocol` | `PhoneCallProtocol` | はい | Phone call settings |"}, "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": "Accept incoming call, see here » for more info on the full flow.", "description": "Accept incoming call, see [here »](https://core.telegram.org/api/calls.md#one-to-one-calls) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [End-to-End Encrypted Voice Calls](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.acceptCall", "x-tl-id": "1003664544", "x-tl-result": "phone.PhoneCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["End-to-End Encrypted Voice Calls", "https://core.telegram.org/api/end-to-end/voice-calls.md"], ["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `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 type: phone.PhoneCall."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_ALREADY_ACCEPTED` — The call was already accepted.\n- 400 · `CALL_ALREADY_DECLINED` — The call was already declined.\n- 500 · `CALL_OCCUPY_FAILED` — The call failed because the user is already making another call.\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid.\n- 406 · `CALL_PROTOCOL_COMPAT_LAYER_INVALID` — The other side of the call does not support any of the VoIP protocols supported by the local client, as specified by the `protocol.layer` and `protocol.library_versions` fields.\n- 400 · `CALL_PROTOCOL_FLAGS_INVALID` — Call protocol flags invalid.\n- 400 · `CALL_PROTOCOL_LAYER_INVALID` — The specified protocol layer version range is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The call to accept"}, "g_b": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md)"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "oneOf": [{"$ref": "#/components/schemas/phoneCallProtocol"}], "description": "Phone call settings"}}, "additionalProperties": false, "required": ["peer", "g_b", "protocol"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | はい | The call to accept |\n| `g_b` | `bytes` | はい | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md) |\n| `protocol` | `PhoneCallProtocol` | はい | Phone call settings |"}, "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": "Complete phone call E2E encryption key exchange », see here » for more info on the full flow.", "description": "[Complete phone call E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md), see [here »](https://core.telegram.org/api/calls.md#one-to-one-calls) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [End-to-End Encrypted Voice Calls](https://core.telegram.org/api/end-to-end/voice-calls.md)\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.confirmCall", "x-tl-id": "788404002", "x-tl-result": "phone.PhoneCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["End-to-End Encrypted Voice Calls", "https://core.telegram.org/api/end-to-end/voice-calls.md"], ["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `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 type: phone.PhoneCall."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_ALREADY_DECLINED` — The call was already declined.\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The phone call"}, "g_a": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md)"}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "Key fingerprint", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "oneOf": [{"$ref": "#/components/schemas/phoneCallProtocol"}], "description": "Phone call settings"}}, "additionalProperties": false, "required": ["peer", "g_a", "key_fingerprint", "protocol"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | はい | The phone call |\n| `g_a` | `bytes` | はい | [Parameter for E2E encryption key exchange »](https://core.telegram.org/api/end-to-end/voice-calls.md) |\n| `key_fingerprint` | `long` | はい | Key fingerprint |\n| `protocol` | `PhoneCallProtocol` | はい | Phone call settings |"}, "x-telegram-rpc-errors": ["CALL_ALREADY_DECLINED", "CALL_PEER_INVALID"], "x-browser-schema-id": "788404002"}}, "/catalog/phone.receivedCall": {"post": {"operationId": "phone.receivedCall", "tags": ["通話"], "summary": "Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended, see here » for more info on the full flow.", "description": "Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended, see [here »](https://core.telegram.org/api/calls.md#one-to-one-calls) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.receivedCall", "x-tl-id": "399855457", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_ALREADY_DECLINED` — The call was already declined.\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The phone call we're currently in"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | はい | The phone call we're currently in |"}, "x-telegram-rpc-errors": ["CALL_ALREADY_DECLINED", "CALL_PEER_INVALID"], "x-browser-schema-id": "399855457"}}, "/catalog/phone.discardCall": {"post": {"operationId": "phone.discardCall", "tags": ["通話"], "summary": "Refuse or end running call, see here » for more info on the full flow.", "description": "Refuse or end running call, see [here »](https://core.telegram.org/api/calls.md#one-to-one-calls) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.discardCall", "x-tl-id": "2999697856", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_ALREADY_ACCEPTED` — The call was already accepted.\n- 500 · `CALL_OCCUPY_FAILED` — The call failed because the user is already making another call.\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether this is a video call"}, "peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "The phone call"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Call duration"}, "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": "Why was the call discarded"}, "connection_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Preferred libtgvoip relay ID", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "duration", "reason", "connection_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `video` | `true` | いいえ | Whether this is a video call |\n| `peer` | `InputPhoneCall` | はい | The phone call |\n| `duration` | `int` | はい | Call duration |\n| `reason` | `PhoneCallDiscardReason` | はい | Why was the call discarded |\n| `connection_id` | `long` | はい | Preferred libtgvoip relay 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": "Rate a call, returns info about the rating message sent to the official VoIP bot, see here » for more info on the full flow.", "description": "Rate a call, returns info about the rating message sent to the official VoIP bot, see [here »](https://core.telegram.org/api/calls.md#call-rating) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.setCallRating", "x-tl-id": "1508562471", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether the user decided on their own initiative to rate the call, must NOT be set if rating was requested by the server with [phoneCallDiscarded](https://core.telegram.org/constructor/phoneCallDiscarded.md).`need_rating`."}, "peer": {"type": "object", "x-tl-type": "InputPhoneCall", "oneOf": [{"$ref": "#/components/schemas/inputPhoneCall"}], "description": "The call to rate"}, "rating": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Rating in `1-5` stars"}, "comment": {"type": "string", "x-tl-type": "string", "description": "An additional comment with problem hashtags, see [here »](https://core.telegram.org/api/calls.md#call-rating) for more info on the full flow."}}, "additionalProperties": false, "required": ["peer", "rating", "comment"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `user_initiative` | `true` | いいえ | Whether the user decided on their own initiative to rate the call, must NOT be set if rating was requested by the server with [phoneCallDiscarded](https://core.telegram.org/constructor/phoneCallDiscarded.md).`need_rating`. |\n| `peer` | `InputPhoneCall` | はい | The call to rate |\n| `rating` | `int` | はい | Rating in `1-5` stars |\n| `comment` | `string` | はい | An additional comment with problem hashtags, see [here »](https://core.telegram.org/api/calls.md#call-rating) for more info on the full flow. |"}, "x-telegram-rpc-errors": ["CALL_PEER_INVALID"], "x-browser-schema-id": "1508562471"}}, "/catalog/phone.saveCallDebug": {"post": {"operationId": "phone.saveCallDebug", "tags": ["通話"], "summary": "Send phone call debug data to server.", "description": "Send [phone call](https://core.telegram.org/api/calls.md#call-debug) debug data to server.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.saveCallDebug", "x-tl-id": "662363518", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid.\n- 400 · `DATA_JSON_INVALID` — The provided JSON data is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone call"}, "debug": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Debug statistics obtained from tgcalls"}}, "additionalProperties": false, "required": ["peer", "debug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | はい | Phone call |\n| `debug` | `DataJSON` | はい | Debug statistics obtained from 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": "Send VoIP signaling data for an ongoing phone call.", "description": "Send VoIP [signaling data](https://core.telegram.org/api/calls.md#signaling-data) for an ongoing phone call.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Phone calls](https://core.telegram.org/api/calls.md)", "x-tl-method": "phone.sendSignalingData", "x-tl-id": "4286223235", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Phone calls", "https://core.telegram.org/api/calls.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_NOT_ACTIVE` — The specified call is not active.\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone call"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Signaling payload"}}, "additionalProperties": false, "required": ["peer", "data"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | はい | Phone call |\n| `data` | `bytes` | はい | Signaling payload |"}, "x-telegram-rpc-errors": ["CALL_NOT_ACTIVE", "CALL_PEER_INVALID"], "x-browser-schema-id": "4286223235"}}, "/catalog/phone.createGroupCall": {"post": {"operationId": "phone.createGroupCall", "tags": ["通話"], "summary": "Create a video chat or livestream, see here » for the full flow.", "description": "Create a video chat or livestream, see [here »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)", "x-tl-method": "phone.createGroupCall", "x-tl-id": "1221445336", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `CREATE_CALL_FAILED` — An error occurred while creating the call.\n- 400 · `GROUPCALL_ALREADY_DISCARDED` — The group call was already discarded.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SCHEDULE_DATE_INVALID` — Invalid schedule date provided."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Create the call in [RTMP livestream mode »](https://core.telegram.org/api/group-calls.md#stream-mode), where one external streamer publishes all audio and video"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Associate the group call or livestream to the provided [group/supergroup/channel](https://core.telegram.org/api/channel.md)"}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Unique client message ID required to prevent creation of duplicate group calls. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Call title, if not set defaults to the group/channel's name."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "Schedule date, at least 10 seconds and at most 8 days in the future; the call must still be manually started using [phone.startScheduledGroupCall](https://core.telegram.org/method/phone.startScheduledGroupCall.md)"}}, "additionalProperties": false, "required": ["peer", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `rtmp_stream` | `true` | いいえ | Create the call in [RTMP livestream mode »](https://core.telegram.org/api/group-calls.md#stream-mode), where one external streamer publishes all audio and video |\n| `peer` | `InputPeer` | はい | Associate the group call or livestream to the provided [group/supergroup/channel](https://core.telegram.org/api/channel.md) |\n| `random_id` | `int` | はい | Unique client message ID required to prevent creation of duplicate group calls. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `title` | `string` | いいえ | Call title, if not set defaults to the group/channel's name. |\n| `schedule_date` | `int` | いいえ | Schedule date, at least 10 seconds and at most 8 days in the future; the call must still be manually started using [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": "Join any group call type ». Conference calls additionally require the E2E joining flow ».", "description": "Join any [group call type »](https://core.telegram.org/api/group-calls.md#group-call-types). Conference calls additionally require the [E2E joining flow »](https://core.telegram.org/api/end-to-end/group-calls.md#joining-a-call).\n\nThe `params` field must contain a join payload generated by the local tgcalls group-call engine. It contains a random non-zero audio `ssrc`, ICE `ufrag` and `pwd`, DTLS `fingerprints`, and, when publishing video, `ssrc-groups`.\n\nFor example, a join payload without published video has the following shape:\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)\n- [Deep links](https://core.telegram.org/api/links.md)\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.joinGroupCall", "x-tl-id": "2411016279", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"], ["Deep links", "https://core.telegram.org/api/links.md"], ["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 403 · `CHAT_WRITE_FORBIDDEN` — You can't write in this chat.\n- 400 · `DATA_JSON_INVALID` — The provided JSON data is invalid.\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `GROUPCALL_SSRC_DUPLICATE_MUCH` — The app needs to retry joining the group call with a new SSRC value.\n- 400 · `JOIN_AS_PEER_INVALID` — The specified peer cannot be used to join a group call.\n- 400 · `PUBLIC_KEY_INVALID` — The specified e2e public key is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Join muted; required for live story listeners and RTMP-mode viewers"}, "video_stopped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Join with video disabled; required for live story listeners and RTMP-mode viewers"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Group call to join"}, "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": "Join the group call, presenting yourself as the specified user/channel; this peer is also used as the author of in-call messages in normal video chats/livestreams. Only video chats/livestreams may use another peer; this field must be equal to [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) when joining [live stories »](https://core.telegram.org/api/group-calls.md#live-stories) or [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls)."}, "invite_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "The invitation hash from the [invite link »](https://core.telegram.org/api/links.md#video-chat-livestream-links), if provided allows speaking in a livestream or muted group call ([video chats/livestreams »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) only, cannot be used by [live stories »](https://core.telegram.org/api/group-calls.md#live-stories) or [conference calls »](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": "For [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls) only, your public key."}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.3?bytes", "description": "The [main-chain block that adds the joining user »](https://core.telegram.org/api/end-to-end/group-calls.md#joining-a-call), only for [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls)."}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Join payload generated by the local tgcalls group-call engine, as described above"}}, "additionalProperties": false, "required": ["call", "join_as", "params"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `muted` | `true` | いいえ | Join muted; required for live story listeners and RTMP-mode viewers |\n| `video_stopped` | `true` | いいえ | Join with video disabled; required for live story listeners and RTMP-mode viewers |\n| `call` | `InputGroupCall` | はい | Group call to join |\n| `join_as` | `InputPeer` | はい | Join the group call, presenting yourself as the specified user/channel; this peer is also used as the author of in-call messages in normal video chats/livestreams. Only video chats/livestreams may use another peer; this field must be equal to [inputPeerSelf](https://core.telegram.org/constructor/inputPeerSelf.md) when joining [live stories »](https://core.telegram.org/api/group-calls.md#live-stories) or [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls). |\n| `invite_hash` | `string` | いいえ | The invitation hash from the [invite link »](https://core.telegram.org/api/links.md#video-chat-livestream-links), if provided allows speaking in a livestream or muted group call ([video chats/livestreams »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) only, cannot be used by [live stories »](https://core.telegram.org/api/group-calls.md#live-stories) or [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls)). |\n| `public_key` | `int256` | いいえ | For [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls) only, your public key. |\n| `block` | `bytes` | いいえ | The [main-chain block that adds the joining user »](https://core.telegram.org/api/end-to-end/group-calls.md#joining-a-call), only for [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls). |\n| `params` | `DataJSON` | はい | Join payload generated by the local tgcalls group-call engine, as described above |"}, "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": "Leave a group call without ending it for other participants. This method can be used with all group call types, see here » for more info.", "description": "Leave a group call without ending it for other participants. This method can be used with all group call types, see [here »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.leaveGroupCall", "x-tl-id": "1342404601", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group call to leave"}, "source": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Source ID of the main group call stream"}}, "additionalProperties": false, "required": ["call", "source"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Group call to leave |\n| `source` | `int` | はい | Source ID of the main group call stream |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "1342404601"}}, "/catalog/phone.inviteToGroupCall": {"post": {"operationId": "phone.inviteToGroupCall", "tags": ["通話"], "summary": "Invite a set of users to a video chat/livestream »; cannot be used for live stories » or conference calls ».", "description": "Invite a set of users to a [video chat/livestream »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams); cannot be used for [live stories »](https://core.telegram.org/api/group-calls.md#live-stories) or [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.inviteToGroupCall", "x-tl-id": "2067345760", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `CHAT_TYPE_INVALID` — The specified user type is invalid.\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `INVITE_FORBIDDEN_WITH_JOINAS` — If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID.\n- 400 · `USER_ALREADY_INVITED` — You have already invited this user.\n- 403 · `USER_NOT_PARTICIPANT` — You're not a member of this supergroup/channel."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The [video chat/livestream »](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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "The users to invite."}}, "additionalProperties": false, "required": ["call", "users"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | The [video chat/livestream »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) |\n| `users` | `Vector<InputUser>` | はい | The users to invite. |"}, "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": "Terminate a group call, ending the room for all participants. This method can be used with all group call types, see here » for more info.", "description": "Terminate a group call, ending the room for all participants. This method can be used with all group call types, see [here »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.discardGroupCall", "x-tl-id": "2054648117", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_ALREADY_DISCARDED` — The group call was already discarded.\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The group call to terminate"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | The group call to terminate |"}, "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": "Change group call settings. Each setting supports different group call types, see here » for more info.", "description": "Change group call settings. Each setting supports different group call types, see [here »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.toggleGroupCallSettings", "x-tl-id": "2537788146", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `GROUPCALL_CHANGE_FORBIDDEN` — You cannot change this group call setting.\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `GROUPCALL_NOT_MODIFIED` — Group call settings weren't modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Invalidate existing invite links for video chats, livestreams and conferences"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Group call whose settings should be changed"}, "join_muted": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Whether users joining a non-RTMP video chat/livestream should be muted by default"}, "messages_enabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "Enable or disable the in-call message overlay in video chats/livestreams, conferences and live stories, including in RTMP mode"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Set the minimum Telegram Stars donation required from users other than the live story owner for each comment; the owner may always comment without donating, and `0` allows free comments for everyone", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `reset_invite_hash` | `true` | いいえ | Invalidate existing invite links for video chats, livestreams and conferences |\n| `call` | `InputGroupCall` | はい | Group call whose settings should be changed |\n| `join_muted` | `Bool` | いいえ | Whether users joining a non-RTMP video chat/livestream should be muted by default |\n| `messages_enabled` | `Bool` | いいえ | Enable or disable the in-call message overlay in video chats/livestreams, conferences and live stories, including in RTMP mode |\n| `send_paid_messages_stars` | `long` | いいえ | Set the minimum Telegram Stars donation required from users other than the live story owner for each comment; the owner may always comment without donating, and `0` allows free comments for everyone |"}, "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": "Get info about a group call and its participants.", "description": "Get info about a [group call](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call) and its participants.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCall", "x-tl-id": "68699611", "x-tl-result": "phone.GroupCall", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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 type: phone.GroupCall."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group call of any type to fetch"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of participants to return in this call (0 to return a server-defined amount).  If the number of returned participants is less than [groupCall](https://core.telegram.org/constructor/groupCall.md).`participants_count`, paginate through the remaining participants using [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), passing to `offset` the [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md).`participants_next_offset` returned by this call.  This parameter behaves in a different way compared to the `limit` of [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), see [here »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call) for more info."}}, "additionalProperties": false, "required": ["call", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Group call of any type to fetch |\n| `limit` | `int` | はい | Maximum number of participants to return in this call (0 to return a server-defined amount).  If the number of returned participants is less than [groupCall](https://core.telegram.org/constructor/groupCall.md).`participants_count`, paginate through the remaining participants using [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), passing to `offset` the [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md).`participants_next_offset` returned by this call.  This parameter behaves in a different way compared to the `limit` of [phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md), see [here »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call) for more info. |"}, "x-telegram-rpc-errors": ["GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID"], "x-browser-schema-id": "68699611"}}, "/catalog/phone.getGroupParticipants": {"post": {"operationId": "phone.getGroupParticipants", "tags": ["通話"], "summary": "Get group call participants.", "description": "Get [group call](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call) participants.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupParticipants", "x-tl-id": "3310934187", "x-tl-result": "phone.GroupParticipants", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: phone.GroupParticipants."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group call whose participants should be fetched"}, "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "If specified, will fetch group participant info about the specified peers"}, "sources": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "If specified, will fetch group participant info about the specified WebRTC source IDs"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for results, taken from the `next_offset` field of [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) or the `participants_next_offset` field of [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md), initially an empty string.  Note: if no more results are available, the method call will return an empty `next_offset`; thus, avoid providing the `next_offset` returned in [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) if it is empty, to avoid an infinite loop."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["call", "ids", "sources", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Group call whose participants should be fetched |\n| `ids` | `Vector<InputPeer>` | はい | If specified, will fetch group participant info about the specified peers |\n| `sources` | `Vector<int>` | はい | If specified, will fetch group participant info about the specified WebRTC source IDs |\n| `offset` | `string` | はい | Offset for results, taken from the `next_offset` field of [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) or the `participants_next_offset` field of [phone.groupCall](https://core.telegram.org/constructor/phone.groupCall.md), initially an empty string.  Note: if no more results are available, the method call will return an empty `next_offset`; thus, avoid providing the `next_offset` returned in [phone.groupParticipants](https://core.telegram.org/constructor/phone.groupParticipants.md) if it is empty, to avoid an infinite loop. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Check which of the specified source IDs the server still recognizes as joined to a group call. This method can be used with all group call types, see here » for more info.", "description": "Check which of the specified source IDs the server still recognizes as joined to a group call. This method can be used with all group call types, see [here »](https://core.telegram.org/api/group-calls.md#maintaining-group-call-connections) for more info.\n\nAfter joining the main connection with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md), pass its non-zero SSRC/source ID to this method periodically. If a presentation connection is also active, include the separate source registered using [phone.joinGroupCallPresentation](https://core.telegram.org/method/phone.joinGroupCallPresentation.md).\n\nThe method returns the subset of the supplied sources that are still joined. A missing source means that the corresponding connection must be recreated and joined again; it does not indicate whether media packets are currently flowing. If the method returns `GROUPCALL_JOIN_MISSING`, the main connection must be rejoined.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.checkGroupCall", "x-tl-id": "3046963575", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Vector<int>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[int](https://core.telegram.org/type/int.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `GROUPCALL_JOIN_MISSING` — You haven't joined this group call."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group call whose WebRTC connections should be checked"}, "sources": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Non-zero SSRC/source IDs of the caller's main and presentation connections"}}, "additionalProperties": false, "required": ["call", "sources"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Group call whose WebRTC connections should be checked |\n| `sources` | `Vector<int>` | はい | Non-zero SSRC/source IDs of the caller's main and presentation connections |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "GROUPCALL_JOIN_MISSING"], "x-browser-schema-id": "3046963575"}}, "/catalog/phone.toggleGroupCallRecord": {"post": {"operationId": "phone.toggleGroupCallRecord", "tags": ["通話"], "summary": "Start or stop recording a video chat/livestream, see here » for more info. The recorded audio and video streams will be automatically sent to Saved Messages (the chat with ourselves).", "description": "Start or stop recording a video chat/livestream, see [here »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) for more info. The recorded audio and video streams will be automatically sent to Saved Messages (the chat with ourselves).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.toggleGroupCallRecord", "x-tl-id": "4045981448", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `GROUPCALL_NOT_MODIFIED` — Group call settings weren't modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to start or stop recording"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Whether to also record video streams"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Video chat/livestream to record"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Recording title"}, "video_portrait": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "If video stream recording is enabled, whether to record in portrait or landscape mode"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `start` | `true` | いいえ | Whether to start or stop recording |\n| `video` | `true` | いいえ | Whether to also record video streams |\n| `call` | `InputGroupCall` | はい | Video chat/livestream to record |\n| `title` | `string` | いいえ | Recording title |\n| `video_portrait` | `Bool` | いいえ | If video stream recording is enabled, whether to record in portrait or landscape mode |"}, "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": "Edit information about a participant of a non-RTMP video chat/livestream or conference. The `raise_hand` field is only supported in video chats/livestreams, see here » for more info.", "description": "Edit information about a participant of a non-RTMP video chat/livestream or conference. The `raise_hand` field is only supported in video chats/livestreams, see [here »](https://core.telegram.org/api/group-calls.md#managing-an-active-group-call) for more info.\n\nNote: [flags](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields).N?[Bool](https://core.telegram.org/type/Bool.md) parameters can have three possible values:\n\n- If the [TL flag](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields) is not set, the previous value will not be changed.\n- If the [TL flag](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields) is set and contains a [boolTrue](https://core.telegram.org/constructor/boolTrue.md), the previous value will be overwritten to `true`.\n- If the [TL flag](https://core.telegram.org/mtproto/TL-combinators.md#conditional-fields) is set and contains a [boolFalse](https://core.telegram.org/constructor/boolFalse.md), the previous value will be overwritten to `false`.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.editGroupCallParticipant", "x-tl-id": "2770811583", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `PARTICIPANT_JOIN_MISSING` — Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md).\n- 400 · `RAISE_HAND_FORBIDDEN` — You cannot raise your hand.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid.\n- 400 · `USER_VOLUME_INVALID` — The specified user volume is invalid.\n- 400 · `VIDEO_PAUSE_FORBIDDEN` — You cannot pause the video stream.\n- 400 · `VIDEO_STOP_FORBIDDEN` — You cannot stop the video stream."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Non-RTMP video chat/livestream or conference"}, "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": "The group call participant (can also be the user itself)"}, "muted": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "Change the participant's mute state; allowing a forcibly muted participant to self-unmute does not immediately unmute them"}, "volume": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int", "description": "New volume, between `1` and `20000`; `10000` represents 100%. Without moderation rights, changing another participant's volume affects only local playback"}, "raise_hand": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool", "description": "Raise or lower hand; only supported in video chats/livestreams"}, "video_stopped": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool", "description": "Start or stop the current user's video stream"}, "video_paused": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.4?Bool", "description": "Pause or resume the current user's video stream"}, "presentation_paused": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.5?Bool", "description": "Pause or resume the current user's presentation stream"}}, "additionalProperties": false, "required": ["call", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Non-RTMP video chat/livestream or conference |\n| `participant` | `InputPeer` | はい | The group call participant (can also be the user itself) |\n| `muted` | `Bool` | いいえ | Change the participant's mute state; allowing a forcibly muted participant to self-unmute does not immediately unmute them |\n| `volume` | `int` | いいえ | New volume, between `1` and `20000`; `10000` represents 100%. Without moderation rights, changing another participant's volume affects only local playback |\n| `raise_hand` | `Bool` | いいえ | Raise or lower hand; only supported in video chats/livestreams |\n| `video_stopped` | `Bool` | いいえ | Start or stop the current user's video stream |\n| `video_paused` | `Bool` | いいえ | Pause or resume the current user's video stream |\n| `presentation_paused` | `Bool` | いいえ | Pause or resume the current user's presentation stream |"}, "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": "Edit the title of a video chat or livestream. This method cannot be used with live stories or conferences, see here » for more info.", "description": "Edit the title of a video chat or livestream. This method cannot be used with live stories or conferences, see [here »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.editGroupCallTitle", "x-tl-id": "480685066", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Video chat or livestream whose title should be changed"}, "title": {"type": "string", "x-tl-type": "string", "description": "New title"}}, "additionalProperties": false, "required": ["call", "title"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Video chat or livestream whose title should be changed |\n| `title` | `string` | はい | New title |"}, "x-telegram-rpc-errors": ["GROUPCALL_FORBIDDEN", "GROUPCALL_INVALID"], "x-browser-schema-id": "480685066"}}, "/catalog/phone.getGroupCallJoinAs": {"post": {"operationId": "phone.getGroupCallJoinAs", "tags": ["通話"], "summary": "Get a list of peers that can be used to join a video chat or livestream », presenting yourself as a specific user/channel.", "description": "Get a list of peers that can be used to join a [video chat or livestream »](https://core.telegram.org/api/group-calls.md#joining-a-group-call-on-behalf-of-owned-channels), presenting yourself as a specific user/channel.\n\nThis method cannot be used for live stories or conference calls. To comment or react in a live story as another peer, use [channels.getSendAs](https://core.telegram.org/method/channels.getSendAs.md) with `for_live_stories` set and pass one of the returned peers to [phone.sendGroupCallMessage](https://core.telegram.org/method/phone.sendGroupCallMessage.md).`send_as`.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallJoinAs", "x-tl-id": "4017889594", "x-tl-result": "phone.JoinAsPeers", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: phone.JoinAsPeers."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The basic group, supergroup or channel whose video chat/livestream we're trying to join; cannot target a live story."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The basic group, supergroup or channel whose video chat/livestream we're trying to join; cannot target a live story. |"}, "x-telegram-rpc-errors": ["CHANNEL_INVALID", "PEER_ID_INVALID"], "x-browser-schema-id": "4017889594"}}, "/catalog/phone.exportGroupCallInvite": {"post": {"operationId": "phone.exportGroupCallInvite", "tags": ["通話"], "summary": "Get an invite link for a public video chat/livestream ».", "description": "Get an invite link for a public [video chat/livestream »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\nNon-admin members or subscribers may export a link with `can_self_unmute` omitted. Only group call admins may set `can_self_unmute` to export a link that allows users to speak.\n\nCannot be used for video chats/livestreams associated with private groups/channels, [conference calls »](https://core.telegram.org/api/group-calls.md#conference-calls) or [live stories »](https://core.telegram.org/api/group-calls.md#live-stories).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.exportGroupCallInvite", "x-tl-id": "3869926527", "x-tl-result": "phone.ExportedGroupCallInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: phone.ExportedGroupCallInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 403 · `PUBLIC_CHANNEL_MISSING` — You can only export group call invite links for public chats or channels."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "For public video chats/livestreams, group call admins only: allow users that join using this link to speak without explicitly requesting permission, for example by raising their hand."}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "The public [video chat/livestream »](https://core.telegram.org/api/group-calls.md#video-chats-livestreams)"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `can_self_unmute` | `true` | いいえ | For public video chats/livestreams, group call admins only: allow users that join using this link to speak without explicitly requesting permission, for example by raising their hand. |\n| `call` | `InputGroupCall` | はい | The public [video chat/livestream »](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": "Subscribe or unsubscribe to a scheduled group call.", "description": "Subscribe or unsubscribe to a scheduled [group call](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.toggleGroupCallStartSubscription", "x-tl-id": "563885286", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `GROUPCALL_ALREADY_STARTED` — The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md).\n- 403 · `GROUPCALL_FORBIDDEN` — The specified group call cannot be used in this context.\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Scheduled video chat/livestream that has not started yet"}, "subscribed": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to receive a service-notification message when the call starts"}}, "additionalProperties": false, "required": ["call", "subscribed"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Scheduled video chat/livestream that has not started yet |\n| `subscribed` | `Bool` | はい | Whether to receive a service-notification message when the call starts |"}, "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": "Start a scheduled group call.", "description": "Start a scheduled [group call](https://core.telegram.org/api/group-calls.md#video-chats-livestreams).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.startScheduledGroupCall", "x-tl-id": "1451287362", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `GROUPCALL_ALREADY_STARTED` — The groupcall has already started, you can join directly using [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md).\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Scheduled video chat/livestream to start, before or after its scheduled date"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Scheduled video chat/livestream to start, before or after its scheduled date |"}, "x-telegram-rpc-errors": ["GROUPCALL_ALREADY_STARTED", "GROUPCALL_INVALID"], "x-browser-schema-id": "1451287362"}}, "/catalog/phone.saveDefaultGroupCallJoinAs": {"post": {"operationId": "phone.saveDefaultGroupCallJoinAs", "tags": ["通話"], "summary": "Set the default peer used to join a video chat/livestream » associated with a specific dialog.", "description": "Set the default peer used to join a [video chat/livestream »](https://core.telegram.org/api/group-calls.md#joining-a-group-call-on-behalf-of-owned-channels) associated with a specific dialog.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.saveDefaultGroupCallJoinAs", "x-tl-id": "1465786252", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `JOIN_AS_PEER_INVALID` — The specified peer cannot be used to join a group call.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Basic group, supergroup or channel whose video chat/livestream default should be changed"}, "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": "Eligible peer to use by default when joining the dialog's video chats/livestreams, selected from [phone.getGroupCallJoinAs](https://core.telegram.org/method/phone.getGroupCallJoinAs.md)"}}, "additionalProperties": false, "required": ["peer", "join_as"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Basic group, supergroup or channel whose video chat/livestream default should be changed |\n| `join_as` | `InputPeer` | はい | Eligible peer to use by default when joining the dialog's video chats/livestreams, selected from [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": "Start screen sharing in a non-RTMP video chat/livestream or conference. Presentations are not supported in live stories or RTMP-mode video chats/livestreams, see here » for more info.", "description": "Start screen sharing in a non-RTMP video chat/livestream or conference. Presentations are not supported in live stories or RTMP-mode video chats/livestreams, see [here »](https://core.telegram.org/api/group-calls.md#presentations) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.joinGroupCallPresentation", "x-tl-id": "3421137860", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 403 · `PARTICIPANT_JOIN_MISSING` — Trying to enable a presentation, when the user hasn't joined the Video Chat with [phone.joinGroupCall](https://core.telegram.org/method/phone.joinGroupCall.md)."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Joined non-RTMP video chat/livestream or conference in which to start presenting"}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Join payload generated by a separate local call-engine instance for the presentation"}}, "additionalProperties": false, "required": ["call", "params"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Joined non-RTMP video chat/livestream or conference in which to start presenting |\n| `params` | `DataJSON` | はい | Join payload generated by a separate local call-engine instance for the presentation |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "PARTICIPANT_JOIN_MISSING"], "x-browser-schema-id": "3421137860"}}, "/catalog/phone.leaveGroupCallPresentation": {"post": {"operationId": "phone.leaveGroupCallPresentation", "tags": ["通話"], "summary": "Stop screen sharing in a non-RTMP video chat/livestream or conference. Presentations are not supported in live stories or RTMP-mode video chats/livestreams, see here » for more info.", "description": "Stop screen sharing in a non-RTMP video chat/livestream or conference. Presentations are not supported in live stories or RTMP-mode video chats/livestreams, see [here »](https://core.telegram.org/api/group-calls.md#presentations) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.leaveGroupCallPresentation", "x-tl-id": "475058500", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Group call whose presentation connection should be stopped"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Group call whose presentation connection should be stopped |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "475058500"}}, "/catalog/phone.getGroupCallStreamChannels": {"post": {"operationId": "phone.getGroupCallStreamChannels", "tags": ["通話"], "summary": "Get the available stream channels and current playback timestamp of an RTMP-mode video chat, livestream or live story, see here » for the full flow.  ", "description": "Get the available stream channels and current playback timestamp of an RTMP-mode video chat, livestream or live story, see [here »](https://core.telegram.org/api/group-calls.md#rtmp-mode) for the full flow.  \nThe group call must be joined before invoking this method. Send the request to the media DC specified by [groupCall](https://core.telegram.org/constructor/groupCall.md).`stream_dc_id`.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallStreamChannels", "x-tl-id": "447879488", "x-tl-result": "phone.GroupCallStreamChannels", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: phone.GroupCallStreamChannels."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `GROUPCALL_JOIN_MISSING` — You haven't joined this group call."}}, "externalDocs": {"description": "Official Telegram documentation", "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-mode video chat, livestream or live story"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | RTMP-mode video chat, livestream or live story |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "GROUPCALL_JOIN_MISSING"], "x-browser-schema-id": "447879488"}}, "/catalog/phone.getGroupCallStreamRtmpUrl": {"post": {"operationId": "phone.getGroupCallStreamRtmpUrl", "tags": ["通話"], "summary": "Get the RTMP URL and stream key used by the single external streamer that publishes all audio and video for an RTMP-mode video chat, livestream or live story.", "description": "Get the RTMP URL and stream key used by the single external streamer that publishes all audio and video for an RTMP-mode video chat, livestream or live story.\n\nSee [here »](https://core.telegram.org/api/group-calls.md#creating-and-publishing-an-rtmp-livestream) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallStreamRtmpUrl", "x-tl-id": "1525991226", "x-tl-result": "phone.GroupCallStreamRtmpUrl", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: phone.GroupCallStreamRtmpUrl."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Obtain credentials for an RTMP live story instead of a video chat/livestream"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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 that will host the RTMP video chat, livestream or live story"}, "revoke": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to invalidate the previous stream key and generate a new one, instead of returning the existing key"}}, "additionalProperties": false, "required": ["peer", "revoke"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `live_story` | `true` | いいえ | Obtain credentials for an RTMP live story instead of a video chat/livestream |\n| `peer` | `InputPeer` | はい | Peer that will host the RTMP video chat, livestream or live story |\n| `revoke` | `Bool` | はい | Whether to invalidate the previous stream key and generate a new one, instead of returning the existing key |"}, "x-telegram-rpc-errors": ["CHAT_ADMIN_REQUIRED", "PEER_ID_INVALID"], "x-browser-schema-id": "1525991226"}}, "/catalog/phone.saveCallLog": {"post": {"operationId": "phone.saveCallLog", "tags": ["通話"], "summary": "Deprecated: send libtgvoip phone call debug information", "description": "Deprecated: send libtgvoip phone call debug information\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CALL_PEER_INVALID` — The provided call peer object is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Phone call"}, "file": {"type": "object", "x-tl-type": "InputFile", "oneOf": [{"$ref": "#/components/schemas/inputFile"}, {"$ref": "#/components/schemas/inputFileBig"}, {"$ref": "#/components/schemas/inputFileStoryDocument"}], "description": "Libtgvoip logs"}}, "additionalProperties": false, "required": ["peer", "file"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPhoneCall` | はい | Phone call |\n| `file` | `InputFile` | はい | Libtgvoip logs |"}, "x-telegram-rpc-errors": ["CALL_PEER_INVALID"], "x-browser-schema-id": "1092913030"}}, "/catalog/phone.createConferenceCall": {"post": {"operationId": "phone.createConferenceCall", "tags": ["通話"], "summary": "Create and optionally join a new conference call ».", "description": "Create and optionally join a new [conference call »](https://core.telegram.org/api/group-calls.md#conference-calls).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.createConferenceCall", "x-tl-id": "2097431739", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, mute our microphone when joining the call (can only be used if `join` is set)."}, "video_stopped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "If set, our video stream is disabled (can only be used if `join` is set)."}, "join": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "If set, also join the call, otherwise just create the call link."}, "random_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Unique client message ID required to prevent creation of duplicate group calls. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping."}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "int256", "x-tl-flag": "flags.3?int256", "description": "Fresh E2E public key for the creator (can only be used if `join` is set)."}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.3?bytes", "description": "Initial main-chain block for subchain `0` (can only be used if `join` is set)."}, "params": {"type": "object", "x-tl-type": "DataJSON", "oneOf": [{"$ref": "#/components/schemas/dataJSON"}], "description": "Join payload generated by the local call engine (can only be used if `join` is set).", "x-tl-flag": "flags.3?DataJSON"}}, "additionalProperties": false, "required": ["random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `muted` | `true` | いいえ | If set, mute our microphone when joining the call (can only be used if `join` is set). |\n| `video_stopped` | `true` | いいえ | If set, our video stream is disabled (can only be used if `join` is set). |\n| `join` | `true` | いいえ | If set, also join the call, otherwise just create the call link. |\n| `random_id` | `int` | はい | Unique client message ID required to prevent creation of duplicate group calls. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `public_key` | `int256` | いいえ | Fresh E2E public key for the creator (can only be used if `join` is set). |\n| `block` | `bytes` | いいえ | Initial main-chain block for subchain `0` (can only be used if `join` is set). |\n| `params` | `DataJSON` | いいえ | Join payload generated by the local call engine (can only be used if `join` is set). |"}, "x-browser-schema-id": "2097431739"}}, "/catalog/phone.deleteConferenceCallParticipants": {"post": {"operationId": "phone.deleteConferenceCallParticipants", "tags": ["通話"], "summary": "Remove participants from a conference call ».", "description": "Remove participants from a [conference call »](https://core.telegram.org/api/end-to-end/group-calls.md#removing-a-participant).\n\nExactly one of the `only_left` and `kick` flags must be set.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.deleteConferenceCallParticipants", "x-tl-id": "2359690533", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether this is a removal of members that already left the conference call."}, "kick": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "Whether this is a forced removal of active members in a conference call."}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Conference from which to remove participants"}, "ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "User IDs to remove from the conference and E2E blockchain"}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Main-chain block removing the specified users and establishing a new shared key, see [removing a participant »](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` | いいえ | Whether this is a removal of members that already left the conference call. |\n| `kick` | `true` | いいえ | Whether this is a forced removal of active members in a conference call. |\n| `call` | `InputGroupCall` | はい | Conference from which to remove participants |\n| `ids` | `Vector<long>` | はい | User IDs to remove from the conference and E2E blockchain |\n| `block` | `bytes` | はい | Main-chain block removing the specified users and establishing a new shared key, see [removing a participant »](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": "Submit a verification message to conference call subchain `1`, see subchains ».", "description": "Submit a verification message to conference call subchain `1`, see [subchains »](https://core.telegram.org/api/end-to-end/group-calls.md#subchains).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.sendConferenceCallBroadcast", "x-tl-id": "3329235200", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Conference whose verification subchain should receive the message"}, "block": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Serialized `e2e.chain.GroupBroadcast` verification message."}}, "additionalProperties": false, "required": ["call", "block"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Conference whose verification subchain should receive the message |\n| `block` | `bytes` | はい | Serialized `e2e.chain.GroupBroadcast` verification message. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "3329235200"}}, "/catalog/phone.inviteConferenceCallParticipant": {"post": {"operationId": "phone.inviteConferenceCallParticipant", "tags": ["通話"], "summary": "Invite a user to a conference call.", "description": "Invite a user to a [conference call](https://core.telegram.org/api/group-calls.md#conference-calls).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.inviteConferenceCallParticipant", "x-tl-id": "3169986181", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether this is a video conference invitation"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "The conference call."}, "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": "The user to invite."}}, "additionalProperties": false, "required": ["call", "user_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `video` | `true` | いいえ | Whether this is a video conference invitation |\n| `call` | `InputGroupCall` | はい | The conference call. |\n| `user_id` | `InputUser` | はい | The user to invite. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "3169986181"}}, "/catalog/phone.declineConferenceCallInvite": {"post": {"operationId": "phone.declineConferenceCallInvite", "tags": ["通話"], "summary": "Decline a conference call invite.", "description": "Decline a [conference call](https://core.telegram.org/api/group-calls.md#conference-calls) invite.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.declineConferenceCallInvite", "x-tl-id": "1011325297", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The ID of the [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md) to decline."}}, "additionalProperties": false, "required": ["msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `msg_id` | `int` | はい | The ID of the [messageActionConferenceCall](https://core.telegram.org/constructor/messageActionConferenceCall.md) to decline. |"}, "x-telegram-rpc-errors": ["MESSAGE_ID_INVALID"], "x-browser-schema-id": "1011325297"}}, "/catalog/phone.getGroupCallChainBlocks": {"post": {"operationId": "phone.getGroupCallChainBlocks", "tags": ["通話"], "summary": "Fetch blocks from a conference call subchain »; handle the returned updateGroupCallChainBlocks as specified here ».", "description": "Fetch blocks from a conference call [subchain »](https://core.telegram.org/api/end-to-end/group-calls.md#subchains); handle the returned [updateGroupCallChainBlocks](https://core.telegram.org/constructor/updateGroupCallChainBlocks.md) as [specified here »](https://core.telegram.org/api/end-to-end/group-calls.md#handling-updates).\n\nIf the number of blocks returned by *any* call to this method is equal to `limit`, this method must be re-invoked immediately after processing the returned [updateGroupCallChainBlocks](https://core.telegram.org/constructor/updateGroupCallChainBlocks.md), with the newly committed `offset` (usually equal to the returned `next_offset`).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.getGroupCallChainBlocks", "x-tl-id": "4003432614", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Conference whose subchain blocks should be fetched"}, "sub_chain_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "`0` for the main state blockchain, `1` for the call verification subchain"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Fetch blocks starting from this height; pass `-1` to fetch the latest block"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of blocks to return in this call, [see pagination](https://core.telegram.org/api/offsets.md), max 100."}}, "additionalProperties": false, "required": ["call", "sub_chain_id", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Conference whose subchain blocks should be fetched |\n| `sub_chain_id` | `int` | はい | `0` for the main state blockchain, `1` for the call verification subchain |\n| `offset` | `int` | はい | Fetch blocks starting from this height; pass `-1` to fetch the latest block |\n| `limit` | `int` | はい | Maximum number of blocks to return in this call, [see pagination](https://core.telegram.org/api/offsets.md), max 100. |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "4003432614"}}, "/catalog/phone.sendGroupCallMessage": {"post": {"operationId": "phone.sendGroupCallMessage", "tags": ["通話"], "summary": "Send an in-call message to all participants of a video chat/livestream or live story, including in RTMP mode, see here » for more info.", "description": "Send an in-call message to all participants of a video chat/livestream or live story, including in RTMP mode, see [here »](https://core.telegram.org/api/group-calls.md#in-call-messages) for more info.\n\nThe `send_as` field can only be populated for live stories, where it optionally selects the displayed author. If omitted, the server automatically selects the appropriate author. Do not populate it for video chats/livestreams.\n\nVideo chats/livestreams and live stories support [animated emoji reactions »](https://core.telegram.org/api/group-calls.md#in-call-reactions), encoded as messages containing only a standard available reaction emoji or a single custom emoji entity.\n\nFor a paid live story comment, pass the user-confirmed donation amount in `allow_paid_stars`. For commenters other than the live story owner, this amount must be at least the current [groupCall](https://core.telegram.org/constructor/groupCall.md).`send_paid_messages_stars` minimum. A higher amount may be donated to highlight the comment. The live story owner may comment without populating `allow_paid_stars`. To send a standalone paid live story donation, pass a positive `allow_paid_stars` value and an empty `message`, see [here »](https://core.telegram.org/api/group-calls.md#paid-live-story-donations) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.sendGroupCallMessage", "x-tl-id": "2983269392", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid.\n- 400 · `GROUPCALL_JOIN_MISSING` — You haven't joined this group call."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Video chat/livestream or live story that should receive the message, reaction or donation"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Fresh client-generated random ID used to deduplicate the message or donation. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "oneOf": [{"$ref": "#/components/schemas/textWithEntities"}], "description": "Message text or emoji reaction; pass an empty value when sending a standalone paid live story donation"}, "allow_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "User-confirmed number of Telegram Stars to donate with a live story comment or standalone donation", "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": "Optional peer to display as the author of a live story message or reaction; can only be used for live stories", "x-tl-flag": "flags.1?InputPeer"}}, "additionalProperties": false, "required": ["call", "random_id", "message"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Video chat/livestream or live story that should receive the message, reaction or donation |\n| `random_id` | `long` | はい | Fresh client-generated random ID used to deduplicate the message or donation. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `message` | `TextWithEntities` | はい | Message text or emoji reaction; pass an empty value when sending a standalone paid live story donation |\n| `allow_paid_stars` | `long` | いいえ | User-confirmed number of Telegram Stars to donate with a live story comment or standalone donation |\n| `send_as` | `InputPeer` | いいえ | Optional peer to display as the author of a live story message or reaction; can only be used for live stories |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID", "GROUPCALL_JOIN_MISSING"], "x-browser-schema-id": "2983269392"}}, "/catalog/phone.sendGroupCallEncryptedMessage": {"post": {"operationId": "phone.sendGroupCallEncryptedMessage", "tags": ["通話"], "summary": "Send an E2E-encrypted message or emoji reaction to all participants of a conference call. This method can only be used with conferences; see here » for the serialization and encryption process.", "description": "Send an E2E-encrypted message or emoji reaction to all participants of a conference call. This method can only be used with conferences; see [here »](https://core.telegram.org/api/end-to-end/group-calls.md#conference-in-call-messages) for the serialization and encryption process.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [E2E Group Calls](https://core.telegram.org/api/end-to-end/group-calls.md)", "x-tl-method": "phone.sendGroupCallEncryptedMessage", "x-tl-id": "3853493613", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["E2E Group Calls", "https://core.telegram.org/api/end-to-end/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Conference call that should receive the encrypted message or reaction"}, "encrypted_message": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Complete encrypted message or reaction packet produced as specified [here »](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` | はい | Conference call that should receive the encrypted message or reaction |\n| `encrypted_message` | `bytes` | はい | Complete encrypted message or reaction packet produced as specified [here »](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": "Delete specific messages from the in-call message overlay » of a video chat/livestream or live story, including in RTMP mode.", "description": "Delete specific messages from the [in-call message overlay »](https://core.telegram.org/api/group-calls.md#in-call-messages) of a video chat/livestream or live story, including in RTMP mode.\n\nNon-admin participants may delete messages they sent; admins may delete any message.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.deleteGroupCallMessages", "x-tl-id": "4132394231", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "When moderating another participant's messages, also report them as spam"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Video chat/livestream or live story containing the messages"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of the messages to delete"}}, "additionalProperties": false, "required": ["call", "messages"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `report_spam` | `true` | いいえ | When moderating another participant's messages, also report them as spam |\n| `call` | `InputGroupCall` | はい | Video chat/livestream or live story containing the messages |\n| `messages` | `Vector<int>` | はい | IDs of the messages to delete |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "4132394231"}}, "/catalog/phone.deleteGroupCallParticipantMessages": {"post": {"operationId": "phone.deleteGroupCallParticipantMessages", "tags": ["通話"], "summary": "As an admin, delete all messages from a specific participant in the in-call message overlay » of a video chat/livestream or live story, including in RTMP mode.", "description": "As an admin, delete all messages from a specific participant in the [in-call message overlay »](https://core.telegram.org/api/group-calls.md#in-call-messages) of a video chat/livestream or live story, including in RTMP mode.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.deleteGroupCallParticipantMessages", "x-tl-id": "499117216", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Also report the participant's messages as spam"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "oneOf": [{"$ref": "#/components/schemas/inputGroupCall"}, {"$ref": "#/components/schemas/inputGroupCallSlug"}, {"$ref": "#/components/schemas/inputGroupCallInviteMessage"}], "description": "Video chat/livestream or live story containing the messages"}, "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": "The participant whose messages should be deleted"}}, "additionalProperties": false, "required": ["call", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `report_spam` | `true` | いいえ | Also report the participant's messages as spam |\n| `call` | `InputGroupCall` | はい | Video chat/livestream or live story containing the messages |\n| `participant` | `InputPeer` | はい | The participant whose messages should be deleted |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "499117216"}}, "/catalog/phone.getGroupCallStars": {"post": {"operationId": "phone.getGroupCallStars", "tags": ["通話"], "summary": "Fetch a live story's total donations and top donors, see paid live story donations ».", "description": "Fetch a live story's total donations and top donors, see [paid live story donations »](https://core.telegram.org/api/group-calls.md#paid-live-story-donations).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.getGroupCallStars", "x-tl-id": "1868784386", "x-tl-result": "phone.GroupCallStars", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: phone.GroupCallStars."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Live story group call"}}, "additionalProperties": false, "required": ["call"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Live story group call |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "1868784386"}}, "/catalog/phone.saveDefaultSendAs": {"post": {"operationId": "phone.saveDefaultSendAs", "tags": ["通話"], "summary": "Save the default peer displayed as the author of live story comments and reactions, see in-call messages ».", "description": "Save the default peer displayed as the author of live story comments and reactions, see [in-call messages »](https://core.telegram.org/api/group-calls.md#in-call-messages).\n\nIt cannot be used for normal video chats/livestreams, where in-call messages are sent as the peer used to join the call (`join_as`).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)", "x-tl-method": "phone.saveDefaultSendAs", "x-tl-id": "1097313745", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GROUPCALL_INVALID` — The specified group call is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Live story group call"}, "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 to display as the author of subsequent comments and reactions"}}, "additionalProperties": false, "required": ["call", "send_as"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `call` | `InputGroupCall` | はい | Live story group call |\n| `send_as` | `InputPeer` | はい | Peer to display as the author of subsequent comments and reactions |"}, "x-telegram-rpc-errors": ["GROUPCALL_INVALID"], "x-browser-schema-id": "1097313745"}}, "/catalog/langpack.getLangPack": {"post": {"operationId": "langpack.getLangPack", "tags": ["送金"], "summary": "Get localization pack strings", "description": "Get localization pack strings\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getLangPack", "x-tl-id": "4075959050", "x-tl-result": "LangPackDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `LangPackDifference`.\n\n[LangPackDifference](https://core.telegram.org/type/LangPackDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "LangPackDifference", "oneOf": [{"$ref": "#/components/schemas/langPackDifference"}], "description": "TL Type: LangPackDifference."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `LANGUAGE_INVALID` — The specified lang_code is invalid.\n- 400 · `LANG_CODE_NOT_SUPPORTED` — The specified language code is not supported.\n- 400 · `LANG_PACK_INVALID` — The provided language pack is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Platform identifier (i.e. `android`, `tdesktop`, etc)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links)."}}, "additionalProperties": false, "required": ["lang_pack", "lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | はい | Platform identifier (i.e. `android`, `tdesktop`, etc). |\n| `lang_code` | `string` | はい | Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](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": "Get strings from a language pack", "description": "Get strings from a language pack\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getStrings", "x-tl-id": "4025104387", "x-tl-result": "Vector<LangPackString>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Vector<LangPackString>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[LangPackString](https://core.telegram.org/type/LangPackString.md)&gt;", "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 Type: LangPackString."}, "x-tl-type": "Vector<LangPackString>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `LANG_CODE_NOT_SUPPORTED` — The specified language code is not supported.\n- 400 · `LANG_PACK_INVALID` — The provided language pack is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Platform identifier (i.e. `android`, `tdesktop`, etc)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](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": "Strings to get"}}, "additionalProperties": false, "required": ["lang_pack", "lang_code", "keys"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | はい | Platform identifier (i.e. `android`, `tdesktop`, etc). |\n| `lang_code` | `string` | はい | Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links). |\n| `keys` | `Vector<string>` | はい | Strings to get |"}, "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": "Get new strings in language pack", "description": "Get new strings in language pack\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getDifference", "x-tl-id": "3449309861", "x-tl-result": "LangPackDifference", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `LangPackDifference`.\n\n[LangPackDifference](https://core.telegram.org/type/LangPackDifference.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "LangPackDifference", "oneOf": [{"$ref": "#/components/schemas/langPackDifference"}], "description": "TL Type: LangPackDifference."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `LANG_PACK_INVALID` — The provided language pack is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Platform identifier (i.e. `android`, `tdesktop`, etc)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links)."}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Previous localization pack version"}}, "additionalProperties": false, "required": ["lang_pack", "lang_code", "from_version"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | はい | Platform identifier (i.e. `android`, `tdesktop`, etc). |\n| `lang_code` | `string` | はい | Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links). |\n| `from_version` | `int` | はい | Previous localization pack version |"}, "x-telegram-rpc-errors": ["LANG_PACK_INVALID"], "x-browser-schema-id": "3449309861"}}, "/catalog/langpack.getLanguages": {"post": {"operationId": "langpack.getLanguages", "tags": ["送金"], "summary": "Get information about all languages in a localization pack", "description": "Get information about all languages in a localization pack\n\n**Who can call this method** · Telegram users only.", "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 result · `Vector<LangPackLanguage>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[LangPackLanguage](https://core.telegram.org/type/LangPackLanguage.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "LangPackLanguage", "oneOf": [{"$ref": "#/components/schemas/langPackLanguage"}], "description": "TL Type: LangPackLanguage."}, "x-tl-type": "Vector<LangPackLanguage>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `LANG_PACK_INVALID` — The provided language pack is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Platform identifier (i.e. `android`, `tdesktop`, etc)."}}, "additionalProperties": false, "required": ["lang_pack"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | はい | Platform identifier (i.e. `android`, `tdesktop`, etc). |"}, "x-telegram-rpc-errors": ["LANG_PACK_INVALID"], "x-browser-schema-id": "1120311183"}}, "/catalog/langpack.getLanguage": {"post": {"operationId": "langpack.getLanguage", "tags": ["送金"], "summary": "Get information about a language in a localization pack", "description": "Get information about a language in a localization pack\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "langpack.getLanguage", "x-tl-id": "1784243458", "x-tl-result": "LangPackLanguage", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `LangPackLanguage`.\n\n[LangPackLanguage](https://core.telegram.org/type/LangPackLanguage.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "LangPackLanguage", "oneOf": [{"$ref": "#/components/schemas/langPackLanguage"}], "description": "TL Type: LangPackLanguage."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `LANG_CODE_NOT_SUPPORTED` — The specified language code is not supported.\n- 400 · `LANG_PACK_INVALID` — The provided language pack is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Platform identifier (i.e. `android`, `tdesktop`, etc)."}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links)."}}, "additionalProperties": false, "required": ["lang_pack", "lang_code"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `lang_pack` | `string` | はい | Platform identifier (i.e. `android`, `tdesktop`, etc). |\n| `lang_code` | `string` | はい | Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](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": "Edit peers in peer folder", "description": "Edit peers in [peer folder](https://core.telegram.org/api/folders.md#peer-folders)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)", "x-tl-method": "folders.editPeerFolders", "x-tl-id": "1749536939", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHAT_ID_INVALID` — The provided chat id is invalid.\n- 400 · `FOLDER_ID_INVALID` — Invalid folder ID."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputFolderPeer."}, "x-tl-type": "Vector<InputFolderPeer>", "description": "New peer list"}}, "additionalProperties": false, "required": ["folder_peers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `folder_peers` | `Vector<InputFolderPeer>` | はい | New peer list |"}, "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": "Get channel statistics", "description": "Get [channel statistics](https://core.telegram.org/api/stats.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getBroadcastStats", "x-tl-id": "2873246746", "x-tl-result": "stats.BroadcastStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stats.BroadcastStats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BROADCAST_REQUIRED` — This method can only be called on a channel, please use stats.getMegagroupStats for supergroups.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to enable dark theme for graph colors"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "The channel"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dark` | `true` | いいえ | Whether to enable dark theme for graph colors |\n| `channel` | `InputChannel` | はい | The channel |"}, "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": "Load channel statistics graph asynchronously", "description": "Load [channel statistics graph](https://core.telegram.org/api/stats.md) asynchronously\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.loadAsyncGraph", "x-tl-id": "1646092192", "x-tl-result": "StatsGraph", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "MTProto result · `StatsGraph`.\n\n[StatsGraph](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 Type: StatsGraph."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `GRAPH_EXPIRED_RELOAD` — This graph has expired, please obtain a new graph token.\n- 400 · `GRAPH_INVALID_RELOAD` — Invalid graph token provided, please reload the stats and provide the updated token.\n- 400 · `GRAPH_OUTDATED_RELOAD` — The graph is outdated, please get a new async token using stats.getBroadcastStats."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Graph token from [statsGraphAsync](https://core.telegram.org/constructor/statsGraphAsync.md) constructor"}, "x": {"type": "string", "pattern": "^-?\\d+$", "description": "Zoom value, if required", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "additionalProperties": false, "required": ["token"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `token` | `string` | はい | Graph token from [statsGraphAsync](https://core.telegram.org/constructor/statsGraphAsync.md) constructor |\n| `x` | `long` | いいえ | Zoom value, if required |"}, "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": "Get supergroup statistics", "description": "Get [supergroup statistics](https://core.telegram.org/api/stats.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getMegagroupStats", "x-tl-id": "3705636359", "x-tl-result": "stats.MegagroupStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stats.MegagroupStats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 403 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `MEGAGROUP_REQUIRED` — You can only use this method on a supergroup."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to enable dark theme for graph colors"}, "channel": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "[Supergroup ID](https://core.telegram.org/api/channel.md)"}}, "additionalProperties": false, "required": ["channel"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dark` | `true` | いいえ | Whether to enable dark theme for graph colors |\n| `channel` | `InputChannel` | はい | [Supergroup 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": "Obtains a list of messages, indicating to which other public channels was a channel message forwarded.  ", "description": "Obtains a list of messages, indicating to which other public channels was a channel message forwarded.  \nWill return a list of [messages](https://core.telegram.org/constructor/message.md) with `peer_id` equal to the public channel to which this message was forwarded.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "stats.getMessagePublicForwards", "x-tl-id": "1595212100", "x-tl-result": "stats.PublicForwards", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stats.PublicForwards."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Source channel"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Source message ID"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for [pagination](https://core.telegram.org/api/offsets.md), empty string on first call, then use the `next_offset` field of the returned constructor (if present, otherwise no more results are available)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["channel", "msg_id", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `channel` | `InputChannel` | はい | Source channel |\n| `msg_id` | `int` | はい | Source message ID |\n| `offset` | `string` | はい | Offset for [pagination](https://core.telegram.org/api/offsets.md), empty string on first call, then use the `next_offset` field of the returned constructor (if present, otherwise no more results are available). |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Get message statistics", "description": "Get [message statistics](https://core.telegram.org/api/stats.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getMessageStats", "x-tl-id": "3068175349", "x-tl-result": "stats.MessageStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stats.MessageStats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `MESSAGE_ID_INVALID` — The provided message id is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to enable dark theme for graph colors"}, "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": "メッセージID"}}, "additionalProperties": false, "required": ["channel", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dark` | `true` | いいえ | Whether to enable dark theme for graph colors |\n| `channel` | `InputChannel` | はい | チャンネルID |\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": "Get statistics for a certain story.", "description": "Get [statistics](https://core.telegram.org/api/stats.md) for a certain [story](https://core.telegram.org/api/stories.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stats.getStoryStats", "x-tl-id": "927985472", "x-tl-result": "stats.StoryStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stats.StoryStats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORIES_NEVER_CREATED` — This peer hasn't ever posted any stories."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to enable the dark theme for graph colors"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The peer that posted the story"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ストーリーID"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dark` | `true` | いいえ | Whether to enable the dark theme for graph colors |\n| `peer` | `InputPeer` | はい | The peer that posted the story |\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": "Obtain forwards of a story as a message to public chats and reposts by public channels.", "description": "Obtain forwards of a [story](https://core.telegram.org/api/stories.md) as a message to public chats and reposts by public channels.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "stats.getStoryPublicForwards", "x-tl-id": "2789441270", "x-tl-result": "stats.PublicForwards", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stats.PublicForwards."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the story was originally posted"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Story](https://core.telegram.org/api/stories.md) ID"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for pagination, from [stats.PublicForwards](https://core.telegram.org/constructor/stats.publicForwards.md).`next_offset`."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "id", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the story was originally posted |\n| `id` | `int` | はい | [Story](https://core.telegram.org/api/stories.md) ID |\n| `offset` | `string` | はい | Offset for pagination, from [stats.PublicForwards](https://core.telegram.org/constructor/stats.publicForwards.md).`next_offset`. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Get statistics for a poll sent in a message.", "description": "Get [statistics](https://core.telegram.org/api/stats.md#poll-statistics) for a poll sent in a message.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel statistics](https://core.telegram.org/api/stats.md)", "x-tl-method": "stats.getPollStats", "x-tl-id": "3263036008", "x-tl-result": "stats.PollStats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel statistics", "https://core.telegram.org/api/stats.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stats.PollStats."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to enable dark theme for graph colors"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The peer where the poll was sent"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the message containing the poll"}}, "additionalProperties": false, "required": ["peer", "msg_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `dark` | `true` | いいえ | Whether to enable dark theme for graph colors |\n| `peer` | `InputPeer` | はい | The peer where the poll was sent |\n| `msg_id` | `int` | はい | ID of the message containing the poll |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3263036008"}}, "/catalog/chatlists.exportChatlistInvite": {"post": {"operationId": "chatlists.exportChatlistInvite", "tags": ["チャットフォルダー"], "summary": "Export a folder », creating a chat folder deep link ».", "description": "Export a [folder »](https://core.telegram.org/api/folders.md), creating a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "chatlists.exportChatlistInvite", "x-tl-id": "2222081934", "x-tl-result": "chatlists.ExportedChatlistInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"], ["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Deep links", "https://core.telegram.org/api/links.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto Result · `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": "Type TL: chatlists.ExportedChatlistInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `CHATLISTS_TOO_MUCH` — You have created too many folder links, hitting the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [limits&nbsp;&raquo;](https://core.telegram.org/api/config.md#chatlist-invites-limit-default).\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context.\n- 400 · `INVITES_TOO_MUCH` — The maximum number of per-folder invites specified by the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [client configuration parameters&nbsp;&raquo;](https://core.telegram.org/api/config.md#chatlist-invites-limit-default) was reached.\n- 400 · `PEERS_LIST_EMPTY` — The specified list of peers is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The folder to export"}, "title": {"type": "string", "x-tl-type": "string", "description": "An optional name for the link"}, "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "The list of channels, group and supergroups to share with the link. Basic groups will automatically be [converted to supergroups](https://core.telegram.org/api/channel.md#migration) when invoking the method."}}, "additionalProperties": false, "required": ["chatlist", "title", "peers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | The folder to export |\n| `title` | `string` | はい | An optional name for the link |\n| `peers` | `Vector<InputPeer>` | はい | The list of channels, group and supergroups to share with the link. Basic groups will automatically be [converted to supergroups](https://core.telegram.org/api/channel.md#migration) when invoking the method. |"}, "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": "Delete a previously created chat folder deep link ».", "description": "Delete a previously created [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.deleteExportedInvite", "x-tl-id": "1906072670", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context.\n- 400 · `INVITE_SLUG_EXPIRED` — The specified chat folder link has expired.\n- 400 · `INVITE_SLUG_INVALID` — The specified invitation slug is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The related folder"}, "slug": {"type": "string", "x-tl-type": "string", "description": "`slug` obtained from the [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links)."}}, "additionalProperties": false, "required": ["chatlist", "slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | The related folder |\n| `slug` | `string` | はい | `slug` obtained from the [chat folder deep link »](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": "Edit a chat folder deep link ».", "description": "Edit a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.editExportedInvite", "x-tl-id": "1698543165", "x-tl-result": "ExportedChatlistInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `ExportedChatlistInvite`.\n\n[ExportedChatlistInvite](https://core.telegram.org/type/ExportedChatlistInvite.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedChatlistInvite", "oneOf": [{"$ref": "#/components/schemas/exportedChatlistInvite"}], "description": "TL Type: ExportedChatlistInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context.\n- 400 · `INVITE_SLUG_EMPTY` — The specified invite slug is empty.\n- 400 · `INVITE_SLUG_EXPIRED` — The specified chat folder link has expired.\n- 400 · `PEERS_LIST_EMPTY` — The specified list of peers is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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` obtained from the [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links)."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "If set, sets a new name for the link"}, "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "x-tl-flag": "flags.2?Vector<InputPeer>", "description": "If set, changes the list of peers shared with the link"}}, "additionalProperties": false, "required": ["chatlist", "slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | フォルダーID |\n| `slug` | `string` | はい | `slug` obtained from the [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links). |\n| `title` | `string` | いいえ | If set, sets a new name for the link |\n| `peers` | `Vector<InputPeer>` | いいえ | If set, changes the list of peers shared with the link |"}, "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": "List all chat folder deep links » associated to a folder", "description": "List all [chat folder deep links »](https://core.telegram.org/api/links.md#chat-folder-links) associated to a folder\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.getExportedInvites", "x-tl-id": "3456359043", "x-tl-result": "chatlists.ExportedInvites", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `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 type: chatlists.ExportedInvites."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The folder"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | The folder |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID"], "x-browser-schema-id": "3456359043"}}, "/catalog/chatlists.checkChatlistInvite": {"post": {"operationId": "chatlists.checkChatlistInvite", "tags": ["チャットフォルダー"], "summary": "Obtain information about a chat folder deep link ».", "description": "Obtain information about a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.checkChatlistInvite", "x-tl-id": "1103171583", "x-tl-result": "chatlists.ChatlistInvite", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto Result · `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 type: chatlists.ChatlistInvite."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `INVITE_SLUG_EMPTY` — The specified invite slug is empty.\n- 400 · `INVITE_SLUG_EXPIRED` — The specified chat folder link has expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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` obtained from the [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links)"}}, "additionalProperties": false, "required": ["slug"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | `slug` obtained from the [chat folder deep link »](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": "Import a chat folder deep link », joining some or all the chats in the folder.", "description": "Import a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links), joining some or all the chats in the folder.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "chatlists.joinChatlistInvite", "x-tl-id": "2796675994", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNELS_TOO_MUCH` — You have joined too many channels/supergroups.\n- 400 · `CHATLISTS_TOO_MUCH` — You have created too many folder links, hitting the `chatlist_invites_limit_default`/`chatlist_invites_limit_premium` [limits&nbsp;&raquo;](https://core.telegram.org/api/config.md#chatlist-invites-limit-default).\n- 400 · `FILTER_INCLUDE_EMPTY` — The include_peers vector of the filter is empty.\n- 400 · `INVITE_SLUG_EMPTY` — The specified invite slug is empty.\n- 400 · `INVITE_SLUG_EXPIRED` — The specified chat folder link has expired."}}, "externalDocs": {"description": "Official Telegram documentation", "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` obtained from a [chat folder deep link »](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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "List of new chats to join, fetched using [chatlists.checkChatlistInvite](https://core.telegram.org/method/chatlists.checkChatlistInvite.md) and filtered as specified in the [documentation »](https://core.telegram.org/api/folders.md#shared-folders)."}}, "additionalProperties": false, "required": ["slug", "peers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slug` | `string` | はい | `slug` obtained from a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links). |\n| `peers` | `Vector<InputPeer>` | はい | List of new chats to join, fetched using [chatlists.checkChatlistInvite](https://core.telegram.org/method/chatlists.checkChatlistInvite.md) and filtered as specified in the [documentation »](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": "Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every `chatlist_update_period` seconds (as per the related client configuration parameter »).", "description": "Fetch new chats associated with an imported [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links). Must be invoked at most every `chatlist_update_period` seconds (as per the related [client configuration parameter »](https://core.telegram.org/api/config.md#chatlist-update-period)).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "chatlists.getChatlistUpdates", "x-tl-id": "2302776609", "x-tl-result": "chatlists.ChatlistUpdates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `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 type: chatlists.ChatlistUpdates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context.\n- 400 · `INPUT_CHATLIST_INVALID` — The specified folder is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The folder"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | The folder |"}, "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": "Join channels and supergroups recently added to a chat folder deep link ».", "description": "Join channels and supergroups recently added to a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Dialog folders](https://core.telegram.org/api/folders.md)\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.joinChatlistUpdates", "x-tl-id": "3767138549", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Dialog folders", "https://core.telegram.org/api/folders.md"], ["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_INCLUDE_EMPTY` — The include_peers vector of the filter is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The folder"}, "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "List of new chats to join, fetched using [chatlists.getChatlistUpdates](https://core.telegram.org/method/chatlists.getChatlistUpdates.md) and filtered as specified in the [documentation »](https://core.telegram.org/api/folders.md#shared-folders)."}}, "additionalProperties": false, "required": ["chatlist", "peers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | The folder |\n| `peers` | `Vector<InputPeer>` | はい | List of new chats to join, fetched using [chatlists.getChatlistUpdates](https://core.telegram.org/method/chatlists.getChatlistUpdates.md) and filtered as specified in the [documentation »](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": "Dismiss new pending peers recently added to a chat folder deep link ».", "description": "Dismiss new pending peers recently added to a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.hideChatlistUpdates", "x-tl-id": "1726252795", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The folder"}}, "additionalProperties": false, "required": ["chatlist"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | The folder |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID", "FILTER_NOT_SUPPORTED"], "x-browser-schema-id": "1726252795"}}, "/catalog/chatlists.getLeaveChatlistSuggestions": {"post": {"operationId": "chatlists.getLeaveChatlistSuggestions", "tags": ["チャットフォルダー"], "summary": "Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted.", "description": "Returns identifiers of pinned or always included chats from a chat folder imported using a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links), which are suggested to be left when the chat folder is deleted.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.getLeaveChatlistSuggestions", "x-tl-id": "4257011476", "x-tl-result": "Vector<Peer>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Vector<Peer>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[Peer](https://core.telegram.org/type/Peer.md)&gt;", "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 Type: Peer."}, "x-tl-type": "Vector<Peer>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid.\n- 400 · `FILTER_NOT_SUPPORTED` — The specified filter cannot be used in this context."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Delete a folder imported using a chat folder deep link »", "description": "Delete a folder imported using a [chat folder deep link »](https://core.telegram.org/api/links.md#chat-folder-links)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "chatlists.leaveChatlist", "x-tl-id": "1962598714", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `FILTER_ID_INVALID` — The specified filter ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Also leave the specified channels and groups"}}, "additionalProperties": false, "required": ["chatlist", "peers"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `chatlist` | `InputChatlist` | はい | フォルダーID |\n| `peers` | `Vector<InputPeer>` | はい | Also leave the specified channels and groups |"}, "x-telegram-rpc-errors": ["FILTER_ID_INVALID"], "x-browser-schema-id": "1962598714"}}, "/catalog/stories.canSendStory": {"post": {"operationId": "stories.canSendStory", "tags": ["ストーリー"], "summary": "Check whether we can post stories as the specified peer.", "description": "Check whether we can post stories as the specified peer.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "stories.canSendStory", "x-tl-id": "820732912", "x-tl-result": "stories.CanSendStoryCount", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stories.CanSendStoryCount."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOOSTS_REQUIRED` — The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost.md) in order to perform this action.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 400 · `STORIES_TOO_MUCH` — You have hit the maximum active stories limit as specified by the [`story_expiring_limit_*` client configuration parameters](https://core.telegram.org/api/config.md#story-expiring-limit-default): you should buy a [Premium](https://core.telegram.org/api/premium.md) subscription, delete an active story, or wait for the oldest story to expire.\n- 400 · `STORY_SEND_FLOOD_MONTHLY_%d` — You've hit the monthly story limit as specified by the [`stories_sent_monthly_limit_*` client configuration parameters](https://core.telegram.org/api/config.md#stories-sent-monthly-limit-default): wait %d seconds before posting a new story.\n- 400 · `STORY_SEND_FLOOD_WEEKLY_%d` — You've hit the weekly story limit as specified by the [`stories_sent_weekly_limit_*` client configuration parameters](https://core.telegram.org/api/config.md#stories-sent-weekly-limit-default): wait for %d seconds before posting a new story."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer from which we wish to post stories."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer from which we wish to post stories. |"}, "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": "Uploads a Telegram Story.", "description": "Uploads a [Telegram Story](https://core.telegram.org/api/stories.md).\n\nMay also be used in a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md), *not* by wrapping the query in [invokeWithBusinessConnection »](https://core.telegram.org/method/invokeWithBusinessConnection.md), but rather by specifying the ID of a controlled business user in `peer`.\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Privacy settings](https://core.telegram.org/api/privacy.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)", "x-tl-method": "stories.sendStory", "x-tl-id": "2409523352", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Privacy settings", "https://core.telegram.org/api/privacy.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOOSTS_REQUIRED` — The specified channel must first be [boosted by its users](https://core.telegram.org/api/boost.md) in order to perform this action.\n- 403 · `BOT_ACCESS_FORBIDDEN` — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `IMAGE_PROCESS_FAILED` — Failure while processing image.\n- 400 · `MEDIA_CAPTION_TOO_LONG` — The caption is too long.\n- 400 · `MEDIA_EMPTY` — The provided media object is invalid.\n- 400 · `MEDIA_FILE_INVALID` — The specified media file is invalid.\n- 400 · `MEDIA_TYPE_INVALID` — The specified media type cannot be used in stories.\n- 400 · `MEDIA_VIDEO_STORY_MISSING` — A non-story video cannot be repubblished as a story (emitted when trying to resend a non-story video as a story using inputDocument).\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `PHOTO_INVALID_DIMENSIONS` — The photo dimensions are invalid.\n- 400 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action.\n- 400 · `REACTION_INVALID` — The specified reaction is invalid.\n- 400 · `STORIES_TOO_MUCH` — You have hit the maximum active stories limit as specified by the [`story_expiring_limit_*` client configuration parameters](https://core.telegram.org/api/config.md#story-expiring-limit-default): you should buy a [Premium](https://core.telegram.org/api/premium.md) subscription, delete an active story, or wait for the oldest story to expire.\n- 400 · `STORY_PERIOD_INVALID` — The specified story period is invalid for this account.\n- 400 · `VENUE_ID_INVALID` — The specified venue ID is invalid.\n- 400 · `VIDEO_DURATION_INVALID` — The duration of the specified video is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see [here »](https://core.telegram.org/api/stories.md) for more info."}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "If set, disables forwards, screenshots, and downloads."}, "fwd_modified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "Set this flag when reposting stories with `fwd_from_id`+`fwd_from_story`, if the `media` was modified before reposting."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "The peer to send the story as."}, "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": "The story media."}, "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 Type: MediaArea."}, "x-tl-type": "Vector<MediaArea>", "x-tl-flag": "flags.5?Vector<MediaArea>", "description": "[Media areas](https://core.telegram.org/api/stories.md#media-areas) associated to the story, see [here »](https://core.telegram.org/api/stories.md#media-areas) for more info."}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Story caption."}, "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "[Message entities for styled text](https://core.telegram.org/api/entities.md), if allowed by the [`stories_entities` client configuration parameter »](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 Type: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "[Privacy rules](https://core.telegram.org/api/privacy.md) for the story, indicating who can or can't view the story."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Unique client message ID required to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int", "description": "Period after which the story is moved to archive (and to the profile if `pinned` is set), in seconds; must be one of `6 * 3600`, `12 * 3600`, `86400`, or `2 * 86400` for Telegram Premium users, and `86400` otherwise."}, "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": "If set, indicates that this story is a repost of story with ID `fwd_from_story` posted by the peer in `fwd_from_id`.", "x-tl-flag": "flags.6?InputPeer"}, "fwd_from_story": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int", "description": "If set, indicates that this story is a repost of story with ID `fwd_from_story` posted by the peer in `fwd_from_id`."}, "albums": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.8?Vector<int>", "description": "If set, adds the story to the specified albums."}, "music": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "If set, the audio track to play as background music for the story.", "x-tl-flag": "flags.9?InputDocument"}}, "additionalProperties": false, "required": ["peer", "media", "privacy_rules", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `pinned` | `true` | いいえ | Whether to add the story to the profile automatically upon expiration. If not set, the story will only be added to the archive, see [here »](https://core.telegram.org/api/stories.md) for more info. |\n| `noforwards` | `true` | いいえ | If set, disables forwards, screenshots, and downloads. |\n| `fwd_modified` | `true` | いいえ | Set this flag when reposting stories with `fwd_from_id`+`fwd_from_story`, if the `media` was modified before reposting. |\n| `peer` | `InputPeer` | はい | The peer to send the story as. |\n| `media` | `InputMedia` | はい | The story media. |\n| `media_areas` | `Vector<MediaArea>` | いいえ | [Media areas](https://core.telegram.org/api/stories.md#media-areas) associated to the story, see [here »](https://core.telegram.org/api/stories.md#media-areas) for more info. |\n| `caption` | `string` | いいえ | Story caption. |\n| `entities` | `Vector<MessageEntity>` | いいえ | [Message entities for styled text](https://core.telegram.org/api/entities.md), if allowed by the [`stories_entities` client configuration parameter »](https://core.telegram.org/api/config.md#stories-entities). |\n| `privacy_rules` | `Vector<InputPrivacyRule>` | はい | [Privacy rules](https://core.telegram.org/api/privacy.md) for the story, indicating who can or can't view the story. |\n| `random_id` | `long` | はい | Unique client message ID required to prevent message resending. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `period` | `int` | いいえ | Period after which the story is moved to archive (and to the profile if `pinned` is set), in seconds; must be one of `6 * 3600`, `12 * 3600`, `86400`, or `2 * 86400` for Telegram Premium users, and `86400` otherwise. |\n| `fwd_from_id` | `InputPeer` | いいえ | If set, indicates that this story is a repost of story with ID `fwd_from_story` posted by the peer in `fwd_from_id`. |\n| `fwd_from_story` | `int` | いいえ | If set, indicates that this story is a repost of story with ID `fwd_from_story` posted by the peer in `fwd_from_id`. |\n| `albums` | `Vector<int>` | いいえ | If set, adds the story to the specified albums. |\n| `music` | `InputDocument` | いいえ | If set, the audio track to play as background music for the story. |"}, "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": "Edit an uploaded story", "description": "Edit an uploaded [story](https://core.telegram.org/api/stories.md)\n\nMay also be used in a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md), *not* by wrapping the query in [invokeWithBusinessConnection »](https://core.telegram.org/method/invokeWithBusinessConnection.md), but rather by specifying the ID of a controlled business user in `peer`: in this context, the method can only be used to edit stories posted by the same business bot on behalf of the user with [stories.sendStory](https://core.telegram.org/method/stories.sendStory.md).\n\n**Who can call this method** · Telegram users and bots.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Privacy settings](https://core.telegram.org/api/privacy.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)", "x-tl-method": "stories.editStory", "x-tl-id": "744728363", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "both", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["Privacy settings", "https://core.telegram.org/api/privacy.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_NOT_MODIFIED` — The new story information you passed is equal to the previous story information, thus it wasn't modified."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the story was posted."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of story to edit."}, "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": "If specified, replaces the story media.", "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 Type: MediaArea."}, "x-tl-type": "Vector<MediaArea>", "x-tl-flag": "flags.3?Vector<MediaArea>", "description": "[Media areas](https://core.telegram.org/api/stories.md#media-areas) associated to the story, see [here »](https://core.telegram.org/api/stories.md#media-areas) for more info."}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "If specified, replaces the story caption."}, "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "[Message entities for styled text in the caption](https://core.telegram.org/api/entities.md), if allowed by the [`stories_entities` client configuration parameter »](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 Type: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "x-tl-flag": "flags.2?Vector<InputPrivacyRule>", "description": "If specified, alters the [privacy settings »](https://core.telegram.org/api/privacy.md) of the story, changing who can or can't view the story."}, "music": {"type": "object", "x-tl-type": "InputDocument", "oneOf": [{"$ref": "#/components/schemas/inputDocumentEmpty"}, {"$ref": "#/components/schemas/inputDocument"}], "description": "If set, the new audio track to play as background music for the story.", "x-tl-flag": "flags.4?InputDocument"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the story was posted. |\n| `id` | `int` | はい | ID of story to edit. |\n| `media` | `InputMedia` | いいえ | If specified, replaces the story media. |\n| `media_areas` | `Vector<MediaArea>` | いいえ | [Media areas](https://core.telegram.org/api/stories.md#media-areas) associated to the story, see [here »](https://core.telegram.org/api/stories.md#media-areas) for more info. |\n| `caption` | `string` | いいえ | If specified, replaces the story caption. |\n| `entities` | `Vector<MessageEntity>` | いいえ | [Message entities for styled text in the caption](https://core.telegram.org/api/entities.md), if allowed by the [`stories_entities` client configuration parameter »](https://core.telegram.org/api/config.md#stories-entities). |\n| `privacy_rules` | `Vector<InputPrivacyRule>` | いいえ | If specified, alters the [privacy settings »](https://core.telegram.org/api/privacy.md) of the story, changing who can or can't view the story. |\n| `music` | `InputDocument` | いいえ | If set, the new audio track to play as background music for the story. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_NOT_MODIFIED"], "x-browser-schema-id": "744728363"}}, "/catalog/stories.deleteStories": {"post": {"operationId": "stories.deleteStories", "tags": ["ストーリー"], "summary": "Deletes some posted stories.", "description": "Deletes some posted [stories](https://core.telegram.org/api/stories.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Connected business bots](https://core.telegram.org/api/bots/connected-business-bots.md)\n- [Telegram Business](https://core.telegram.org/api/business.md)", "x-tl-method": "stories.deleteStories", "x-tl-id": "2925124447", "x-tl-result": "Vector<int>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Connected business bots", "https://core.telegram.org/api/bots/connected-business-bots.md"], ["Telegram Business", "https://core.telegram.org/api/business.md"]], "responses": {"200": {"description": "MTProto result · `Vector<int>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[int](https://core.telegram.org/type/int.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `BOT_ACCESS_FORBIDDEN` — The specified method *can* be used over a [business connection](https://core.telegram.org/api/bots/connected-business-bots.md) for some operations, but the specified query attempted an operation that is not allowed over a business connection.\n- 400 · `BUSINESS_CONNECTION_INVALID` — The `connection_id` passed to the wrapping [invokeWithBusinessConnection](https://core.telegram.org/api/business.md) call is invalid.\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_ID_EMPTY` — You specified no story IDs."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Channel/user from where to delete stories."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of stories to delete."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Channel/user from where to delete stories. |\n| `id` | `Vector<int>` | はい | IDs of stories to delete. |"}, "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": "Pin or unpin one or more stories", "description": "Pin or unpin one or more stories\n\n**Who can call this method** · Telegram users only.", "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 result · `Vector<int>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[int](https://core.telegram.org/type/int.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where to pin or unpin stories"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of stories to pin or unpin"}, "pinned": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to pin or unpin the stories"}}, "additionalProperties": false, "required": ["peer", "id", "pinned"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where to pin or unpin stories |\n| `id` | `Vector<int>` | はい | IDs of stories to pin or unpin |\n| `pinned` | `Bool` | はい | Whether to pin or unpin the stories |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2591400431"}}, "/catalog/stories.getAllStories": {"post": {"operationId": "stories.getAllStories", "tags": ["ストーリー"], "summary": "Fetch the List of active (or active and hidden) stories, see here » for more info on watching stories.", "description": "Fetch the List of active (or active and hidden) stories, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info on watching stories.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAllStories", "x-tl-id": "4004566565", "x-tl-result": "stories.AllStories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stories.AllStories."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If `next` and `state` are both set, uses the passed `state` to paginate to the next results; if neither `state` nor `next` are set, fetches the initial page; if `state` is set and `next` is not set, check for changes in the active/hidden peerset, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info on the full flow."}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "If set, fetches the hidden active story list, otherwise fetches the active story list, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info on the full flow."}, "state": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "If `next` and `state` are both set, uses the passed `state` to paginate to the next results; if neither `state` nor `next` are set, fetches the initial page; if `state` is set and `next` is not set, check for changes in the active/hidden peerset, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info on the full flow."}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `next` | `true` | いいえ | If `next` and `state` are both set, uses the passed `state` to paginate to the next results; if neither `state` nor `next` are set, fetches the initial page; if `state` is set and `next` is not set, check for changes in the active/hidden peerset, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info on the full flow. |\n| `hidden` | `true` | いいえ | If set, fetches the hidden active story list, otherwise fetches the active story list, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info on the full flow. |\n| `state` | `string` | いいえ | If `next` and `state` are both set, uses the passed `state` to paginate to the next results; if neither `state` nor `next` are set, fetches the initial page; if `state` is set and `next` is not set, check for changes in the active/hidden peerset, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info on the full flow. |"}, "x-browser-schema-id": "4004566565"}}, "/catalog/stories.getPinnedStories": {"post": {"operationId": "stories.getPinnedStories", "tags": ["ストーリー"], "summary": "Fetch the stories pinned on a peer's profile.", "description": "Fetch the [stories](https://core.telegram.org/api/stories.md#pinned-or-archived-stories) pinned on a peer's profile.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getPinnedStories", "x-tl-id": "1478600156", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto Result · `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 Type: stories.Stories."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `USER_ID_INVALID` — The provided user ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer whose pinned stories should be fetched"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer whose pinned stories should be fetched |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Fetch the story archive » of a peer we control.", "description": "Fetch the [story archive »](https://core.telegram.org/api/stories.md#pinned-or-archived-stories) of a peer we control.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoriesArchive", "x-tl-id": "3023380502", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto Result · `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 Type: stories.Stories."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer whose archived stories should be fetched"}, "offset_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md)"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset_id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer whose archived stories should be fetched |\n| `offset_id` | `int` | はい | [Offsets for pagination, for more info click here](https://core.telegram.org/api/offsets.md) |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Obtain full info about a set of stories by their IDs.", "description": "Obtain full info about a set of [stories](https://core.telegram.org/api/stories.md) by their IDs.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoriesByID", "x-tl-id": "1467271796", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto Result · `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 Type: stories.Stories."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORIES_NEVER_CREATED` — This peer hasn't ever posted any stories.\n- 400 · `STORY_ID_EMPTY` — You specified no story IDs."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the stories were posted"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Story IDs"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the stories were posted |\n| `id` | `Vector<int>` | はい | Story IDs |"}, "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": "Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.", "description": "Hide the active stories of a specific peer, preventing them from being displayed on the action bar on the homescreen.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to hide or unhide all active stories of the peer"}}, "additionalProperties": false, "required": ["hidden"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hidden` | `Bool` | はい | Whether to hide or unhide all active stories of the peer |"}, "x-browser-schema-id": "2082822084"}}, "/catalog/stories.readStories": {"post": {"operationId": "stories.readStories", "tags": ["ストーリー"], "summary": "Mark all stories up to a certain ID as read, for a given peer; will emit an updateReadStories update to all logged-in sessions.", "description": "Mark all stories up to a certain ID as read, for a given peer; will emit an [updateReadStories](https://core.telegram.org/constructor/updateReadStories.md) update to all logged-in sessions.\n\n**Who can call this method** · Telegram users only.", "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 result · `Vector<int>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[int](https://core.telegram.org/type/int.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `MAX_ID_INVALID` — The provided max ID is invalid.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORIES_NEVER_CREATED` — This peer hasn't ever posted any stories."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer whose stories should be marked as read."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Mark all stories up to and including this ID as read"}}, "additionalProperties": false, "required": ["peer", "max_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer whose stories should be marked as read. |\n| `max_id` | `int` | はい | Mark all stories up to and including this ID as read |"}, "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": "Increment the view counter of one or more stories.", "description": "Increment the view counter of one or more stories.\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_ID_EMPTY` — You specified no story IDs."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the stories were posted."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of the stories (maximum 200 at a time)."}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the stories were posted. |\n| `id` | `Vector<int>` | はい | IDs of the stories (maximum 200 at a time). |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID", "STORY_ID_EMPTY"], "x-browser-schema-id": "2986511099"}}, "/catalog/stories.getStoryViewsList": {"post": {"operationId": "stories.getStoryViewsList", "tags": ["ストーリー"], "summary": "Obtain the list of users that have viewed a specific story we posted", "description": "Obtain the list of users that have viewed a specific [story we posted](https://core.telegram.org/api/stories.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Contact list](https://core.telegram.org/api/contacts.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoryViewsList", "x-tl-id": "2127707223", "x-tl-result": "stories.StoryViewsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Contact list", "https://core.telegram.org/api/contacts.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: stories.StoryViewsList."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_ID_INVALID` — The specified story ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to only fetch view reaction/views made by our [contacts](https://core.telegram.org/api/contacts.md)"}, "reactions_first": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true", "description": "Whether to return [storyView](https://core.telegram.org/constructor/storyView.md) info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting [storyView](https://core.telegram.org/constructor/storyView.md)s with an associated reaction first in the list). Ignored if `forwards_first` is set."}, "forwards_first": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true", "description": "If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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": "Search for specific peers"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ストーリーID"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for pagination, obtained from [stories.storyViewsList](https://core.telegram.org/constructor/stories.storyViewsList.md).`next_offset`"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "id", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `just_contacts` | `true` | いいえ | Whether to only fetch view reaction/views made by our [contacts](https://core.telegram.org/api/contacts.md) |\n| `reactions_first` | `true` | いいえ | Whether to return [storyView](https://core.telegram.org/constructor/storyView.md) info about users that reacted to the story (i.e. if set, the server will first sort results by view date as usual, and then also additionally sort the list by putting [storyView](https://core.telegram.org/constructor/storyView.md)s with an associated reaction first in the list). Ignored if `forwards_first` is set. |\n| `forwards_first` | `true` | いいえ | If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date. |\n| `peer` | `InputPeer` | はい | ストーリーが投稿されたピア |\n| `q` | `string` | いいえ | Search for specific peers |\n| `id` | `int` | はい | ストーリーID |\n| `offset` | `string` | はい | Offset for pagination, obtained from [stories.storyViewsList](https://core.telegram.org/constructor/stories.storyViewsList.md).`next_offset` |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Obtain info about the view count, forward count, reactions and recent viewers of one or more stories.", "description": "Obtain info about the view count, forward count, reactions and recent viewers of one or more [stories](https://core.telegram.org/api/stories.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getStoriesViews", "x-tl-id": "685862088", "x-tl-result": "stories.StoryViews", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stories.StoryViews."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_ID_EMPTY` — You specified no story IDs."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer whose stories should be fetched"}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Story IDs"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer whose stories should be fetched |\n| `id` | `Vector<int>` | はい | Story IDs |"}, "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": "Generate a story deep link for a specific story", "description": "Generate a [story deep link](https://core.telegram.org/api/links.md#story-links) for a specific story\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Deep links](https://core.telegram.org/api/links.md)", "x-tl-method": "stories.exportStoryLink", "x-tl-id": "2072899360", "x-tl-result": "ExportedStoryLink", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Deep links", "https://core.telegram.org/api/links.md"]], "responses": {"200": {"description": "MTProto result · `ExportedStoryLink`.\n\n[ExportedStoryLink](https://core.telegram.org/type/ExportedStoryLink.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "ExportedStoryLink", "oneOf": [{"$ref": "#/components/schemas/exportedStoryLink"}], "description": "TL Type: ExportedStoryLink."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_ID_EMPTY` — You specified no story IDs.\n- 400 · `USER_PUBLIC_MISSING` — Cannot generate a link to stories posted by a peer without a username."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Report a story.", "description": "Report a story.\n\n**Who can call this method** · Telegram users only.", "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 Result · `ReportResult`.\n\n[ReportResult](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 Type: ReportResult."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer that uploaded the story."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of the stories to report."}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "Menu option, intially empty"}, "message": {"type": "string", "x-tl-type": "string", "description": "Comment for report moderation"}}, "additionalProperties": false, "required": ["peer", "id", "option", "message"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer that uploaded the story. |\n| `id` | `Vector<int>` | はい | IDs of the stories to report. |\n| `option` | `bytes` | はい | Menu option, intially empty |\n| `message` | `string` | はい | Comment for report moderation |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "433646405"}}, "/catalog/stories.activateStealthMode": {"post": {"operationId": "stories.activateStealthMode", "tags": ["ストーリー"], "summary": "Activates stories stealth mode, see here » for more info.", "description": "Activates [stories stealth mode](https://core.telegram.org/api/stories.md#stealth-mode), see [here »](https://core.telegram.org/api/stories.md#stealth-mode) for more info.\n\nWill return an [updateStoriesStealthMode](https://core.telegram.org/constructor/updateStoriesStealthMode.md).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.activateStealthMode", "x-tl-id": "1471926630", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PREMIUM_ACCOUNT_REQUIRED` — A premium account is required to execute this action."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to erase views from any stories opened in the past [`stories_stealth_past_period` seconds »](https://core.telegram.org/api/config.md#stories-stealth-past-period), as specified by the [client configuration](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": "Whether to hide future story views for the next [`stories_stealth_future_period` seconds »](https://core.telegram.org/api/config.md#stories-stealth-future-period), as specified by the [client configuration](https://core.telegram.org/api/config.md#client-configuration)."}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `past` | `true` | いいえ | Whether to erase views from any stories opened in the past [`stories_stealth_past_period` seconds »](https://core.telegram.org/api/config.md#stories-stealth-past-period), as specified by the [client configuration](https://core.telegram.org/api/config.md#client-configuration). |\n| `future` | `true` | いいえ | Whether to hide future story views for the next [`stories_stealth_future_period` seconds »](https://core.telegram.org/api/config.md#stories-stealth-future-period), as specified by the [client configuration](https://core.telegram.org/api/config.md#client-configuration). |"}, "x-telegram-rpc-errors": ["PREMIUM_ACCOUNT_REQUIRED"], "x-browser-schema-id": "1471926630"}}, "/catalog/stories.sendReaction": {"post": {"operationId": "stories.sendReaction", "tags": ["ストーリー"], "summary": "React to a story.", "description": "React to a story.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "stories.sendReaction", "x-tl-id": "2144810674", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `REACTION_INVALID` — The specified reaction is invalid.\n- 400 · `STORIES_NEVER_CREATED` — This peer hasn't ever posted any stories.\n- 400 · `STORY_ID_EMPTY` — You specified no story IDs.\n- 400 · `STORY_ID_INVALID` — The specified story ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to add this reaction to the [recent reactions list »](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": "The peer that sent the story"}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the story to react to"}, "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": "Reaction"}}, "additionalProperties": false, "required": ["peer", "story_id", "reaction"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `add_to_recent` | `true` | いいえ | Whether to add this reaction to the [recent reactions list »](https://core.telegram.org/api/reactions.md#recent-reactions). |\n| `peer` | `InputPeer` | はい | The peer that sent the story |\n| `story_id` | `int` | はい | ID of the story to react to |\n| `reaction` | `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": "Fetch the full active story list of a specific peer.", "description": "Fetch the full active [story list](https://core.telegram.org/api/stories.md#watching-stories) of a specific peer.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getPeerStories", "x-tl-id": "743103056", "x-tl-result": "stories.PeerStories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: stories.PeerStories."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `MSG_ID_INVALID` — Invalid message ID provided.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer whose stories should be fetched"}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer whose stories should be fetched |"}, "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": "Obtain the latest read story ID for all peers when first logging in, returned as a list of updateReadStories updates, see here » for more info.", "description": "Obtain the latest read story ID for all peers when first logging in, returned as a list of [updateReadStories](https://core.telegram.org/constructor/updateReadStories.md) updates, see [here »](https://core.telegram.org/api/stories.md#watching-stories) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAllReadPeerStories", "x-tl-id": "2606426105", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/stories.getAllReadPeerStories"}, "x-browser-schema-id": "2606426105"}}, "/catalog/stories.getPeerMaxIDs": {"post": {"operationId": "stories.getPeerMaxIDs", "tags": ["ストーリー"], "summary": "Get compact active story summaries » for a set of peers.", "description": "Get compact [active story summaries »](https://core.telegram.org/api/stories.md#recent-story-summaries) for a set of peers.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getPeerMaxIDs", "x-tl-id": "2018087280", "x-tl-result": "Vector<RecentStory>", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `Vector<RecentStory>`.\n\n[Vector](https://core.telegram.org/type/Vector%20t)&lt;[RecentStory](https://core.telegram.org/type/RecentStory.md)&gt;", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "x-tl-type": "RecentStory", "oneOf": [{"$ref": "#/components/schemas/recentStory"}], "description": "TL Type: RecentStory."}, "x-tl-type": "Vector<RecentStory>"}}}}}, "externalDocs": {"description": "Official Telegram documentation", "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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "Peers whose [active story summaries »](https://core.telegram.org/api/stories.md#recent-story-summaries) should be fetched."}}, "additionalProperties": false, "required": ["id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `id` | `Vector<InputPeer>` | はい | Peers whose [active story summaries »](https://core.telegram.org/api/stories.md#recent-story-summaries) should be fetched. |"}, "x-browser-schema-id": "2018087280"}}, "/catalog/stories.getChatsToSend": {"post": {"operationId": "stories.getChatsToSend", "tags": ["ストーリー"], "summary": "Obtain a list of channels where the user can post stories", "description": "Obtain a list of channels where the user can post [stories](https://core.telegram.org/api/stories.md)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getChatsToSend", "x-tl-id": "2775223136", "x-tl-result": "messages.Chats", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `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 type: messages.Chats."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/stories.getChatsToSend"}, "x-browser-schema-id": "2775223136"}}, "/catalog/stories.togglePeerStoriesHidden": {"post": {"operationId": "stories.togglePeerStoriesHidden", "tags": ["ストーリー"], "summary": "Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see here » for more info.", "description": "Hide the active stories of a user, preventing them from being displayed on the action bar on the homescreen, see [here »](https://core.telegram.org/api/stories.md#hiding-stories-of-other-users) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.togglePeerStoriesHidden", "x-tl-id": "3171161540", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer whose stories should be (un)hidden."}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "description": "Whether to hide or unhide stories."}}, "additionalProperties": false, "required": ["peer", "hidden"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer whose stories should be (un)hidden. |\n| `hidden` | `Bool` | はい | Whether to hide or unhide stories. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "3171161540"}}, "/catalog/stories.getStoryReactionsList": {"post": {"operationId": "stories.getStoryReactionsList", "tags": ["ストーリー"], "summary": "Get the reaction and interaction list of a story posted to a channel, along with the sender of each reaction.", "description": "Get the [reaction](https://core.telegram.org/api/reactions.md) and interaction list of a [story](https://core.telegram.org/api/stories.md) posted to a channel, along with the sender of each reaction.\n\nCan only be used by channel admins.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Message reactions](https://core.telegram.org/api/reactions.md)", "x-tl-method": "stories.getStoryReactionsList", "x-tl-id": "3115485215", "x-tl-result": "stories.StoryReactionsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Message reactions", "https://core.telegram.org/api/reactions.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: stories.StoryReactionsList."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "Channel"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[Story](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": "Get only reactions of this type", "x-tl-flag": "flags.0?Reaction"}, "offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string", "description": "Offset for pagination (taken from the `next_offset` field of the returned [stories.StoryReactionsList](https://core.telegram.org/type/stories.StoryReactionsList.md)); empty in the first request."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "id", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `forwards_first` | `true` | いいえ | If set, returns forwards and reposts first, then reactions, then other views; otherwise returns interactions sorted just by interaction date. |\n| `peer` | `InputPeer` | はい | Channel |\n| `id` | `int` | はい | [Story](https://core.telegram.org/api/stories.md) ID |\n| `reaction` | `Reaction` | いいえ | Get only reactions of this type |\n| `offset` | `string` | いいえ | Offset for pagination (taken from the `next_offset` field of the returned [stories.StoryReactionsList](https://core.telegram.org/type/stories.StoryReactionsList.md)); empty in the first request. |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Pin some stories to the top of the profile, see here » for more info.", "description": "Pin some stories to the top of the profile, see [here »](https://core.telegram.org/api/stories.md#pinned-or-archived-stories) for more info.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.togglePinnedToTop", "x-tl-id": "187268763", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_ID_INVALID` — The specified story ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where to pin stories."}, "id": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "IDs of the stories to pin (max [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` | はい | Peer where to pin stories. |\n| `id` | `Vector<int>` | はい | IDs of the stories to pin (max [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": "Globally search for stories using a hashtag or a location media area, see here » for more info on the full flow.", "description": "Globally search for [stories](https://core.telegram.org/api/stories.md) using a hashtag or a [location media area](https://core.telegram.org/api/stories.md#location-tags), see [here »](https://core.telegram.org/api/stories.md#searching-stories) for more info on the full flow.\n\nEither `hashtag` **or** `area` **must** be set when invoking the method.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.searchPosts", "x-tl-id": "3514894599", "x-tl-result": "stories.FoundStories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto Result · `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 Type: stories.FoundStories."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `HASHTAG_INVALID` — The specified hashtag is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Hashtag (without the `#`)"}, "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": "A [mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) or a [mediaAreaVenue](https://core.telegram.org/constructor/mediaAreaVenue.md).   Note [mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) areas may be searched only if they have an associated `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": "If set, returns only stories posted by this peer.", "x-tl-flag": "flags.2?InputPeer"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for [pagination](https://core.telegram.org/api/offsets.md): initially an empty string, then the `next_offset` from the previously returned [stories.foundStories](https://core.telegram.org/constructor/stories.foundStories.md)."}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hashtag` | `string` | いいえ | Hashtag (without the `#`) |\n| `area` | `MediaArea` | いいえ | A [mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) or a [mediaAreaVenue](https://core.telegram.org/constructor/mediaAreaVenue.md).   Note [mediaAreaGeoPoint](https://core.telegram.org/constructor/mediaAreaGeoPoint.md) areas may be searched only if they have an associated `address`. |\n| `peer` | `InputPeer` | いいえ | If set, returns only stories posted by this peer. |\n| `offset` | `string` | はい | Offset for [pagination](https://core.telegram.org/api/offsets.md): initially an empty string, then the `next_offset` from the previously returned [stories.foundStories](https://core.telegram.org/constructor/stories.foundStories.md). |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Creates a story album.", "description": "Creates a [story album](https://core.telegram.org/api/stories.md#story-albums).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.createAlbum", "x-tl-id": "2741212901", "x-tl-result": "StoryAlbum", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `StoryAlbum`.\n\n[StoryAlbum](https://core.telegram.org/type/StoryAlbum.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StoryAlbum", "oneOf": [{"$ref": "#/components/schemas/storyAlbum"}], "description": "Type TL: StoryAlbum."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The owned peer where to create the album."}, "title": {"type": "string", "x-tl-type": "string", "description": "Album name."}, "stories": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "Stories to add to the album."}}, "additionalProperties": false, "required": ["peer", "title", "stories"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The owned peer where to create the album. |\n| `title` | `string` | はい | Album name. |\n| `stories` | `Vector<int>` | はい | Stories to add to the album. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2741212901"}}, "/catalog/stories.updateAlbum": {"post": {"operationId": "stories.updateAlbum", "tags": ["ストーリー"], "summary": "Rename a story albums », or add, delete or reorder stories in it.", "description": "Rename a [story albums »](https://core.telegram.org/api/stories.md#story-albums), or add, delete or reorder stories in it.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.updateAlbum", "x-tl-id": "1582455222", "x-tl-result": "StoryAlbum", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `StoryAlbum`.\n\n[StoryAlbum](https://core.telegram.org/type/StoryAlbum.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "StoryAlbum", "oneOf": [{"$ref": "#/components/schemas/storyAlbum"}], "description": "Type TL: StoryAlbum."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the album is posted."}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Album ID."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "New album title."}, "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": "If set, deletes the specified stories from the album."}, "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": "If set, adds the specified stories to the album."}, "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": "If set, reorders the stories in the album by their IDs."}}, "additionalProperties": false, "required": ["peer", "album_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the album is posted. |\n| `album_id` | `int` | はい | Album ID. |\n| `title` | `string` | いいえ | New album title. |\n| `delete_stories` | `Vector<int>` | いいえ | If set, deletes the specified stories from the album. |\n| `add_stories` | `Vector<int>` | いいえ | If set, adds the specified stories to the album. |\n| `order` | `Vector<int>` | いいえ | If set, reorders the stories in the album by their IDs. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "1582455222"}}, "/catalog/stories.reorderAlbums": {"post": {"operationId": "stories.reorderAlbums", "tags": ["ストーリー"], "summary": "Reorder story albums on a profile ».", "description": "Reorder [story albums on a profile »](https://core.telegram.org/api/stories.md#story-albums).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.reorderAlbums", "x-tl-id": "2234907609", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the albums are located."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "New order of the albums."}}, "additionalProperties": false, "required": ["peer", "order"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the albums are located. |\n| `order` | `Vector<int>` | はい | New order of the albums. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2234907609"}}, "/catalog/stories.deleteAlbum": {"post": {"operationId": "stories.deleteAlbum", "tags": ["ストーリー"], "summary": "Delete a story album.", "description": "Delete a [story album](https://core.telegram.org/api/stories.md#story-albums).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.deleteAlbum", "x-tl-id": "2369017552", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Owned peer where the album is located."}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ID of the album to delete."}}, "additionalProperties": false, "required": ["peer", "album_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Owned peer where the album is located. |\n| `album_id` | `int` | はい | ID of the album to delete. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "2369017552"}}, "/catalog/stories.getAlbums": {"post": {"operationId": "stories.getAlbums", "tags": ["ストーリー"], "summary": "Get story albums created by a peer.", "description": "Get [story albums](https://core.telegram.org/api/stories.md#story-albums) created by a peer.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAlbums", "x-tl-id": "632548039", "x-tl-result": "stories.Albums", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: stories.Albums."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "The `hash` from a previously returned [stories.albums](https://core.telegram.org/constructor/stories.albums.md), to avoid returning any results if they haven't changed.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer. |\n| `hash` | `long` | はい | The `hash` from a previously returned [stories.albums](https://core.telegram.org/constructor/stories.albums.md), to avoid returning any results if they haven't changed. |"}, "x-telegram-rpc-errors": ["PEER_ID_INVALID"], "x-browser-schema-id": "632548039"}}, "/catalog/stories.getAlbumStories": {"post": {"operationId": "stories.getAlbumStories", "tags": ["ストーリー"], "summary": "Get stories in a story album ».", "description": "Get stories in a [story album »](https://core.telegram.org/api/stories.md#story-albums).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)\n- [Telegram Stories](https://core.telegram.org/api/stories.md)", "x-tl-method": "stories.getAlbumStories", "x-tl-id": "2894097761", "x-tl-result": "stories.Stories", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Pagination in the API", "https://core.telegram.org/api/offsets.md"], ["Telegram Stories", "https://core.telegram.org/api/stories.md"]], "responses": {"200": {"description": "MTProto Result · `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 Type: stories.Stories."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Peer where the album is posted."}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アルバムのID。"}, "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": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "album_id", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | Peer where the album is posted. |\n| `album_id` | `int` | はい | アルバムのID。 |\n| `offset` | `int` | はい | [ページネーション](https://core.telegram.org/api/offsets.md)] のオフセット。 |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Start a live story, optionally using RTMP livestream mode, see here » for the full flow.", "description": "Start a live story, optionally using RTMP livestream mode, see [here »](https://core.telegram.org/api/group-calls.md#live-stories) for the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Group calls](https://core.telegram.org/api/group-calls.md)\n- [Styled text with message entities](https://core.telegram.org/api/entities.md)\n- [Working with Updates](https://core.telegram.org/api/updates.md)\n- [Channels, supergroups, gigagroups and basic groups](https://core.telegram.org/api/channel.md)", "x-tl-method": "stories.startLive", "x-tl-id": "3496594654", "x-tl-result": "Updates", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Group calls", "https://core.telegram.org/api/group-calls.md"], ["Styled text with message entities", "https://core.telegram.org/api/entities.md"], ["Working with Updates", "https://core.telegram.org/api/updates.md"], ["Channels, supergroups, gigagroups and basic groups", "https://core.telegram.org/api/channel.md"]], "responses": {"200": {"description": "MTProto result · `Updates`.\n\n[Updates](https://core.telegram.org/type/Updates.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "Updates", "oneOf": [{"$ref": "#/components/schemas/updatesTooLong"}, {"$ref": "#/components/schemas/updateShortMessage"}, {"$ref": "#/components/schemas/updateShortChatMessage"}, {"$ref": "#/components/schemas/updateShort"}, {"$ref": "#/components/schemas/updatesCombined"}, {"$ref": "#/components/schemas/updates"}, {"$ref": "#/components/schemas/updateShortSentMessage"}], "description": "TL Type: Updates."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_MONOFORUM_UNSUPPORTED` — [Monoforums](https://core.telegram.org/api/channel.md#monoforums) do not support this feature.\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `STORY_LIVE_ALREADY_%d` — This peer already has an active live story, and its ID is equal to %d."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to pin the live story on the peer's profile"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true", "description": "Whether viewers must be prevented from forwarding or saving the live story"}, "rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "Create the live story in [RTMP livestream mode »](https://core.telegram.org/api/group-calls.md#stream-mode), where one external streamer publishes all audio and video"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/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, supergroup or channel that will own the live story; basic groups cannot post live stories"}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "Live story caption"}, "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)"}, "privacy_rules": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPrivacyRule", "oneOf": [{"$ref": "#/components/schemas/inputPrivacyValueAllowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowContacts"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowAll"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowUsers"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowChatParticipants"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowCloseFriends"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowPremium"}, {"$ref": "#/components/schemas/inputPrivacyValueAllowBots"}, {"$ref": "#/components/schemas/inputPrivacyValueDisallowBots"}], "description": "TL Type: InputPrivacyRule."}, "x-tl-type": "Vector<InputPrivacyRule>", "description": "Privacy rules defining who can view the live story"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "Client-generated random ID used to prevent duplicate live stories. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping.", "x-tl-type": "long"}, "messages_enabled": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.6?Bool", "description": "Whether the [in-call message overlay »](https://core.telegram.org/api/group-calls.md#in-call-messages) should be enabled"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Minimum Telegram Stars donation required from users other than the live story owner for each comment; the owner may always comment without donating, and `0` allows free comments for everyone", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}}, "additionalProperties": false, "required": ["peer", "privacy_rules", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `pinned` | `true` | いいえ | Whether to pin the live story on the peer's profile |\n| `noforwards` | `true` | いいえ | Whether viewers must be prevented from forwarding or saving the live story |\n| `rtmp_stream` | `true` | いいえ | Create the live story in [RTMP livestream mode »](https://core.telegram.org/api/group-calls.md#stream-mode), where one external streamer publishes all audio and video |\n| `peer` | `InputPeer` | はい | User, supergroup or channel that will own the live story; basic groups cannot post live stories |\n| `caption` | `string` | いいえ | Live story caption |\n| `entities` | `Vector<MessageEntity>` | いいえ | [スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md) |\n| `privacy_rules` | `Vector<InputPrivacyRule>` | はい | Privacy rules defining who can view the live story |\n| `random_id` | `long` | はい | Client-generated random ID used to prevent duplicate live stories. See [here »](https://core.telegram.org/api/updates.md#updatemessageid-updates) for more info on random ID deduplication and updateMessageID mapping. |\n| `messages_enabled` | `Bool` | いいえ | Whether the [in-call message overlay »](https://core.telegram.org/api/group-calls.md#in-call-messages) should be enabled |\n| `send_paid_messages_stars` | `long` | いいえ | Minimum Telegram Stars donation required from users other than the live story owner for each comment; the owner may always comment without donating, and `0` allows free comments for everyone |"}, "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": "Obtains info about the boosts that were applied to a certain channel or supergroup (admins only)", "description": "Obtains info about the boosts that were applied to a certain channel or supergroup (admins only)\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Giveaways and gifts](https://core.telegram.org/api/giveaways.md)\n- [Pagination in the API](https://core.telegram.org/api/offsets.md)", "x-tl-method": "premium.getBoostsList", "x-tl-id": "1626764896", "x-tl-result": "premium.BoostsList", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Giveaways and gifts", "https://core.telegram.org/api/giveaways.md"], ["Pagination in the API", "https://core.telegram.org/api/offsets.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: premium.BoostsList."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHAT_ADMIN_REQUIRED` — You must be an admin in this chat to do this.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Whether to return only info about boosts received from [gift codes and giveaways created by the channel/supergroup »](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": "The channel/supergroup"}, "offset": {"type": "string", "x-tl-type": "string", "description": "Offset for pagination, obtained from [premium.boostsList](https://core.telegram.org/constructor/premium.boostsList.md).`next_offset`"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Maximum number of results to return, [see pagination](https://core.telegram.org/api/offsets.md)"}}, "additionalProperties": false, "required": ["peer", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `gifts` | `true` | いいえ | Whether to return only info about boosts received from [gift codes and giveaways created by the channel/supergroup »](https://core.telegram.org/api/giveaways.md) |\n| `peer` | `InputPeer` | はい | The channel/supergroup |\n| `offset` | `string` | はい | Offset for pagination, obtained from [premium.boostsList](https://core.telegram.org/constructor/premium.boostsList.md).`next_offset` |\n| `limit` | `int` | はい | Maximum number of results to return, [see pagination](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": "Obtain which peers are we currently boosting, and how many boost slots we have left.", "description": "Obtain which peers are we currently [boosting](https://core.telegram.org/api/boost.md), and how many [boost slots](https://core.telegram.org/api/boost.md) we have left.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "premium.getMyBoosts", "x-tl-id": "199719754", "x-tl-result": "premium.MyBoosts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: premium.MyBoosts."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/premium.getMyBoosts"}, "x-browser-schema-id": "199719754"}}, "/catalog/premium.applyBoost": {"post": {"operationId": "premium.applyBoost", "tags": ["Telegram Premium"], "summary": "Apply one or more boosts » to a peer.", "description": "Apply one or more [boosts »](https://core.telegram.org/api/boost.md) to a peer.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "premium.applyBoost", "x-tl-id": "1803396934", "x-tl-result": "premium.MyBoosts", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: premium.MyBoosts."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `BOOSTS_EMPTY` — No boost slots were specified.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid.\n- 400 · `SLOTS_EMPTY` — The specified slot list is empty."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Which [boost slots](https://core.telegram.org/api/boost.md) to assign to this 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": "The peer to boost."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `slots` | `Vector<int>` | いいえ | Which [boost slots](https://core.telegram.org/api/boost.md) to assign to this peer. |\n| `peer` | `InputPeer` | はい | The peer to boost. |"}, "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": "Gets the current number of boosts of a channel/supergroup.", "description": "Gets the current [number of boosts](https://core.telegram.org/api/boost.md) of a channel/supergroup.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Channel and supergroup boosts](https://core.telegram.org/api/boost.md)", "x-tl-method": "premium.getBoostsStatus", "x-tl-id": "70197089", "x-tl-result": "premium.BoostsStatus", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Channel and supergroup boosts", "https://core.telegram.org/api/boost.md"]], "responses": {"200": {"description": "MTProto result · `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 type: premium.BoostsStatus."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `CHANNEL_INVALID` — The provided channel is invalid.\n- 400 · `CHANNEL_PRIVATE` — You haven't joined this channel/supergroup.\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The peer."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | The peer. |"}, "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": "Returns the lists of boost that were applied to a channel/supergroup by a specific user (admins only)", "description": "Returns the lists of boost that were applied to a channel/supergroup by a specific user (admins only)\n\n**Who can call this method** · Telegram users and bots.", "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 result · `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": "Type TL: premium.BoostsList."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `PEER_ID_INVALID` — The provided peer id is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The channel/supergroup"}, "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` | はい | The channel/supergroup |\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": "Check if we can process SMS jobs (official clients only).", "description": "Check if we can process SMS jobs (official clients only).\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: smsjobs.EligibilityToJoin."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 403 · `NOT_ELIGIBLE` — The current user is not eligible to join the Peer-to-Peer Login Program."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Enable SMS jobs (official clients only).", "description": "Enable SMS jobs (official clients only).\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `NOT_ELIGIBLE` — The current user is not eligible to join the Peer-to-Peer Login Program."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Disable SMS jobs (official clients only).", "description": "Disable SMS jobs (official clients only).\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `NOT_JOINED` — The current user hasn't joined the Peer-to-Peer Login Program."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Update SMS job settings (official clients only).", "description": "Update SMS job settings (official clients only).\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `NOT_JOINED` — The current user hasn't joined the Peer-to-Peer Login Program."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Allow international numbers?"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `allow_international` | `true` | いいえ | Allow international numbers? |"}, "x-telegram-rpc-errors": ["NOT_JOINED"], "x-browser-schema-id": "155164863"}}, "/catalog/smsjobs.getStatus": {"post": {"operationId": "smsjobs.getStatus", "tags": ["SMS"], "summary": "Get SMS jobs status (official clients only).", "description": "Get SMS jobs status (official clients only).\n\n**Who can call this method** · Telegram users only.", "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 result · `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": "Type TL: smsjobs.Status."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `NOT_JOINED` — The current user hasn't joined the Peer-to-Peer Login Program."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Get info about an SMS job (official clients only).", "description": "Get info about an SMS job (official clients only).\n\n**Who can call this method** · Telegram users only.", "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 result · `SmsJob`.\n\n[SmsJob](https://core.telegram.org/type/SmsJob.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "SmsJob", "oneOf": [{"$ref": "#/components/schemas/smsJob"}], "description": "TL Type: SmsJob."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SMSJOB_ID_INVALID` — The specified job ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "ジョブID"}}, "additionalProperties": false, "required": ["job_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `job_id` | `string` | はい | ジョブID |"}, "x-telegram-rpc-errors": ["SMSJOB_ID_INVALID"], "x-browser-schema-id": "2005766191"}}, "/catalog/smsjobs.finishJob": {"post": {"operationId": "smsjobs.finishJob", "tags": ["SMS"], "summary": "Finish an SMS job (official clients only).", "description": "Finish an SMS job (official clients only).\n\n**Who can call this method** · Telegram users only.", "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 result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `SMSJOB_ID_INVALID` — The specified job ID is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Job ID."}, "error": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "If failed, the error."}}, "additionalProperties": false, "required": ["job_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `job_id` | `string` | はい | Job ID. |\n| `error` | `string` | いいえ | If failed, the error. |"}, "x-telegram-rpc-errors": ["SMSJOB_ID_INVALID"], "x-browser-schema-id": "1327415076"}}, "/catalog/fragment.getCollectibleInfo": {"post": {"operationId": "fragment.getCollectibleInfo", "tags": ["Fragment"], "summary": "Fetch information about a fragment collectible, see here » for more info on the full flow.", "description": "Fetch information about a [fragment collectible, see here »](https://core.telegram.org/api/fragment.md#fetching-info-about-fragment-collectibles) for more info on the full flow.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Fragment collectibles](https://core.telegram.org/api/fragment.md)", "x-tl-method": "fragment.getCollectibleInfo", "x-tl-id": "3189671354", "x-tl-result": "fragment.CollectibleInfo", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Fragment collectibles", "https://core.telegram.org/api/fragment.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: fragment.CollectibleInfo."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `COLLECTIBLE_INVALID` — The specified collectible is invalid.\n- 400 · `COLLECTIBLE_NOT_FOUND` — The specified collectible could not be found."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "Collectible to fetch info about."}}, "additionalProperties": false, "required": ["collectible"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `collectible` | `InputCollectible` | はい | Collectible to fetch info about. |"}, "x-telegram-rpc-errors": ["COLLECTIBLE_INVALID", "COLLECTIBLE_NOT_FOUND"], "x-browser-schema-id": "3189671354"}}, "/catalog/aicompose.createTone": {"post": {"operationId": "aicompose.createTone", "tags": ["AI エディター"], "summary": "Create a new custom AI composer tone ».", "description": "Create a new custom [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones).\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.createTone", "x-tl-id": "1252538643", "x-tl-result": "AiComposeTone", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: AiComposeTone."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AICOMPOSE_TONE_TITLE_INVALID` — The specified tone title is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "If set, the current user will be publicly credited as the author of the tone"}, "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": "The prompt that describes how the AI should rephrase messages using this tone, up to [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 characters long"}}, "additionalProperties": false, "required": ["emoji_id", "title", "prompt"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `display_author` | `true` | いいえ | If set, the current user will be publicly credited as the author of the tone |\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` | はい | The prompt that describes how the AI should rephrase messages using this tone, up to [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 characters long |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_TITLE_INVALID"], "x-browser-schema-id": "1252538643"}}, "/catalog/aicompose.updateTone": {"post": {"operationId": "aicompose.updateTone", "tags": ["AI エディター"], "summary": "Edit a custom AI composer tone » previously created by the current user. Only the fields whose flag is set will be modified.", "description": "Edit a custom [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) previously created by the current user. Only the fields whose flag is set will be modified.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Custom emojis](https://core.telegram.org/api/custom-emoji.md)\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.updateTone", "x-tl-id": "2419838809", "x-tl-result": "AiComposeTone", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Custom emojis", "https://core.telegram.org/api/custom-emoji.md"], ["Client configuration", "https://core.telegram.org/api/config.md"], ["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "MTProto result · `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 Type: AiComposeTone."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — The specified tone is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The tone to edit"}, "display_author": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool", "description": "If set, changes whether the current user is publicly credited as the author of the tone (ternary value, can be not set, set and true, set and false)."}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "If set, the new [custom emoji ID](https://core.telegram.org/api/custom-emoji.md) of the tone's icon", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string", "description": "If set, the new human-readable tone name, up to [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 characters long"}, "prompt": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string", "description": "If set, the new prompt that describes how the AI should rephrase messages using this tone, up to [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 characters long"}}, "additionalProperties": false, "required": ["tone"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | はい | The tone to edit |\n| `display_author` | `Bool` | いいえ | If set, changes whether the current user is publicly credited as the author of the tone (ternary value, can be not set, set and true, set and false). |\n| `emoji_id` | `long` | いいえ | If set, the new [custom emoji ID](https://core.telegram.org/api/custom-emoji.md) of the tone's icon |\n| `title` | `string` | いいえ | If set, the new human-readable tone name, up to [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 characters long |\n| `prompt` | `string` | いいえ | If set, the new prompt that describes how the AI should rephrase messages using this tone, up to [aicompose_tone_prompt_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-prompt-length-max) UTF-8 characters long |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "2419838809"}}, "/catalog/aicompose.saveTone": {"post": {"operationId": "aicompose.saveTone", "tags": ["AI エディター"], "summary": "Install or uninstall an AI composer tone », adding it to or removing it from the list of saved tones of the current user.", "description": "Install or uninstall an [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones), adding it to or removing it from the list of saved tones of the current user.\n\nNon-[Premium](https://core.telegram.org/api/premium.md) users may install up to [aicompose\\_tone\\_saved\\_limit\\_default »](https://core.telegram.org/api/config.md#aicompose-tone-saved-limit-default) tones, [Premium](https://core.telegram.org/api/premium.md) users up to [aicompose\\_tone\\_saved\\_limit\\_premium »](https://core.telegram.org/api/config.md#aicompose-tone-saved-limit-premium) tones.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [AI features](https://core.telegram.org/api/ai.md)\n- [Telegram Premium](https://core.telegram.org/api/premium.md)\n- [Client configuration](https://core.telegram.org/api/config.md)", "x-tl-method": "aicompose.saveTone", "x-tl-id": "394447793", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"], ["Telegram Premium", "https://core.telegram.org/api/premium.md"], ["Client configuration", "https://core.telegram.org/api/config.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — The specified tone is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The tone to save or unsave"}, "unsave": {"type": "boolean", "x-tl-type": "Bool", "description": "If `false`, installs (saves) the tone; if `true`, uninstalls (unsaves) it"}}, "additionalProperties": false, "required": ["tone", "unsave"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | はい | The tone to save or unsave |\n| `unsave` | `Bool` | はい | If `false`, installs (saves) the tone; if `true`, uninstalls (unsaves) it |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "394447793"}}, "/catalog/aicompose.deleteTone": {"post": {"operationId": "aicompose.deleteTone", "tags": ["AI エディター"], "summary": "Permanently delete a custom AI composer tone » created by the current user.", "description": "Permanently delete a custom [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) created by the current user.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.deleteTone", "x-tl-id": "3711512938", "x-tl-result": "Bool", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "MTProto result · `Bool`.\n\n[Bool](https://core.telegram.org/type/Bool.md)", "content": {"application/json": {"schema": {"type": "boolean", "x-tl-type": "Bool"}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — The specified tone is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The tone to delete"}}, "additionalProperties": false, "required": ["tone"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | はい | The tone to delete |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "3711512938"}}, "/catalog/aicompose.getTone": {"post": {"operationId": "aicompose.getTone", "tags": ["AI エディター"], "summary": "Fetch information about a single AI composer tone », for example to resolve a shared tone deep link.", "description": "Fetch information about a single [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones), for example to resolve a shared tone deep link.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.getTone", "x-tl-id": "3001596419", "x-tl-result": "aicompose.Tones", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: aicompose.Tones."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — The specified tone is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The tone to fetch"}}, "additionalProperties": false, "required": ["tone"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | はい | The tone to fetch |"}, "x-telegram-rpc-errors": ["AICOMPOSE_TONE_INVALID"], "x-browser-schema-id": "3001596419"}}, "/catalog/aicompose.getTones": {"post": {"operationId": "aicompose.getTones", "tags": ["AI エディター"], "summary": "Fetch the list of saved AI composer tones » of the current user.", "description": "Fetch the list of saved [AI composer tones »](https://core.telegram.org/api/ai.md#ai-compose-tones) of the current user.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.getTones", "x-tl-id": "2882900481", "x-tl-result": "aicompose.Tones", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "MTProto result · `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": "Type TL: aicompose.Tones."}}}}}, "externalDocs": {"description": "Official Telegram documentation", "url": "https://core.telegram.org/method/aicompose.getTones"}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hash": {"type": "string", "pattern": "^-?\\d+$", "description": "Hash from a previously cached [aicompose.tones](https://core.telegram.org/constructor/aicompose.tones.md).`hash` to avoid refetching the list if it hasn't changed; initially 0.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `hash` | `long` | はい | Hash from a previously cached [aicompose.tones](https://core.telegram.org/constructor/aicompose.tones.md).`hash` to avoid refetching the list if it hasn't changed; initially 0. |"}, "x-browser-schema-id": "2882900481"}}, "/catalog/aicompose.getToneExample": {"post": {"operationId": "aicompose.getToneExample", "tags": ["AI エディター"], "summary": "Fetch an example showing how an AI composer tone » rephrases a sample message, used as a preview in the tone picker.", "description": "Fetch an example showing how an [AI composer tone »](https://core.telegram.org/api/ai.md#ai-compose-tones) rephrases a sample message, used as a preview in the tone picker.\n\n**Who can call this method** · Telegram users only.\n\n**Related documentation**\n\n- [Client configuration](https://core.telegram.org/api/config.md)\n- [AI features](https://core.telegram.org/api/ai.md)", "x-tl-method": "aicompose.getToneExample", "x-tl-id": "3518278420", "x-tl-result": "AiComposeToneExample", "x-catalog-only": true, "x-telegram-audience": "user", "x-telegram-related": [["Client configuration", "https://core.telegram.org/api/config.md"], ["AI features", "https://core.telegram.org/api/ai.md"]], "responses": {"200": {"description": "MTProto result · `AiComposeToneExample`.\n\n[AiComposeToneExample](https://core.telegram.org/type/AiComposeToneExample.md)", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "AiComposeToneExample", "oneOf": [{"$ref": "#/components/schemas/aiComposeToneExample"}], "description": "TL Type: AiComposeToneExample."}}}}, "default": {"description": "### MTProto errors (RPC)\n\n- 400 · `AICOMPOSE_TONE_INVALID` — The specified tone is invalid."}}, "externalDocs": {"description": "Official Telegram documentation", "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": "The tone to preview"}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "0-based index of the example to fetch, to cycle through the available examples (there are [aicompose_tone_examples_num »](https://core.telegram.org/api/config.md#aicompose-tone-examples-num) examples per tone)"}}, "additionalProperties": false, "required": ["tone", "num"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `tone` | `InputAiComposeTone` | はい | The tone to preview |\n| `num` | `int` | はい | 0-based index of the example to fetch, to cycle through the available examples (there are [aicompose_tone_examples_num »](https://core.telegram.org/api/config.md#aicompose-tone-examples-num) examples per tone) |"}, "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 result · `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 Type: 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 Type: 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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true", "description": "TL 型 `true` の値。"}, "title": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "TL 型 `string` の値。"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: 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 Type: 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 result · `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 Type: InputChannel."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: 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 Type: InputChannel. |\n| `peer` | `InputPeer` | はい | TL Type: 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 result · `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 type: 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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "TL 型 `true` の値。"}, "community": {"type": "object", "x-tl-type": "InputChannel", "oneOf": [{"$ref": "#/components/schemas/inputChannelEmpty"}, {"$ref": "#/components/schemas/inputChannel"}, {"$ref": "#/components/schemas/inputChannelFromMessage"}], "description": "TL Type: InputChannel."}}, "additionalProperties": false, "required": ["community"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `collapsed` | `true` | いいえ | TL 型 `true` の値。 |\n| `community` | `InputChannel` | はい | TL Type: InputChannel. |"}, "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 Type: InputChannel."}, "offset": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "TL 型 `int` の値。"}}, "additionalProperties": false, "required": ["community", "offset", "limit"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `community` | `InputChannel` | はい | TL Type: InputChannel. |\n| `offset` | `string` | はい | TL 型 `string` の値。 |\n| `limit` | `int` | はい | TL 型 `int` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "2474062660"}}, "/catalog/communities.togglePeerLinkRequestApproval": {"post": {"operationId": "communities.togglePeerLinkRequestApproval", "tags": ["コミュニティ"], "summary": "communities.togglePeerLinkRequestApproval", "description": "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 result · `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 Type: InputChannel."}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: InputPeer."}}, "additionalProperties": false, "required": ["community", "peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `reject` | `true` | いいえ | TL 型 `true` の値。 |\n| `community` | `InputChannel` | はい | TL Type: InputChannel. |\n| `peer` | `InputPeer` | はい | TL Type: 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 result · `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 Type: InputChannel."}}, "additionalProperties": false, "required": ["community"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `reject` | `true` | いいえ | TL 型 `true` の値。 |\n| `community` | `InputChannel` | はい | TL Type: InputChannel. |"}, "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 result · `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 Type: InputChannel."}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: InputPeer."}}, "additionalProperties": false, "required": ["community", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `unban` | `true` | いいえ | TL 型 `true` の値。 |\n| `community` | `InputChannel` | はい | TL Type: InputChannel. |\n| `participant` | `InputPeer` | はい | TL Type: 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 Type: InputChannel."}, "participant": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: InputPeer."}}, "additionalProperties": false, "required": ["community", "participant"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `community` | `InputChannel` | はい | TL Type: InputChannel. |\n| `participant` | `InputPeer` | はい | TL Type: 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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "TL 型 `true` の値。"}, "welcome": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true", "description": "TL 型 `true` の値。"}, "anchor": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true", "description": "TL 型 `true` の値。"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true", "description": "TL 型 `true` の値。"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: 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 Type: InputUser."}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "message": {"type": "string", "x-tl-type": "string", "description": "TL 型 `string` の値。"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "TL 型 `Vector<MessageEntity>` の値。"}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "TL Type: InputMedia.", "x-tl-flag": "flags.2?InputMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.3?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.4?InputRichMessage"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "oneOf": [{"$ref": "#/components/schemas/inputReplyToMessage"}, {"$ref": "#/components/schemas/inputReplyToStory"}, {"$ref": "#/components/schemas/inputReplyToMonoForum"}, {"$ref": "#/components/schemas/inputReplyToEphemeralMessage"}], "description": "Тип TL: InputReplyTo.", "x-tl-flag": "flags.5?InputReplyTo"}}, "additionalProperties": false, "required": ["receiver_id", "message", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `invert_media` | `true` | いいえ | TL 型 `true` の値。 |\n| `welcome` | `true` | いいえ | TL 型 `true` の値。 |\n| `anchor` | `true` | いいえ | TL 型 `true` の値。 |\n| `noforwards` | `true` | いいえ | TL 型 `true` の値。 |\n| `peer` | `InputPeer` | いいえ | TL Type: InputPeer. |\n| `receiver_id` | `InputUser` | はい | TL Type: InputUser. |\n| `query_id` | `long` | いいえ | 64-битное целое в десятичной записи. |\n| `message` | `string` | はい | TL 型 `string` の値。 |\n| `entities` | `Vector<MessageEntity>` | いいえ | TL 型 `Vector<MessageEntity>` の値。 |\n| `media` | `InputMedia` | いいえ | TL Type: InputMedia. |\n| `reply_markup` | `ReplyMarkup` | いいえ | Тип TL: ReplyMarkup. |\n| `rich_message` | `InputRichMessage` | いいえ | Тип TL: InputRichMessage. |\n| `random_id` | `long` | はい | 64-битное целое в десятичной записи. |\n| `reply_to` | `InputReplyTo` | いいえ | Тип TL: InputReplyTo. |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "3129827125"}}, "/catalog/ephemeral.deleteMessage": {"post": {"operationId": "ephemeral.deleteMessage", "tags": ["一時メッセージ"], "summary": "ephemeral.deleteMessage", "description": "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 result · `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 Type: 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 Type: InputUser."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "TL 型 `int` の値。"}}, "additionalProperties": false, "required": ["receiver_id", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | いいえ | TL Type: InputPeer. |\n| `receiver_id` | `InputUser` | はい | TL Type: InputUser. |\n| `id` | `int` | はい | TL 型 `int` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "2465654679"}}, "/catalog/ephemeral.reportMessage": {"post": {"operationId": "ephemeral.reportMessage", "tags": ["一時メッセージ"], "summary": "ephemeral.reportMessage", "description": "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 Result · `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 Type: ReportResult."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: 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 Type: 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 result · `messages.BotCallbackAnswer`.", "content": {"application/json": {"schema": {"type": "object", "x-tl-type": "messages.BotCallbackAnswer", "oneOf": [{"$ref": "#/components/schemas/messages.botCallbackAnswer"}], "description": "TL type: 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 Type: 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 Type: 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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true", "description": "TL 型 `true` の値。"}, "welcome": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true", "description": "TL 型 `true` の値。"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "oneOf": [{"$ref": "#/components/schemas/inputPeerEmpty"}, {"$ref": "#/components/schemas/inputPeerSelf"}, {"$ref": "#/components/schemas/inputPeerChat"}, {"$ref": "#/components/schemas/inputPeerUser"}, {"$ref": "#/components/schemas/inputPeerChannel"}, {"$ref": "#/components/schemas/inputPeerUserFromMessage"}, {"$ref": "#/components/schemas/inputPeerChannelFromMessage"}], "description": "TL Type: 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 Type: InputUser."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "TL 型 `int` の値。"}, "message": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string", "description": "TL 型 `string` の値。"}, "media": {"type": "object", "x-tl-type": "InputMedia", "oneOf": [{"$ref": "#/components/schemas/inputMediaEmpty"}, {"$ref": "#/components/schemas/inputMediaUploadedPhoto"}, {"$ref": "#/components/schemas/inputMediaPhoto"}, {"$ref": "#/components/schemas/inputMediaGeoPoint"}, {"$ref": "#/components/schemas/inputMediaContact"}, {"$ref": "#/components/schemas/inputMediaUploadedDocument"}, {"$ref": "#/components/schemas/inputMediaDocument"}, {"$ref": "#/components/schemas/inputMediaVenue"}, {"$ref": "#/components/schemas/inputMediaPhotoExternal"}, {"$ref": "#/components/schemas/inputMediaDocumentExternal"}, {"$ref": "#/components/schemas/inputMediaGame"}, {"$ref": "#/components/schemas/inputMediaInvoice"}, {"$ref": "#/components/schemas/inputMediaGeoLive"}, {"$ref": "#/components/schemas/inputMediaPoll"}, {"$ref": "#/components/schemas/inputMediaDice"}, {"$ref": "#/components/schemas/inputMediaStory"}, {"$ref": "#/components/schemas/inputMediaWebPage"}, {"$ref": "#/components/schemas/inputMediaPaidMedia"}, {"$ref": "#/components/schemas/inputMediaTodo"}, {"$ref": "#/components/schemas/inputMediaStakeDice"}, {"$ref": "#/components/schemas/inputMediaWidget"}, {"$ref": "#/components/schemas/inputMediaWidgetId"}], "description": "TL Type: InputMedia.", "x-tl-flag": "flags.3?InputMedia"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "oneOf": [{"$ref": "#/components/schemas/messageEntityUnknown"}, {"$ref": "#/components/schemas/messageEntityMention"}, {"$ref": "#/components/schemas/messageEntityHashtag"}, {"$ref": "#/components/schemas/messageEntityBotCommand"}, {"$ref": "#/components/schemas/messageEntityUrl"}, {"$ref": "#/components/schemas/messageEntityEmail"}, {"$ref": "#/components/schemas/messageEntityBold"}, {"$ref": "#/components/schemas/messageEntityItalic"}, {"$ref": "#/components/schemas/messageEntityCode"}, {"$ref": "#/components/schemas/messageEntityPre"}, {"$ref": "#/components/schemas/messageEntityTextUrl"}, {"$ref": "#/components/schemas/messageEntityMentionName"}, {"$ref": "#/components/schemas/inputMessageEntityMentionName"}, {"$ref": "#/components/schemas/messageEntityPhone"}, {"$ref": "#/components/schemas/messageEntityCashtag"}, {"$ref": "#/components/schemas/messageEntityUnderline"}, {"$ref": "#/components/schemas/messageEntityStrike"}, {"$ref": "#/components/schemas/messageEntityBankCard"}, {"$ref": "#/components/schemas/messageEntitySpoiler"}, {"$ref": "#/components/schemas/messageEntityCustomEmoji"}, {"$ref": "#/components/schemas/messageEntityBlockquote"}, {"$ref": "#/components/schemas/messageEntityFormattedDate"}, {"$ref": "#/components/schemas/messageEntityDiffInsert"}, {"$ref": "#/components/schemas/messageEntityDiffReplace"}, {"$ref": "#/components/schemas/messageEntityDiffDelete"}, {"$ref": "#/components/schemas/messageEntityTonAddress"}], "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>", "description": "TL 型 `Vector<MessageEntity>` の値。"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "oneOf": [{"$ref": "#/components/schemas/replyKeyboardHide"}, {"$ref": "#/components/schemas/replyKeyboardForceReply"}, {"$ref": "#/components/schemas/replyKeyboardMarkup"}, {"$ref": "#/components/schemas/replyInlineMarkup"}], "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "oneOf": [{"$ref": "#/components/schemas/inputRichMessage"}, {"$ref": "#/components/schemas/inputRichMessageHTML"}, {"$ref": "#/components/schemas/inputRichMessageMarkdown"}], "description": "Тип TL: InputRichMessage.", "x-tl-flag": "flags.4?InputRichMessage"}}, "additionalProperties": false, "required": ["receiver_id", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `invert_media` | `true` | いいえ | TL 型 `true` の値。 |\n| `welcome` | `true` | いいえ | TL 型 `true` の値。 |\n| `peer` | `InputPeer` | いいえ | TL Type: InputPeer. |\n| `receiver_id` | `InputUser` | はい | TL Type: InputUser. |\n| `id` | `int` | はい | TL 型 `int` の値。 |\n| `message` | `string` | いいえ | TL 型 `string` の値。 |\n| `media` | `InputMedia` | いいえ | TL Type: InputMedia. |\n| `entities` | `Vector<MessageEntity>` | いいえ | TL 型 `Vector<MessageEntity>` の値。 |\n| `reply_markup` | `ReplyMarkup` | いいえ | Тип TL: ReplyMarkup. |\n| `rich_message` | `InputRichMessage` | いいえ | Тип TL: InputRichMessage. |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "3483136603"}}, "/catalog/ephemeral.deleteWelcomeMessage": {"post": {"operationId": "ephemeral.deleteWelcomeMessage", "tags": ["一時メッセージ"], "summary": "ephemeral.deleteWelcomeMessage", "description": "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 result · `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 Type: InputPeer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "TL 型 `int` の値。"}}, "additionalProperties": false, "required": ["peer", "id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | TL Type: 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 result · `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 Type: InputPeer."}}, "additionalProperties": false, "required": ["peer"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | TL Type: 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 Type: InputPeer."}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["peer", "hash"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `peer` | `InputPeer` | はい | TL Type: 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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "TL 型 `Vector<InputUser>` の値。"}, "addresses": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "TL 型 `Vector<string>` の値。"}}, "additionalProperties": false, "required": ["id", "addresses"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `force` | `true` | いいえ | TL 型 `true` の値。 |\n| `id` | `Vector<InputUser>` | はい | TL 型 `Vector<InputUser>` の値。 |\n| `addresses` | `Vector<string>` | はい | TL 型 `Vector<string>` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "1383456733"}}, "/catalog/wallet.getTransactions": {"post": {"operationId": "wallet.getTransactions", "tags": ["ウォレット"], "summary": "wallet.getTransactions", "description": "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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"data_normal": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "TL 型 `bytes` の値。"}, "data_gasless": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes", "description": "TL 型 `bytes` の値。"}, "user_id": {"type": "object", "x-tl-type": "InputUser", "oneOf": [{"$ref": "#/components/schemas/inputUserEmpty"}, {"$ref": "#/components/schemas/inputUserSelf"}, {"$ref": "#/components/schemas/inputUser"}, {"$ref": "#/components/schemas/inputUserFromMessage"}], "description": "TL Type: InputUser."}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "additionalProperties": false, "required": ["data_normal", "user_id", "random_id"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `data_normal` | `bytes` | はい | TL 型 `bytes` の値。 |\n| `data_gasless` | `bytes` | いいえ | TL 型 `bytes` の値。 |\n| `user_id` | `InputUser` | はい | TL Type: InputUser. |\n| `random_id` | `long` | はい | 64-битное целое в десятичной записи. |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "3655719394"}}, "/catalog/wallet.getGaslessInfo": {"post": {"operationId": "wallet.getGaslessInfo", "tags": ["ウォレット"], "summary": "wallet.getGaslessInfo", "description": "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 result · `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 Type: Updates."}}}}}, "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 result · `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 result · `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 result · `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 result · `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 result · `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 Type: Updates."}}}}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "TL 型 `int` の値。"}, "max_position": {"type": "object", "x-tl-type": "FeedPosition", "oneOf": [{"$ref": "#/components/schemas/feedPosition"}], "description": "Тип TL: FeedPosition."}}, "additionalProperties": false, "required": ["filter_id", "max_position"]}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `filter_id` | `int` | はい | TL 型 `int` の値。 |\n| `max_position` | `FeedPosition` | はい | Тип TL: FeedPosition. |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "3023487487"}}, "/catalog/feed.getForYou": {"post": {"operationId": "feed.getForYou", "tags": ["フィード"], "summary": "feed.getForYou", "description": "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 result · `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 result · `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 Type: 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 Type: 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 result · `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 Type: 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 Type: 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 result · `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": "Type TL: messages.SponsoredMessages."}}}}}, "requestBody": {"required": false, "content": {"application/json": {"schema": {"type": "object", "properties": {"for_you": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true", "description": "TL 型 `true` の値。"}}, "additionalProperties": false}}}, "description": "| 名前 | 型 | 必須 | 説明 |\n| --- | --- | --- | --- |\n| `for_you` | `true` | いいえ | TL 型 `true` の値。 |"}, "x-telegram-docs-note": "このメソッドに対応する Telegram 公式ドキュメントのページは見つかりませんでした。", "x-browser-schema-id": "2276398804"}}}, "components": {"schemas": {"boolFalse": {"title": "boolFalse", "type": "object", "properties": {"_": {"type": "string", "enum": ["boolFalse"]}}, "required": ["_"], "additionalProperties": false}, "boolTrue": {"title": "boolTrue", "type": "object", "properties": {"_": {"type": "string", "enum": ["boolTrue"]}}, "required": ["_"], "additionalProperties": false}, "true": {"title": "true", "type": "object", "properties": {"_": {"type": "string", "enum": ["true"]}}, "required": ["_"], "additionalProperties": false}, "vector": {"title": "vector", "type": "object", "properties": {"_": {"type": "string", "enum": ["vector"]}}, "required": ["_"], "additionalProperties": false}, "error": {"title": "error", "type": "object", "properties": {"_": {"type": "string", "enum": ["error"]}, "code": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "code", "text"], "additionalProperties": false}, "null": {"title": "null", "type": "object", "properties": {"_": {"type": "string", "enum": ["null"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerEmpty": {"title": "inputPeerEmpty", "description": "空のコンストラクター。ユーザーもチャットも定義されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerSelf": {"title": "inputPeerSelf", "description": "現在のユーザーを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerSelf"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerSelf"]}}, "required": ["_"], "additionalProperties": false}, "inputPeerChat": {"title": "inputPeerChat", "description": "さらなる対話のためのチャットを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "チャット識別子", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "chat_id"], "additionalProperties": false}, "inputPeerUser": {"title": "inputPeerUser", "description": "さらなる対話のためのユーザーを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザー識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** [user](https://core.telegram.org/constructor/user.md) コンストラクターからの値]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "access_hash"], "additionalProperties": false}, "inputPeerChannel": {"title": "inputPeerChannel", "description": "さらなる対話のためのチャネルを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "チャネル識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** [channel](https://core.telegram.org/constructor/channel.md) コンストラクターからの値]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id", "access_hash"], "additionalProperties": false}, "inputPeerUserFromMessage": {"title": "inputPeerUserFromMessage", "description": "特定のチャットの特定のメッセージに表示された [min](https://core.telegram.org/api/min.md) ユーザー] を定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerUserFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerUserFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ユーザーが見られたチャット", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ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": "inputPeerChannelFromMessage", "description": "特定のチャットの特定のメッセージに表示された [min](https://core.telegram.org/api/min.md)] チャネルを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerChannelFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerChannelFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "チャンネルのメッセージが表示されたチャット", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ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": "inputUserEmpty", "description": "空のコンストラクター。ユーザーを定義しません。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputUserSelf": {"title": "inputUserSelf", "description": "現在のユーザーを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserSelf"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserSelf"]}}, "required": ["_"], "additionalProperties": false}, "inputUser": {"title": "inputUser", "description": "さらなる対話のためのユーザーを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザー識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "**access_hash** [user](https://core.telegram.org/constructor/user.md) コンストラクターからの値]", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "access_hash"], "additionalProperties": false}, "inputUserFromMessage": {"title": "inputUserFromMessage", "description": "特定のチャットの特定のメッセージに表示された [min](https://core.telegram.org/api/min.md) ユーザー] を定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputUserFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputUserFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ユーザーが見られたチャット", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ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": "inputPhoneContact", "description": "電話連絡先。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoneContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoneContact"]}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "任意の 64 ビット整数: たとえば、[contacts.importedContacts](https://core.telegram.org/constructor/contacts.importedContacts.md).`retry_contacts` で返された client_ids に従って、正常にインポートされなかった連絡先のみのインポートを再試行するには、[contacts.importContacts](https://core.telegram.org/method/contacts.importContacts.md)] を使用するときに増分数値に設定する必要があります。", "x-tl-type": "long", "x-telegram-field-docs": true}, "phone": {"type": "string", "x-tl-type": "string", "description": "電話番号", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "連絡先の名", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "連絡先の姓", "x-telegram-field-docs": true}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "この連絡先の非公開メモ。当社のみが閲覧できます。連絡先メモの詳細については、[ここ »](https://core.telegram.org/api/contacts.md#private-notes-for-contacts) を参照してください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "client_id", "phone", "first_name", "last_name"], "additionalProperties": false}, "inputFile": {"title": "inputFile", "description": "[upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart.md).] メソッドを使用して部分的に保存されたファイルを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "クライアントによって作成されたランダムなファイル識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "保存された部品の数", "x-telegram-field-docs": true}, "name": {"type": "string", "x-tl-type": "string", "description": "ファイルのフルネーム", "x-telegram-field-docs": true}, "md5_checksum": {"type": "string", "x-tl-type": "string", "description": "ファイルの [md5-hash](https://en.wikipedia.org/wiki/MD5#MD5_hashes)] が渡された場合、使用前にファイルの内容がチェックされます", "x-telegram-field-docs": true}}, "required": ["_", "id", "parts", "name", "md5_checksum"], "additionalProperties": false}, "inputFileBig": {"title": "inputFileBig", "description": "大きなファイル (サイズ 10 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": "inputFileStoryDocument", "description": "[ストーリーのサムネイル/静的プレビューを編集するために使用されます。完全なフローの詳細については、こちら »](https://core.telegram.org/api/stories.md#editing-stories) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileStoryDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileStoryDocument"]}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "昔話のビデオ。", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaEmpty": {"title": "inputMediaEmpty", "description": "メッセージの空のメディア コンテンツ。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputMediaUploadedPhoto": {"title": "inputMediaUploadedPhoto", "description": "写真", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaUploadedPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaUploadedPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメディアをネタバレ警告の背後に隠すかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "live_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが生写真なのか、i.e。静止画と、一緒に撮影された短い `video` クリップを組み合わせたもの", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "[アップロードされたファイル](https://core.telegram.org/api/files.md)]", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "TL Type: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "description": "付属のマスクシール", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<InputDocument>"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "自己破壊する写真の生存時間は、自己破壊を無効にする場合は `0`、再生直後に写真を自己破壊する場合は `0x7FFFFFFF` です。それ以外の場合は、再生後に `ttl_seconds` が自爆します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "video": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "ライブ写真の短いビデオクリップ", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputDocument"}}, "required": ["_", "file"], "additionalProperties": false}, "inputMediaPhoto": {"title": "inputMediaPhoto", "description": "転送された写真", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメディアをネタバレ警告の背後に隠すかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "live_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが生写真なのか、i.e。静止画と、一緒に撮影された短い `video` クリップを組み合わせたもの", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "転送される写真", "x-telegram-field-docs": true}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "自己破壊する写真の生存時間は、自己破壊を無効にする場合は `0`、再生直後にドキュメントを自己破壊する場合は `0x7FFFFFFF` に設定できます。それ以外の場合は、プレイ後に`ttl_seconds` が自爆します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "video": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "ライブ写真の短いビデオクリップ", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputDocument"}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaGeoPoint": {"title": "inputMediaGeoPoint", "description": "地図。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGeoPoint"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "ジオポイント", "x-telegram-field-docs": true}}, "required": ["_", "geo_point"], "additionalProperties": false}, "inputMediaContact": {"title": "inputMediaContact", "description": "電話帳の連絡先", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "電話番号", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "連絡先の名", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "連絡先の姓", "x-telegram-field-docs": true}, "vcard": {"type": "string", "x-tl-type": "string", "description": "vcard に連絡する", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard"], "additionalProperties": false}, "inputMediaUploadedDocument": {"title": "inputMediaUploadedDocument", "description": "新しいドキュメント", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaUploadedDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaUploadedDocument"]}, "nosound_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "オーディオ トラックがない場合でもファイルをビデオとして送信するかどうか (i.e。設定されている場合、[documentAttributeAnimated](https://core.telegram.org/constructor/documentAttributeAnimated.md)] 属性はオーディオのないビデオでも **設定されません**)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "force_file": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "メディア ファイルを強制的にドキュメントとしてアップロードする", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメディアをネタバレ警告の背後に隠すかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "[アップロードされたファイル](https://core.telegram.org/api/files.md)]", "x-telegram-field-docs": true}, "thumb": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "ドキュメントのサムネイル、ファイルと同様にアップロード", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputFile"}, "mime_type": {"type": "string", "x-tl-type": "string", "description": "MIME 書類の種類", "x-telegram-field-docs": true}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>", "description": "ドキュメントの種類（ビデオ、オーディオ、音声、ステッカーなど）を指定する属性", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "TL Type: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "description": "付属ステッカー", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<InputDocument>"}, "video_cover": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "指定したタイムスタンプ (秒) でビデオの再生を開始します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?InputPhoto"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "指定したタイムスタンプ (秒) でビデオの再生を開始します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?int"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "自己破壊型ドキュメントの存続時間。自己破壊を無効にする場合は `0`、再生直後にドキュメントを自己破壊する場合は `0x7FFFFFFF` にできます。それ以外の場合は、再生後に `ttl_seconds` が自爆します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "file", "mime_type", "attributes"], "additionalProperties": false}, "inputMediaDocument": {"title": "inputMediaDocument", "description": "転送された文書", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaDocument"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメディアをネタバレ警告の背後に隠すかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "転送される文書。", "x-telegram-field-docs": true}, "video_cover": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "カスタムビデオカバー。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputPhoto"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "指定したタイムスタンプ (秒) でビデオの再生を開始します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "自己破壊型ドキュメントの存続時間。自己破壊を無効にする場合は `0`、再生直後にドキュメントを自己破壊する場合は `0x7FFFFFFF` にできます。それ以外の場合は、再生後に `ttl_seconds` が自爆します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "query": {"type": "string", "x-tl-type": "string", "description": "ユーザーがこのステッカーを見つけるために使用したテキスト クエリまたは絵文字、または GIF: 検索結果の関連性を高めるために使用されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaVenue": {"title": "inputMediaVenue", "description": "会場の地理位置情報を送信するために使用できます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaVenue"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "地理位置情報", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "会場名", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "会場の物理的な住所", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "会場プロバイダー: 現時点では「foursquare」と「gplaces」（Google プレイス）のみをサポートする必要があります。", "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": "inputMediaPhotoExternal", "description": "指定された URL を使用してサーバーによってアップロードされる新しい写真", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPhotoExternal"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPhotoExternal"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメディアをネタバレ警告の背後に隠すかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "URL 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": "inputMediaDocumentExternal", "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": "inputMediaGame", "description": "ゲーム", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGame"]}, "id": {"type": "object", "x-tl-type": "InputGame", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGameID", "inputGameShortName"]}}, "description": "前進するゲーム", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMediaInvoice": {"title": "inputMediaInvoice", "description": "[ボット支払い](https://core.telegram.org/bots/payments.md)] の請求書を生成しました", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaInvoice"]}, "title": {"type": "string", "x-tl-type": "string", "description": "商品名、1～32文字", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "製品説明、1 ～ 255 文字", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "URL 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": "ユニークな[ボットディープリンク開始パラメータ](https://core.telegram.org/api/links.md#bot-links)。存在する場合、送信されたメッセージの転送されたコピーには、(支払いボタンの代わりに) ボットへの [ディープリンク](https://core.telegram.org/api/links.md#bot-links)] を備えた URL ボタンがあり、その値が開始パラメーターとして使用されます。存在しない場合、送信されたメッセージの転送されたコピーには [支払い] ボタンが表示され、複数のユーザーが同じ請求書を使用して転送されたメッセージから直接支払うことができます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "extended_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "廃止されました", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputMedia"}}, "required": ["_", "title", "description", "invoice", "payload", "provider_data"], "additionalProperties": false}, "inputMediaGeoLive": {"title": "inputMediaGeoLive", "description": "[ライブ地理位置情報](https://core.telegram.org/api/live-location.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaGeoLive"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaGeoLive"]}, "stopped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "位置情報の送信が停止されたかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "現在の地理位置情報", "x-telegram-field-docs": true}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ライブロケーション](https://core.telegram.org/api/live-location.md)] の場合、ロケーションが移動する方向 (度単位)。 1-360。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在地の有効期限", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ライブ ロケーション](https://core.telegram.org/api/live-location.md)] の場合、近接アラートのための別のチャット メンバーまでの最大距離 (メートル単位) (0 ～ 100000)", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}}, "required": ["_", "geo_point"], "additionalProperties": false}, "inputMediaPoll": {"title": "inputMediaPoll", "description": "世論調査", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPoll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPoll"]}, "poll": {"type": "object", "x-tl-type": "Poll", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["poll"]}}, "description": "送信するアンケート", "x-telegram-field-docs": true}, "correct_answers": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "`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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[`solution` の説明用のスタイル付きテキスト メッセージ エンティティ ](https://core.telegram.org/api/entities.md)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "solution_media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "クイズの解答の説明と一緒に表示されるオプションのメディア添付ファイル", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputMedia"}}, "required": ["_", "poll"], "additionalProperties": false}, "inputMediaDice": {"title": "inputMediaDice", "description": "[サイコロのアニメーションスタンプ](https://core.telegram.org/api/dice.md)]を送ってください", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaDice"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "絵文字は、現時点では 🏀、🎲、🎯 がサポートされています", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputMediaStory": {"title": "inputMediaStory", "description": "転送されたストーリー", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaStory"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ストーリーが投稿されたピア", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ストーリーID", "x-telegram-field-docs": true}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "inputMediaWebPage": {"title": "inputMediaWebPage", "description": "キャプションのリンク プレビュー、またはメッセージが添付されていないスタンドアロン リンク プレビューの生成に使用されるオプションを指定します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaWebPage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWebPage"]}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、大きなメディア プレビューを使用するように指定されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、小さいメディア プレビューを使用するように指定されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "optional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "**設定されていない**場合、指定された `url` に対して Web ページのプレビューを生成できない場合は、`WEBPAGE_NOT_FOUND` RPC エラーが発行されます。それ以外の場合、エラーは発行されません (提供されたメッセージも空でない限り、その場合は代わりに `MESSAGE_EMPTY` が発行されます)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "url": {"type": "string", "x-tl-type": "string", "description": "リンクのプレビューに使用する URL。", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "inputMediaPaidMedia": {"title": "inputMediaPaidMedia", "description": "【有料メディア、詳しくはこちら»](https://core.telegram.org/api/paid-media.md)をご覧ください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaPaidMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaPaidMedia"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "[Telegram Stars](https://core.telegram.org/api/stars.md)] のメディアの価格。", "x-tl-type": "long", "x-telegram-field-docs": true}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "TL Type: InputMedia."}, "x-tl-type": "Vector<InputMedia>", "description": "写真やビデオ。", "x-telegram-field-docs": true}, "payload": {"type": "string", "x-tl-type": "string", "description": "ボットのみ。支払いが行われたときに [updateBotPurchasedPaidMedia](https://core.telegram.org/constructor/updateBotPurchasedPaidMedia.md)] に渡されるカスタム ペイロードを指定します (このフィールドはユーザーには表示されません)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "stars_amount", "extended_media"], "additionalProperties": false}, "inputMediaTodo": {"title": "inputMediaTodo", "description": "[todoリスト»](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": "ToDo リスト。", "x-telegram-field-docs": true}}, "required": ["_", "todo"], "additionalProperties": false}, "inputMediaStakeDice": {"title": "inputMediaStakeDice", "description": "ダイスゲームメディア。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaStakeDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaStakeDice"]}, "game_hash": {"type": "string", "x-tl-type": "string", "description": "ゲームハッシュ。", "x-telegram-field-docs": true}, "ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "金額。", "x-tl-type": "long", "x-telegram-field-docs": true}, "client_seed": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "クライアントシード。", "x-telegram-field-docs": true}}, "required": ["_", "game_hash", "ton_amount", "client_seed"], "additionalProperties": false}, "inputMediaWidget": {"title": "inputMediaWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWidget"]}, "allow_queries": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shared_widget": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "html": {"type": "string", "x-tl-type": "string"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}}, "required": ["_", "width", "height", "html"], "additionalProperties": false}, "inputMediaWidgetId": {"title": "inputMediaWidgetId", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaWidgetId"]}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "widget_id"], "additionalProperties": false}, "inputChatPhotoEmpty": {"title": "inputChatPhotoEmpty", "description": "コンストラクターを空にして、グループ写真を削除します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatUploadedPhoto": {"title": "inputChatUploadedPhoto", "description": "新しい写真をグループのプロフィール写真として設定します。\n\n`file`、`video`、および `video_emoji_markup` フラグは相互に排他的です。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatUploadedPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatUploadedPhoto"]}, "file": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "[upload.saveFilePart](https://core.telegram.org/method/upload.saveFilePart.md)]メソッドを使用して部分的に保存されたファイル", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputFile"}, "video": {"type": "object", "x-tl-type": "InputFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputFile", "inputFileBig", "inputFileStoryDocument"]}}, "description": "アニメーションプロフィール写真用のスクエアビデオ", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputFile"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "description": "Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if `video` or `video_emoji_markup` is set.", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?double"}, "video_emoji_markup": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "アニメーションステッカーのプロフィール画像には、[videoSizeEmojiMarkup](https://core.telegram.org/constructor/videoSizeEmojiMarkup.md)] または [videoSizeStickerMarkup](https://core.telegram.org/constructor/videoSizeStickerMarkup.md)] コンストラクターが含まれている必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?VideoSize"}}, "required": ["_"], "additionalProperties": false}, "inputChatPhoto": {"title": "inputChatPhoto", "description": "チャットのプロフィール写真として設定される既存の写真。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatPhoto"]}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "既存の写真", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputGeoPointEmpty": {"title": "inputGeoPointEmpty", "description": "空の GeoPoint コンストラクター。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGeoPointEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputGeoPoint": {"title": "inputGeoPoint", "description": "GeoPoint をその座標によって定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGeoPoint"]}, "lat": {"type": "number", "format": "double", "x-tl-type": "double", "description": "緯度", "x-telegram-field-docs": true}, "long": {"type": "number", "format": "double", "x-tl-type": "double", "description": "経度", "x-telegram-field-docs": true}, "accuracy_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "位置の推定水平精度 (メートル単位)。送信者によって定義されたとおりです。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "lat", "long"], "additionalProperties": false}, "inputPhotoEmpty": {"title": "inputPhotoEmpty", "description": "空のコンストラクター。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputPhoto": {"title": "inputPhoto", "description": "さらなるインタラクションのために写真を定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoto"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "写真識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[photo](https://core.telegram.org/constructor/photo.md) コンストラクターからの **access_hash** 値", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "【ファイル参照](https://core.telegram.org/api/file-references.md)】", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference"], "additionalProperties": false}, "inputFileLocation": {"title": "inputFileLocation", "description": "DEPRECATED 写真の場所", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFileLocation"]}, "volume_id": {"type": "string", "pattern": "^-?\\d+$", "description": "サーバーボリューム", "x-tl-type": "long", "x-telegram-field-docs": true}, "local_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ファイル識別子", "x-telegram-field-docs": true}, "secret": {"type": "string", "pattern": "^-?\\d+$", "description": "ファイルにアクセスするためのチェックサム", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "【ファイル参照](https://core.telegram.org/api/file-references.md)】", "x-telegram-field-docs": true}}, "required": ["_", "volume_id", "local_id", "secret", "file_reference"], "additionalProperties": false}, "inputEncryptedFileLocation": {"title": "inputEncryptedFileLocation", "description": "暗号化された秘密のチャット ファイルの場所。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)] のファイル ID、**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}, "inputDocumentFileLocation": {"title": "inputDocumentFileLocation", "description": "ドキュメントの場所 (ビデオ、音声、オーディオ、基本的に写真を除くすべてのタイプ)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocumentFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocumentFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "文書ID", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[document](https://core.telegram.org/constructor/document.md) コンストラクターの **access_hash** パラメーター", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "【ファイル参照](https://core.telegram.org/api/file-references.md)】", "x-telegram-field-docs": true}, "thumb_size": {"type": "string", "x-tl-type": "string", "description": "サムネイルをダウンロードするためのサムネイルのサイズ", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "thumb_size"], "additionalProperties": false}, "inputSecureFileLocation": {"title": "inputSecureFileLocation", "description": "暗号化された電報の場所 [パスポート](https://core.telegram.org/passport.md) ファイル。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSecureFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[secureFile](https://core.telegram.org/constructor/secureFile.md)] のファイル ID、**id** パラメータ値", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "チェックサム、[secureFile](https://core.telegram.org/constructor/secureFile.md)] の **access_hash** パラメータ値", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputTakeoutFileLocation": {"title": "inputTakeoutFileLocation", "description": "特殊な [テイクアウト方法](https://core.telegram.org/api/takeout.md)] がまだない機能に関連するすべての個人データを含む JSON ファイルをダウンロードするために使用されます。テイクアウト API の詳細については、[こちら »](https://core.telegram.org/api/takeout.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputTakeoutFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTakeoutFileLocation"]}}, "required": ["_"], "additionalProperties": false}, "inputPhotoFileLocation": {"title": "inputPhotoFileLocation", "description": "このオブジェクトを使用して [upload.getFile](https://core.telegram.org/method/upload.getFile.md) メソッド] で写真をダウンロードします", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "写真付き身分証明書、[写真](https://core.telegram.org/constructor/photo.md) オブジェクト] から取得", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "写真のアクセス ハッシュ、[写真](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": "inputPhotoLegacyFileLocation", "description": "DEPRECATED レガシー写真ファイルの場所", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhotoLegacyFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhotoLegacyFileLocation"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "写真付き身分証明書", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "アクセスハッシュ", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ファイルリファレンス", "x-telegram-field-docs": true}, "volume_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ボリューム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": "inputPeerPhotoFileLocation", "description": "チャンネル/グループ/スーパーグループ/ユーザーのプロフィール写真の場所", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerPhotoFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerPhotoFileLocation"]}, "big": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "画像の高品質バージョンをダウンロードするかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "プロフィール写真をダウンロードするピア", "x-telegram-field-docs": true}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "写真付き身分証明書", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "peer", "photo_id"], "additionalProperties": false}, "inputStickerSetThumb": {"title": "inputStickerSetThumb", "description": "ステッカーセットのサムネイルの場所 ([ファイル](https://core.telegram.org/api/files.md)] を参照)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetThumb"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetThumb"]}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "ステッカーセット", "x-telegram-field-docs": true}, "thumb_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "サムネイル版", "x-telegram-field-docs": true}}, "required": ["_", "stickerset", "thumb_version"], "additionalProperties": false}, "inputGroupCallStream": {"title": "inputGroupCallStream", "description": "RTMP モードのビデオ チャット、ライブストリーム、またはライブ ストーリーのメディア チャンクを識別します。[RTMP ライブストリームの再生 »](https://core.telegram.org/api/group-calls.md#downloading-media-chunks) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallStream"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallStream"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "RTMP-mode group call", "x-telegram-field-docs": true}, "time_ms": {"type": "string", "pattern": "^-?\\d+$", "description": "取得するチャンクのタイムスタンプ (ミリ秒単位)", "x-tl-type": "long", "x-telegram-field-docs": true}, "scale": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "`1000` を右に `scale` 回ビットシフトすることで、フェッチするメディア セグメントの継続時間をミリ秒単位で指定します: `duration_ms := 1000 >> scale`", "x-telegram-field-docs": true}, "video_channel": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[groupCallStreamChannel](https://core.telegram.org/constructor/groupCallStreamChannel.md).`channel` 取得するビデオ チャネルの値;統合ビデオはチャンネル `1` を使用します。音声を取得するには、`video_quality` と一緒に省略します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "video_quality": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "選択したビデオ品質 (0 = 最低、1 = 中、2 = 最高)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "call", "time_ms", "scale"], "additionalProperties": false}, "peerUser": {"title": "peerUser", "description": "チャットパートナー", "externalDocs": {"url": "https://core.telegram.org/constructor/peerUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザー識別子", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "user_id"], "additionalProperties": false}, "peerChat": {"title": "peerChat", "description": "グループ。", "externalDocs": {"url": "https://core.telegram.org/constructor/peerChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "グループ識別子", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "chat_id"], "additionalProperties": false}, "peerChannel": {"title": "peerChannel", "description": "チャンネル/スーパーグループ", "externalDocs": {"url": "https://core.telegram.org/constructor/peerChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "チャンネルID", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id"], "additionalProperties": false}, "storage.fileUnknown": {"title": "storage.fileUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileUnknown"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePartial": {"title": "storage.filePartial", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePartial"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileJpeg": {"title": "storage.fileJpeg", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileJpeg"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileGif": {"title": "storage.fileGif", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileGif"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePng": {"title": "storage.filePng", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePng"]}}, "required": ["_"], "additionalProperties": false}, "storage.filePdf": {"title": "storage.filePdf", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.filePdf"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMp3": {"title": "storage.fileMp3", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMp3"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMov": {"title": "storage.fileMov", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMov"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileMp4": {"title": "storage.fileMp4", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileMp4"]}}, "required": ["_"], "additionalProperties": false}, "storage.fileWebp": {"title": "storage.fileWebp", "type": "object", "properties": {"_": {"type": "string", "enum": ["storage.fileWebp"]}}, "required": ["_"], "additionalProperties": false}, "userEmpty": {"title": "userEmpty", "description": "空のコンストラクター、存在しないユーザー。", "externalDocs": {"url": "https://core.telegram.org/constructor/userEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["userEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザー識別子または `0`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "user": {"title": "user", "description": "特定のユーザーに関する情報を示します。\n\n特に指定がない限り、[ローカル ピア データベース](https://core.telegram.org/api/peers.md)] を更新するとき、新しく受信したコンストラクターのすべてのフィールドが、ローカルにキャッシュされた古いコンストラクターよりも優先されます (新しいコンストラクターに設定されていないフィールドを削除することも含まれます)。\n\n[ローカル ユーザー ピア データベース](https://core.telegram.org/api/peers.md)] を更新するときに使用するロジックの実装については、[こちら »](https://github.com/tdlib/td/blob/73035e4a69ed26df563652de14aa9c4c86d23420/td/telegram/UserManager.cpp#L3106) を参照してください。", "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": "このボットが [アタッチメント メニュー Web アプリ](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": "このボットが提供する [アタッチメント メニュー Web アプリ](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。詳細と利用可能な ID 範囲については、[ここ »](https://core.telegram.org/api/peers.md#peer-id) を参照してください。", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザーのアクセス ハッシュ。詳細については、[ここ »](https://core.telegram.org/api/peers.md#access-hash) を参照してください。  このフラグが設定されている場合、[ローカル ピア データベース](https://core.telegram.org/api/peers.md)] を更新するときに、`min_access_hash` という仮想フラグを生成します。 - `min` が設定されている場合は、`true` に設定されます AND -- `phone` フラグが**設定されていません**、または -- `phone` フラグが設定されており、関連する電話番号文字列が空ではありません - に設定されますそれ以外の場合は `false` 。   次に、次の場合に、`access_hash` と `min_access_hash` の両方をローカル データベースに適用します。 - `min_access_hash` が false または - `min_access_hash` が true AND -- このユーザーのローカルにキャッシュされたオブジェクトが存在しない、または -- ローカル キャッシュに `access_hash` が存在しない、または -- キャッシュされたオブジェクトの `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) をダウンロードする] で使用するのに **のみ** 適しています。それ以外の場合は、指定どおりに `inputPeer*FromMessage` コンストラクターを生成する必要があります [ここ »](https://core.telegram.org/api/min.md)]。  ボットは、最小アクセス ハッシュの代わりに `0` を渡すことで、状況によっては最小アクセス ハッシュを使用することもできます。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "first_name": {"type": "string", "x-tl-type": "string", "description": "First name.  When updating the [local peer database](https://core.telegram.org/api/peers.md), apply changes to this field only if:  - The `min` flag is not set OR  - The `min` flag is set AND  -- The `min` flag of the locally cached user entry is set.", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "last_name": {"type": "string", "x-tl-type": "string", "description": "Last name.  When updating the [local peer database](https://core.telegram.org/api/peers.md), apply changes to this field only if:  - The `min` flag is not set OR  - The `min` flag is set AND  -- The `min` flag of the locally cached user entry is set.", "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: RestrictionReason."}, "x-tl-type": "Vector<RestrictionReason>", "description": "このユーザーへのアクセスを制限する必要がある理由が含まれます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?Vector<RestrictionReason>"}, "bot_inline_placeholder": {"type": "string", "x-tl-type": "string", "description": "このインライン ボットのインライン プレースホルダー", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?string"}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "ユーザーの言語コード", "x-telegram-field-docs": true, "x-tl-flag": "flags.22?string"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "[絵文字ステータス](https://core.telegram.org/api/emoji-status.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.30?EmojiStatus"}, "usernames": {"type": "array", "items": {"type": "object", "x-tl-type": "Username", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["username"]}}, "description": "Тип TL: Username."}, "x-tl-type": "Vector<Username>", "description": "Additional usernames.  When updating the [local peer database](https://core.telegram.org/api/peers.md), apply changes to this field only if:  - The `min` flag is not set OR  - The `min` flag is set AND  -- The `min` flag of the locally cached user entry is set.  Changes to this flag (if the above conditions are respected) should invalidate the local [userFull](https://core.telegram.org/constructor/userFull.md) cache for this user ID.", "x-telegram-field-docs": true, "x-tl-flag": "flags2.0?Vector<Username>"}, "stories_max_id": {"type": "object", "x-tl-type": "RecentStory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["recentStory"]}}, "description": "ユーザーの[アクティブなストーリー»](https://core.telegram.org/api/stories.md#recent-story-summaries)]のまとめ。   [ローカル ピア データベース ](https://core.telegram.org/api/peers.md)] を更新するときに、受信コンストラクターの `min` フラグが設定されている場合は、このフィールドに変更を適用しないでください。", "x-telegram-field-docs": true, "x-tl-flag": "flags2.5?RecentStory"}, "color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "ユーザーの[アクセントカラー](https://core.telegram.org/api/colors.md).", "x-telegram-field-docs": true, "x-tl-flag": "flags2.8?PeerColor"}, "profile_color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "ユーザーの[プロフィールカラー](https://core.telegram.org/api/colors.md)]。", "x-telegram-field-docs": true, "x-tl-flag": "flags2.9?PeerColor"}, "bot_active_users": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "このボットの月間アクティブ ユーザー (MAU) (小規模なボットの場合は表示されない場合があります)。", "x-telegram-field-docs": true, "x-tl-flag": "flags2.12?int"}, "bot_verification_icon": {"type": "string", "pattern": "^-?\\d+$", "description": "[ボット検証アイコン »](https://core.telegram.org/api/bots/verification.md)] について説明します。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags2.14?long"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "設定されている場合、ユーザーは [有料メッセージ »](https://core.telegram.org/api/paid-messages.md) を有効にしています。設定された例外に応じて、メッセージを送信するには指定された金額の [スター](https://core.telegram.org/api/stars.md)] を支払う必要がある*場合があります: [userFull](https://core.telegram.org/constructor/userFull.md).`send_paid_messages_stars` または [users.getRequirementsToContact](https://core.telegram.org/method/users.getRequirementsToContact.md)] を確認して、現在ログインしているユーザーが実際に支払う必要があるかどうかを確認します。[ここ »](https://core.telegram.org/api/paid-messages.md) を参照してください。完全な流れのために。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags2.15?long"}, "linked_community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.21?long"}}, "required": ["_", "id"], "additionalProperties": false}, "userProfilePhotoEmpty": {"title": "userProfilePhotoEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["userProfilePhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "userProfilePhoto": {"title": "userProfilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["userProfilePhoto"]}, "has_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "personal": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stripped_thumb": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.1?bytes"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "photo_id", "dc_id"], "additionalProperties": false}, "userStatusEmpty": {"title": "userStatusEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusEmpty"]}}, "required": ["_"], "additionalProperties": false}, "userStatusOnline": {"title": "userStatusOnline", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusOnline"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "expires"], "additionalProperties": false}, "userStatusOffline": {"title": "userStatusOffline", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusOffline"]}, "was_online": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "was_online"], "additionalProperties": false}, "userStatusRecently": {"title": "userStatusRecently", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusRecently"]}, "by_me": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "userStatusLastWeek": {"title": "userStatusLastWeek", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusLastWeek"]}, "by_me": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "userStatusLastMonth": {"title": "userStatusLastMonth", "type": "object", "properties": {"_": {"type": "string", "enum": ["userStatusLastMonth"]}, "by_me": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "chatEmpty": {"title": "chatEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "chat": {"title": "chat", "type": "object", "properties": {"_": {"type": "string", "enum": ["chat"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "deactivated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "call_active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.23?true"}, "call_not_empty": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto."}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "migrated_to": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "TL Type: InputChannel.", "x-tl-flag": "flags.6?InputChannel"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.14?ChatAdminRights"}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.18?ChatBannedRights"}}, "required": ["_", "id", "title", "photo", "participants_count", "date", "version"], "additionalProperties": false}, "chatForbidden": {"title": "chatForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatForbidden"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "channel": {"title": "channel", "type": "object", "properties": {"_": {"type": "string", "enum": ["channel"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "verified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "restricted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "signatures": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "scam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "has_link": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}, "has_geo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "slowmode_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.22?true"}, "call_active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.23?true"}, "call_not_empty": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "fake": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true"}, "gigagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "join_to_send": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "join_request": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "forum": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.30?true"}, "stories_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.1?true"}, "stories_hidden_min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.2?true"}, "stories_unavailable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.3?true"}, "signature_profiles": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.12?true"}, "autotranslation": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.15?true"}, "broadcast_messages_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.16?true"}, "monoforum": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.17?true"}, "forum_tabs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.19?true"}, "in_news": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.21?true"}, "forum_sidebar": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.23?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "title": {"type": "string", "x-tl-type": "string"}, "username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "restriction_reason": {"type": "array", "items": {"type": "object", "x-tl-type": "RestrictionReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}}, "description": "Тип TL: RestrictionReason."}, "x-tl-type": "Vector<RestrictionReason>", "x-tl-flag": "flags.9?Vector<RestrictionReason>"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.14?ChatAdminRights"}, "banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.15?ChatBannedRights"}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.18?ChatBannedRights"}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "usernames": {"type": "array", "items": {"type": "object", "x-tl-type": "Username", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["username"]}}, "description": "Тип TL: Username."}, "x-tl-type": "Vector<Username>", "x-tl-flag": "flags2.0?Vector<Username>"}, "stories_max_id": {"type": "object", "x-tl-type": "RecentStory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["recentStory"]}}, "description": "TL Type: RecentStory.", "x-tl-flag": "flags2.4?RecentStory"}, "color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags2.7?PeerColor"}, "profile_color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags2.8?PeerColor"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus.", "x-tl-flag": "flags2.9?EmojiStatus"}, "level": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.10?int"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.11?int"}, "bot_verification_icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.13?long"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.14?long"}, "linked_monoforum_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.18?long"}, "linked_community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.20?long"}, "pinned_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.22?int"}}, "required": ["_", "id", "title", "photo", "date"], "additionalProperties": false}, "channelForbidden": {"title": "channelForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelForbidden"]}, "broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "monoforum": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.16?int"}}, "required": ["_", "id", "access_hash", "title"], "additionalProperties": false}, "communityForbidden": {"title": "communityForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityForbidden"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "community": {"title": "community", "type": "object", "properties": {"_": {"type": "string", "enum": ["community"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "collapsed_in_dialogs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.20?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "title": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.14?ChatAdminRights"}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights.", "x-tl-flag": "flags.18?ChatBannedRights"}}, "required": ["_", "id", "title", "photo", "date"], "additionalProperties": false}, "chatFull": {"title": "chatFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatFull"]}, "can_set_username": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "has_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "translations_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "has_welcome_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "participants": {"type": "object", "x-tl-type": "ChatParticipants", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipantsForbidden", "chatParticipants"]}}, "description": "Тип TL: ChatParticipants."}, "chat_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings."}, "exported_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: 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 Type: Peer.", "x-tl-flag": "flags.15?Peer"}, "theme_emoticon": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "recent_requesters": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.17?Vector<long>"}, "available_reactions": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions.", "x-tl-flag": "flags.18?ChatReactions"}, "reactions_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int"}}, "required": ["_", "id", "about", "participants", "notify_settings"], "additionalProperties": false}, "channelFull": {"title": "channelFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelFull"]}, "can_view_participants": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "can_set_username": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "can_set_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "hidden_prehistory": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "can_set_location": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "has_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "can_view_stats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.22?true"}, "can_delete_channel": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.0?true"}, "antispam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.1?true"}, "participants_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.2?true"}, "translations_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.3?true"}, "stories_pinned_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.5?true"}, "view_forum_as_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.6?true"}, "restricted_sponsored": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.11?true"}, "can_view_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.12?true"}, "paid_media_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.14?true"}, "can_view_stars_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.15?true"}, "paid_reactions_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.16?true"}, "stargifts_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.19?true"}, "paid_messages_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.20?true"}, "has_welcome_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.24?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "admins_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "kicked_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "banned_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "online_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.13?int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "chat_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings."}, "exported_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: ExportedChatInvite.", "x-tl-flag": "flags.23?ExportedChatInvite"}, "bot_info": {"type": "array", "items": {"type": "object", "x-tl-type": "BotInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInfo"]}}, "description": "Тип TL: BotInfo."}, "x-tl-type": "Vector<BotInfo>"}, "migrated_from_chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "migrated_from_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "pinned_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "stickerset": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Тип TL: StickerSet.", "x-tl-flag": "flags.8?StickerSet"}, "available_min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "linked_chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.14?long"}, "location": {"type": "object", "x-tl-type": "ChannelLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty", "channelLocation"]}}, "description": "Тип TL: ChannelLocation.", "x-tl-flag": "flags.15?ChannelLocation"}, "slowmode_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "slowmode_next_send_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.18?int"}, "stats_dc": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.12?int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall.", "x-tl-flag": "flags.21?InputGroupCall"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.24?int"}, "pending_suggestions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.25?Vector<string>"}, "groupcall_default_join_as": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.26?Peer"}, "theme_emoticon": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.27?string"}, "requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.28?int"}, "recent_requesters": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.28?Vector<long>"}, "default_send_as": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.29?Peer"}, "available_reactions": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions.", "x-tl-flag": "flags.30?ChatReactions"}, "reactions_limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.13?int"}, "stories": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "Тип TL: PeerStories.", "x-tl-flag": "flags2.4?PeerStories"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL Type: WallPaper.", "x-tl-flag": "flags2.7?WallPaper"}, "boosts_applied": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.8?int"}, "boosts_unrestrict": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.9?int"}, "emojiset": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Тип TL: StickerSet.", "x-tl-flag": "flags2.10?StickerSet"}, "bot_verification": {"type": "object", "x-tl-type": "BotVerification", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerification"]}}, "description": "Тип TL: BotVerification.", "x-tl-flag": "flags2.17?BotVerification"}, "stargifts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.18?int"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.21?long"}, "main_tab": {"type": "object", "x-tl-type": "ProfileTab", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["profileTabPosts", "profileTabGifts", "profileTabMedia", "profileTabFiles", "profileTabMusic", "profileTabVoice", "profileTabLinks", "profileTabGifs"]}}, "description": "Тип TL: ProfileTab.", "x-tl-flag": "flags2.22?ProfileTab"}, "guard_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.23?long"}, "share_theme": {"type": "object", "x-tl-type": "ShareTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shareThemeDefault", "shareThemeEmojiBackdrop", "shareThemeGift", "inputShareThemeGift"]}}, "description": "Тип TL: ShareTheme.", "x-tl-flag": "flags2.25?ShareTheme"}}, "required": ["_", "id", "about", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "chat_photo", "notify_settings", "bot_info", "pts"], "additionalProperties": false}, "communityFull": {"title": "communityFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityFull"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "chat_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "linked_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "CommunityPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["communityPeer"]}}, "description": "Тип TL: CommunityPeer."}, "x-tl-type": "Vector<CommunityPeer>"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings.", "x-tl-flag": "flags.3?PeerNotifySettings"}, "admins_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "kicked_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "peer_link_requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "id", "about", "chat_photo", "linked_peers"], "additionalProperties": false}, "chatParticipant": {"title": "chatParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipant"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "inviter_id", "date"], "additionalProperties": false}, "chatParticipantCreator": {"title": "chatParticipantCreator", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipantCreator"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id"], "additionalProperties": false}, "chatParticipantAdmin": {"title": "chatParticipantAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipantAdmin"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "inviter_id", "date"], "additionalProperties": false}, "chatParticipantsForbidden": {"title": "chatParticipantsForbidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipantsForbidden"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "self_participant": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant.", "x-tl-flag": "flags.0?ChatParticipant"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "chatParticipants": {"title": "chatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatParticipants"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant."}, "x-tl-type": "Vector<ChatParticipant>"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "participants", "version"], "additionalProperties": false}, "chatPhotoEmpty": {"title": "chatPhotoEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty"]}}, "required": ["_"], "additionalProperties": false}, "chatPhoto": {"title": "chatPhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatPhoto"]}, "has_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stripped_thumb": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.1?bytes"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "photo_id", "dc_id"], "additionalProperties": false}, "messageEmpty": {"title": "messageEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEmpty"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}}, "required": ["_", "id"], "additionalProperties": false}, "message": {"title": "message", "type": "object", "properties": {"_": {"type": "string", "enum": ["message"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "post": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "from_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.18?true"}, "legacy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "edit_hide": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "offline": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.1?true"}, "video_processing_pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.4?true"}, "paid_suggested_post_stars": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.8?true"}, "paid_suggested_post_ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.9?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.8?Peer"}, "from_boosts_applied": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.29?int"}, "from_rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags2.12?string"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.28?Peer"}, "fwd_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "Тип TL: MessageFwdHeader.", "x-tl-flag": "flags.2?MessageFwdHeader"}, "via_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.11?long"}, "via_business_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.0?long"}, "guestchat_via_from": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags2.19?Peer"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Тип TL: MessageReplyHeader.", "x-tl-flag": "flags.3?MessageReplyHeader"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "string", "x-tl-type": "string"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia.", "x-tl-flag": "flags.9?MessageMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.6?ReplyMarkup"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.7?Vector<MessageEntity>"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "replies": {"type": "object", "x-tl-type": "MessageReplies", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplies"]}}, "description": "Тип TL: MessageReplies.", "x-tl-flag": "flags.23?MessageReplies"}, "edit_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "post_author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "grouped_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.17?long"}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "Тип TL: MessageReactions.", "x-tl-flag": "flags.20?MessageReactions"}, "restriction_reason": {"type": "array", "items": {"type": "object", "x-tl-type": "RestrictionReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}}, "description": "Тип TL: RestrictionReason."}, "x-tl-type": "Vector<RestrictionReason>", "x-tl-flag": "flags.22?Vector<RestrictionReason>"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.25?int"}, "quick_reply_shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.30?int"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.2?long"}, "factcheck": {"type": "object", "x-tl-type": "FactCheck", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["factCheck"]}}, "description": "TL Type: FactCheck.", "x-tl-flag": "flags2.3?FactCheck"}, "report_delivery_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.5?int"}, "paid_message_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.6?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["suggestedPost"]}}, "description": "Тип TL: SuggestedPost.", "x-tl-flag": "flags2.7?SuggestedPost"}, "schedule_repeat_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.10?int"}, "summary_from_language": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags2.11?string"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage.", "x-tl-flag": "flags2.13?RichMessage"}}, "required": ["_", "id", "peer_id", "date", "message"], "additionalProperties": false}, "messageService": {"title": "messageService", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageService"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "reactions_are_possible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "post": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "legacy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.8?Peer"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.28?Peer"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Тип TL: MessageReplyHeader.", "x-tl-flag": "flags.3?MessageReplyHeader"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "action": {"type": "object", "x-tl-type": "MessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars", "messageActionPrizeStars", "messageActionStarGift", "messageActionStarGiftUnique", "messageActionPaidMessagesRefunded", "messageActionPaidMessagesPrice", "messageActionConferenceCall", "messageActionTodoCompletions", "messageActionTodoAppendTasks", "messageActionSuggestedPostApproval", "messageActionSuggestedPostSuccess", "messageActionSuggestedPostRefund", "messageActionGiftTon", "messageActionSuggestBirthday", "messageActionStarGiftPurchaseOffer", "messageActionStarGiftPurchaseOfferDeclined", "messageActionNewCreatorPending", "messageActionChangeCreator", "messageActionNoForwardsToggle", "messageActionNoForwardsRequest", "messageActionPollAppendAnswer", "messageActionPollDeleteAnswer", "messageActionManagedBotCreated", "messageActionChangeCommunity", "messageActionChatJoinedViaCommunity", "messageActionGramTransfer", "messageActionWalletTonConnectRequest", "messageActionNoPaidMessagesTokenUsed", "messageActionStarGiftOnchainOffer", "messageActionBotInvite"]}}, "description": "Тип TL: MessageAction."}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "Тип TL: MessageReactions.", "x-tl-flag": "flags.20?MessageReactions"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "peer_id", "date", "action"], "additionalProperties": false}, "messageMediaEmpty": {"title": "messageMediaEmpty", "description": "空のコンストラクター。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty"]}}, "required": ["_"], "additionalProperties": false}, "messageMediaPhoto": {"title": "messageMediaPhoto", "description": "添付の写真。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメディアをネタバレ警告の背後に隠すかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "live_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが生写真なのか、i.e。静止画と、一緒に撮影された短い `video` クリップを組み合わせたもの", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "写真", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Photo"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "自己破壊する写真の生存時間は、自己破壊を無効にする場合は `0`、再生直後に写真を自己破壊する場合は `0x7FFFFFFF` です。それ以外の場合は、再生後に `ttl_seconds` が自爆します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "video": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "ライブ写真の短いビデオクリップ", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Document"}}, "required": ["_"], "additionalProperties": false}, "messageMediaGeo": {"title": "messageMediaGeo", "description": "添付の地図。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGeo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGeo"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "ジオポイント", "x-telegram-field-docs": true}}, "required": ["_", "geo"], "additionalProperties": false}, "messageMediaContact": {"title": "messageMediaContact", "description": "付属の連絡先。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "電話番号", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "連絡先の名", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "連絡先の姓", "x-telegram-field-docs": true}, "vcard": {"type": "string", "x-tl-type": "string", "description": "VCARD of contact", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザー ID または `0` (指定された電話番号を持つユーザーが登録されていない場合)", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard", "user_id"], "additionalProperties": false}, "messageMediaUnsupported": {"title": "messageMediaUnsupported", "description": "クライアントの現在のバージョンは、このメディア タイプをサポートしていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaUnsupported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "messageMediaDocument": {"title": "messageMediaDocument", "description": "ドキュメント (ビデオ、オーディオ、音声、ステッカー、写真を除くあらゆるメディアタイプ)", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaDocument"]}, "nopremium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが通常のステッカーであっても、設定されていない場合はプレミアム ステッカーであり、プレミアム ステッカーのアニメーションを再生する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメディアをネタバレ警告の背後に隠すかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これがビデオかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "round": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これがラウンドビデオであるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "voice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが音声メッセージであるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "添付文書", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Document"}, "alt_documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "ビデオのみ。ビデオの代替品質が含まれます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?Vector<Document>"}, "video_cover": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "カスタムビデオカバー。", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?Photo"}, "video_timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "指定したタイムスタンプ (秒) でビデオの再生を開始します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?int"}, "ttl_seconds": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "自己破壊型ドキュメントの存続時間。自己破壊を無効にする場合は `0`、再生直後にドキュメントを自己破壊する場合は `0x7FFFFFFF` にできます。それ以外の場合は、再生後に `ttl_seconds` が自爆します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "messageMediaWebPage": {"title": "messageMediaWebPage", "description": "Webページのプレビュー", "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": "設定すると、ユーザーの確認なしで Web ページを直接開くことができます。それ以外の場合は、開かれる正確な URL を示すユーザーの確認が必要です。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "Webページのプレビュー", "x-telegram-field-docs": true}}, "required": ["_", "webpage"], "additionalProperties": false}, "messageMediaVenue": {"title": "messageMediaVenue", "description": "会場", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaVenue"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "会場の地理的位置", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "会場名", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "住所", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "会場プロバイダー: 現時点では「foursquare」と「gplaces」（Google プレイス）のみをサポートする必要があります。", "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": "messageMediaGame", "description": "電報ゲーム", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGame"]}, "game": {"type": "object", "x-tl-type": "Game", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["game"]}}, "description": "ゲーム", "x-telegram-field-docs": true}}, "required": ["_", "game"], "additionalProperties": false}, "messageMediaInvoice": {"title": "messageMediaInvoice", "description": "請求書", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaInvoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaInvoice"]}, "shipping_address_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "配送先住所が要求されたかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "test": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが請求書の例かどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "title": {"type": "string", "x-tl-type": "string", "description": "商品名、1～32文字", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "製品説明、1 ～ 255 文字", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "URL 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: 設定されている場合、クライアントは、[メッセージ](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": "3 文字の ISO 4217 [通貨](https://core.telegram.org/bots/payments.md#supported-currencies) コード、または [Telegram Stars](https://core.telegram.org/api/stars.md)] の場合は `XTR`。", "x-telegram-field-docs": true}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "messageMediaGeoLive", "description": "[現在の地理位置情報](https://core.telegram.org/api/live-location.md)] を示します", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGeoLive"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGeoLive"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "地理位置情報", "x-telegram-field-docs": true}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ライブロケーション](https://core.telegram.org/api/live-location.md)] の場合、ロケーションが移動する方向 (度単位)。 1-360", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "提供された位置情報の有効期間", "x-telegram-field-docs": true}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ライブ ロケーション](https://core.telegram.org/api/live-location.md)] の場合、近接アラートのための別のチャット メンバーまでの最大距離 (メートル単位) (0 ～ 100000)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "geo", "period"], "additionalProperties": false}, "messageMediaPoll": {"title": "messageMediaPoll", "description": "投票", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaPoll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaPoll"]}, "poll": {"type": "object", "x-tl-type": "Poll", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["poll"]}}, "description": "世論調査", "x-telegram-field-docs": true}, "results": {"type": "object", "x-tl-type": "PollResults", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollResults"]}}, "description": "投票結果", "x-telegram-field-docs": true}, "attached_media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "オプションのメディア添付ファイルが投票の横に表示されます", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MessageMedia"}}, "required": ["_", "poll", "results"], "additionalProperties": false}, "messageMediaDice": {"title": "messageMediaDice", "description": "【サイコロのアニメーションスタンプ](https://core.telegram.org/api/dice.md)】", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaDice"]}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ダイス値](https://core.telegram.org/api/dice.md)]", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "絵文字は、現時点では 🏀、🎲、🎯 がサポートされています", "x-telegram-field-docs": true}, "game_outcome": {"type": "object", "x-tl-type": "messages.EmojiGameOutcome", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messages.emojiGameOutcome"]}}, "description": "ダイスゲームの結果。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?messages.EmojiGameOutcome"}}, "required": ["_", "value", "emoticon"], "additionalProperties": false}, "messageMediaStory": {"title": "messageMediaStory", "description": "転送された [ストーリー](https://core.telegram.org/api/stories.md)] またはストーリーへの言及を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaStory"]}, "via_mention": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、この誰かがこのストーリーで私たちに言及したことを示します (i.e。説明で私たちをタグ付けすることによって)、またはその逆に、他のピアに言及したことを示します (メッセージが送信されている場合)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "ストーリーを投稿したピア。", "x-telegram-field-docs": true}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ストーリー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": "messageMediaGiveaway", "description": "[プレゼントに関する情報が含まれています。詳しくは、こちら»](https://core.telegram.org/api/giveaways.md)をご覧ください。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、特典作成日以降の新規登録者のみが特典に参加できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、プレゼントの当選者は公開され、プレゼントが終了するとチャンネルに自動的に送信される [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md)] メッセージにリストされます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "channels": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "ユーザーが特典に参加するために参加する必要があるチャネル。", "x-telegram-field-docs": true}, "countries_iso2": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "If set, only users residing in these countries can participate in the giveaway, (specified as a list of two-letter ISO 3166-1 alpha-2 country codes); otherwise there are no country-based limitations.", "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 プレミアム](https://core.telegram.org/api/premium.md)] サブスクリプションのプレゼント数。", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "プレゼントの各 [Telegram プレミアム](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": "messageMediaGiveawayResults", "description": "一般の勝者による [プレゼント](https://core.telegram.org/api/giveaways.md)] が終了しました。このコンストラクターには勝者に関する情報が含まれています。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaGiveawayResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaGiveawayResults"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、特典作成日以降の新規登録者のみが特典に参加します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、特典はキャンセルされ、全額返金されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "プレミアム購読期間中にプレゼントの当選者によって自動的に [ブースト](https://core.telegram.org/api/boost.md)] されたチャンネル/スーパーグループの 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": "プレゼントの当選者のユーザー ID は最大 100 件です。", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "プレゼントの各 [Telegram プレミアム](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": "messageMediaPaidMedia", "description": "【有料メディア、詳しくはこちら»](https://core.telegram.org/api/paid-media.md)をご覧ください。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaPaidMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaPaidMedia"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "[Telegram Stars](https://core.telegram.org/api/stars.md)] のメディアの価格。", "x-tl-type": "long", "x-telegram-field-docs": true}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageExtendedMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview", "messageExtendedMedia"]}}, "description": "Тип TL: MessageExtendedMedia."}, "x-tl-type": "Vector<MessageExtendedMedia>", "description": "有料メディア、またはメディアがまだ購入されていない場合は超低解像度メディア プレビューのいずれか [詳細については、こちら »](https://core.telegram.org/api/paid-media.md#viewing-paid-media) を参照してください。", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount", "extended_media"], "additionalProperties": false}, "messageMediaToDo": {"title": "messageMediaToDo", "description": "[todo リスト »](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": "ToDo リスト。", "x-telegram-field-docs": true}, "completions": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoCompletion", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoCompletion"]}}, "description": "Тип TL: TodoCompletion."}, "x-tl-type": "Vector<TodoCompletion>", "description": "完成品。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<TodoCompletion>"}}, "required": ["_", "todo"], "additionalProperties": false}, "messageMediaVideoStream": {"title": "messageMediaVideoStream", "description": "[ライブストーリー »](https://core.telegram.org/api/group-calls.md#live-stories)] に関連付けられたアクティブなグループ通話を識別します。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageMediaVideoStream"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaVideoStream"]}, "rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ライブストーリーで [RTMP ライブストリームモード »](https://core.telegram.org/api/group-calls.md#stream-mode)] を使用するかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "アクティブなライブ ストーリー グループ通話", "x-telegram-field-docs": true}}, "required": ["_", "call"], "additionalProperties": false}, "messageMediaWidget": {"title": "messageMediaWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageMediaWidget"]}, "is_copy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "background_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.5?long"}}, "required": ["_", "width", "height", "payload"], "additionalProperties": false}, "messageActionEmpty": {"title": "messageActionEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatCreate": {"title": "messageActionChatCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatCreate"]}, "title": {"type": "string", "x-tl-type": "string"}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "title", "users"], "additionalProperties": false}, "messageActionChatEditTitle": {"title": "messageActionChatEditTitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditTitle"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatEditPhoto": {"title": "messageActionChatEditPhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatEditPhoto"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}}, "required": ["_", "photo"], "additionalProperties": false}, "messageActionChatDeletePhoto": {"title": "messageActionChatDeletePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatDeletePhoto"]}}, "required": ["_"], "additionalProperties": false}, "messageActionChatAddUser": {"title": "messageActionChatAddUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatAddUser"]}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "users"], "additionalProperties": false}, "messageActionChatDeleteUser": {"title": "messageActionChatDeleteUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatDeleteUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "messageActionChatJoinedByLink": {"title": "messageActionChatJoinedByLink", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatJoinedByLink"]}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "inviter_id"], "additionalProperties": false}, "messageActionChannelCreate": {"title": "messageActionChannelCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChannelCreate"]}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title"], "additionalProperties": false}, "messageActionChatMigrateTo": {"title": "messageActionChatMigrateTo", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatMigrateTo"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "messageActionChannelMigrateFrom": {"title": "messageActionChannelMigrateFrom", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChannelMigrateFrom"]}, "title": {"type": "string", "x-tl-type": "string"}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "title", "chat_id"], "additionalProperties": false}, "messageActionPinMessage": {"title": "messageActionPinMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPinMessage"]}}, "required": ["_"], "additionalProperties": false}, "messageActionHistoryClear": {"title": "messageActionHistoryClear", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionHistoryClear"]}}, "required": ["_"], "additionalProperties": false}, "messageActionGameScore": {"title": "messageActionGameScore", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGameScore"]}, "game_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "score": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "game_id", "score"], "additionalProperties": false}, "messageActionPaymentSentMe": {"title": "messageActionPaymentSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentSentMe"]}, "recurring_init": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "recurring_used": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Тип TL: PaymentRequestedInfo.", "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "charge": {"type": "object", "x-tl-type": "PaymentCharge", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentCharge"]}}, "description": "Тип TL: PaymentCharge."}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "currency", "total_amount", "payload", "charge"], "additionalProperties": false}, "messageActionPaymentSent": {"title": "messageActionPaymentSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentSent"]}, "recurring_init": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "recurring_used": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invoice_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "currency", "total_amount"], "additionalProperties": false}, "messageActionPhoneCall": {"title": "messageActionPhoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPhoneCall"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "call_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reason": {"type": "object", "x-tl-type": "PhoneCallDiscardReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall"]}}, "description": "Тип TL: PhoneCallDiscardReason.", "x-tl-flag": "flags.0?PhoneCallDiscardReason"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "call_id"], "additionalProperties": false}, "messageActionScreenshotTaken": {"title": "messageActionScreenshotTaken", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionScreenshotTaken"]}}, "required": ["_"], "additionalProperties": false}, "messageActionCustomAction": {"title": "messageActionCustomAction", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionCustomAction"]}, "message": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "message"], "additionalProperties": false}, "messageActionBotAllowed": {"title": "messageActionBotAllowed", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBotAllowed"]}, "attach_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "from_request": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "app": {"type": "object", "x-tl-type": "BotApp", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botAppNotModified", "botApp"]}}, "description": "Тип TL: BotApp.", "x-tl-flag": "flags.2?BotApp"}}, "required": ["_"], "additionalProperties": false}, "messageActionSecureValuesSentMe": {"title": "messageActionSecureValuesSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSecureValuesSentMe"]}, "values": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValue"]}}, "description": "TL Type: SecureValue."}, "x-tl-type": "Vector<SecureValue>"}, "credentials": {"type": "object", "x-tl-type": "SecureCredentialsEncrypted", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureCredentialsEncrypted"]}}, "description": "Тип TL: SecureCredentialsEncrypted."}}, "required": ["_", "values", "credentials"], "additionalProperties": false}, "messageActionSecureValuesSent": {"title": "messageActionSecureValuesSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSecureValuesSent"]}, "types": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "TL Type: SecureValueType."}, "x-tl-type": "Vector<SecureValueType>"}}, "required": ["_", "types"], "additionalProperties": false}, "messageActionContactSignUp": {"title": "messageActionContactSignUp", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionContactSignUp"]}}, "required": ["_"], "additionalProperties": false}, "messageActionGeoProximityReached": {"title": "messageActionGeoProximityReached", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGeoProximityReached"]}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "to_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "distance": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "from_id", "to_id", "distance"], "additionalProperties": false}, "messageActionGroupCall": {"title": "messageActionGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "call"], "additionalProperties": false}, "messageActionInviteToGroupCall": {"title": "messageActionInviteToGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionInviteToGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "call", "users"], "additionalProperties": false}, "messageActionSetMessagesTTL": {"title": "messageActionSetMessagesTTL", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSetMessagesTTL"]}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "auto_setting_from": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "period"], "additionalProperties": false}, "messageActionGroupCallScheduled": {"title": "messageActionGroupCallScheduled", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGroupCallScheduled"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "call", "schedule_date"], "additionalProperties": false}, "messageActionSetChatTheme": {"title": "messageActionSetChatTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSetChatTheme"]}, "theme": {"type": "object", "x-tl-type": "ChatTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatTheme", "chatThemeUniqueGift"]}}, "description": "Тип TL: ChatTheme."}}, "required": ["_", "theme"], "additionalProperties": false}, "messageActionChatJoinedByRequest": {"title": "messageActionChatJoinedByRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatJoinedByRequest"]}}, "required": ["_"], "additionalProperties": false}, "messageActionWebViewDataSentMe": {"title": "messageActionWebViewDataSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionWebViewDataSentMe"]}, "text": {"type": "string", "x-tl-type": "string"}, "data": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "data"], "additionalProperties": false}, "messageActionWebViewDataSent": {"title": "messageActionWebViewDataSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionWebViewDataSent"]}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text"], "additionalProperties": false}, "messageActionGiftPremium": {"title": "messageActionGiftPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftPremium"]}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "crypto_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "currency", "amount", "days"], "additionalProperties": false}, "messageActionTopicCreate": {"title": "messageActionTopicCreate", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTopicCreate"]}, "title_missing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "title": {"type": "string", "x-tl-type": "string"}, "icon_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "title", "icon_color"], "additionalProperties": false}, "messageActionTopicEdit": {"title": "messageActionTopicEdit", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTopicEdit"]}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "closed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool"}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}}, "required": ["_"], "additionalProperties": false}, "messageActionSuggestProfilePhoto": {"title": "messageActionSuggestProfilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestProfilePhoto"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}}, "required": ["_", "photo"], "additionalProperties": false}, "messageActionRequestedPeer": {"title": "messageActionRequestedPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionRequestedPeer"]}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>"}}, "required": ["_", "button_id", "peers"], "additionalProperties": false}, "messageActionSetChatWallPaper": {"title": "messageActionSetChatWallPaper", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSetChatWallPaper"]}, "same": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "for_both": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL Type: WallPaper."}}, "required": ["_", "wallpaper"], "additionalProperties": false}, "messageActionGiftCode": {"title": "messageActionGiftCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftCode"]}, "via_giveaway": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "unclaimed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "boost_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "slug": {"type": "string", "x-tl-type": "string"}, "currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "crypto_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities.", "x-tl-flag": "flags.4?TextWithEntities"}}, "required": ["_", "days", "slug"], "additionalProperties": false}, "messageActionGiveawayLaunch": {"title": "messageActionGiveawayLaunch", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiveawayLaunch"]}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_"], "additionalProperties": false}, "messageActionGiveawayResults": {"title": "messageActionGiveawayResults", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiveawayResults"]}, "stars": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "winners_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unclaimed_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "winners_count", "unclaimed_count"], "additionalProperties": false}, "messageActionBoostApply": {"title": "messageActionBoostApply", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBoostApply"]}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "boosts"], "additionalProperties": false}, "messageActionRequestedPeerSentMe": {"title": "messageActionRequestedPeerSentMe", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionRequestedPeerSentMe"]}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "RequestedPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["requestedPeerUser", "requestedPeerChat", "requestedPeerChannel"]}}, "description": "Тип TL: RequestedPeer."}, "x-tl-type": "Vector<RequestedPeer>"}}, "required": ["_", "button_id", "peers"], "additionalProperties": false}, "messageActionPaymentRefunded": {"title": "messageActionPaymentRefunded", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaymentRefunded"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "charge": {"type": "object", "x-tl-type": "PaymentCharge", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentCharge"]}}, "description": "Тип TL: PaymentCharge."}}, "required": ["_", "peer", "currency", "total_amount", "charge"], "additionalProperties": false}, "messageActionGiftStars": {"title": "messageActionGiftStars", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftStars"]}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "crypto_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "transaction_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "currency", "amount", "stars"], "additionalProperties": false}, "messageActionPrizeStars": {"title": "messageActionPrizeStars", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPrizeStars"]}, "unclaimed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "transaction_id": {"type": "string", "x-tl-type": "string"}, "boost_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "giveaway_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "stars", "transaction_id", "boost_peer", "giveaway_msg_id"], "additionalProperties": false}, "messageActionStarGift": {"title": "messageActionStarGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGift"]}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "saved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "converted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "upgraded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "can_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "prepaid_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "upgrade_separate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "auction_acquired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: 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 Type: Peer.", "x-tl-flag": "flags.11?Peer"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.12?Peer"}, "saved_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.12?long"}, "prepaid_upgrade_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.14?string"}, "gift_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "to_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.18?Peer"}, "gift_num": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.19?int"}}, "required": ["_", "gift"], "additionalProperties": false}, "messageActionStarGiftUnique": {"title": "messageActionStarGiftUnique", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftUnique"]}, "upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "transferred": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "saved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "prepaid_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "assigned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "from_offer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "craft": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "can_export_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "transfer_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.6?Peer"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.7?Peer"}, "saved_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}, "resale_amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount.", "x-tl-flag": "flags.8?StarsAmount"}, "can_transfer_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "can_resell_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "drop_original_details_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.12?long"}, "can_craft_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities.", "x-tl-flag": "flags.18?TextWithEntities"}}, "required": ["_", "gift"], "additionalProperties": false}, "messageActionPaidMessagesRefunded": {"title": "messageActionPaidMessagesRefunded", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaidMessagesRefunded"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "count", "stars"], "additionalProperties": false}, "messageActionPaidMessagesPrice": {"title": "messageActionPaidMessagesPrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPaidMessagesPrice"]}, "broadcast_messages_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "stars"], "additionalProperties": false}, "messageActionConferenceCall": {"title": "messageActionConferenceCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionConferenceCall"]}, "missed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "call_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "other_participants": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.3?Vector<Peer>"}}, "required": ["_", "call_id"], "additionalProperties": false}, "messageActionTodoCompletions": {"title": "messageActionTodoCompletions", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTodoCompletions"]}, "completed": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "incompleted": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "completed", "incompleted"], "additionalProperties": false}, "messageActionTodoAppendTasks": {"title": "messageActionTodoAppendTasks", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionTodoAppendTasks"]}, "list": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoItem"]}}, "description": "TL Type: TodoItem."}, "x-tl-type": "Vector<TodoItem>"}}, "required": ["_", "list"], "additionalProperties": false}, "messageActionSuggestedPostApproval": {"title": "messageActionSuggestedPostApproval", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestedPostApproval"]}, "rejected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "balance_too_low": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "reject_comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount.", "x-tl-flag": "flags.4?StarsAmount"}}, "required": ["_"], "additionalProperties": false}, "messageActionSuggestedPostSuccess": {"title": "messageActionSuggestedPostSuccess", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestedPostSuccess"]}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}}, "required": ["_", "price"], "additionalProperties": false}, "messageActionSuggestedPostRefund": {"title": "messageActionSuggestedPostRefund", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestedPostRefund"]}, "payer_initiated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "messageActionGiftTon": {"title": "messageActionGiftTon", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGiftTon"]}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "crypto_currency": {"type": "string", "x-tl-type": "string"}, "crypto_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "transaction_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "currency", "amount", "crypto_currency", "crypto_amount"], "additionalProperties": false}, "messageActionSuggestBirthday": {"title": "messageActionSuggestBirthday", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionSuggestBirthday"]}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "Тип TL: Birthday."}}, "required": ["_", "birthday"], "additionalProperties": false}, "messageActionStarGiftPurchaseOffer": {"title": "messageActionStarGiftPurchaseOffer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftPurchaseOffer"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "declined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "gift", "price", "expires_at"], "additionalProperties": false}, "messageActionStarGiftPurchaseOfferDeclined": {"title": "messageActionStarGiftPurchaseOfferDeclined", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftPurchaseOfferDeclined"]}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}}, "required": ["_", "gift", "price"], "additionalProperties": false}, "messageActionNewCreatorPending": {"title": "messageActionNewCreatorPending", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNewCreatorPending"]}, "new_creator_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "new_creator_id"], "additionalProperties": false}, "messageActionChangeCreator": {"title": "messageActionChangeCreator", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChangeCreator"]}, "new_creator_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "new_creator_id"], "additionalProperties": false}, "messageActionNoForwardsToggle": {"title": "messageActionNoForwardsToggle", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNoForwardsToggle"]}, "prev_value": {"type": "boolean", "x-tl-type": "Bool"}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "messageActionNoForwardsRequest": {"title": "messageActionNoForwardsRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNoForwardsRequest"]}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "prev_value": {"type": "boolean", "x-tl-type": "Bool"}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "messageActionPollAppendAnswer": {"title": "messageActionPollAppendAnswer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPollAppendAnswer"]}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "Тип TL: PollAnswer."}}, "required": ["_", "answer"], "additionalProperties": false}, "messageActionPollDeleteAnswer": {"title": "messageActionPollDeleteAnswer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionPollDeleteAnswer"]}, "answer": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "Тип TL: PollAnswer."}}, "required": ["_", "answer"], "additionalProperties": false}, "messageActionManagedBotCreated": {"title": "messageActionManagedBotCreated", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionManagedBotCreated"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "bot_id"], "additionalProperties": false}, "messageActionChangeCommunity": {"title": "messageActionChangeCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChangeCommunity"]}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_"], "additionalProperties": false}, "messageActionChatJoinedViaCommunity": {"title": "messageActionChatJoinedViaCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionChatJoinedViaCommunity"]}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "community_id"], "additionalProperties": false}, "messageActionGramTransfer": {"title": "messageActionGramTransfer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionGramTransfer"]}, "comment_encrypted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer_address": {"type": "string", "x-tl-type": "string"}, "transaction_id": {"type": "string", "x-tl-type": "string"}, "comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "onramp_provider_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "amount", "peer_address", "transaction_id"], "additionalProperties": false}, "messageActionWalletTonConnectRequest": {"title": "messageActionWalletTonConnectRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionWalletTonConnectRequest"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "declined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "topic": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "trace_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "dapp_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "session_id", "expires"], "additionalProperties": false}, "messageActionNoPaidMessagesTokenUsed": {"title": "messageActionNoPaidMessagesTokenUsed", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionNoPaidMessagesTokenUsed"]}}, "required": ["_"], "additionalProperties": false}, "messageActionStarGiftOnchainOffer": {"title": "messageActionStarGiftOnchainOffer", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionStarGiftOnchainOffer"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "declined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "cancelled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "settled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "buyer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "cancelling": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "offer_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "fee_bps": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expires_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "offer_address": {"type": "string", "x-tl-type": "string"}, "buyer_refund": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "fine": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.5?long"}}, "required": ["_", "offer_id", "gift", "amount", "fee_bps", "expires_at", "offer_address"], "additionalProperties": false}, "messageActionBotInvite": {"title": "messageActionBotInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageActionBotInvite"]}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "inviter_id"], "additionalProperties": false}, "dialog": {"title": "dialog", "type": "object", "properties": {"_": {"type": "string", "enum": ["dialog"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "unread_mark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "view_forum_as_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_mentions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_poll_votes_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage.", "x-tl-flag": "flags.1?DraftMessage"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}}, "required": ["_", "peer", "top_message", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "unread_mentions_count", "unread_reactions_count", "unread_poll_votes_count", "notify_settings"], "additionalProperties": false}, "dialogFolder": {"title": "dialogFolder", "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFolder"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "folder": {"type": "object", "x-tl-type": "Folder", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["folder"]}}, "description": "Тип TL: Folder."}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_muted_peers_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_unmuted_peers_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_muted_messages_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_unmuted_messages_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "folder", "peer", "top_message", "unread_muted_peers_count", "unread_unmuted_peers_count", "unread_muted_messages_count", "unread_unmuted_messages_count"], "additionalProperties": false}, "dialogCommunity": {"title": "dialogCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogCommunity"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings."}}, "required": ["_", "community_id", "notify_settings"], "additionalProperties": false}, "photoEmpty": {"title": "photoEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "photo": {"title": "photo", "type": "object", "properties": {"_": {"type": "string", "enum": ["photo"]}, "has_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "sizes": {"type": "array", "items": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>"}, "video_sizes": {"type": "array", "items": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "Тип TL: VideoSize."}, "x-tl-type": "Vector<VideoSize>", "x-tl-flag": "flags.1?Vector<VideoSize>"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "access_hash", "file_reference", "date", "sizes", "dc_id"], "additionalProperties": false}, "photoSizeEmpty": {"title": "photoSizeEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty"]}, "type": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "type"], "additionalProperties": false}, "photoSize": {"title": "photoSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "type", "w", "h", "size"], "additionalProperties": false}, "photoCachedSize": {"title": "photoCachedSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoCachedSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "type", "w", "h", "bytes"], "additionalProperties": false}, "photoStrippedSize": {"title": "photoStrippedSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoStrippedSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "type", "bytes"], "additionalProperties": false}, "photoSizeProgressive": {"title": "photoSizeProgressive", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoSizeProgressive"]}, "type": {"type": "string", "x-tl-type": "string"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "sizes": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "type", "w", "h", "sizes"], "additionalProperties": false}, "photoPathSize": {"title": "photoPathSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["photoPathSize"]}, "type": {"type": "string", "x-tl-type": "string"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "type", "bytes"], "additionalProperties": false}, "geoPointEmpty": {"title": "geoPointEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["geoPointEmpty"]}}, "required": ["_"], "additionalProperties": false}, "geoPoint": {"title": "geoPoint", "type": "object", "properties": {"_": {"type": "string", "enum": ["geoPoint"]}, "long": {"type": "number", "format": "double", "x-tl-type": "double"}, "lat": {"type": "number", "format": "double", "x-tl-type": "double"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "accuracy_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "long", "lat", "access_hash"], "additionalProperties": false}, "auth.sentCode": {"title": "auth.sentCode", "description": "送信された確認コードに関する情報が含まれます。", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.sentCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCode"]}, "type": {"type": "object", "x-tl-type": "auth.SentCodeType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeApp", "auth.sentCodeTypeSms", "auth.sentCodeTypeCall", "auth.sentCodeTypeFlashCall", "auth.sentCodeTypeMissedCall", "auth.sentCodeTypeEmailCode", "auth.sentCodeTypeSetUpEmailRequired", "auth.sentCodeTypeFragmentSms", "auth.sentCodeTypeFirebaseSms", "auth.sentCodeTypeSmsWord", "auth.sentCodeTypeSmsPhrase"]}}, "description": "電話番号の種類", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "電話コードのハッシュ。保存され、後で [auth.signIn](https://core.telegram.org/method/auth.signIn.md)] で再利用されます。", "x-telegram-field-docs": true}, "next_type": {"type": "object", "x-tl-type": "auth.CodeType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.codeTypeSms", "auth.codeTypeCall", "auth.codeTypeFlashCall", "auth.codeTypeMissedCall", "auth.codeTypeFragmentSms"]}}, "description": "電話コードが `timeout` 秒以内に受信されなかった場合に次に送信される電話コードのタイプ: 送信するには [auth.resendCode](https://core.telegram.org/method/auth.resendCode.md)] を使用します", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?auth.CodeType"}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "電話番号の受信タイムアウト", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}}, "required": ["_", "type", "phone_code_hash"], "additionalProperties": false}, "auth.sentCodeSuccess": {"title": "auth.sentCodeSuccess", "description": "ユーザーは [将来の認証トークン](https://core.telegram.org/api/auth.md#future-auth-tokens)] を使用して認証に成功しました", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.sentCodeSuccess"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeSuccess"]}, "authorization": {"type": "object", "x-tl-type": "auth.Authorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.authorization", "auth.authorizationSignUpRequired"]}}, "description": "認可情報", "x-telegram-field-docs": true}}, "required": ["_", "authorization"], "additionalProperties": false}, "auth.sentCodePaymentRequired": {"title": "auth.sentCodePaymentRequired", "description": "公式アプリは、ユーザーの国/プロバイダーの SMS 確認コードのコストが高いため、ログイン/サインアップを続行するには、ユーザーが [Telegram プレミアム](https://core.telegram.org/api/premium.md) サブスクリプションを購入する必要がある] ことを示すこのコンストラクターを受け取る場合があります。詳細については、[こちら »](https://core.telegram.org/api/auth.md#paid-auth) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.sentCodePaymentRequired"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodePaymentRequired"]}, "store_product": {"type": "string", "x-tl-type": "string", "description": "公式アプリの場合、Telegram プレミアム サブスクリプションの識別子を取得します。", "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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "再度ログインできるように 2 段階認証パスワードを設定するようユーザーに提案します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "otherwise_relogin_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "setup_password_required が設定されており、ユーザーが 2 段階認証パスワードの設定を拒否した場合に限り、この日数が経過した後にのみ、再度 SMS 経由でアカウントにログインできるようになります。", "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": "この電話番号のアカウントは電報に存在しません: ユーザーは [基本情報を入力してサインアップ](https://core.telegram.org/api/auth.md)] 必要があります", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.authorizationSignUpRequired"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.authorizationSignUpRequired"]}, "terms_of_service": {"type": "object", "x-tl-type": "help.TermsOfService", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.termsOfService"]}}, "description": "Telegram のサービス規約: ユーザーは Telegram にサインアップする前にサービス規約を読んで同意する必要があります", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?help.TermsOfService"}}, "required": ["_"], "additionalProperties": false}, "auth.exportedAuthorization": {"title": "auth.exportedAuthorization", "description": "データセンター間で認可をコピーするためのデータ。", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.exportedAuthorization"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.exportedAuthorization"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "現在のユーザー識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "キーを認証します", "x-telegram-field-docs": true}}, "required": ["_", "id", "bytes"], "additionalProperties": false}, "inputNotifyPeer": {"title": "inputNotifyPeer", "description": "特定のユーザーまたはグループによって生成された通知。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ユーザーまたはグループ", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "inputNotifyUsers": {"title": "inputNotifyUsers", "description": "すべてのユーザーによって生成される通知。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyUsers"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyChats": {"title": "inputNotifyChats", "description": "すべてのグループによって生成される通知。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyChats"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyBroadcasts": {"title": "inputNotifyBroadcasts", "description": "すべての [チャンネル](https://core.telegram.org/api/channel.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputNotifyBroadcasts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputNotifyBroadcasts"]}}, "required": ["_"], "additionalProperties": false}, "inputNotifyForumTopic": {"title": "inputNotifyForumTopic", "description": "[フォーラム](https://core.telegram.org/api/forum.md)] の [トピック](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 Type: InputChannel."}}, "required": ["_", "community"], "additionalProperties": false}, "inputPeerNotifySettings": {"title": "inputPeerNotifySettings", "description": "通知設定。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPeerNotifySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPeerNotifySettings"]}, "show_previews": {"type": "boolean", "x-tl-type": "Bool", "description": "メッセージの本文を通知に表示する場合", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Bool"}, "silent": {"type": "boolean", "x-tl-type": "Bool", "description": "ピアがミュートされましたか?", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Bool"}, "mute_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "すべての通知をオフにする期限の日付", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "通知のために再生する音声ファイルの識別子。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?NotificationSound"}, "stories_muted": {"type": "boolean", "x-tl-type": "Bool", "description": "ストーリー通知を無効にするかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Bool"}, "stories_hide_sender": {"type": "boolean", "x-tl-type": "Bool", "description": "ストーリー通知に送信者名を表示するかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Bool"}, "stories_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "ストーリー通知用に再生する音声ファイルの識別子。", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?NotificationSound"}}, "required": ["_"], "additionalProperties": false}, "peerNotifySettings": {"title": "peerNotifySettings", "description": "通知設定。", "externalDocs": {"url": "https://core.telegram.org/constructor/peerNotifySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}, "show_previews": {"type": "boolean", "x-tl-type": "Bool", "description": "(3 進値) 設定されている場合、通知にメッセージのプレビューを表示するかどうかを示します。それ以外の場合は、デフォルトの動作を使用する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Bool"}, "silent": {"type": "boolean", "x-tl-type": "Bool", "description": "(3 進値) 設定されている場合、ピアをミュートするかミュート解除するかを示します。それ以外の場合は、デフォルトの動作を使用する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Bool"}, "mute_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "この日まですべての通知をミュートします", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "ios_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "iOS公式アプリの通知音", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?NotificationSound"}, "android_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Android公式アプリの通知音", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?NotificationSound"}, "other_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "他のアプリの通知音", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?NotificationSound"}, "stories_muted": {"type": "boolean", "x-tl-type": "Bool", "description": "ストーリー通知を無効にするかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Bool"}, "stories_hide_sender": {"type": "boolean", "x-tl-type": "Bool", "description": "ストーリー通知に送信者名を表示するかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?Bool"}, "stories_ios_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "iOS公式アプリのストーリー通知音", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?NotificationSound"}, "stories_android_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "Android公式アプリのストーリー通知音", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?NotificationSound"}, "stories_other_sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "他のアプリのストーリー通知音", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?NotificationSound"}}, "required": ["_"], "additionalProperties": false}, "peerSettings": {"title": "peerSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerSettings"]}, "report_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "add_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "block_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "share_contact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "need_contacts_exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "report_geo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "autoarchived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "invite_members": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "request_chat_broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "business_bot_paused": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "business_bot_can_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "geo_distance": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "request_chat_title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.9?string"}, "request_chat_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "business_bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "business_bot_manage_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.13?string"}, "charge_paid_message_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.14?long"}, "registration_month": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.15?string"}, "phone_country": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "name_change_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.17?int"}, "photo_change_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.18?int"}, "bot_inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.19?long"}, "bot_owner_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.20?long"}}, "required": ["_"], "additionalProperties": false}, "wallPaper": {"title": "wallPaper", "description": "画像を元にした[壁紙](https://core.telegram.org/api/wallpapers.md)]を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaper"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaper"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "この壁紙を私たちが作成したかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これがデフォルトの壁紙かどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "pattern": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これは [パターン壁紙 »](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers)] かどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "この壁紙をダークモードで使用するかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "アクセスハッシュ", "x-tl-type": "long", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "[壁紙リンク](https://core.telegram.org/api/links.md#wallpaper-links)] または [壁紙リンク](https://core.telegram.org/api/wallpapers.md) のインポート] を生成するときに使用される一意の壁紙 ID。", "x-telegram-field-docs": true}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "実際の壁紙", "x-telegram-field-docs": true}, "settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "[これらの手順 »](https://core.telegram.org/api/wallpapers.md) に従って壁紙を生成する方法に関する情報。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?WallPaperSettings"}}, "required": ["_", "id", "access_hash", "slug", "document"], "additionalProperties": false}, "wallPaperNoFile": {"title": "wallPaperNoFile", "description": "色/グラデーションのみに基づいて [壁紙](https://core.telegram.org/api/wallpapers.md)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaperNoFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaperNoFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "壁紙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": "inputReportReasonSpam", "description": "スパムの報告", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonSpam"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonSpam"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonViolence": {"title": "inputReportReasonViolence", "description": "暴力行為の通報", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonViolence"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonViolence"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPornography": {"title": "inputReportReasonPornography", "description": "ポルノに関する報告", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPornography"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPornography"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonChildAbuse": {"title": "inputReportReasonChildAbuse", "description": "児童虐待の通報", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonChildAbuse"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonChildAbuse"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonOther": {"title": "inputReportReasonOther", "description": "その他", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonOther"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonOther"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonCopyright": {"title": "inputReportReasonCopyright", "description": "著作権で保護されたコンテンツのレポート", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonCopyright"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonCopyright"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonGeoIrrelevant": {"title": "inputReportReasonGeoIrrelevant", "description": "無関係な地域グループを報告する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonGeoIrrelevant"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonGeoIrrelevant"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonFake": {"title": "inputReportReasonFake", "description": "なりすましの通報", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonFake"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonFake"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonIllegalDrugs": {"title": "inputReportReasonIllegalDrugs", "description": "違法薬物の届出", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonIllegalDrugs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonIllegalDrugs"]}}, "required": ["_"], "additionalProperties": false}, "inputReportReasonPersonalDetails": {"title": "inputReportReasonPersonalDetails", "description": "個人情報の漏洩に関する報告", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReportReasonPersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReportReasonPersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "userFull": {"title": "userFull", "type": "object", "properties": {"_": {"type": "string", "enum": ["userFull"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "phone_calls_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "phone_calls_private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "can_pin_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "has_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "video_calls_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "voice_messages_forbidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.20?true"}, "translations_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.23?true"}, "stories_pinned_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "wallpaper_overridden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "contact_require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "read_dates_private": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.30?true"}, "sponsored_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.7?true"}, "can_view_revenue": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.9?true"}, "bot_can_manage_emoji_status": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.10?true"}, "display_gifts_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.16?true"}, "noforwards_my_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.23?true"}, "noforwards_peer_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.24?true"}, "unofficial_security_risk": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags2.26?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "Тип TL: PeerSettings."}, "personal_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.21?Photo"}, "profile_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}, "fallback_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.22?Photo"}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings."}, "bot_info": {"type": "object", "x-tl-type": "BotInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInfo"]}}, "description": "Тип TL: BotInfo.", "x-tl-flag": "flags.3?BotInfo"}, "pinned_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "common_chats_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.14?int"}, "theme": {"type": "object", "x-tl-type": "ChatTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatTheme", "chatThemeUniqueGift"]}}, "description": "Тип TL: ChatTheme.", "x-tl-flag": "flags.15?ChatTheme"}, "private_forward_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "bot_group_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.17?ChatAdminRights"}, "bot_broadcast_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.18?ChatAdminRights"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL Type: WallPaper.", "x-tl-flag": "flags.24?WallPaper"}, "stories": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "Тип TL: PeerStories.", "x-tl-flag": "flags.25?PeerStories"}, "business_work_hours": {"type": "object", "x-tl-type": "BusinessWorkHours", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessWorkHours"]}}, "description": "Тип TL: BusinessWorkHours.", "x-tl-flag": "flags2.0?BusinessWorkHours"}, "business_location": {"type": "object", "x-tl-type": "BusinessLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessLocation"]}}, "description": "Тип TL: BusinessLocation.", "x-tl-flag": "flags2.1?BusinessLocation"}, "business_greeting_message": {"type": "object", "x-tl-type": "BusinessGreetingMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessGreetingMessage"]}}, "description": "Тип TL: BusinessGreetingMessage.", "x-tl-flag": "flags2.2?BusinessGreetingMessage"}, "business_away_message": {"type": "object", "x-tl-type": "BusinessAwayMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessAwayMessage"]}}, "description": "Тип TL: BusinessAwayMessage.", "x-tl-flag": "flags2.3?BusinessAwayMessage"}, "business_intro": {"type": "object", "x-tl-type": "BusinessIntro", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessIntro"]}}, "description": "Тип TL: BusinessIntro.", "x-tl-flag": "flags2.4?BusinessIntro"}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "Тип TL: Birthday.", "x-tl-flag": "flags2.5?Birthday"}, "personal_channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.6?long"}, "personal_channel_message": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.6?int"}, "stargifts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.8?int"}, "starref_program": {"type": "object", "x-tl-type": "StarRefProgram", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starRefProgram"]}}, "description": "TL Type: StarRefProgram.", "x-tl-flag": "flags2.11?StarRefProgram"}, "bot_verification": {"type": "object", "x-tl-type": "BotVerification", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerification"]}}, "description": "Тип TL: BotVerification.", "x-tl-flag": "flags2.12?BotVerification"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.14?long"}, "disallowed_gifts": {"type": "object", "x-tl-type": "DisallowedGiftsSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["disallowedGiftsSettings"]}}, "description": "Тип TL: DisallowedGiftsSettings.", "x-tl-flag": "flags2.15?DisallowedGiftsSettings"}, "stars_rating": {"type": "object", "x-tl-type": "StarsRating", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRating"]}}, "description": "Тип TL: StarsRating.", "x-tl-flag": "flags2.17?StarsRating"}, "stars_my_pending_rating": {"type": "object", "x-tl-type": "StarsRating", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRating"]}}, "description": "Тип TL: StarsRating.", "x-tl-flag": "flags2.18?StarsRating"}, "stars_my_pending_rating_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags2.18?int"}, "main_tab": {"type": "object", "x-tl-type": "ProfileTab", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["profileTabPosts", "profileTabGifts", "profileTabMedia", "profileTabFiles", "profileTabMusic", "profileTabVoice", "profileTabLinks", "profileTabGifs"]}}, "description": "Тип TL: ProfileTab.", "x-tl-flag": "flags2.20?ProfileTab"}, "saved_music": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags2.21?Document"}, "note": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities.", "x-tl-flag": "flags2.22?TextWithEntities"}, "bot_manager_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags2.25?long"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags2.19?wallet.Card"}, "share_theme": {"type": "object", "x-tl-type": "ShareTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shareThemeDefault", "shareThemeEmojiBackdrop", "shareThemeGift", "inputShareThemeGift"]}}, "description": "Тип TL: ShareTheme.", "x-tl-flag": "flags2.27?ShareTheme"}, "bot_profile_widget": {"type": "object", "x-tl-type": "BotProfileWidget", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botProfileWidget"]}}, "description": "Тип TL: BotProfileWidget.", "x-tl-flag": "flags2.28?BotProfileWidget"}}, "required": ["_", "id", "settings", "notify_settings", "common_chats_count"], "additionalProperties": false}, "contact": {"title": "contact", "type": "object", "properties": {"_": {"type": "string", "enum": ["contact"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "mutual": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "user_id", "mutual"], "additionalProperties": false}, "importedContact": {"title": "importedContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["importedContact"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id", "client_id"], "additionalProperties": false}, "contactStatus": {"title": "contactStatus", "description": "連絡先ステータス: オンライン/オフライン。", "externalDocs": {"url": "https://core.telegram.org/constructor/contactStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contactStatus"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザー識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "status": {"type": "object", "x-tl-type": "UserStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth"]}}, "description": "オンラインステータス", "x-telegram-field-docs": true}}, "required": ["_", "user_id", "status"], "additionalProperties": false}, "contacts.contactsNotModified": {"title": "contacts.contactsNotModified", "description": "サーバー上の連絡先リストはクライアント上のリストと同じです。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.contactsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.contactsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "contacts.contacts": {"title": "contacts.contacts", "description": "現在のユーザーの連絡先リストとユーザーに関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.contacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.contacts"]}, "contacts": {"type": "array", "items": {"type": "object", "x-tl-type": "Contact", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["contact"]}}, "description": "Тип TL: Contact."}, "x-tl-type": "Vector<Contact>", "description": "連絡先リスト", "x-telegram-field-docs": true}, "saved_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "正常に保存された連絡先の数", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザーリスト", "x-telegram-field-docs": true}}, "required": ["_", "contacts", "saved_count", "users"], "additionalProperties": false}, "contacts.importedContacts": {"title": "contacts.importedContacts", "description": "正常にインポートされた連絡先に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.importedContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.importedContacts"]}, "imported": {"type": "array", "items": {"type": "object", "x-tl-type": "ImportedContact", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["importedContact"]}}, "description": "Тип TL: ImportedContact."}, "x-tl-type": "Vector<ImportedContact>", "description": "正常にインポートされた連絡先のリスト", "x-telegram-field-docs": true}, "popular_invites": {"type": "array", "items": {"type": "object", "x-tl-type": "PopularContact", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["popularContact"]}}, "description": "Тип TL: PopularContact."}, "x-tl-type": "Vector<PopularContact>", "description": "人気のある連絡先", "x-telegram-field-docs": true}, "retry_contacts": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "システムの制限によりインポートできず、後日インポートする必要がある連絡先 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー一覧", "x-telegram-field-docs": true}}, "required": ["_", "imported", "popular_invites", "retry_contacts", "users"], "additionalProperties": false}, "contacts.blocked": {"title": "contacts.blocked", "description": "ブロックされたユーザーの完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.blocked"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.blocked"]}, "blocked": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerBlocked", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerBlocked"]}}, "description": "Тип TL: PeerBlocked."}, "x-tl-type": "Vector<PeerBlocked>", "description": "ブロックされたユーザーのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ブロックされたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー一覧", "x-telegram-field-docs": true}}, "required": ["_", "blocked", "chats", "users"], "additionalProperties": false}, "contacts.blockedSlice": {"title": "contacts.blockedSlice", "description": "ブロックされたユーザーの不完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.blockedSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.blockedSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "リスト内の要素の総数", "x-telegram-field-docs": true}, "blocked": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerBlocked", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerBlocked"]}}, "description": "Тип TL: PeerBlocked."}, "x-tl-type": "Vector<PeerBlocked>", "description": "ブロックされたユーザーのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ブロックされたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー一覧", "x-telegram-field-docs": true}}, "required": ["_", "count", "blocked", "chats", "users"], "additionalProperties": false}, "messages.dialogs": {"title": "messages.dialogs", "description": "メッセージと補助データを含むチャットの完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogs"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Тип TL: Dialog."}, "x-tl-type": "Vector<Dialog>", "description": "チャット一覧", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "各チャットからの最後のメッセージのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャットで言及されたグループのリスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "メッセージおよびグループで言及されているユーザーのリスト", "x-telegram-field-docs": true}}, "required": ["_", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.dialogsSlice": {"title": "messages.dialogsSlice", "description": "メッセージと補助データを含むダイアログのリストが不完全です。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogsSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogsSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ダイアログの総数", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Тип TL: Dialog."}, "x-tl-type": "Vector<Dialog>", "description": "ダイアログのリスト", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "ダイアログからの最後のメッセージのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ダイアログで言及されるチャットのリスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "メッセージやチャットで言及されたユーザーのリスト", "x-telegram-field-docs": true}}, "required": ["_", "count", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.dialogsNotModified": {"title": "messages.dialogsNotModified", "description": "ダイアログは変わっていない", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogsNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クエリによってサーバー側で見つかったダイアログの数", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "messages.messages": {"title": "messages.messages", "description": "補助データを含むメッセージの完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messages"]}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "メッセージ一覧", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "[返されたメッセージはフォーラムのトピック](https://core.telegram.org/api/forum.md#forum-topics)に属します。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ダイアログで言及されるチャットのリスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "メッセージやチャットで言及されたユーザーのリスト", "x-telegram-field-docs": true}}, "required": ["_", "messages", "topics", "chats", "users"], "additionalProperties": false}, "messages.messagesSlice": {"title": "messages.messagesSlice", "description": "メッセージと補助データの不完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messagesSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messagesSlice"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、結果が不正確である可能性があることを示します", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "リスト内のメッセージの総数", "x-telegram-field-docs": true}, "next_rate": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[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": "カウント `count` の合計結果セット内の `messages[0]` の絶対位置を示します。  これは、たとえば、結果が `offset_id` を使用して取得され、`progress/total` カウンターを表示する必要がある場合に便利です (`photo 134 of 200` のように、チャット内のすべてのメディアに対して、単純に `photo ${offset_id_offset} of ${count}` を使用できます)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "search_flood": {"type": "object", "x-tl-type": "SearchPostsFlood", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchPostsFlood"]}}, "description": "[グローバル投稿検索の場合 »](https://core.telegram.org/api/search.md#posts-tab)、無料検索の残りの量、ここでは`query_is_free` は現在の通話のみに関連しており、次のページ分割された呼び出しには関係せず、後続のすべてのページ分割呼び出しは常に無料になります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?SearchPostsFlood"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "メッセージ一覧", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "[返されたメッセージはフォーラムのトピック](https://core.telegram.org/api/forum.md#forum-topics)に属します。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "メッセージ内で言及されたチャットのリスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "メッセージやチャットで言及されたユーザーのリスト", "x-telegram-field-docs": true}}, "required": ["_", "count", "messages", "topics", "chats", "users"], "additionalProperties": false}, "messages.channelMessages": {"title": "messages.channelMessages", "description": "チャンネルメッセージ", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.channelMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.channelMessages"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、返される結果は不正確になる可能性があります", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[生成後のイベント数](https://core.telegram.org/api/updates.md)]", "x-telegram-field-docs": true}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "サーバー側で見つかった結果の総数 (すべてがここに含まれていない可能性があります)", "x-telegram-field-docs": true}, "offset_id_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "カウント `count` の合計結果セット内の `messages[0]` の絶対位置を示します。  これは、たとえば、結果が `offset_id` を使用して取得され、`progress/total` カウンター (チャット内のすべてのメディアに対して `photo 134 of 200` など) を表示する必要がある場合に便利です。単純に `photo ${offset_id_offset} of ${count}` を使用できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "見つかったメッセージ", "x-telegram-field-docs": true}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "【フォーラムトピック](https://core.telegram.org/api/forum.md#forum-topics)情報】", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "pts", "count", "messages", "topics", "chats", "users"], "additionalProperties": false}, "messages.messagesNotModified": {"title": "messages.messagesNotModified", "description": "クエリに一致する新しいメッセージは見つかりませんでした", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messagesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messagesNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "指定されたクエリによってサーバー側で見つかった結果の数", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "messages.chats": {"title": "messages.chats", "description": "補助データを含むチャットのリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chats"]}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット一覧", "x-telegram-field-docs": true}}, "required": ["_", "chats"], "additionalProperties": false}, "messages.chatsSlice": {"title": "messages.chatsSlice", "description": "チャットのリストの一部。[ページネーション](https://core.telegram.org/api/offsets.md)] でさらに多くのリストを取得する必要があります", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatsSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatsSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "サーバー側で見つかった結果の総数 (すべてが `chats` に含まれるわけではありません)", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット", "x-telegram-field-docs": true}}, "required": ["_", "count", "chats"], "additionalProperties": false}, "messages.chatFull": {"title": "messages.chatFull", "description": "[チャンネル](https://core.telegram.org/api/channel.md#channels)、[スーパーグループ](https://core.telegram.org/api/channel.md#supergroups)、[ギガグループ](https://core.telegram.org/api/channel.md#gigagroups)] または [基本グループ](https://core.telegram.org/api/channel.md#basic-groups)] に関する完全な情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatFull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatFull"]}, "full_chat": {"type": "object", "x-tl-type": "ChatFull", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatFull", "channelFull", "communityFull"]}}, "description": "詳細情報", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "full_chat", "chats", "users"], "additionalProperties": false}, "messages.affectedHistory": {"title": "messages.affectedHistory", "description": "ユーザーとの通信履歴やチャットの一部が影響を受けます。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.affectedHistory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.affectedHistory"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "テキストボックス内で発生したイベントの数", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "影響を受けるイベントの数", "x-telegram-field-docs": true}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "パラメータに正の値が含まれている場合は、指定された値を使用してメソッド呼び出しを繰り返す必要があります。すべての歴史が進むにつれて、価値自体は徐々に減少します", "x-telegram-field-docs": true}}, "required": ["_", "pts", "pts_count", "offset"], "additionalProperties": false}, "inputMessagesFilterEmpty": {"title": "inputMessagesFilterEmpty", "description": "フィルターがありません。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhotos": {"title": "inputMessagesFilterPhotos", "description": "写真を含むメッセージをフィルターします。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhotos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhotos"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterVideo": {"title": "inputMessagesFilterVideo", "description": "動画を含むメッセージをフィルターします。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhotoVideo": {"title": "inputMessagesFilterPhotoVideo", "description": "写真またはビデオを含むメッセージをフィルターします。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhotoVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhotoVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterDocument": {"title": "inputMessagesFilterDocument", "description": "ドキュメントを含むメッセージをフィルターします。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterDocument"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterUrl": {"title": "inputMessagesFilterUrl", "description": "Return only messages containing URLs", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterUrl"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterGif": {"title": "inputMessagesFilterGif", "description": "gif を含むメッセージのみを返す", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGif"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGif"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterVoice": {"title": "inputMessagesFilterVoice", "description": "音声メモを含むメッセージのみを返します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMusic": {"title": "inputMessagesFilterMusic", "description": "音声ファイルを含むメッセージのみを返します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterMusic"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterChatPhotos": {"title": "inputMessagesFilterChatPhotos", "description": "チャット写真の変更のみを返す", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterChatPhotos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterChatPhotos"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPhoneCalls": {"title": "inputMessagesFilterPhoneCalls", "description": "電話のみを折り返します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPhoneCalls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPhoneCalls"]}, "missed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "不在着信のみを折り返します", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterRoundVoice": {"title": "inputMessagesFilterRoundVoice", "description": "ラウンドビデオと音声メモのみを返します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVoice"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterRoundVideo": {"title": "inputMessagesFilterRoundVideo", "description": "ラウンドビデオのみを返す", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterRoundVideo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterRoundVideo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterMyMentions": {"title": "inputMessagesFilterMyMentions", "description": "現在のユーザーが [言及された](https://core.telegram.org/api/mentions.md)] であるメッセージのみを返します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterMyMentions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterMyMentions"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterGeo": {"title": "inputMessagesFilterGeo", "description": "地理位置情報を含むメッセージのみを返す", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterGeo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterGeo"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterContacts": {"title": "inputMessagesFilterContacts", "description": "連絡先を含むメッセージのみを返す", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPinned": {"title": "inputMessagesFilterPinned", "description": "固定されたメッセージのみを取得する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessagesFilterPoll": {"title": "inputMessagesFilterPoll", "description": "投票メッセージのフィルタリングについては、[投票の検索 »](https://core.telegram.org/api/poll.md#searching-for-polls) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagesFilterPoll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterPoll"]}}, "required": ["_"], "additionalProperties": false}, "updateNewMessage": {"title": "updateNewMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateMessageID": {"title": "updateMessageID", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageID"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "random_id"], "additionalProperties": false}, "updateDeleteMessages": {"title": "updateDeleteMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteMessages"]}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateUserTyping": {"title": "updateUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserTyping"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction"]}}, "description": "Тип TL: SendMessageAction."}}, "required": ["_", "user_id", "action"], "additionalProperties": false}, "updateChatUserTyping": {"title": "updateChatUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatUserTyping"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction"]}}, "description": "Тип TL: SendMessageAction."}}, "required": ["_", "chat_id", "from_id", "action"], "additionalProperties": false}, "updateChatParticipants": {"title": "updateChatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipants"]}, "participants": {"type": "object", "x-tl-type": "ChatParticipants", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipantsForbidden", "chatParticipants"]}}, "description": "Тип TL: ChatParticipants."}}, "required": ["_", "participants"], "additionalProperties": false}, "updateUserStatus": {"title": "updateUserStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserStatus"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "status": {"type": "object", "x-tl-type": "UserStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userStatusEmpty", "userStatusOnline", "userStatusOffline", "userStatusRecently", "userStatusLastWeek", "userStatusLastMonth"]}}, "description": "Тип TL: UserStatus."}}, "required": ["_", "user_id", "status"], "additionalProperties": false}, "updateUserName": {"title": "updateUserName", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserName"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "first_name": {"type": "string", "x-tl-type": "string"}, "last_name": {"type": "string", "x-tl-type": "string"}, "usernames": {"type": "array", "items": {"type": "object", "x-tl-type": "Username", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["username"]}}, "description": "Тип TL: Username."}, "x-tl-type": "Vector<Username>"}}, "required": ["_", "user_id", "first_name", "last_name", "usernames"], "additionalProperties": false}, "updateNewAuthorization": {"title": "updateNewAuthorization", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewAuthorization"]}, "unconfirmed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "device": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "location": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "hash"], "additionalProperties": false}, "updateNewEncryptedMessage": {"title": "updateNewEncryptedMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewEncryptedMessage"]}, "message": {"type": "object", "x-tl-type": "EncryptedMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedMessage", "encryptedMessageService"]}}, "description": "Тип TL: EncryptedMessage."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "qts"], "additionalProperties": false}, "updateEncryptedChatTyping": {"title": "updateEncryptedChatTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEncryptedChatTyping"]}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "updateEncryption": {"title": "updateEncryption", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEncryption"]}, "chat": {"type": "object", "x-tl-type": "EncryptedChat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedChatEmpty", "encryptedChatWaiting", "encryptedChatRequested", "encryptedChat", "encryptedChatDiscarded"]}}, "description": "TL Type: EncryptedChat."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat", "date"], "additionalProperties": false}, "updateEncryptedMessagesRead": {"title": "updateEncryptedMessagesRead", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEncryptedMessagesRead"]}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "max_date", "date"], "additionalProperties": false}, "updateChatParticipantAdd": {"title": "updateChatParticipantAdd", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantAdd"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "inviter_id", "date", "version"], "additionalProperties": false}, "updateChatParticipantDelete": {"title": "updateChatParticipantDelete", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantDelete"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "version"], "additionalProperties": false}, "updateDcOptions": {"title": "updateDcOptions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDcOptions"]}, "dc_options": {"type": "array", "items": {"type": "object", "x-tl-type": "DcOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dcOption"]}}, "description": "Тип TL: DcOption."}, "x-tl-type": "Vector<DcOption>"}}, "required": ["_", "dc_options"], "additionalProperties": false}, "updateNotifySettings": {"title": "updateNotifySettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNotifySettings"]}, "peer": {"type": "object", "x-tl-type": "NotifyPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notifyPeer", "notifyUsers", "notifyChats", "notifyBroadcasts", "notifyForumTopic", "notifyCommunity"]}}, "description": "Тип TL: NotifyPeer."}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings."}}, "required": ["_", "peer", "notify_settings"], "additionalProperties": false}, "updateServiceNotification": {"title": "updateServiceNotification", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateServiceNotification"]}, "popup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "inbox_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "type": {"type": "string", "x-tl-type": "string"}, "message": {"type": "string", "x-tl-type": "string"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: 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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>"}}, "required": ["_", "type", "message", "media", "entities"], "additionalProperties": false}, "updatePrivacy": {"title": "updatePrivacy", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePrivacy"]}, "key": {"type": "object", "x-tl-type": "PrivacyKey", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyKeyStatusTimestamp", "privacyKeyChatInvite", "privacyKeyPhoneCall", "privacyKeyPhoneP2P", "privacyKeyForwards", "privacyKeyProfilePhoto", "privacyKeyPhoneNumber", "privacyKeyAddedByPhone", "privacyKeyVoiceMessages", "privacyKeyAbout", "privacyKeyBirthday", "privacyKeyStarGiftsAutoSave", "privacyKeyNoPaidMessages", "privacyKeySavedMusic"]}}, "description": "Тип TL: PrivacyKey."}, "rules": {"type": "array", "items": {"type": "object", "x-tl-type": "PrivacyRule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts", "privacyValueAllowAll", "privacyValueAllowUsers", "privacyValueDisallowContacts", "privacyValueDisallowAll", "privacyValueDisallowUsers", "privacyValueAllowChatParticipants", "privacyValueDisallowChatParticipants", "privacyValueAllowCloseFriends", "privacyValueAllowPremium", "privacyValueAllowBots", "privacyValueDisallowBots"]}}, "description": "Тип TL: PrivacyRule."}, "x-tl-type": "Vector<PrivacyRule>"}}, "required": ["_", "key", "rules"], "additionalProperties": false}, "updateUserPhone": {"title": "updateUserPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserPhone"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "user_id", "phone"], "additionalProperties": false}, "updateReadHistoryInbox": {"title": "updateReadHistoryInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadHistoryInbox"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "still_unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "max_id", "still_unread_count", "pts", "pts_count"], "additionalProperties": false}, "updateReadHistoryOutbox": {"title": "updateReadHistoryOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadHistoryOutbox"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "max_id", "pts", "pts_count"], "additionalProperties": false}, "updateWebPage": {"title": "updateWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebPage"]}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "Тип TL: WebPage."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "webpage", "pts", "pts_count"], "additionalProperties": false}, "updateReadMessagesContents": {"title": "updateReadMessagesContents", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadMessagesContents"]}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateChannelTooLong": {"title": "updateChannelTooLong", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelTooLong"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "last_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "last_msg_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "updateChannel": {"title": "updateChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "updateNewChannelMessage": {"title": "updateNewChannelMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewChannelMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateReadChannelInbox": {"title": "updateReadChannelInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelInbox"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "still_unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "max_id", "still_unread_count", "pts"], "additionalProperties": false}, "updateDeleteChannelMessages": {"title": "updateDeleteChannelMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteChannelMessages"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateChannelMessageViews": {"title": "updateChannelMessageViews", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelMessageViews"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "id", "views"], "additionalProperties": false}, "updateChatParticipantAdmin": {"title": "updateChatParticipantAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantAdmin"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "is_admin": {"type": "boolean", "x-tl-type": "Bool"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "is_admin", "version"], "additionalProperties": false}, "updateNewStickerSet": {"title": "updateNewStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewStickerSet"]}, "stickerset": {"type": "object", "x-tl-type": "messages.StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messages.stickerSet", "messages.stickerSetNotModified"]}}, "description": "TL type: messages.StickerSet."}}, "required": ["_", "stickerset"], "additionalProperties": false}, "updateStickerSetsOrder": {"title": "updateStickerSetsOrder", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStickerSetsOrder"]}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "order": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "order"], "additionalProperties": false}, "updateStickerSets": {"title": "updateStickerSets", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStickerSets"]}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "updateSavedGifs": {"title": "updateSavedGifs", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedGifs"]}}, "required": ["_"], "additionalProperties": false}, "updateBotInlineQuery": {"title": "updateBotInlineQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotInlineQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query": {"type": "string", "x-tl-type": "string"}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint.", "x-tl-flag": "flags.0?GeoPoint"}, "peer_type": {"type": "object", "x-tl-type": "InlineQueryPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM", "inlineQueryPeerTypePM", "inlineQueryPeerTypeChat", "inlineQueryPeerTypeMegagroup", "inlineQueryPeerTypeBroadcast", "inlineQueryPeerTypeBotPM"]}}, "description": "TL Type: InlineQueryPeerType.", "x-tl-flag": "flags.1?InlineQueryPeerType"}, "offset": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "query_id", "user_id", "query", "offset"], "additionalProperties": false}, "updateBotInlineSend": {"title": "updateBotInlineSend", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotInlineSend"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query": {"type": "string", "x-tl-type": "string"}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint.", "x-tl-flag": "flags.0?GeoPoint"}, "id": {"type": "string", "x-tl-type": "string"}, "msg_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "TL Type: InputBotInlineMessageID.", "x-tl-flag": "flags.1?InputBotInlineMessageID"}}, "required": ["_", "user_id", "query", "id"], "additionalProperties": false}, "updateEditChannelMessage": {"title": "updateEditChannelMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditChannelMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateBotCallbackQuery": {"title": "updateBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "game_short_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "query_id", "user_id", "peer", "msg_id", "chat_instance"], "additionalProperties": false}, "updateEditMessage": {"title": "updateEditMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "message", "pts", "pts_count"], "additionalProperties": false}, "updateInlineBotCallbackQuery": {"title": "updateInlineBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateInlineBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "msg_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "TL Type: InputBotInlineMessageID."}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "game_short_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "query_id", "user_id", "msg_id", "chat_instance"], "additionalProperties": false}, "updateReadChannelOutbox": {"title": "updateReadChannelOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelOutbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "max_id"], "additionalProperties": false}, "updateDraftMessage": {"title": "updateDraftMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDraftMessage"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage."}}, "required": ["_", "peer", "draft"], "additionalProperties": false}, "updateReadFeaturedStickers": {"title": "updateReadFeaturedStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeaturedStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateRecentStickers": {"title": "updateRecentStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateConfig": {"title": "updateConfig", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateConfig"]}}, "required": ["_"], "additionalProperties": false}, "updatePtsChanged": {"title": "updatePtsChanged", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePtsChanged"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelWebPage": {"title": "updateChannelWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelWebPage"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "webpage": {"type": "object", "x-tl-type": "WebPage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageEmpty", "webPagePending", "webPage", "webPageNotModified"]}}, "description": "Тип TL: WebPage."}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "webpage", "pts", "pts_count"], "additionalProperties": false}, "updateDialogPinned": {"title": "updateDialogPinned", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogPinned"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "peer": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "TL Type: DialogPeer."}}, "required": ["_", "peer"], "additionalProperties": false}, "updatePinnedDialogs": {"title": "updatePinnedDialogs", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedDialogs"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "TL Type: 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 type: 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 type: DataJSON."}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "query_id", "data", "timeout"], "additionalProperties": false}, "updateBotShippingQuery": {"title": "updateBotShippingQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotShippingQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "shipping_address": {"type": "object", "x-tl-type": "PostAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["postAddress"]}}, "description": "Тип TL: PostAddress."}}, "required": ["_", "query_id", "user_id", "payload", "shipping_address"], "additionalProperties": false}, "updateBotPrecheckoutQuery": {"title": "updateBotPrecheckoutQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotPrecheckoutQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "Тип TL: PaymentRequestedInfo.", "x-tl-flag": "flags.0?PaymentRequestedInfo"}, "shipping_option_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "query_id", "user_id", "payload", "currency", "total_amount"], "additionalProperties": false}, "updatePhoneCall": {"title": "updatePhoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePhoneCall"]}, "phone_call": {"type": "object", "x-tl-type": "PhoneCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty", "phoneCallWaiting", "phoneCallRequested", "phoneCallAccepted", "phoneCall", "phoneCallDiscarded"]}}, "description": "Тип TL: PhoneCall."}}, "required": ["_", "phone_call"], "additionalProperties": false}, "updateLangPackTooLong": {"title": "updateLangPackTooLong", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLangPackTooLong"]}, "lang_code": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "lang_code"], "additionalProperties": false}, "updateLangPack": {"title": "updateLangPack", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLangPack"]}, "difference": {"type": "object", "x-tl-type": "LangPackDifference", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["langPackDifference"]}}, "description": "TL Type: LangPackDifference."}}, "required": ["_", "difference"], "additionalProperties": false}, "updateFavedStickers": {"title": "updateFavedStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateFavedStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelReadMessagesContents": {"title": "updateChannelReadMessagesContents", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelReadMessagesContents"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "channel_id", "messages"], "additionalProperties": false}, "updateContactsReset": {"title": "updateContactsReset", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateContactsReset"]}}, "required": ["_"], "additionalProperties": false}, "updateChannelAvailableMessages": {"title": "updateChannelAvailableMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelAvailableMessages"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "available_min_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "available_min_id"], "additionalProperties": false}, "updateDialogUnreadMark": {"title": "updateDialogUnreadMark", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogUnreadMark"]}, "unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "TL Type: DialogPeer."}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateMessagePoll": {"title": "updateMessagePoll", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessagePoll"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "poll_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "poll": {"type": "object", "x-tl-type": "Poll", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["poll"]}}, "description": "Тип TL: Poll.", "x-tl-flag": "flags.0?Poll"}, "results": {"type": "object", "x-tl-type": "PollResults", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollResults"]}}, "description": "Тип TL: PollResults."}}, "required": ["_", "poll_id", "results"], "additionalProperties": false}, "updateChatDefaultBannedRights": {"title": "updateChatDefaultBannedRights", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatDefaultBannedRights"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "default_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "default_banned_rights", "version"], "additionalProperties": false}, "updateFolderPeers": {"title": "updateFolderPeers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateFolderPeers"]}, "folder_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "FolderPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["folderPeer"]}}, "description": "Тип TL: FolderPeer."}, "x-tl-type": "Vector<FolderPeer>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "folder_peers", "pts", "pts_count"], "additionalProperties": false}, "updatePeerSettings": {"title": "updatePeerSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerSettings"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "Тип TL: PeerSettings."}}, "required": ["_", "peer", "settings"], "additionalProperties": false}, "updatePeerLocated": {"title": "updatePeerLocated", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerLocated"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerLocated", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerLocated", "peerSelfLocated"]}}, "description": "Тип TL: PeerLocated."}, "x-tl-type": "Vector<PeerLocated>"}}, "required": ["_", "peers"], "additionalProperties": false}, "updateNewScheduledMessage": {"title": "updateNewScheduledMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewScheduledMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteScheduledMessages": {"title": "updateDeleteScheduledMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteScheduledMessages"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "sent_messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>"}}, "required": ["_", "peer", "messages"], "additionalProperties": false}, "updateTheme": {"title": "updateTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateTheme"]}, "theme": {"type": "object", "x-tl-type": "Theme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["theme"]}}, "description": "TL Type: Theme."}}, "required": ["_", "theme"], "additionalProperties": false}, "updateGeoLiveViewed": {"title": "updateGeoLiveViewed", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGeoLiveViewed"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id"], "additionalProperties": false}, "updateLoginToken": {"title": "updateLoginToken", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateLoginToken"]}}, "required": ["_"], "additionalProperties": false}, "updateMessagePollVote": {"title": "updateMessagePollVote", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessagePollVote"]}, "poll_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "options": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>"}, "positions": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "poll_id", "peer", "options", "positions", "qts"], "additionalProperties": false}, "updateDialogFilter": {"title": "updateDialogFilter", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogFilter"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "filter": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "Тип TL: DialogFilter.", "x-tl-flag": "flags.0?DialogFilter"}}, "required": ["_", "id"], "additionalProperties": false}, "updateDialogFilterOrder": {"title": "updateDialogFilterOrder", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogFilterOrder"]}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "order"], "additionalProperties": false}, "updateDialogFilters": {"title": "updateDialogFilters", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDialogFilters"]}}, "required": ["_"], "additionalProperties": false}, "updatePhoneCallSignalingData": {"title": "updatePhoneCallSignalingData", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePhoneCallSignalingData"]}, "phone_call_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "phone_call_id", "data"], "additionalProperties": false}, "updateChannelMessageForwards": {"title": "updateChannelMessageForwards", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelMessageForwards"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "id", "forwards"], "additionalProperties": false}, "updateReadChannelDiscussionInbox": {"title": "updateReadChannelDiscussionInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelDiscussionInbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "broadcast_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "broadcast_post": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "channel_id", "top_msg_id", "read_max_id"], "additionalProperties": false}, "updateReadChannelDiscussionOutbox": {"title": "updateReadChannelDiscussionOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadChannelDiscussionOutbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "top_msg_id", "read_max_id"], "additionalProperties": false}, "updatePeerBlocked": {"title": "updatePeerBlocked", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerBlocked"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}}, "required": ["_", "peer_id"], "additionalProperties": false}, "updateChannelUserTyping": {"title": "updateChannelUserTyping", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelUserTyping"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "action": {"type": "object", "x-tl-type": "SendMessageAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction", "sendMessageCancelAction", "sendMessageRecordVideoAction", "sendMessageUploadVideoAction", "sendMessageRecordAudioAction", "sendMessageUploadAudioAction", "sendMessageUploadPhotoAction", "sendMessageUploadDocumentAction", "sendMessageGeoLocationAction", "sendMessageChooseContactAction", "sendMessageGamePlayAction", "sendMessageRecordRoundAction", "sendMessageUploadRoundAction", "speakingInGroupCallAction", "sendMessageHistoryImportAction", "sendMessageChooseStickerAction", "sendMessageEmojiInteraction", "sendMessageEmojiInteractionSeen", "sendMessageTextDraftAction", "inputSendMessageRichMessageDraftAction", "sendMessageRichMessageDraftAction", "sendMessageStopDraftAction"]}}, "description": "Тип TL: SendMessageAction."}}, "required": ["_", "channel_id", "from_id", "action"], "additionalProperties": false}, "updatePinnedMessages": {"title": "updatePinnedMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedMessages"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "messages", "pts", "pts_count"], "additionalProperties": false}, "updatePinnedChannelMessages": {"title": "updatePinnedChannelMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedChannelMessages"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "messages", "pts", "pts_count"], "additionalProperties": false}, "updateChat": {"title": "updateChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "updateGroupCallParticipants": {"title": "updateGroupCallParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallParticipants"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}, "x-tl-type": "Vector<GroupCallParticipant>"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "call", "participants", "version"], "additionalProperties": false}, "updateGroupCall": {"title": "updateGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCall"]}, "live_story": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}, "call": {"type": "object", "x-tl-type": "GroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDiscarded", "groupCall"]}}, "description": "Тип TL: GroupCall."}}, "required": ["_", "call"], "additionalProperties": false}, "updatePeerHistoryTTL": {"title": "updatePeerHistoryTTL", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerHistoryTTL"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "ttl_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateChatParticipant": {"title": "updateChatParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipant"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "actor_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "prev_participant": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant.", "x-tl-flag": "flags.0?ChatParticipant"}, "new_participant": {"type": "object", "x-tl-type": "ChatParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatParticipant", "chatParticipantCreator", "chatParticipantAdmin"]}}, "description": "Тип TL: ChatParticipant.", "x-tl-flag": "flags.1?ChatParticipant"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: ExportedChatInvite.", "x-tl-flag": "flags.2?ExportedChatInvite"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "date", "actor_id", "user_id", "qts"], "additionalProperties": false}, "updateChannelParticipant": {"title": "updateChannelParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelParticipant"]}, "via_chatlist": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "actor_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant.", "x-tl-flag": "flags.0?ChannelParticipant"}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant.", "x-tl-flag": "flags.1?ChannelParticipant"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: ExportedChatInvite.", "x-tl-flag": "flags.2?ExportedChatInvite"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "date", "actor_id", "user_id", "qts"], "additionalProperties": false}, "updateBotStopped": {"title": "updateBotStopped", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotStopped"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "stopped": {"type": "boolean", "x-tl-type": "Bool"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "date", "stopped", "qts"], "additionalProperties": false}, "updateGroupCallConnection": {"title": "updateGroupCallConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallConnection"]}, "presentation": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "params": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: DataJSON."}}, "required": ["_", "params"], "additionalProperties": false}, "updateBotCommands": {"title": "updateBotCommands", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotCommands"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "commands": {"type": "array", "items": {"type": "object", "x-tl-type": "BotCommand", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botCommand"]}}, "description": "TL Type: BotCommand."}, "x-tl-type": "Vector<BotCommand>"}}, "required": ["_", "peer", "bot_id", "commands"], "additionalProperties": false}, "updatePendingJoinRequests": {"title": "updatePendingJoinRequests", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePendingJoinRequests"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "requests_pending": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "recent_requesters": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "peer", "requests_pending", "recent_requesters"], "additionalProperties": false}, "updateBotChatInviteRequester": {"title": "updateBotChatInviteRequester", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotChatInviteRequester"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "about": {"type": "string", "x-tl-type": "string"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: ExportedChatInvite."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "peer", "date", "user_id", "about", "invite", "qts"], "additionalProperties": false}, "updateMessageReactions": {"title": "updateMessageReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageReactions"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}, "reactions": {"type": "object", "x-tl-type": "MessageReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactions"]}}, "description": "Тип TL: MessageReactions."}}, "required": ["_", "peer", "msg_id", "reactions"], "additionalProperties": false}, "updateAttachMenuBots": {"title": "updateAttachMenuBots", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAttachMenuBots"]}}, "required": ["_"], "additionalProperties": false}, "updateWebViewResultSent": {"title": "updateWebViewResultSent", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebViewResultSent"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "query_id"], "additionalProperties": false}, "updateBotMenuButton": {"title": "updateBotMenuButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotMenuButton"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "button": {"type": "object", "x-tl-type": "BotMenuButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botMenuButtonDefault", "botMenuButtonCommands", "botMenuButton"]}}, "description": "TL Type: BotMenuButton."}}, "required": ["_", "bot_id", "button"], "additionalProperties": false}, "updateSavedRingtones": {"title": "updateSavedRingtones", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedRingtones"]}}, "required": ["_"], "additionalProperties": false}, "updateTranscribedAudio": {"title": "updateTranscribedAudio", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateTranscribedAudio"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "peer", "msg_id", "transcription_id", "text"], "additionalProperties": false}, "updateReadFeaturedEmojiStickers": {"title": "updateReadFeaturedEmojiStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeaturedEmojiStickers"]}}, "required": ["_"], "additionalProperties": false}, "updateUserEmojiStatus": {"title": "updateUserEmojiStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUserEmojiStatus"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoji_status": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}}, "required": ["_", "user_id", "emoji_status"], "additionalProperties": false}, "updateRecentEmojiStatuses": {"title": "updateRecentEmojiStatuses", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentEmojiStatuses"]}}, "required": ["_"], "additionalProperties": false}, "updateRecentReactions": {"title": "updateRecentReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateRecentReactions"]}}, "required": ["_"], "additionalProperties": false}, "updateMoveStickerSetToTop": {"title": "updateMoveStickerSetToTop", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMoveStickerSetToTop"]}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "stickerset": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "stickerset"], "additionalProperties": false}, "updateMessageExtendedMedia": {"title": "updateMessageExtendedMedia", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMessageExtendedMedia"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageExtendedMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview", "messageExtendedMedia"]}}, "description": "Тип TL: MessageExtendedMedia."}, "x-tl-type": "Vector<MessageExtendedMedia>"}}, "required": ["_", "peer", "msg_id", "extended_media"], "additionalProperties": false}, "updateUser": {"title": "updateUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "updateAutoSaveSettings": {"title": "updateAutoSaveSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAutoSaveSettings"]}}, "required": ["_"], "additionalProperties": false}, "updateStory": {"title": "updateStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer", "story"], "additionalProperties": false}, "updateReadStories": {"title": "updateReadStories", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadStories"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "max_id"], "additionalProperties": false}, "updateStoryID": {"title": "updateStoryID", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStoryID"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "random_id"], "additionalProperties": false}, "updateStoriesStealthMode": {"title": "updateStoriesStealthMode", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStoriesStealthMode"]}, "stealth_mode": {"type": "object", "x-tl-type": "StoriesStealthMode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}}, "description": "Тип TL: StoriesStealthMode."}}, "required": ["_", "stealth_mode"], "additionalProperties": false}, "updateSentStoryReaction": {"title": "updateSentStoryReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSentStoryReaction"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}}, "required": ["_", "peer", "story_id", "reaction"], "additionalProperties": false}, "updateBotChatBoost": {"title": "updateBotChatBoost", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotChatBoost"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "boost": {"type": "object", "x-tl-type": "Boost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["boost"]}}, "description": "Тип TL: Boost."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "boost", "qts"], "additionalProperties": false}, "updateChannelViewForumAsMessages": {"title": "updateChannelViewForumAsMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChannelViewForumAsMessages"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "enabled": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "channel_id", "enabled"], "additionalProperties": false}, "updatePeerWallpaper": {"title": "updatePeerWallpaper", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePeerWallpaper"]}, "wallpaper_overridden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL Type: WallPaper.", "x-tl-flag": "flags.0?WallPaper"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateBotMessageReaction": {"title": "updateBotMessageReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotMessageReaction"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "actor": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "old_reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}, "x-tl-type": "Vector<Reaction>"}, "new_reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}, "x-tl-type": "Vector<Reaction>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id", "date", "actor", "old_reactions", "new_reactions", "qts"], "additionalProperties": false}, "updateBotMessageReactions": {"title": "updateBotMessageReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotMessageReactions"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "ReactionCount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionCount"]}}, "description": "Тип TL: ReactionCount."}, "x-tl-type": "Vector<ReactionCount>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id", "date", "reactions", "qts"], "additionalProperties": false}, "updateSavedDialogPinned": {"title": "updateSavedDialogPinned", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedDialogPinned"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "TL Type: DialogPeer."}}, "required": ["_", "peer"], "additionalProperties": false}, "updatePinnedSavedDialogs": {"title": "updatePinnedSavedDialogs", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedSavedDialogs"]}, "order": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogPeer", "dialogPeerFolder", "dialogPeerCommunity"]}}, "description": "TL Type: DialogPeer."}, "x-tl-type": "Vector<DialogPeer>", "x-tl-flag": "flags.0?Vector<DialogPeer>"}}, "required": ["_"], "additionalProperties": false}, "updateSavedReactionTags": {"title": "updateSavedReactionTags", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSavedReactionTags"]}}, "required": ["_"], "additionalProperties": false}, "updateSmsJob": {"title": "updateSmsJob", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSmsJob"]}, "job_id": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "job_id"], "additionalProperties": false}, "updateQuickReplies": {"title": "updateQuickReplies", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateQuickReplies"]}, "quick_replies": {"type": "array", "items": {"type": "object", "x-tl-type": "QuickReply", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["quickReply"]}}, "description": "Тип TL: QuickReply."}, "x-tl-type": "Vector<QuickReply>"}}, "required": ["_", "quick_replies"], "additionalProperties": false}, "updateNewQuickReply": {"title": "updateNewQuickReply", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewQuickReply"]}, "quick_reply": {"type": "object", "x-tl-type": "QuickReply", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["quickReply"]}}, "description": "Тип TL: QuickReply."}}, "required": ["_", "quick_reply"], "additionalProperties": false}, "updateDeleteQuickReply": {"title": "updateDeleteQuickReply", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteQuickReply"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id"], "additionalProperties": false}, "updateQuickReplyMessage": {"title": "updateQuickReplyMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateQuickReplyMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteQuickReplyMessages": {"title": "updateDeleteQuickReplyMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteQuickReplyMessages"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "shortcut_id", "messages"], "additionalProperties": false}, "updateBotBusinessConnect": {"title": "updateBotBusinessConnect", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotBusinessConnect"]}, "connection": {"type": "object", "x-tl-type": "BotBusinessConnection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botBusinessConnection"]}}, "description": "Тип TL: BotBusinessConnection."}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection", "qts"], "additionalProperties": false}, "updateBotNewBusinessMessage": {"title": "updateBotNewBusinessMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotNewBusinessMessage"]}, "connection_id": {"type": "string", "x-tl-type": "string"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message.", "x-tl-flag": "flags.0?Message"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "message", "qts"], "additionalProperties": false}, "updateBotEditBusinessMessage": {"title": "updateBotEditBusinessMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotEditBusinessMessage"]}, "connection_id": {"type": "string", "x-tl-type": "string"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message.", "x-tl-flag": "flags.0?Message"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "message", "qts"], "additionalProperties": false}, "updateBotDeleteBusinessMessage": {"title": "updateBotDeleteBusinessMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotDeleteBusinessMessage"]}, "connection_id": {"type": "string", "x-tl-type": "string"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "connection_id", "peer", "messages", "qts"], "additionalProperties": false}, "updateNewStoryReaction": {"title": "updateNewStoryReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewStoryReaction"]}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}}, "required": ["_", "story_id", "peer", "reaction"], "additionalProperties": false}, "updateStarsBalance": {"title": "updateStarsBalance", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarsBalance"]}, "balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}}, "required": ["_", "balance"], "additionalProperties": false}, "updateBusinessBotCallbackQuery": {"title": "updateBusinessBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBusinessBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "connection_id": {"type": "string", "x-tl-type": "string"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reply_to_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message.", "x-tl-flag": "flags.2?Message"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}}, "required": ["_", "query_id", "user_id", "connection_id", "message", "chat_instance"], "additionalProperties": false}, "updateStarsRevenueStatus": {"title": "updateStarsRevenueStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarsRevenueStatus"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "status": {"type": "object", "x-tl-type": "StarsRevenueStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRevenueStatus"]}}, "description": "Тип TL: StarsRevenueStatus."}}, "required": ["_", "peer", "status"], "additionalProperties": false}, "updateBotPurchasedPaidMedia": {"title": "updateBotPurchasedPaidMedia", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotPurchasedPaidMedia"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "x-tl-type": "string"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "payload", "qts"], "additionalProperties": false}, "updatePaidReactionPrivacy": {"title": "updatePaidReactionPrivacy", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePaidReactionPrivacy"]}, "private": {"type": "object", "x-tl-type": "PaidReactionPrivacy", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyDefault", "paidReactionPrivacyAnonymous", "paidReactionPrivacyPeer"]}}, "description": "Тип TL: PaidReactionPrivacy."}}, "required": ["_", "private"], "additionalProperties": false}, "updateSentPhoneCode": {"title": "updateSentPhoneCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSentPhoneCode"]}, "sent_code": {"type": "object", "x-tl-type": "auth.SentCode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired"]}}, "description": "Type TL: auth.SentCode."}}, "required": ["_", "sent_code"], "additionalProperties": false}, "updateGroupCallChainBlocks": {"title": "updateGroupCallChainBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallChainBlocks"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "sub_chain_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "blocks": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>"}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "call", "sub_chain_id", "blocks", "next_offset"], "additionalProperties": false}, "updateReadMonoForumInbox": {"title": "updateReadMonoForumInbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadMonoForumInbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "saved_peer_id", "read_max_id"], "additionalProperties": false}, "updateReadMonoForumOutbox": {"title": "updateReadMonoForumOutbox", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadMonoForumOutbox"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "channel_id", "saved_peer_id", "read_max_id"], "additionalProperties": false}, "updateMonoForumNoPaidException": {"title": "updateMonoForumNoPaidException", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateMonoForumNoPaidException"]}, "exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "saved_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}}, "required": ["_", "channel_id", "saved_peer_id"], "additionalProperties": false}, "updateGroupCallMessage": {"title": "updateGroupCallMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallMessage"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "message": {"type": "object", "x-tl-type": "GroupCallMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallMessage"]}}, "description": "Тип TL: GroupCallMessage."}}, "required": ["_", "call", "message"], "additionalProperties": false}, "updateGroupCallEncryptedMessage": {"title": "updateGroupCallEncryptedMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateGroupCallEncryptedMessage"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "encrypted_message": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "call", "from_id", "encrypted_message"], "additionalProperties": false}, "updatePinnedForumTopic": {"title": "updatePinnedForumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedForumTopic"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "topic_id"], "additionalProperties": false}, "updatePinnedForumTopics": {"title": "updatePinnedForumTopics", "type": "object", "properties": {"_": {"type": "string", "enum": ["updatePinnedForumTopics"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "order": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>"}}, "required": ["_", "peer"], "additionalProperties": false}, "updateDeleteGroupCallMessages": {"title": "updateDeleteGroupCallMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteGroupCallMessages"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}, "messages": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "call", "messages"], "additionalProperties": false}, "updateStarGiftAuctionState": {"title": "updateStarGiftAuctionState", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarGiftAuctionState"]}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "state": {"type": "object", "x-tl-type": "StarGiftAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified", "starGiftAuctionState", "starGiftAuctionStateFinished"]}}, "description": "Тип TL: StarGiftAuctionState."}}, "required": ["_", "gift_id", "state"], "additionalProperties": false}, "updateStarGiftAuctionUserState": {"title": "updateStarGiftAuctionUserState", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarGiftAuctionUserState"]}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_state": {"type": "object", "x-tl-type": "StarGiftAuctionUserState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}}, "description": "Тип TL: StarGiftAuctionUserState."}}, "required": ["_", "gift_id", "user_state"], "additionalProperties": false}, "updateEmojiGameInfo": {"title": "updateEmojiGameInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEmojiGameInfo"]}, "info": {"type": "object", "x-tl-type": "messages.EmojiGameInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messages.emojiGameUnavailable", "messages.emojiGameDiceInfo"]}}, "description": "Type TL: messages.EmojiGameInfo."}}, "required": ["_", "info"], "additionalProperties": false}, "updateStarGiftCraftFail": {"title": "updateStarGiftCraftFail", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateStarGiftCraftFail"]}}, "required": ["_"], "additionalProperties": false}, "updateChatParticipantRank": {"title": "updateChatParticipantRank", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateChatParticipantRank"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "rank": {"type": "string", "x-tl-type": "string"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "chat_id", "user_id", "rank", "version"], "additionalProperties": false}, "updateManagedBot": {"title": "updateManagedBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateManagedBot"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "bot_id", "qts"], "additionalProperties": false}, "updateBotGuestChatQuery": {"title": "updateBotGuestChatQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotGuestChatQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "reference_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "x-tl-flag": "flags.0?Vector<Message>"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "query_id", "message", "qts"], "additionalProperties": false}, "updateAiComposeTones": {"title": "updateAiComposeTones", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateAiComposeTones"]}}, "required": ["_"], "additionalProperties": false}, "updateJoinChatWebViewDecision": {"title": "updateJoinChatWebViewDecision", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateJoinChatWebViewDecision"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "result": {"type": "object", "x-tl-type": "JoinChatBotResult", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["joinChatBotResultApproved", "joinChatBotResultDeclined", "joinChatBotResultQueued", "joinChatBotResultWebView"]}}, "description": "Тип TL: JoinChatBotResult."}}, "required": ["_", "peer", "query_id", "result"], "additionalProperties": false}, "updateNewBotConnection": {"title": "updateNewBotConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewBotConnection"]}, "confirmed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "device": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "location": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "bot_id"], "additionalProperties": false}, "updateWebBrowserSettings": {"title": "updateWebBrowserSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebBrowserSettings"]}, "open_external_browser": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "display_close_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "updateWebBrowserException": {"title": "updateWebBrowserException", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWebBrowserException"]}, "delete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "open_external_browser": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}, "exception": {"type": "object", "x-tl-type": "WebDomainException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDomainException"]}}, "description": "Тип TL: WebDomainException."}}, "required": ["_", "exception"], "additionalProperties": false}, "updateNewEphemeralMessage": {"title": "updateNewEphemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateNewEphemeralMessage"]}, "message": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}}, "required": ["_", "message"], "additionalProperties": false}, "updateDeleteEphemeralMessages": {"title": "updateDeleteEphemeralMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateDeleteEphemeralMessages"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "ids": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "peer", "ids"], "additionalProperties": false}, "updateEditEphemeralMessage": {"title": "updateEditEphemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditEphemeralMessage"]}, "message": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}}, "required": ["_", "message"], "additionalProperties": false}, "updateEphemeralBotCallbackQuery": {"title": "updateEphemeralBotCallbackQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEphemeralBotCallbackQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "message": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}}, "required": ["_", "query_id", "user_id", "msg_id", "data", "message"], "additionalProperties": false}, "updateBotStarsSubscription": {"title": "updateBotStarsSubscription", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotStarsSubscription"]}, "canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "payment_failed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "restored": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "payload", "qts"], "additionalProperties": false}, "updateWalletState": {"title": "updateWalletState", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletState"]}, "state": {"type": "object", "x-tl-type": "WalletState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletStateEmpty", "walletState"]}}, "description": "Тип TL: WalletState."}}, "required": ["_", "state"], "additionalProperties": false}, "updateSentWalletTransaction": {"title": "updateSentWalletTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateSentWalletTransaction"]}, "gasless": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "msg_hash": {"type": "string", "x-tl-type": "string"}, "transaction": {"type": "object", "x-tl-type": "WalletTransaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletTransaction"]}}, "description": "Тип TL: WalletTransaction.", "x-tl-flag": "flags.1?WalletTransaction"}}, "required": ["_", "msg_hash"], "additionalProperties": false}, "updateWalletGaslessInfo": {"title": "updateWalletGaslessInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletGaslessInfo"]}, "available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reset_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "min_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "relayer_address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "left", "reset_at", "min_amount", "relayer_address"], "additionalProperties": false}, "updateWalletTonConnectSession": {"title": "updateWalletTonConnectSession", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletTonConnectSession"]}, "session": {"type": "object", "x-tl-type": "TonConnectSession", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}}, "description": "Тип TL: TonConnectSession."}}, "required": ["_", "session"], "additionalProperties": false}, "updateWalletTonConnectPendingDisconnect": {"title": "updateWalletTonConnectPendingDisconnect", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateWalletTonConnectPendingDisconnect"]}, "session_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "session_ids"], "additionalProperties": false}, "updateEditForumTopic": {"title": "updateEditForumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateEditForumTopic"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "topic_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "closed": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.2?Bool"}, "hidden": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}}, "required": ["_", "peer", "topic_id"], "additionalProperties": false}, "updateBotWidgetQuery": {"title": "updateBotWidgetQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotWidgetQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData", "widgetQueryTypeSignData", "widgetQueryTypeSentTransaction"]}}, "description": "Тип TL: WidgetQueryType."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_type": {"type": "string", "x-tl-type": "string"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags.1?wallet.Card"}}, "required": ["_", "query_id", "query_type", "user_id", "peer", "msg_id", "chat_instance", "chat_type", "data"], "additionalProperties": false}, "updateInlineBotWidgetQuery": {"title": "updateInlineBotWidgetQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateInlineBotWidgetQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData", "widgetQueryTypeSignData", "widgetQueryTypeSentTransaction"]}}, "description": "Тип TL: WidgetQueryType."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inline_message_id": {"type": "object", "x-tl-type": "InputBotInlineMessageID", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageID", "inputBotInlineMessageID64"]}}, "description": "TL Type: 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 Type: Peer."}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "msg_id", "pts", "pts_count"], "additionalProperties": false}, "updateTranscribedAudioFile": {"title": "updateTranscribedAudioFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateTranscribedAudioFile"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "transcription_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "transcription_id", "text"], "additionalProperties": false}, "updateBotProfileWidgetQuery": {"title": "updateBotProfileWidgetQuery", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotProfileWidgetQuery"]}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_type": {"type": "object", "x-tl-type": "WidgetQueryType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData", "widgetQueryTypeSignData", "widgetQueryTypeSentTransaction"]}}, "description": "Тип TL: WidgetQueryType."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "wallet_card": {"type": "object", "x-tl-type": "wallet.Card", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.card"]}}, "description": "Тип TL: wallet.Card.", "x-tl-flag": "flags.0?wallet.Card"}}, "required": ["_", "query_id", "query_type", "user_id", "data"], "additionalProperties": false}, "updateBotProfileWidgetData": {"title": "updateBotProfileWidgetData", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotProfileWidgetData"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_data": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "bot_id", "chat_data"], "additionalProperties": false}, "updateBotProfileWidget": {"title": "updateBotProfileWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateBotProfileWidget"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "widget": {"type": "object", "x-tl-type": "BotProfileWidget", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botProfileWidget"]}}, "description": "Тип TL: BotProfileWidget.", "x-tl-flag": "flags.0?BotProfileWidget"}}, "required": ["_", "bot_id"], "additionalProperties": false}, "updateReadFeed": {"title": "updateReadFeed", "type": "object", "properties": {"_": {"type": "string", "enum": ["updateReadFeed"]}, "filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition."}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "unread_muted_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "filter_id", "max_position"], "additionalProperties": false}, "updates.state": {"title": "updates.state", "description": "状態を更新します。", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.state"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.state"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "テキストボックス内で発生したイベントの数", "x-telegram-field-docs": true}, "qts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "秘密チャットの一連の更新の中での位置。詳細については、記事[秘密のチャット](https://core.telegram.org/api/end-to-end.md)]を参照してください。", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "状態の日付", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "送信されたアップデートの数", "x-telegram-field-docs": true}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "未読メッセージの数", "x-telegram-field-docs": true}}, "required": ["_", "pts", "qts", "date", "seq", "unread_count"], "additionalProperties": false}, "updates.differenceEmpty": {"title": "updates.differenceEmpty", "description": "イベントはありません。", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.differenceEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.differenceEmpty"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在の日付", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "送信されたアップデートの数", "x-telegram-field-docs": true}}, "required": ["_", "date", "seq"], "additionalProperties": false}, "updates.difference": {"title": "updates.difference", "description": "発生したイベントの完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.difference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.difference"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "new_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "新着メッセージのリスト", "x-telegram-field-docs": true}, "new_encrypted_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "EncryptedMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedMessage", "encryptedMessageService"]}}, "description": "Тип TL: EncryptedMessage."}, "x-tl-type": "Vector<EncryptedMessage>", "description": "新しい暗号化された秘密のチャット メッセージのリスト", "x-telegram-field-docs": true}, "other_updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "アップデート一覧", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "イベントで言及されたチャットのリスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "イベントで言及されたユーザーのリスト", "x-telegram-field-docs": true}, "state": {"type": "object", "x-tl-type": "updates.State", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updates.state"]}}, "description": "現在の状態", "x-telegram-field-docs": true}}, "required": ["_", "new_messages", "new_encrypted_messages", "other_updates", "chats", "users", "state"], "additionalProperties": false}, "updates.differenceSlice": {"title": "updates.differenceSlice", "description": "発生したイベントの不完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.differenceSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.differenceSlice"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "new_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "新着メッセージのリスト", "x-telegram-field-docs": true}, "new_encrypted_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "EncryptedMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedMessage", "encryptedMessageService"]}}, "description": "Тип TL: EncryptedMessage."}, "x-tl-type": "Vector<EncryptedMessage>", "description": "[暗号化されたイベント シーケンス](https://core.telegram.org/api/updates.md)] からの新しいメッセージ", "x-telegram-field-docs": true}, "other_updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "アップデート一覧", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "イベントで言及されたチャットのリスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "イベントで言及されたユーザーのリスト", "x-telegram-field-docs": true}, "intermediate_state": {"type": "object", "x-tl-type": "updates.State", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updates.state"]}}, "description": "中間状態", "x-telegram-field-docs": true}}, "required": ["_", "new_messages", "new_encrypted_messages", "other_updates", "chats", "users", "intermediate_state"], "additionalProperties": false}, "updates.differenceTooLong": {"title": "updates.differenceTooLong", "description": "違いは [長すぎます](https://core.telegram.org/api/updates.md#recovering-gaps)、更新を再取得するには指定された状態を使用する必要があります。", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.differenceTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.differenceTooLong"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "使用する新しい状態。", "x-telegram-field-docs": true}}, "required": ["_", "pts"], "additionalProperties": false}, "updatesTooLong": {"title": "updatesTooLong", "description": "共通メッセージ ボックス内のキューに入れられた更新の数が大きすぎるため、ソケットを通じて受動的に配信できません。[ドキュメント »](https://core.telegram.org/api/updates.md) で指定されているように、[updates.getDifference](https://core.telegram.org/method/updates.getDifference.md)] を呼び出して差分を取得します。\n\n**必ずしも** [メッセージ ボックスのサイズ制限に達しました](https://core.telegram.org/api/updates.md#recovering-gaps-for-very-old-messages)] を示しているわけではありません。単に、メッセージ ボックス内のキューに入れられた更新の数が大きすぎて、ソケットを介して受動的に配信できないことを示しています。", "externalDocs": {"url": "https://core.telegram.org/constructor/updatesTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updatesTooLong"]}}, "required": ["_"], "additionalProperties": false}, "updateShortMessage": {"title": "updateShortMessage", "description": "別のユーザーに送信された（受信された）メッセージに関する情報", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShortMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShortMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "メッセージが送信されるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "mentioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "メッセージ内で私たちのことが言及されているかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "media_unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このメッセージに**未読**の言及があるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "silent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "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 Type: MessageEntity."}, "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": "メッセージの有効期限が message.date+message.ttl_period === time() に達すると、メッセージはサーバー上で削除され、ローカルでも削除する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "user_id", "message", "pts", "pts_count", "date"], "additionalProperties": false}, "updateShortChatMessage": {"title": "updateShortChatMessage", "description": "チャットからの 1 つの新しい受信テキスト メッセージに関する情報を含む短縮されたコンストラクター", "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 Type: MessageEntity."}, "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": "メッセージの有効期限が updateShortChatMessage.date+updateShortChatMessage.ttl_period === time() に達すると、メッセージはサーバー上で削除され、ローカルでも削除する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "from_id", "chat_id", "message", "pts", "pts_count", "date"], "additionalProperties": false}, "updateShort": {"title": "updateShort", "description": "補助データを必要としない 1 つの更新に関する情報を含む短縮されたコンストラクター", "externalDocs": {"url": "https://core.telegram.org/constructor/updateShort"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updateShort"]}, "update": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "アップデート", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "イベントの日付", "x-telegram-field-docs": true}}, "required": ["_", "update", "date"], "additionalProperties": false}, "updatesCombined": {"title": "updatesCombined", "description": "更新のグループのコンストラクター。", "externalDocs": {"url": "https://core.telegram.org/constructor/updatesCombined"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updatesCombined"]}, "updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "アップデート一覧", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "アップデートで言及されているユーザーのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "アップデートで言及されたチャットのリスト", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在の日付", "x-telegram-field-docs": true}, "seq_start": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "グループ内の最も古い更新の値 **seq**", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "グループ内の最新アップデートの値 **seq**", "x-telegram-field-docs": true}}, "required": ["_", "updates", "users", "chats", "date", "seq_start", "seq"], "additionalProperties": false}, "updates": {"title": "updates", "description": "更新の完全なコンストラクター", "externalDocs": {"url": "https://core.telegram.org/constructor/updates"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates"]}, "updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "アップデート一覧", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "アップデートで言及されているユーザーのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "アップデートで言及されたチャットのリスト", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在の日付", "x-telegram-field-docs": true}, "seq": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "送信されたアップデートの合計数", "x-telegram-field-docs": true}}, "required": ["_", "updates", "users", "chats", "date", "seq"], "additionalProperties": false}, "updateShortSentMessage": {"title": "updateShortSentMessage", "description": "連絡先への 1 つの送信メッセージに関する情報を含む短縮されたコンストラクター (宛先チャットは、このオブジェクトを返したメソッド呼び出しから抽出する必要があります)。", "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 Type: MessageEntity."}, "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": "メッセージの有効期限が message.date+message.ttl_period === time() に達すると、メッセージはサーバー上で削除され、ローカルでも削除する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?int"}}, "required": ["_", "id", "pts", "pts_count", "date"], "additionalProperties": false}, "photos.photos": {"title": "photos.photos", "description": "補助データ付きの写真の完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/photos.photos"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["photos.photos"]}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>", "description": "写真一覧", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザーのリスト", "x-telegram-field-docs": true}}, "required": ["_", "photos", "users"], "additionalProperties": false}, "photos.photosSlice": {"title": "photos.photosSlice", "description": "補助データを含む写真の不完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/photos.photosSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["photos.photosSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "写真の総数", "x-telegram-field-docs": true}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>", "description": "写真一覧", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザーのリスト", "x-telegram-field-docs": true}}, "required": ["_", "count", "photos", "users"], "additionalProperties": false}, "photos.photo": {"title": "photos.photo", "description": "補助データ付きの写真。", "externalDocs": {"url": "https://core.telegram.org/constructor/photos.photo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["photos.photo"]}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "写真", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "photo", "users"], "additionalProperties": false}, "upload.file": {"title": "upload.file", "description": "ファイルの内容。", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.file"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.file"]}, "type": {"type": "object", "x-tl-type": "storage.FileType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storage.fileUnknown", "storage.filePartial", "storage.fileJpeg", "storage.fileGif", "storage.filePng", "storage.filePdf", "storage.fileMp3", "storage.fileMov", "storage.fileMp4", "storage.fileWebp"]}}, "description": "ファイルの種類", "x-telegram-field-docs": true}, "mtime": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "変更時間", "x-telegram-field-docs": true}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "バイナリデータ、ファイルの内容", "x-telegram-field-docs": true}}, "required": ["_", "type", "mtime", "bytes"], "additionalProperties": false}, "upload.fileCdnRedirect": {"title": "upload.fileCdnRedirect", "description": "ファイルは [CDN DC](https://core.telegram.org/cdn.md).", "externalDocs": {"url": "https://core.telegram.org/constructor/upload.fileCdnRedirect"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["upload.fileCdnRedirect"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[CDN DC](https://core.telegram.org/cdn.md) ID", "x-telegram-field-docs": true}, "file_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ファイルトークン ([CDN ファイル](https://core.telegram.org/cdn.md)] を参照)", "x-telegram-field-docs": true}, "encryption_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "暗号化キー ([CDN ファイル](https://core.telegram.org/cdn.md)] を参照)", "x-telegram-field-docs": true}, "encryption_iv": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "暗号化 IV ([CDN ファイル](https://core.telegram.org/cdn.md)] を参照)", "x-telegram-field-docs": true}, "file_hashes": {"type": "array", "items": {"type": "object", "x-tl-type": "FileHash", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["fileHash"]}}, "description": "TL Type: FileHash."}, "x-tl-type": "Vector<FileHash>", "description": "ファイル ハッシュ ([CDN ファイル](https://core.telegram.org/cdn.md)] を参照)", "x-telegram-field-docs": true}}, "required": ["_", "dc_id", "file_token", "encryption_key", "encryption_iv", "file_hashes"], "additionalProperties": false}, "dcOption": {"title": "dcOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["dcOption"]}, "ipv6": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "media_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "tcpo_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "cdn": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "static": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "this_port_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "ip_address": {"type": "string", "x-tl-type": "string"}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.10?bytes"}}, "required": ["_", "id", "ip_address", "port"], "additionalProperties": false}, "config": {"title": "config", "description": "現在の構成", "externalDocs": {"url": "https://core.telegram.org/constructor/config"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["config"]}, "default_p2p_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "クライアントが連絡先との通話にデフォルトで P2P を使用するかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "preload_featured_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "クライアントが注目のステッカーをプリロードする必要があるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "revoke_pm_inbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "受信したプライベート メッセージを両方の参加者に対して削除できるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "blocked_mode": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Indicates that telegram is *probably* censored by governments/ISPs in the current region", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "force_try_ipv6": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "クライアントが IPv4 が利用可能であることを知っている場合でも、IPv6 [dcOptions](https://core.telegram.org/type/DcOption.md)] を使用して強制的に接続するかどうか。", "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: DcOption."}, "x-tl-type": "Vector<DcOption>", "description": "DC IP リスト", "x-telegram-field-docs": true}, "dc_txt_domain_name": {"type": "string", "x-tl-type": "string", "description": "DNS TXT レコードから暗号化された DC リストを取得するためのドメイン名", "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": "ダウンロードに使用する DC ID [webfiles](https://core.telegram.org/api/files.md#downloading-webfiles)]", "x-telegram-field-docs": true}, "suggested_lang_code": {"type": "string", "x-tl-type": "string", "description": "推奨される言語コード", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "lang_pack_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "言語パックのバージョン", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "base_lang_pack_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "基本言語パックのバージョン", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "reactions_default": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "デフォルト [メッセージ反応](https://core.telegram.org/api/reactions.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?Reaction"}, "autologin_token": {"type": "string", "x-tl-type": "string", "description": "自動ログイン トークン、[URL 認証の詳細については、ここをクリックしてください »](https://core.telegram.org/api/url-authorization.md#link-url-authorization)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.16?string"}}, "required": ["_", "date", "expires", "test_mode", "this_dc", "dc_options", "dc_txt_domain_name", "chat_size_max", "megagroup_size_max", "forwarded_count_max", "online_update_period_ms", "offline_blur_timeout_ms", "offline_idle_timeout_ms", "online_cloud_timeout_ms", "notify_cloud_delay_ms", "notify_default_delay_ms", "push_chat_period_ms", "push_chat_limit", "edit_time_limit", "revoke_time_limit", "revoke_pm_time_limit", "rating_e_decay", "stickers_recent_limit", "channels_read_media_period", "call_receive_timeout_ms", "call_ring_timeout_ms", "call_connect_timeout_ms", "call_packet_timeout_ms", "me_url_prefix", "caption_length_max", "message_length_max", "webfile_dc_id"], "additionalProperties": false}, "nearestDc": {"title": "nearestDc", "description": "geo-ip によると、最寄りのデータセンター。", "externalDocs": {"url": "https://core.telegram.org/constructor/nearestDc"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["nearestDc"]}, "country": {"type": "string", "x-tl-type": "string", "description": "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "アプリケーションバイナリ", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Document"}, "url": {"type": "string", "x-tl-type": "string", "description": "アプリケーションのダウンロード URL", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "sticker": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "関連ステッカー", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Document"}}, "required": ["_", "id", "version", "text", "entities"], "additionalProperties": false}, "help.noAppUpdate": {"title": "help.noAppUpdate", "description": "アプリケーションに利用可能なアップデートはありません。", "externalDocs": {"url": "https://core.telegram.org/constructor/help.noAppUpdate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.noAppUpdate"]}}, "required": ["_"], "additionalProperties": false}, "help.inviteText": {"title": "help.inviteText", "description": "Telegram のインストールへの招待を含むテキスト メッセージのテキスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/help.inviteText"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.inviteText"]}, "message": {"type": "string", "x-tl-type": "string", "description": "メッセージの本文", "x-telegram-field-docs": true}}, "required": ["_", "message"], "additionalProperties": false}, "encryptedChatEmpty": {"title": "encryptedChatEmpty", "description": "空のコンストラクター。", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatEmpty"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャットID", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "encryptedChatWaiting": {"title": "encryptedChatWaiting", "description": "2 人目の参加者の承認を待っているチャット。", "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": "2 番目のチャット参加者の ID", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id"], "additionalProperties": false}, "encryptedChatRequested": {"title": "encryptedChatRequested", "description": "暗号化されたチャットの作成をリクエストします。", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatRequested"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatRequested"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ピアフォルダー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": "2 番目のチャット参加者の 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`、[Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)] を参照", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a"], "additionalProperties": false}, "encryptedChat": {"title": "encryptedChat", "description": "暗号化されたチャット", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChat"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャット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": "2 番目のチャット参加者の 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` それ以外の場合は、[Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)] を参照してください。", "x-telegram-field-docs": true}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "受信したキーの 64 ビットのフィンガープリント", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_or_b", "key_fingerprint"], "additionalProperties": false}, "encryptedChatDiscarded": {"title": "encryptedChatDiscarded", "description": "チャットが破棄または削除されました。", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedChatDiscarded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedChatDiscarded"]}, "history_deleted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "この秘密チャットの両方のユーザーがそのメッセージをすべて削除する必要があるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャットID", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputEncryptedChat": {"title": "inputEncryptedChat", "description": "[e2e 暗号化チャット](https://core.telegram.org/api/end-to-end.md)。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedChat"]}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャット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": "encryptedFileEmpty", "description": "空のコンストラクター、存在しないファイル。", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "encryptedFile": {"title": "encryptedFile", "description": "暗号化されたファイル。", "externalDocs": {"url": "https://core.telegram.org/constructor/encryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "ファイルID", "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": "inputEncryptedFileEmpty", "description": "空のコンストラクター。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputEncryptedFileUploaded": {"title": "inputEncryptedFileUploaded", "description": "upload.saveFilePart メソッドを使用して、パーツによって保存された新しい暗号化ファイルを設定します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFileUploaded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFileUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "クライアントが作成したランダムなファイル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": "inputEncryptedFile", "description": "転送される暗号化ファイルを添付ファイルとして設定します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEncryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEncryptedFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "ファイル ID、[encryptedFile](https://core.telegram.org/constructor/encryptedFile.md)] の **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": "inputEncryptedFileBigUploaded", "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": "encryptedMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedMessage"]}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "file": {"type": "object", "x-tl-type": "EncryptedFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty", "encryptedFile"]}}, "description": "TL Type: EncryptedFile."}}, "required": ["_", "random_id", "chat_id", "date", "bytes", "file"], "additionalProperties": false}, "encryptedMessageService": {"title": "encryptedMessageService", "type": "object", "properties": {"_": {"type": "string", "enum": ["encryptedMessageService"]}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bytes": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "random_id", "chat_id", "date", "bytes"], "additionalProperties": false}, "messages.dhConfigNotModified": {"title": "messages.dhConfigNotModified", "description": "設定パラメータは変更されませんでした。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dhConfigNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dhConfigNotModified"]}, "random": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "割り当てられた長さのバイトのランダムなシーケンス", "x-telegram-field-docs": true}}, "required": ["_", "random"], "additionalProperties": false}, "messages.dhConfig": {"title": "messages.dhConfig", "description": "新しい設定パラメータのセット。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dhConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dhConfig"]}, "g": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "新しい値 **原始ルート**、[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": "新しい値 **プライム**、[Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange)] を参照", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "パラメータセットのバージョン", "x-telegram-field-docs": true}, "random": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "割り当てられた長さのバイトのランダムなシーケンス", "x-telegram-field-docs": true}}, "required": ["_", "g", "p", "version", "random"], "additionalProperties": false}, "messages.sentEncryptedMessage": {"title": "messages.sentEncryptedMessage", "description": "添付ファイルのないメッセージが暗号化されたファイルに送信されました。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sentEncryptedMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sentEncryptedMessage"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "送信日", "x-telegram-field-docs": true}}, "required": ["_", "date"], "additionalProperties": false}, "messages.sentEncryptedFile": {"title": "messages.sentEncryptedFile", "description": "ファイル同封物を含むメッセージが保護されたチャットに送信される", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sentEncryptedFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sentEncryptedFile"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "送信日", "x-telegram-field-docs": true}, "file": {"type": "object", "x-tl-type": "EncryptedFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["encryptedFileEmpty", "encryptedFile"]}}, "description": "添付ファイル", "x-telegram-field-docs": true}}, "required": ["_", "date", "file"], "additionalProperties": false}, "inputDocumentEmpty": {"title": "inputDocumentEmpty", "description": "空のコンストラクター。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocumentEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputDocument": {"title": "inputDocument", "description": "後続の対話のためのドキュメントを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDocument"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "文書ID", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[document](https://core.telegram.org/constructor/document.md) コンストラクターの **access_hash** パラメーター", "x-tl-type": "long", "x-telegram-field-docs": true}, "file_reference": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "【ファイル参照](https://core.telegram.org/api/file-references.md)】", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference"], "additionalProperties": false}, "documentEmpty": {"title": "documentEmpty", "description": "空のコンストラクターです。ドキュメントが存在しません。", "externalDocs": {"url": "https://core.telegram.org/constructor/documentEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["documentEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "文書 ID または `0`", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "document": {"title": "document", "description": "文書", "externalDocs": {"url": "https://core.telegram.org/constructor/document"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["document"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "文書ID", "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: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>", "description": "サムネイル", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<PhotoSize>"}, "video_thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "VideoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["videoSize", "videoSizeEmojiMarkup", "videoSizeStickerMarkup"]}}, "description": "Тип TL: VideoSize."}, "x-tl-type": "Vector<VideoSize>", "description": "ビデオのサムネイル", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<VideoSize>"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "DC 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: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>", "description": "属性", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash", "file_reference", "date", "mime_type", "size", "dc_id", "attributes"], "additionalProperties": false}, "help.support": {"title": "help.support", "description": "サポートユーザーの情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/help.support"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.support"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "電話番号", "x-telegram-field-docs": true}, "user": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "user"], "additionalProperties": false}, "notifyPeer": {"title": "notifyPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "notifyUsers": {"title": "notifyUsers", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyUsers"]}}, "required": ["_"], "additionalProperties": false}, "notifyChats": {"title": "notifyChats", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyChats"]}}, "required": ["_"], "additionalProperties": false}, "notifyBroadcasts": {"title": "notifyBroadcasts", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyBroadcasts"]}}, "required": ["_"], "additionalProperties": false}, "notifyForumTopic": {"title": "notifyForumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyForumTopic"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "top_msg_id"], "additionalProperties": false}, "notifyCommunity": {"title": "notifyCommunity", "type": "object", "properties": {"_": {"type": "string", "enum": ["notifyCommunity"]}, "community_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "community_id"], "additionalProperties": false}, "sendMessageTypingAction": {"title": "sendMessageTypingAction", "description": "ユーザーが入力しています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageTypingAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageTypingAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageCancelAction": {"title": "sendMessageCancelAction", "description": "以前のすべてのアクションの更新を無効にします。 E.g。ユーザーが入力したテキストを削除するか、ビデオのアップロードを中止したとき。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageCancelAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageCancelAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageRecordVideoAction": {"title": "sendMessageRecordVideoAction", "description": "ユーザーがビデオを録画しています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageRecordVideoAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRecordVideoAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageUploadVideoAction": {"title": "sendMessageUploadVideoAction", "description": "ユーザーがビデオをアップロードしています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadVideoAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadVideoAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "進捗率", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageRecordAudioAction": {"title": "sendMessageRecordAudioAction", "description": "ユーザーが音声メッセージを録音しています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageRecordAudioAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRecordAudioAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageUploadAudioAction": {"title": "sendMessageUploadAudioAction", "description": "ユーザーが音声メッセージをアップロードしています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadAudioAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadAudioAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "進捗率", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageUploadPhotoAction": {"title": "sendMessageUploadPhotoAction", "description": "ユーザーが写真をアップロードしています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadPhotoAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadPhotoAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "進捗率", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageUploadDocumentAction": {"title": "sendMessageUploadDocumentAction", "description": "ユーザーがファイルをアップロードしています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadDocumentAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadDocumentAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "進捗率", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageGeoLocationAction": {"title": "sendMessageGeoLocationAction", "description": "ユーザーは共有する場所を選択しています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageGeoLocationAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageGeoLocationAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageChooseContactAction": {"title": "sendMessageChooseContactAction", "description": "ユーザーは共有する連絡先を選択しています。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageChooseContactAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageChooseContactAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageGamePlayAction": {"title": "sendMessageGamePlayAction", "description": "ユーザーがゲームをプレイしています", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageGamePlayAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageGamePlayAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageRecordRoundAction": {"title": "sendMessageRecordRoundAction", "description": "ユーザーは共有するためにラウンドビデオを録画しています\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageRecordRoundAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageRecordRoundAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageUploadRoundAction": {"title": "sendMessageUploadRoundAction", "description": "ユーザーがラウンドビデオをアップロードしています\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageUploadRoundAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageUploadRoundAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "進捗率", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "speakingInGroupCallAction": {"title": "speakingInGroupCallAction", "description": "ユーザーは現在グループ通話で話しています", "externalDocs": {"url": "https://core.telegram.org/constructor/speakingInGroupCallAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["speakingInGroupCallAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageHistoryImportAction": {"title": "sendMessageHistoryImportAction", "description": "チャット履歴をインポート中です", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageHistoryImportAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageHistoryImportAction"]}, "progress": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "進捗率", "x-telegram-field-docs": true}}, "required": ["_", "progress"], "additionalProperties": false}, "sendMessageChooseStickerAction": {"title": "sendMessageChooseStickerAction", "description": "ユーザーがステッカーを選択しています", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageChooseStickerAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageChooseStickerAction"]}}, "required": ["_"], "additionalProperties": false}, "sendMessageEmojiInteraction": {"title": "sendMessageEmojiInteraction", "description": "ユーザーがアニメーション絵文字をクリックすると、[反応、詳細についてはここをクリックしてください »](https://core.telegram.org/api/animated-emojis.md#emoji-reactions)。", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageEmojiInteraction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageEmojiInteraction"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "絵文字", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クリックされたアニメーション絵文字のメッセージ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": "sendMessageEmojiInteractionSeen", "description": "ユーザーは、別のユーザーによってトリガーされたアニメーション絵文字の反応を見ています。[詳細については、ここをクリックしてください »](https://core.telegram.org/api/animated-emojis.md#emoji-reactions)。", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageEmojiInteractionSeen"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageEmojiInteractionSeen"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "絵文字", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "sendMessageTextDraftAction": {"title": "sendMessageTextDraftAction", "description": "[ライブ メッセージ ストリーミング »](https://core.telegram.org/api/bots/ai.md#live-response-streaming)] を実装するためにボットによって使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/sendMessageTextDraftAction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["sendMessageTextDraftAction"]}, "can_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "keep_on_stop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ライブ ドラフト 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 Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "パーソナライズされた結果", "x-telegram-field-docs": true}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "見つかったユーザー識別子のリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャットが見つかりました", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー一覧", "x-telegram-field-docs": true}}, "required": ["_", "my_results", "results", "chats", "users"], "additionalProperties": false}, "inputPrivacyKeyStatusTimestamp": {"title": "inputPrivacyKeyStatusTimestamp", "description": "人々が正確な最後のオンライン タイムスタンプを確認できるかどうか。\n\n*当社が、正確な最後のオンライン タイムスタンプを誰か (i.e、ユーザー A、B、C、またはすべてのユーザー) に隠すことにした場合、**かつ** [Premium](https://core.telegram.org/api/premium.md)] サブスクリプションを持っていない場合、それらのユーザー (A、B、C、またはすべてのユーザー) の正確な最後のオンライン タイムスタンプを、たとえそれらのユーザーが私たちと * 共有していたとしても、見ることができないことに注意してください。\n\nこれらのユーザーが正確なオンライン ステータスを *共有している*ものの、上記の理由によりそれを確認できない場合、[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": "inputPrivacyKeyChatInvite", "description": "他の人があなたをチャットに招待できるかどうか", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyChatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyChatInvite"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneCall": {"title": "inputPrivacyKeyPhoneCall", "description": "電話を受け付けるかどうか", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneCall"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneP2P": {"title": "inputPrivacyKeyPhoneP2P", "description": "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": "inputPrivacyKeyForwards", "description": "あなたから転送されるメッセージが [匿名](https://telegram.org/blog/unsend-privacy-emoji#anonymous-forwarding)] になるかどうか", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyForwards"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyForwards"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyProfilePhoto": {"title": "inputPrivacyKeyProfilePhoto", "description": "あなたのプロフィール写真を他の人が見ることができるかどうか", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyProfilePhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyProfilePhoto"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyPhoneNumber": {"title": "inputPrivacyKeyPhoneNumber", "description": "他の人があなたの電話番号を閲覧できるかどうか", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyPhoneNumber"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyPhoneNumber"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyAddedByPhone": {"title": "inputPrivacyKeyAddedByPhone", "description": "他のユーザーがあなたの電話番号を使用してあなたを連絡先リストに追加できるかどうか", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAddedByPhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAddedByPhone"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyVoiceMessages": {"title": "inputPrivacyKeyVoiceMessages", "description": "他のユーザーがあなたに音声メッセージやラウンドビデオを送信できるかどうか ([Premium](https://core.telegram.org/api/premium.md) ユーザーのみ)]。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyVoiceMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyVoiceMessages"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyAbout": {"title": "inputPrivacyKeyAbout", "description": "あなたのプロフィールを他の人が見ることができるかどうか", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyAbout"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyAbout"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyBirthday": {"title": "inputPrivacyKeyBirthday", "description": "ユーザーが誕生日を確認できるかどうか。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyBirthday"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyBirthday"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyStarGiftsAutoSave": {"title": "inputPrivacyKeyStarGiftsAutoSave", "description": "受け取ったかどうか[ギフト](https://core.telegram.org/api/gifts.md)はプロフィールに自動的に表示されます]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyStarGiftsAutoSave"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyStarGiftsAutoSave"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeyNoPaidMessages": {"title": "inputPrivacyKeyNoPaidMessages", "description": "[有料メッセージ »](https://core.telegram.org/api/paid-messages.md) が有効になっている場合、料金を支払わずにメッセージを送信できる人。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeyNoPaidMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeyNoPaidMessages"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyKeySavedMusic": {"title": "inputPrivacyKeySavedMusic", "description": "ユーザーが [プロフィールに固定した曲 »](https://core.telegram.org/api/profile.md#music)] を閲覧できるかどうか。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyKeySavedMusic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyKeySavedMusic"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyStatusTimestamp": {"title": "privacyKeyStatusTimestamp", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyStatusTimestamp"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyChatInvite": {"title": "privacyKeyChatInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyChatInvite"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneCall": {"title": "privacyKeyPhoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneCall"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneP2P": {"title": "privacyKeyPhoneP2P", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneP2P"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyForwards": {"title": "privacyKeyForwards", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyForwards"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyProfilePhoto": {"title": "privacyKeyProfilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyProfilePhoto"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyPhoneNumber": {"title": "privacyKeyPhoneNumber", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyPhoneNumber"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyAddedByPhone": {"title": "privacyKeyAddedByPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyAddedByPhone"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyVoiceMessages": {"title": "privacyKeyVoiceMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyVoiceMessages"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyAbout": {"title": "privacyKeyAbout", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyAbout"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyBirthday": {"title": "privacyKeyBirthday", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyBirthday"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyStarGiftsAutoSave": {"title": "privacyKeyStarGiftsAutoSave", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyStarGiftsAutoSave"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeyNoPaidMessages": {"title": "privacyKeyNoPaidMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeyNoPaidMessages"]}}, "required": ["_"], "additionalProperties": false}, "privacyKeySavedMusic": {"title": "privacyKeySavedMusic", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyKeySavedMusic"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowContacts": {"title": "inputPrivacyValueAllowContacts", "description": "連絡先のみを許可する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowAll": {"title": "inputPrivacyValueAllowAll", "description": "すべてのユーザーを許可する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowAll"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowUsers": {"title": "inputPrivacyValueAllowUsers", "description": "特定のユーザーのみを許可する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowUsers"]}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "許可されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "inputPrivacyValueDisallowContacts": {"title": "inputPrivacyValueDisallowContacts", "description": "連絡先のみを禁止する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowContacts"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueDisallowAll": {"title": "inputPrivacyValueDisallowAll", "description": "すべてを禁止する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowAll"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueDisallowUsers": {"title": "inputPrivacyValueDisallowUsers", "description": "特定のユーザーのみを禁止する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowUsers"]}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "禁止するユーザー", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "inputPrivacyValueAllowChatParticipants": {"title": "inputPrivacyValueAllowChatParticipants", "description": "特定のチャットの参加者のみを許可する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowChatParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "許可されたチャット ID ([チャット](https://core.telegram.org/constructor/chat.md) または [スーパーグループ](https://core.telegram.org/constructor/channel.md) ID、コンストラクターで受け取られる方法そのまま) (i.e。ボット API ID とは異なり、ここではグループ ID とスーパーグループ ID は同じように扱われる必要があります))。", "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 ([チャット](https://core.telegram.org/constructor/chat.md) または [スーパーグループ](https://core.telegram.org/constructor/channel.md) ID、コンストラクターで受け取られる方法をそのまま使用します (i.e。ボット API ID とは異なり、ここではグループ 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": "inputPrivacyValueAllowPremium", "description": "[プレミアム サブスクリプション »](https://core.telegram.org/api/premium.md) を持つユーザーのみを許可します。現在は [inputPrivacyKeyChatInvite](https://core.telegram.org/constructor/inputPrivacyKeyChatInvite.md)] でのみ使用可能です。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowPremium"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowPremium"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueAllowBots": {"title": "inputPrivacyValueAllowBots", "description": "ボットとミニアプリを許可する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueAllowBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueAllowBots"]}}, "required": ["_"], "additionalProperties": false}, "inputPrivacyValueDisallowBots": {"title": "inputPrivacyValueDisallowBots", "description": "ボットとミニアプリを禁止する", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPrivacyValueDisallowBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPrivacyValueDisallowBots"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowContacts": {"title": "privacyValueAllowContacts", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowAll": {"title": "privacyValueAllowAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowAll"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowUsers": {"title": "privacyValueAllowUsers", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowUsers"]}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "users"], "additionalProperties": false}, "privacyValueDisallowContacts": {"title": "privacyValueDisallowContacts", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowContacts"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowAll": {"title": "privacyValueDisallowAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowAll"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowUsers": {"title": "privacyValueDisallowUsers", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowUsers"]}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "users"], "additionalProperties": false}, "privacyValueAllowChatParticipants": {"title": "privacyValueAllowChatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "chats"], "additionalProperties": false}, "privacyValueDisallowChatParticipants": {"title": "privacyValueDisallowChatParticipants", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowChatParticipants"]}, "chats": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "chats"], "additionalProperties": false}, "privacyValueAllowCloseFriends": {"title": "privacyValueAllowCloseFriends", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowCloseFriends"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowPremium": {"title": "privacyValueAllowPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowPremium"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueAllowBots": {"title": "privacyValueAllowBots", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueAllowBots"]}}, "required": ["_"], "additionalProperties": false}, "privacyValueDisallowBots": {"title": "privacyValueDisallowBots", "type": "object", "properties": {"_": {"type": "string", "enum": ["privacyValueDisallowBots"]}}, "required": ["_"], "additionalProperties": false}, "account.privacyRules": {"title": "account.privacyRules", "description": "プライバシー規則", "externalDocs": {"url": "https://core.telegram.org/constructor/account.privacyRules"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.privacyRules"]}, "rules": {"type": "array", "items": {"type": "object", "x-tl-type": "PrivacyRule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts", "privacyValueAllowAll", "privacyValueAllowUsers", "privacyValueDisallowContacts", "privacyValueDisallowAll", "privacyValueDisallowUsers", "privacyValueAllowChatParticipants", "privacyValueDisallowChatParticipants", "privacyValueAllowCloseFriends", "privacyValueAllowPremium", "privacyValueAllowBots", "privacyValueDisallowBots"]}}, "description": "Тип TL: PrivacyRule."}, "x-tl-type": "Vector<PrivacyRule>", "description": "プライバシー規則", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ルールが適用されるチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ルールが適用されるユーザー", "x-telegram-field-docs": true}}, "required": ["_", "rules", "chats", "users"], "additionalProperties": false}, "accountDaysTTL": {"title": "accountDaysTTL", "description": "現在のアカウントの生存期間 (日数)", "externalDocs": {"url": "https://core.telegram.org/constructor/accountDaysTTL"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["accountDaysTTL"]}, "days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "このアカウントは指定された日数が経過すると自動的に破棄されます", "x-telegram-field-docs": true}}, "required": ["_", "days"], "additionalProperties": false}, "documentAttributeImageSize": {"title": "documentAttributeImageSize", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize"]}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "w", "h"], "additionalProperties": false}, "documentAttributeAnimated": {"title": "documentAttributeAnimated", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeAnimated"]}}, "required": ["_"], "additionalProperties": false}, "documentAttributeSticker": {"title": "documentAttributeSticker", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeSticker"]}, "mask": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "alt": {"type": "string", "x-tl-type": "string"}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "TL Type: InputStickerSet."}, "mask_coords": {"type": "object", "x-tl-type": "MaskCoords", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["maskCoords"]}}, "description": "Тип TL: MaskCoords.", "x-tl-flag": "flags.0?MaskCoords"}}, "required": ["_", "alt", "stickerset"], "additionalProperties": false}, "documentAttributeVideo": {"title": "documentAttributeVideo", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeVideo"]}, "round_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "supports_streaming": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "nosound": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "duration": {"type": "number", "format": "double", "x-tl-type": "double"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "preload_prefix_size": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.4?double"}, "video_codec": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}}, "required": ["_", "duration", "w", "h"], "additionalProperties": false}, "documentAttributeAudio": {"title": "documentAttributeAudio", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeAudio"]}, "voice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "performer": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "waveform": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.2?bytes"}}, "required": ["_", "duration"], "additionalProperties": false}, "documentAttributeFilename": {"title": "documentAttributeFilename", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeFilename"]}, "file_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "file_name"], "additionalProperties": false}, "documentAttributeHasStickers": {"title": "documentAttributeHasStickers", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeHasStickers"]}}, "required": ["_"], "additionalProperties": false}, "documentAttributeCustomEmoji": {"title": "documentAttributeCustomEmoji", "type": "object", "properties": {"_": {"type": "string", "enum": ["documentAttributeCustomEmoji"]}, "free": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "alt": {"type": "string", "x-tl-type": "string"}, "stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "TL Type: 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 Type: Document."}, "x-tl-type": "Vector<Document>", "description": "ステッカー", "x-telegram-field-docs": true}}, "required": ["_", "hash", "stickers"], "additionalProperties": false}, "stickerPack": {"title": "stickerPack", "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerPack"]}, "emoticon": {"type": "string", "x-tl-type": "string"}, "documents": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}}, "required": ["_", "emoticon", "documents"], "additionalProperties": false}, "messages.allStickersNotModified": {"title": "messages.allStickersNotModified", "description": "インストールされているすべてのステッカーに関する情報は変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.allStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.allStickersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.allStickers": {"title": "messages.allStickers", "description": "インストールされているすべてのステッカーに関する情報", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.allStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.allStickers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "Тип TL: StickerSet."}, "x-tl-type": "Vector<StickerSet>", "description": "すべてのステッカーセット", "x-telegram-field-docs": true}}, "required": ["_", "hash", "sets"], "additionalProperties": false}, "messages.affectedMessages": {"title": "messages.affectedMessages", "description": "運用の影響を受けるイベント", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.affectedMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.affectedMessages"]}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[生成後のイベント数](https://core.telegram.org/api/updates.md)]", "x-telegram-field-docs": true}, "pts_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "【発生したイベント数](https://core.telegram.org/api/updates.md)】", "x-telegram-field-docs": true}}, "required": ["_", "pts", "pts_count"], "additionalProperties": false}, "webPageEmpty": {"title": "webPageEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "id"], "additionalProperties": false}, "webPagePending": {"title": "webPagePending", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPagePending"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "date"], "additionalProperties": false}, "webPage": {"title": "webPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPage"]}, "has_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "video_cover_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "url": {"type": "string", "x-tl-type": "string"}, "display_url": {"type": "string", "x-tl-type": "string"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "site_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.4?Photo"}, "embed_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "embed_type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "embed_width": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "embed_height": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.6?int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.7?int"}, "author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.8?string"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.9?Document"}, "cached_page": {"type": "object", "x-tl-type": "Page", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["page"]}}, "description": "Тип TL: Page.", "x-tl-flag": "flags.10?Page"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "WebPageAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webPageAttributeTheme", "webPageAttributeStory", "webPageAttributeStickerSet", "webPageAttributeUniqueStarGift", "webPageAttributeStarGiftCollection", "webPageAttributeStarGiftAuction", "webPageAttributeAiComposeTone"]}}, "description": "Тип TL: WebPageAttribute."}, "x-tl-type": "Vector<WebPageAttribute>", "x-tl-flag": "flags.12?Vector<WebPageAttribute>"}}, "required": ["_", "id", "url", "display_url", "hash"], "additionalProperties": false}, "webPageNotModified": {"title": "webPageNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageNotModified"]}, "cached_page_views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_"], "additionalProperties": false}, "authorization": {"title": "authorization", "description": "ログインセッション", "externalDocs": {"url": "https://core.telegram.org/constructor/authorization"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["authorization"]}, "current": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが現在のセッションであるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "official_app": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "セッションが公式アプリからのものかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "password_pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "セッションがまだ 2FA パスワードを待機しているかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "encrypted_requests_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このセッションが暗号化されたチャットを受け入れるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "call_requests_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このセッションが電話を受け付けるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "unconfirmed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "セッションが [未確認] かどうか、詳細については、こちら »](https://core.telegram.org/api/auth.md#confirming-login) を参照してください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "device_model": {"type": "string", "x-tl-type": "string", "description": "デバイスモデル", "x-telegram-field-docs": true}, "platform": {"type": "string", "x-tl-type": "string", "description": "プラットフォーム", "x-telegram-field-docs": true}, "system_version": {"type": "string", "x-tl-type": "string", "description": "システムバージョン", "x-telegram-field-docs": true}, "api_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[API ID](https://core.telegram.org/api/obtaining_api_id.md)]", "x-telegram-field-docs": true}, "app_name": {"type": "string", "x-tl-type": "string", "description": "アプリ名", "x-telegram-field-docs": true}, "app_version": {"type": "string", "x-tl-type": "string", "description": "アプリのバージョン", "x-telegram-field-docs": true}, "date_created": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "セッションが作成されたのはいつですか", "x-telegram-field-docs": true}, "date_active": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "セッションが最後にアクティブだったのはいつですか", "x-telegram-field-docs": true}, "ip": {"type": "string", "x-tl-type": "string", "description": "最後に知られたIP", "x-telegram-field-docs": true}, "country": {"type": "string", "x-tl-type": "string", "description": "IPから特定される国", "x-telegram-field-docs": true}, "region": {"type": "string", "x-tl-type": "string", "description": "IPから特定される地域", "x-telegram-field-docs": true}}, "required": ["_", "hash", "device_model", "platform", "system_version", "api_id", "app_name", "app_version", "date_created", "date_active", "ip", "country", "region"], "additionalProperties": false}, "account.authorizations": {"title": "account.authorizations", "description": "ログインセッション", "externalDocs": {"url": "https://core.telegram.org/constructor/account.authorizations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.authorizations"]}, "authorization_ttl_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "セッションの有効期間", "x-telegram-field-docs": true}, "authorizations": {"type": "array", "items": {"type": "object", "x-tl-type": "Authorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["authorization"]}}, "description": "TL Type: Authorization."}, "x-tl-type": "Vector<Authorization>", "description": "ログインセッション", "x-telegram-field-docs": true}}, "required": ["_", "authorization_ttl_days", "authorizations"], "additionalProperties": false}, "account.password": {"title": "account.password", "description": "2 要素認証の構成", "externalDocs": {"url": "https://core.telegram.org/constructor/account.password"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.password"]}, "has_recovery": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ユーザーが回復方法を構成しているかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "has_secure_values": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "テレグラム [パスポート](https://core.telegram.org/passport.md)] が有効かどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_password": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ユーザーがパスワードを持っているかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "current_algo": {"type": "object", "x-tl-type": "PasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown", "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}}, "description": "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 認証](https://core.telegram.org/api/srp.md)] の Srp B パラメータ", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?bytes"}, "srp_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[SRP 認証](https://core.telegram.org/api/srp.md)] の Srp ID パラメータ", "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": "The [KDF algorithm for SRP two-factor authentication](https://core.telegram.org/api/srp.md) to use when creating new passwords", "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": "指定された [パターン](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": "電報[パスポート](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": "電報[パスポート](https://core.telegram.org/passport.md)設定]", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?SecureSecretSettings"}}, "required": ["_"], "additionalProperties": false}, "auth.passwordRecovery": {"title": "auth.passwordRecovery", "description": "[2FA パスワード](https://core.telegram.org/api/srp.md)] の回復情報。[回復メールが設定されている](https://core.telegram.org/api/srp.md#email-verification)] を持つアカウントのみ。", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.passwordRecovery"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.passwordRecovery"]}, "email_pattern": {"type": "string", "x-tl-type": "string", "description": "リカバリ コードの送信先の電子メールは、この [パターン](https://core.telegram.org/api/pattern.md)] に一致する必要があります。", "x-telegram-field-docs": true}}, "required": ["_", "email_pattern"], "additionalProperties": false}, "receivedNotifyMessage": {"title": "receivedNotifyMessage", "description": "PUSH-通知がキャンセルされたメッセージ ID。", "externalDocs": {"url": "https://core.telegram.org/constructor/receivedNotifyMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["receivedNotifyMessage"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "PUSH-通知がキャンセルされたメッセージID", "x-telegram-field-docs": true}, "flags": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "将来の使用のために予約されています", "x-telegram-field-docs": true}}, "required": ["_", "id", "flags"], "additionalProperties": false}, "chatInviteExported": {"title": "chatInviteExported", "description": "エクスポートされたチャット招待", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInviteExported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteExported"]}, "revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このチャットへの招待が取り消されたかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "permanent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このチャット招待に有効期限がないかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "request_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "この招待リンクをインポートするユーザーがチャンネルまたはグループに参加するために承認が必要かどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "link": {"type": "string", "x-tl-type": "string", "description": "チャットへの招待リンク", "x-telegram-field-docs": true}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "このチャット招待を作成した管理者の 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": "chatInvitePublicJoinRequests", "description": "ユーザーがいつ [ディスカッション グループ](https://core.telegram.org/api/discussion.md#requiring-users-to-join-the-group)] への参加をリクエストしているか、参加しているかを示すために更新およびチャネル ログで使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvitePublicJoinRequests"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvitePublicJoinRequests"]}}, "required": ["_"], "additionalProperties": false}, "chatInviteAlready": {"title": "chatInviteAlready", "description": "ユーザーはすでにこのチャットに参加しています", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInviteAlready"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteAlready"]}, "chat": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "招待につながったチャット", "x-telegram-field-docs": true}}, "required": ["_", "chat"], "additionalProperties": false}, "chatInvite": {"title": "chatInvite", "description": "チャットの招待情報", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvite"]}, "channel": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが [チャンネル/スーパーグループ](https://core.telegram.org/api/channel.md)] であるか [通常のグループ](https://core.telegram.org/api/channel.md)] であるか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "broadcast": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが [チャンネル](https://core.telegram.org/api/channel.md)] かどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "public": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これがパブリックであるかどうか [チャンネル/スーパーグループ](https://core.telegram.org/api/channel.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "megagroup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが [スーパーグループ](https://core.telegram.org/api/channel.md)] であるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "request_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[参加リクエスト »](https://core.telegram.org/api/invites.md#join-requests) が最初に管理者によって承認される必要があるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "verified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このチャットまたはチャネルは Telegram によって検証されていますか?", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "scam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このチャットはおそらく詐欺です", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "fake": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、このチャットは多くのユーザーによって偽物または詐欺として報告されます。対話するときは注意してください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.9?true"}, "can_refulfill_subscription": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、ユーザーが関連する [Telegram Star サブスクリプション »](https://core.telegram.org/api/stars.md#star-subscriptions) の支払いをすでに行っており、有効期限がまだ切れていないため、支払いを繰り返さずに [messages.importChatInvite](https://core.telegram.org/method/messages.importChatInvite.md)] を使用してチャネルに再参加できることを示します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.11?true"}, "title": {"type": "string", "x-tl-type": "string", "description": "チャット/スーパーグループ/チャンネルタイトル", "x-telegram-field-docs": true}, "about": {"type": "string", "x-tl-type": "string", "description": "チャンネルグループの説明", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "チャット/スーパーグループ/チャンネル写真", "x-telegram-field-docs": true}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "参加者数", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "グループに参加している数名", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<User>"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "【プロフィールカラーパレット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": "chatInvitePeek", "description": "グループに参加せずにグループを覗いてメッセージを読むこともできるチャットへの招待。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatInvitePeek"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInvitePeek"]}, "chat": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "チャット情報", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "このグループへの読み取り専用の匿名アクセスは、この日付で取り消されます。", "x-telegram-field-docs": true}}, "required": ["_", "chat", "expires"], "additionalProperties": false}, "inputStickerSetEmpty": {"title": "inputStickerSetEmpty", "description": "空のコンストラクター\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetID": {"title": "inputStickerSetID", "description": "ID別スタンプセット", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetID"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "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}, "inputStickerSetShortName": {"title": "inputStickerSetShortName", "description": "[ステッカーセットのディープリンク »](https://core.telegram.org/api/links.md#stickerset-links) からの短い名前によるステッカーセット\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetShortName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetShortName"]}, "short_name": {"type": "string", "x-tl-type": "string", "description": "[ステッカーセットのディープリンク »](https://core.telegram.org/api/links.md#stickerset-links) からのショートネーム", "x-telegram-field-docs": true}}, "required": ["_", "short_name"], "additionalProperties": false}, "inputStickerSetAnimatedEmoji": {"title": "inputStickerSetAnimatedEmoji", "description": "アニメーション絵文字ステッカーセット", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetAnimatedEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetAnimatedEmoji"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetDice": {"title": "inputStickerSetDice", "description": "[アニメーションサイコロステッカー](https://core.telegram.org/api/dice.md)] を取得するために使用されます", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetDice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetDice"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "絵文字は、現時点では 🏀、🎲、🎯 がサポートされています", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputStickerSetAnimatedEmojiAnimations": {"title": "inputStickerSetAnimatedEmojiAnimations", "description": "アニメーション絵文字リアクション ステッカーセット (ユーザーが特定のアニメーション絵文字をクリックしたときに再生されるアニメーションが含まれています)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetAnimatedEmojiAnimations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetAnimatedEmojiAnimations"]}}, "required": ["_"], "additionalProperties": false}, "inputStickerSetPremiumGifts": {"title": "inputStickerSetPremiumGifts", "description": "ギフトされた Telegram プレミアム購読を受け取ったときに表示するステッカー", "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": "inputStickerSetTonGifts", "description": "TON ギフトステッカーセット。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetTonGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetTonGifts"]}}, "required": ["_"], "additionalProperties": false}, "stickerSet": {"title": "stickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSet"]}, "archived": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "official": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "masks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "channel_emoji_status": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "installed_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "short_name": {"type": "string", "x-tl-type": "string"}, "thumbs": {"type": "array", "items": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize."}, "x-tl-type": "Vector<PhotoSize>", "x-tl-flag": "flags.4?Vector<PhotoSize>"}, "thumb_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "thumb_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "thumb_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "access_hash", "title", "short_name", "count", "hash"], "additionalProperties": false}, "messages.stickerSet": {"title": "messages.stickerSet", "description": "ステッカーセットとその中のステッカー", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickerSet"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickerSet"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "ステッカーセット", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "ステッカーの絵文字情報", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerKeyword"]}}, "description": "Тип TL: StickerKeyword."}, "x-tl-type": "Vector<StickerKeyword>", "description": "ステッカーセット内の一部またはすべてのステッカーのキーワード。", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "ステッカーセットのステッカー", "x-telegram-field-docs": true}}, "required": ["_", "set", "packs", "keywords", "documents"], "additionalProperties": false}, "messages.stickerSetNotModified": {"title": "messages.stickerSetNotModified", "description": "ステッカーセットは変わっていない", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.stickerSetNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.stickerSetNotModified"]}}, "required": ["_"], "additionalProperties": false}, "botCommand": {"title": "botCommand", "description": "チャットで使用できるボットコマンドについて説明します。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommand"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommand"]}, "ephemeral": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "command": {"type": "string", "x-tl-type": "string", "description": "`/command` 名前", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "コマンドの説明", "x-telegram-field-docs": true}}, "required": ["_", "command", "description"], "additionalProperties": false}, "botInfo": {"title": "botInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInfo"]}, "has_preview_medias": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "description_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.4?Photo"}, "description_document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.5?Document"}, "commands": {"type": "array", "items": {"type": "object", "x-tl-type": "BotCommand", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botCommand"]}}, "description": "TL Type: 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 Type: BotMenuButton.", "x-tl-flag": "flags.3?BotMenuButton"}, "privacy_policy_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.7?string"}, "app_settings": {"type": "object", "x-tl-type": "BotAppSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botAppSettings"]}}, "description": "Тип TL: BotAppSettings.", "x-tl-flag": "flags.8?BotAppSettings"}, "verifier_settings": {"type": "object", "x-tl-type": "BotVerifierSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botVerifierSettings"]}}, "description": "Тип TL: BotVerifierSettings.", "x-tl-flag": "flags.9?BotVerifierSettings"}}, "required": ["_"], "additionalProperties": false}, "keyboardButton": {"title": "keyboardButton", "description": "ボットのキーボードボタン\n\n[返信キーボード](https://core.telegram.org/constructor/replyKeyboardMarkup.md)] でのみ利用可能です。\n\nこれを押すと、クライアントは現在のチャットにメッセージとして `text` を送信し、[replyKeyboardMarkup](https://core.telegram.org/constructor/replyKeyboardMarkup.md)] を添付したメッセージに返信する必要があります。", "externalDocs": {"url": "https://core.telegram.org/constructor/keyboardButton"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardButton"]}, "style": {"type": "object", "x-tl-type": "KeyboardButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButtonStyle"]}}, "description": "ボタン スタイル。ボタン スタイルの詳細については、[こちら »](https://core.telegram.org/api/bots/buttons.md#button-styles)] を参照してください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?KeyboardButtonStyle"}, "text": {"type": "string", "x-tl-type": "string", "description": "ボタンのテキスト", "x-telegram-field-docs": true}, "type": {"type": "object", "x-tl-type": "ButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["buttonTypeDefault", "buttonTypeRequestPhone", "buttonTypeRequestGeoLocation", "buttonTypeRequestPoll", "buttonTypeRequestPeer", "inputButtonTypeRequestPeer", "buttonTypeSimpleWebView"]}}, "description": "Тип TL: ButtonType."}}, "required": ["_", "text", "type"], "additionalProperties": false}, "keyboardButtonRow": {"title": "keyboardButtonRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardButtonRow"]}, "buttons": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButton"]}}, "description": "TL Type: KeyboardButton."}, "x-tl-type": "Vector<KeyboardButton>"}}, "required": ["_", "buttons"], "additionalProperties": false}, "replyKeyboardHide": {"title": "replyKeyboardHide", "description": "送信済み返信キーボードを非表示にする", "externalDocs": {"url": "https://core.telegram.org/constructor/replyKeyboardHide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide"]}, "selective": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "特定のユーザーのみのキーボードを削除する場合は、このフラグを使用します。ターゲット: 1) メッセージ オブジェクトのテキスト内で @メンションされたユーザー。 2) ボットのメッセージが返信である場合 (reply_to_message_id が付いている)、元のメッセージの送信者。  例: ユーザーが投票に投票すると、ボットは投票に応じて確認メッセージを返し、そのユーザーのキーボードを削除しますが、まだ投票していないユーザーには投票オプションを含むキーボードを表示したままになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}}, "required": ["_"], "additionalProperties": false}, "replyKeyboardForceReply": {"title": "replyKeyboardForceReply", "description": "ユーザーに返信を強制する", "externalDocs": {"url": "https://core.telegram.org/constructor/replyKeyboardForceReply"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyKeyboardForceReply"]}, "single_use": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "キーボードが使用されたらすぐに非表示にするようクライアントに要求します。キーボードは引き続き使用できますが、クライアントはチャットで通常の文字キーボードを自動的に表示します。ユーザーは入力フィールドの特別なボタンを押すと、カスタム キーボードを再度表示できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "selective": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "特定のユーザーのみにキーボードを表示したい場合は、このパラメーターを使用します。ターゲット: 1) メッセージ オブジェクトのテキスト内で @メンションされたユーザー。 2) ボットのメッセージが返信である場合 (reply_to_message_id がある)、元のメッセージの送信者。  例: ユーザーがボットの言語の変更をリクエストすると、ボットはキーボードでリクエストに応答し、新しい言語を選択します。グループ内の他のユーザーにはキーボードが表示されません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "placeholder": {"type": "string", "x-tl-type": "string", "description": "キーボードがアクティブなときに入力フィールドに表示されるプレースホルダー。 1 ～ 64 文字。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}}, "required": ["_"], "additionalProperties": false}, "replyKeyboardMarkup": {"title": "replyKeyboardMarkup", "description": "応答キーボードを表します", "externalDocs": {"url": "https://core.telegram.org/constructor/replyKeyboardMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyKeyboardMarkup"]}, "resize": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "最適にフィットするようにキーボードの垂直方向のサイズを変更するようにクライアントに要求します (e.g.、ボタンが 2 行しかない場合はキーボードを小さくします)。設定しない場合、カスタム キーボードは常にアプリの標準キーボードと同じ高さになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "single_use": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "キーボードが使用されたらすぐに非表示にするようクライアントに要求します。キーボードは引き続き使用できますが、クライアントはチャットで通常の文字キーボードを自動的に表示します。ユーザーは入力フィールドの特別なボタンを押すと、カスタム キーボードを再度表示できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "selective": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "特定のユーザーのみにキーボードを表示したい場合は、このパラメーターを使用します。ターゲット: 1) メッセージ オブジェクトのテキスト内で @メンションされたユーザー。 2) ボットのメッセージが返信である場合 (reply_to_message_id がある)、元のメッセージの送信者。  例: ユーザーがボットの言語の変更をリクエストすると、ボットはキーボードでリクエストに応答し、新しい言語を選択します。グループ内の他のユーザーにはキーボードが表示されません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "persistent": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "通常のキーボードが非表示になっている場合に、常にキーボードを表示するようにクライアントに要求します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "force_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardButtonRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButtonRow"]}}, "description": "Тип TL: KeyboardButtonRow."}, "x-tl-type": "Vector<KeyboardButtonRow>", "description": "ボタン列", "x-telegram-field-docs": true}, "placeholder": {"type": "string", "x-tl-type": "string", "description": "キーボードがアクティブなときに入力フィールドに表示されるプレースホルダー。 1 ～ 64 文字。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}}, "required": ["_", "rows"], "additionalProperties": false}, "replyInlineMarkup": {"title": "replyInlineMarkup", "description": "インラインキーボードを表します", "externalDocs": {"url": "https://core.telegram.org/constructor/replyInlineMarkup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["replyInlineMarkup"]}, "force_reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardInlineButtonRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardInlineButtonRow"]}}, "description": "Тип TL: KeyboardInlineButtonRow."}, "x-tl-type": "Vector<KeyboardInlineButtonRow>", "description": "ボットまたはインライン キーボードの行", "x-telegram-field-docs": true}}, "required": ["_", "rows"], "additionalProperties": false}, "messageEntityUnknown": {"title": "messageEntityUnknown", "description": "不明なメッセージ エンティティ\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUnknown"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityMention": {"title": "messageEntityMention", "description": "メッセージ エンティティ [`@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": "messageEntityHashtag", "description": "**\\#ハッシュタグ** メッセージ エンティティ\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityHashtag"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityHashtag"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBotCommand": {"title": "messageEntityBotCommand", "description": "ボット/コマンドを表すメッセージ エンティティ\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBotCommand"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBotCommand"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityUrl": {"title": "messageEntityUrl", "description": "Message entity representing an in-text url: <https://google.com>; for [text urls](https://google.com), use [messageEntityTextUrl](https://core.telegram.org/constructor/messageEntityTextUrl.md).\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUrl"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityEmail": {"title": "messageEntityEmail", "description": "<email@example.com> を表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityEmail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityEmail"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBold": {"title": "messageEntityBold", "description": "**太字**を表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBold"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBold"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityItalic": {"title": "messageEntityItalic", "description": "*斜体のテキスト*を表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityItalic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityItalic"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCode": {"title": "messageEntityCode", "description": "`codeblock` を表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCode"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityPre": {"title": "messageEntityPre", "description": "ユーザーがコードブロックのプログラミング言語を指定できるようにする、フォーマット済みの `codeblock` を表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityPre"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityPre"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "language": {"type": "string", "x-tl-type": "string", "description": "コードのプログラミング言語", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "language"], "additionalProperties": false}, "messageEntityTextUrl": {"title": "messageEntityTextUrl", "description": "Message entity representing a [text url](https://google.com): for in-text urls like <https://google.com> use [messageEntityUrl](https://core.telegram.org/constructor/messageEntityUrl.md).\n\nドメインが [ドメイン ホワイトリストのドキュメント »](https://core.telegram.org/api/config.md#whitelisted-domains) で指定されている条件を満たしていない限り、このリンクを開く前に、完全な URL を含む追加の確認ポップアップがユーザーに表示される必要があることに注意してください。\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": "messageEntityMentionName", "description": "[ユーザー メンション](https://core.telegram.org/api/mentions.md): メンションを *作成*するには、[inputMessageEntityMentionName](https://core.telegram.org/constructor/inputMessageEntityMentionName.md)] を使用するメッセージ エンティティ。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityMentionName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityMentionName"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "言及されたユーザーの識別子", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "user_id"], "additionalProperties": false}, "inputMessageEntityMentionName": {"title": "inputMessageEntityMentionName", "description": "ユーザーの作成に使用できるメッセージ エンティティ [ユーザー メンション](https://core.telegram.org/api/mentions.md): 受信したメンションでは、代わりに [messageEntityMentionName](https://core.telegram.org/constructor/messageEntityMentionName.md)] コンストラクターを使用します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageEntityMentionName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageEntityMentionName"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "言及されたユーザーの識別子", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "user_id"], "additionalProperties": false}, "messageEntityPhone": {"title": "messageEntityPhone", "description": "電話番号を表すメッセージ エンティティ。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityPhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityPhone"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCashtag": {"title": "messageEntityCashtag", "description": "**$cashtag** を表すメッセージ エンティティ。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityCashtag"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityCashtag"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityUnderline": {"title": "messageEntityUnderline", "description": "下線付きのテキストを表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityUnderline"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityUnderline"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityStrike": {"title": "messageEntityStrike", "description": "<del>取り消し線</del>テキストを表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityStrike"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityStrike"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityBankCard": {"title": "messageEntityBankCard", "description": "クレジットカード番号を示します", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBankCard"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBankCard"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntitySpoiler": {"title": "messageEntitySpoiler", "description": "スポイラーを表すメッセージ エンティティ\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntitySpoiler"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntitySpoiler"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityCustomEmoji": {"title": "messageEntityCustomEmoji", "description": "カスタム絵文字を表します。\nこのエンティティは、関連テキスト内で通常の絵文字 ([documentAttributeCustomEmoji](https://core.telegram.org/constructor/documentAttributeCustomEmoji.md).`alt`] に含まれる絵文字) を 1 つだけラップする必要があることに注意してください。ラップしない場合、サーバーはそれを無視します。\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": "messageEntityBlockquote", "description": "ブロック引用符を表すメッセージ エンティティ。\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityBlockquote"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityBlockquote"]}, "collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "引用符がデフォルトで折りたたまれているかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityFormattedDate": {"title": "messageEntityFormattedDate", "description": "特定の時点を表し、指定どおりにレンダリングされます [ここ »](https://core.telegram.org/api/entities.md#date-entities)\n\nすべてのフラグはオプションですが、次の制限があります。\n\n- `relative` は他のフラグと組み合わせることはできません\n- `short_time`と`long_time`を組み合わせることはできません\n- `short_date`と`long_date`を組み合わせることはできません\n\nいずれかのフラグを組み合わせると、テキスト内でのレンダリング順序は次のようになります。\n\n- `day_of_week`\n- `short_time`/`long_time`\n- `short_date`/`long_date`", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityFormattedDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityFormattedDate"]}, "relative": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、相対的な日付がレンダリングされます。詳細については、[こちら »](https://core.telegram.org/api/entities.md#date-entities) を参照してください。他のフラグと組み合わせることはできません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "short_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ユーザーのロケール設定に従って、時間を短い形式 (時と分) で表示します。 `long_time`との併用はできません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "long_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ユーザーのロケール設定に従って、時間を長い形式 (時、分、秒、および場合によってはタイムゾーン) で表示します。 `short_time`との併用はできません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "short_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "時刻を短い形式で表示します: 月、日、(現在と異なる場合は年も)、すべてユーザーのロケール設定に従います。 `long_date`との併用はできません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "long_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "時刻を長い形式で表示します。常に月、日、年がすべてユーザーのロケール設定に従って表示されます。 `short_date`との併用はできません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "day_of_week": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ユーザーのロケール設定に従って曜日をレンダリングします。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "UNIX タイムスタンプとしての日付: 許可される値の範囲は、`0` から現在の日付 + 1098 日 (`time()+1098*86400`) までです。", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "date"], "additionalProperties": false}, "messageEntityDiffInsert": {"title": "messageEntityDiffInsert", "description": "差分追加を表します。指定されたセクションに<u>下線を引き</u>、緑に色を付けるだけでレンダリングします。差分エンティティをレンダリングする方法の詳細については、[ここ »](https://core.telegram.org/api/entities.md#diff-entities) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffInsert"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffInsert"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityDiffReplace": {"title": "messageEntityDiffReplace", "description": "diff の置換を表し、次のようにレンダリングします。\n\n- テキストのオフセット `offset` に `old_text` を挿入し、 それに<u>下線</u>を付け、赤色で色付けします。この挿入は、その後に来るエンティティのオフセットには影響しないことに注意してください。\n- `offset` と `limit` で区切られたセクションに<u>下線</u>を付け、緑色で色付けします。\n\n異なるエンティティをレンダリングする方法の詳細については、[ここ »](https://core.telegram.org/api/entities.md#diff-entities) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffReplace"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffReplace"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "old_text": {"type": "string", "x-tl-type": "string", "description": "削除されたテキストの塊。", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length", "old_text"], "additionalProperties": false}, "messageEntityDiffDelete": {"title": "messageEntityDiffDelete", "description": "差分の削除を表します。指定されたセクションに<u>下線</u>を付け、赤色で色付けするだけでレンダリングします。差分エンティティをレンダリングする方法の詳細については、[ここ »](https://core.telegram.org/api/entities.md#diff-entities) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/messageEntityDiffDelete"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityDiffDelete"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティのオフセット ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ内のメッセージ エンティティの長さ ([UTF-16 コード単位](https://core.telegram.org/api/entities.md#entity-length))]", "x-telegram-field-docs": true}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "messageEntityTonAddress": {"title": "messageEntityTonAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageEntityTonAddress"]}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "offset", "length"], "additionalProperties": false}, "inputChannelEmpty": {"title": "inputChannelEmpty", "description": "チャネルが存在しないことを表します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannelEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChannel": {"title": "inputChannel", "description": "チャンネルを表します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannel"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "チャンネルID", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[channel](https://core.telegram.org/constructor/channel.md) コンストラクター] から取得したアクセス ハッシュ", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "channel_id", "access_hash"], "additionalProperties": false}, "inputChannelFromMessage": {"title": "inputChannelFromMessage", "description": "特定のチャットの特定のメッセージに表示された [min](https://core.telegram.org/api/min.md)] チャネルを定義します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChannelFromMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChannelFromMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "チャンネルが見られたチャット", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャネルが表示されたチャットのメッセージ 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: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "peer", "chats", "users"], "additionalProperties": false}, "messageRange": {"title": "messageRange", "description": "チャットメッセージの範囲を示します", "externalDocs": {"url": "https://core.telegram.org/constructor/messageRange"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messageRange"]}, "min_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "範囲の開始 (メッセージ 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": "渡された `pts` は古すぎます。指定された PTS から始まる 1 つ以上の更新が、このチャネルのメッセージ ボックスから削除されました。\n\nスーパーグループ/チャネルの場合、これは通常、`latestPts - 100000` より古い更新で発生します (ただし、この値に依存しないでください。これは変更される可能性があるサーバー側の実装の詳細であり、クライアントによって決して使用されるべきではありません)。", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.channelDifferenceTooLong"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.channelDifferenceTooLong"]}, "final": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "さらに取得する必要がある更新があるかどうか (常に設定)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クライアントは、タイムアウト秒が経過した後にチャネルの差分を再取得する必要があります", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.2?Vector<ForumTopic>"}, "dialog": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "チャネル状態のリセットに使用できる最新の [PTS](https://core.telegram.org/api/updates.md)] を含むダイアログ", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "最新のメッセージ (渡された `pts` から始まるのではなく、最新のメッセージのみ)。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "メッセージからのチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "メッセージからのユーザー", "x-telegram-field-docs": true}}, "required": ["_", "dialog", "messages", "chats", "users"], "additionalProperties": false}, "updates.channelDifference": {"title": "updates.channelDifference", "description": "新しいアップデート", "externalDocs": {"url": "https://core.telegram.org/constructor/updates.channelDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["updates.channelDifference"]}, "final": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "指定された `pts` から開始して、getDifference を使用して取得する更新がさらにあるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "次回アップデートの取得を開始する [PTS](https://core.telegram.org/api/updates.md)]", "x-telegram-field-docs": true}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ユーザーが [現在チャットを表示中。詳細については、こちら »](https://core.telegram.org/api/updates.md#subscribing-to-updates-of-channels-supergroups) を参照してください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.2?Vector<ForumTopic>"}, "new_messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "新しいメッセージ", "x-telegram-field-docs": true}, "other_updates": {"type": "array", "items": {"type": "object", "x-tl-type": "Update", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updateNewMessage", "updateMessageID", "updateDeleteMessages", "updateUserTyping", "updateChatUserTyping", "updateChatParticipants", "updateUserStatus", "updateUserName", "updateNewAuthorization", "updateNewEncryptedMessage", "updateEncryptedChatTyping", "updateEncryption", "updateEncryptedMessagesRead", "updateChatParticipantAdd", "updateChatParticipantDelete", "updateDcOptions", "updateNotifySettings", "updateServiceNotification", "updatePrivacy", "updateUserPhone", "updateReadHistoryInbox", "updateReadHistoryOutbox", "updateWebPage", "updateReadMessagesContents", "updateChannelTooLong", "updateChannel", "updateNewChannelMessage", "updateReadChannelInbox", "updateDeleteChannelMessages", "updateChannelMessageViews", "updateChatParticipantAdmin", "updateNewStickerSet", "updateStickerSetsOrder", "updateStickerSets", "updateSavedGifs", "updateBotInlineQuery", "updateBotInlineSend", "updateEditChannelMessage", "updateBotCallbackQuery", "updateEditMessage", "updateInlineBotCallbackQuery", "updateReadChannelOutbox", "updateDraftMessage", "updateReadFeaturedStickers", "updateRecentStickers", "updateConfig", "updatePtsChanged", "updateChannelWebPage", "updateDialogPinned", "updatePinnedDialogs", "updateBotWebhookJSON", "updateBotWebhookJSONQuery", "updateBotShippingQuery", "updateBotPrecheckoutQuery", "updatePhoneCall", "updateLangPackTooLong", "updateLangPack", "updateFavedStickers", "updateChannelReadMessagesContents", "updateContactsReset", "updateChannelAvailableMessages", "updateDialogUnreadMark", "updateMessagePoll", "updateChatDefaultBannedRights", "updateFolderPeers", "updatePeerSettings", "updatePeerLocated", "updateNewScheduledMessage", "updateDeleteScheduledMessages", "updateTheme", "updateGeoLiveViewed", "updateLoginToken", "updateMessagePollVote", "updateDialogFilter", "updateDialogFilterOrder", "updateDialogFilters", "updatePhoneCallSignalingData", "updateChannelMessageForwards", "updateReadChannelDiscussionInbox", "updateReadChannelDiscussionOutbox", "updatePeerBlocked", "updateChannelUserTyping", "updatePinnedMessages", "updatePinnedChannelMessages", "updateChat", "updateGroupCallParticipants", "updateGroupCall", "updatePeerHistoryTTL", "updateChatParticipant", "updateChannelParticipant", "updateBotStopped", "updateGroupCallConnection", "updateBotCommands", "updatePendingJoinRequests", "updateBotChatInviteRequester", "updateMessageReactions", "updateAttachMenuBots", "updateWebViewResultSent", "updateBotMenuButton", "updateSavedRingtones", "updateTranscribedAudio", "updateReadFeaturedEmojiStickers", "updateUserEmojiStatus", "updateRecentEmojiStatuses", "updateRecentReactions", "updateMoveStickerSetToTop", "updateMessageExtendedMedia", "updateUser", "updateAutoSaveSettings", "updateStory", "updateReadStories", "updateStoryID", "updateStoriesStealthMode", "updateSentStoryReaction", "updateBotChatBoost", "updateChannelViewForumAsMessages", "updatePeerWallpaper", "updateBotMessageReaction", "updateBotMessageReactions", "updateSavedDialogPinned", "updatePinnedSavedDialogs", "updateSavedReactionTags", "updateSmsJob", "updateQuickReplies", "updateNewQuickReply", "updateDeleteQuickReply", "updateQuickReplyMessage", "updateDeleteQuickReplyMessages", "updateBotBusinessConnect", "updateBotNewBusinessMessage", "updateBotEditBusinessMessage", "updateBotDeleteBusinessMessage", "updateNewStoryReaction", "updateStarsBalance", "updateBusinessBotCallbackQuery", "updateStarsRevenueStatus", "updateBotPurchasedPaidMedia", "updatePaidReactionPrivacy", "updateSentPhoneCode", "updateGroupCallChainBlocks", "updateReadMonoForumInbox", "updateReadMonoForumOutbox", "updateMonoForumNoPaidException", "updateGroupCallMessage", "updateGroupCallEncryptedMessage", "updatePinnedForumTopic", "updatePinnedForumTopics", "updateDeleteGroupCallMessages", "updateStarGiftAuctionState", "updateStarGiftAuctionUserState", "updateEmojiGameInfo", "updateStarGiftCraftFail", "updateChatParticipantRank", "updateManagedBot", "updateBotGuestChatQuery", "updateAiComposeTones", "updateJoinChatWebViewDecision", "updateNewBotConnection", "updateWebBrowserSettings", "updateWebBrowserException", "updateNewEphemeralMessage", "updateDeleteEphemeralMessages", "updateEditEphemeralMessage", "updateEphemeralBotCallbackQuery", "updateBotStarsSubscription", "updateWalletState", "updateSentWalletTransaction", "updateWalletGaslessInfo", "updateWalletTonConnectSession", "updateWalletTonConnectPendingDisconnect", "updateEditForumTopic", "updateBotWidgetQuery", "updateInlineBotWidgetQuery", "updateBotWidgetCopyQuery", "updateMessageWidgetData", "updateTranscribedAudioFile", "updateBotProfileWidgetQuery", "updateBotProfileWidgetData", "updateBotProfileWidget", "updateReadFeed"]}}, "description": "Тип TL: Update."}, "x-tl-type": "Vector<Update>", "description": "その他のアップデート", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "pts", "new_messages", "other_updates", "chats", "users"], "additionalProperties": false}, "channelMessagesFilterEmpty": {"title": "channelMessagesFilterEmpty", "description": "フィルターなし", "externalDocs": {"url": "https://core.telegram.org/constructor/channelMessagesFilterEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelMessagesFilterEmpty"]}}, "required": ["_"], "additionalProperties": false}, "channelMessagesFilter": {"title": "channelMessagesFilter", "description": "特定の種類のチャネル メッセージのみを取得するためのフィルター。\n\nこのフィルターを使用して、チャネル メッセージ ボックス サイズより古いメッセージをフェッチすることはできません。", "externalDocs": {"url": "https://core.telegram.org/constructor/channelMessagesFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelMessagesFilter"]}, "exclude_new_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "新しいメッセージを検索から除外するかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "ranges": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageRange", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageRange"]}}, "description": "TL Type: MessageRange."}, "x-tl-type": "Vector<MessageRange>", "description": "取得するメッセージの範囲", "x-telegram-field-docs": true}}, "required": ["_", "ranges"], "additionalProperties": false}, "channelParticipant": {"title": "channelParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipant"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "channelParticipantSelf": {"title": "channelParticipantSelf", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantSelf"]}, "via_request": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "subscription_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "user_id", "inviter_id", "date"], "additionalProperties": false}, "channelParticipantCreator": {"title": "channelParticipantCreator", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantCreator"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights."}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "admin_rights"], "additionalProperties": false}, "channelParticipantAdmin": {"title": "channelParticipantAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantAdmin"]}, "can_edit": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "self": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "inviter_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}, "promoted_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights."}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "user_id", "promoted_by", "date", "admin_rights"], "additionalProperties": false}, "channelParticipantBanned": {"title": "channelParticipantBanned", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantBanned"]}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "kicked_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}, "rank": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "peer", "kicked_by", "date", "banned_rights"], "additionalProperties": false}, "channelParticipantLeft": {"title": "channelParticipantLeft", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantLeft"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "channelParticipantsRecent": {"title": "channelParticipantsRecent", "description": "最近の参加者のみを取得する", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsRecent"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsRecent"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsAdmins": {"title": "channelParticipantsAdmins", "description": "管理者参加者のみを取得します", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsAdmins"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsAdmins"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsKicked": {"title": "channelParticipantsKicked", "description": "キックされた参加者のみを取得する", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsKicked"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsKicked"]}, "q": {"type": "string", "x-tl-type": "string", "description": "キックされた参加者を名前で検索するためのオプションのフィルター (それ以外の場合は空)", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsBots": {"title": "channelParticipantsBots", "description": "ボット参加者のみを取得する", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsBots"]}}, "required": ["_"], "additionalProperties": false}, "channelParticipantsBanned": {"title": "channelParticipantsBanned", "description": "禁止された参加者のみを取得する", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsBanned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsBanned"]}, "q": {"type": "string", "x-tl-type": "string", "description": "禁止された参加者を名前で検索するためのオプションのフィルター (それ以外の場合は空)", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsSearch": {"title": "channelParticipantsSearch", "description": "参加者を名前でクエリします", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsSearch"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsSearch"]}, "q": {"type": "string", "x-tl-type": "string", "description": "検索クエリ", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsContacts": {"title": "channelParticipantsContacts", "description": "連絡先でもある参加者のみを取得します", "externalDocs": {"url": "https://core.telegram.org/constructor/channelParticipantsContacts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelParticipantsContacts"]}, "q": {"type": "string", "x-tl-type": "string", "description": "連絡先の参加者を名前で検索するためのオプションの検索クエリ", "x-telegram-field-docs": true}}, "required": ["_", "q"], "additionalProperties": false}, "channelParticipantsMentions": {"title": "channelParticipantsMentions", "description": "このフィルターは、言及するスーパーグループ メンバーを探すときに使用されます。\nこのフィルターは、匿名の管理者を自動的に削除し、チャネルの [コメント セクション ](https://core.telegram.org/api/threads.md#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: ChannelParticipant."}, "x-tl-type": "Vector<ChannelParticipant>", "description": "参加者", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "参加者情報に記載されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "participants", "chats", "users"], "additionalProperties": false}, "channels.channelParticipantsNotModified": {"title": "channels.channelParticipantsNotModified", "description": "新しい参加者情報が見つかりませんでした", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.channelParticipantsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.channelParticipantsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "channels.channelParticipant": {"title": "channels.channelParticipant", "description": "チャネル参加者を表します", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.channelParticipant"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.channelParticipant"]}, "participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "チャンネル参加者", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "participant", "chats", "users"], "additionalProperties": false}, "help.termsOfService": {"title": "help.termsOfService", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.termsOfService"]}, "popup": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "id": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: 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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>"}, "min_age_confirm": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "id", "text", "entities"], "additionalProperties": false}, "messages.savedGifsNotModified": {"title": "messages.savedGifsNotModified", "description": "新しく保存された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": "保存されたGIF", "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 Type: Document."}, "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "inputBotInlineMessageText": {"title": "inputBotInlineMessageText", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageText"]}, "no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "inputBotInlineMessageMediaGeo": {"title": "inputBotInlineMessageMediaGeo", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaGeo"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Тип TL: InputGeoPoint."}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo_point"], "additionalProperties": false}, "inputBotInlineMessageMediaVenue": {"title": "inputBotInlineMessageMediaVenue", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaVenue"]}, "geo_point": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Тип TL: InputGeoPoint."}, "title": {"type": "string", "x-tl-type": "string"}, "address": {"type": "string", "x-tl-type": "string"}, "provider": {"type": "string", "x-tl-type": "string"}, "venue_id": {"type": "string", "x-tl-type": "string"}, "venue_type": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo_point", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "inputBotInlineMessageMediaContact": {"title": "inputBotInlineMessageMediaContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string"}, "first_name": {"type": "string", "x-tl-type": "string"}, "last_name": {"type": "string", "x-tl-type": "string"}, "vcard": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard"], "additionalProperties": false}, "inputBotInlineMessageGame": {"title": "inputBotInlineMessageGame", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageGame"]}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_"], "additionalProperties": false}, "inputBotInlineMessageMediaInvoice": {"title": "inputBotInlineMessageMediaInvoice", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaInvoice"]}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "InputWebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}}, "description": "Тип TL: InputWebDocument.", "x-tl-flag": "flags.0?InputWebDocument"}, "invoice": {"type": "object", "x-tl-type": "Invoice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["invoice"]}}, "description": "Тип TL: Invoice."}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "provider": {"type": "string", "x-tl-type": "string"}, "provider_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: DataJSON."}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "title", "description", "invoice", "payload", "provider", "provider_data"], "additionalProperties": false}, "inputBotInlineMessageMediaWebPage": {"title": "inputBotInlineMessageMediaWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaWebPage"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "optional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "url": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message", "url"], "additionalProperties": false}, "inputBotInlineMessageRichMessage": {"title": "inputBotInlineMessageRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageRichMessage"]}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "InputRichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichMessage", "inputRichMessageHTML", "inputRichMessageMarkdown"]}}, "description": "Тип TL: InputRichMessage."}}, "required": ["_", "rich_message"], "additionalProperties": false}, "inputBotInlineMessageWidget": {"title": "inputBotInlineMessageWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageWidget"]}, "allow_queries": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shared_widget": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "html": {"type": "string", "x-tl-type": "string"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.4?ReplyMarkup"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.5?Vector<MessageEntity>"}}, "required": ["_", "width", "height", "html", "message"], "additionalProperties": false}, "inputBotInlineMessageWidgetId": {"title": "inputBotInlineMessageWidgetId", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageWidgetId"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.1?ReplyMarkup"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.2?Vector<MessageEntity>"}}, "required": ["_", "widget_id", "message"], "additionalProperties": false}, "inputBotInlineResult": {"title": "inputBotInlineResult", "description": "インラインボットの結果", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResult"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResult"]}, "id": {"type": "string", "x-tl-type": "string", "description": "結果のID", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "結果のタイプ ([ボット API ドキュメント](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": "inputBotInlineResultPhoto", "description": "写真", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResultPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResultPhoto"]}, "id": {"type": "string", "x-tl-type": "string", "description": "結果ID", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "結果のタイプ ([ボット API ドキュメント](https://core.telegram.org/bots/api/types/inlinequeryresult.md)] を参照)", "x-telegram-field-docs": true}, "photo": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "送信する写真", "x-telegram-field-docs": true}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "結果が選択されたときに送信するメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "id", "type", "photo", "send_message"], "additionalProperties": false}, "inputBotInlineResultDocument": {"title": "inputBotInlineResultDocument", "description": "文書（写真を除くあらゆるタイプの媒体）", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResultDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResultDocument"]}, "id": {"type": "string", "x-tl-type": "string", "description": "結果ID", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "結果のタイプ ([ボット API ドキュメント](https://core.telegram.org/bots/api/types/inlinequeryresult.md)] を参照)", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "結果のタイトル", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "description": {"type": "string", "x-tl-type": "string", "description": "結果の説明", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "送付書類", "x-telegram-field-docs": true}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "結果が選択されたときに送信するメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "id", "type", "document", "send_message"], "additionalProperties": false}, "inputBotInlineResultGame": {"title": "inputBotInlineResultGame", "description": "ゲーム", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotInlineResultGame"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotInlineResultGame"]}, "id": {"type": "string", "x-tl-type": "string", "description": "結果ID", "x-telegram-field-docs": true}, "short_name": {"type": "string", "x-tl-type": "string", "description": "ゲームの略称", "x-telegram-field-docs": true}, "send_message": {"type": "object", "x-tl-type": "InputBotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputBotInlineMessageMediaAuto", "inputBotInlineMessageText", "inputBotInlineMessageMediaGeo", "inputBotInlineMessageMediaVenue", "inputBotInlineMessageMediaContact", "inputBotInlineMessageGame", "inputBotInlineMessageMediaInvoice", "inputBotInlineMessageMediaWebPage", "inputBotInlineMessageRichMessage", "inputBotInlineMessageWidget", "inputBotInlineMessageWidgetId"]}}, "description": "結果が選択されたときに送信するメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "id", "short_name", "send_message"], "additionalProperties": false}, "botInlineMessageMediaAuto": {"title": "botInlineMessageMediaAuto", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaAuto"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "botInlineMessageText": {"title": "botInlineMessageText", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageText"]}, "no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message"], "additionalProperties": false}, "botInlineMessageMediaGeo": {"title": "botInlineMessageMediaGeo", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaGeo"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "heading": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "proximity_notification_radius": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo"], "additionalProperties": false}, "botInlineMessageMediaVenue": {"title": "botInlineMessageMediaVenue", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaVenue"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "title": {"type": "string", "x-tl-type": "string"}, "address": {"type": "string", "x-tl-type": "string"}, "provider": {"type": "string", "x-tl-type": "string"}, "venue_id": {"type": "string", "x-tl-type": "string"}, "venue_type": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "geo", "title", "address", "provider", "venue_id", "venue_type"], "additionalProperties": false}, "botInlineMessageMediaContact": {"title": "botInlineMessageMediaContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaContact"]}, "phone_number": {"type": "string", "x-tl-type": "string"}, "first_name": {"type": "string", "x-tl-type": "string"}, "last_name": {"type": "string", "x-tl-type": "string"}, "vcard": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "phone_number", "first_name", "last_name", "vcard"], "additionalProperties": false}, "botInlineMessageMediaInvoice": {"title": "botInlineMessageMediaInvoice", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaInvoice"]}, "shipping_address_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "test": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.0?WebDocument"}, "currency": {"type": "string", "x-tl-type": "string"}, "total_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "title", "description", "currency", "total_amount"], "additionalProperties": false}, "botInlineMessageMediaWebPage": {"title": "botInlineMessageMediaWebPage", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaWebPage"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "force_large_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "force_small_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "manual": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "safe": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "url": {"type": "string", "x-tl-type": "string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}}, "required": ["_", "message", "url"], "additionalProperties": false}, "botInlineMessageRichMessage": {"title": "botInlineMessageRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageRichMessage"]}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}}, "required": ["_", "rich_message"], "additionalProperties": false}, "botInlineMessageWidget": {"title": "botInlineMessageWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMessageWidget"]}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "width": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "height": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.2?ReplyMarkup"}, "widget_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.4?Vector<MessageEntity>"}}, "required": ["_", "width", "height", "payload", "message"], "additionalProperties": false}, "botInlineResult": {"title": "botInlineResult", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineResult"]}, "id": {"type": "string", "x-tl-type": "string"}, "type": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "thumb": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.4?WebDocument"}, "content": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.5?WebDocument"}, "send_message": {"type": "object", "x-tl-type": "BotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaAuto", "botInlineMessageText", "botInlineMessageMediaGeo", "botInlineMessageMediaVenue", "botInlineMessageMediaContact", "botInlineMessageMediaInvoice", "botInlineMessageMediaWebPage", "botInlineMessageRichMessage", "botInlineMessageWidget"]}}, "description": "Тип TL: BotInlineMessage."}}, "required": ["_", "id", "type", "send_message"], "additionalProperties": false}, "botInlineMediaResult": {"title": "botInlineMediaResult", "type": "object", "properties": {"_": {"type": "string", "enum": ["botInlineMediaResult"]}, "id": {"type": "string", "x-tl-type": "string"}, "type": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.0?Photo"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.1?Document"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "send_message": {"type": "object", "x-tl-type": "BotInlineMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botInlineMessageMediaAuto", "botInlineMessageText", "botInlineMessageMediaGeo", "botInlineMessageMediaVenue", "botInlineMessageMediaContact", "botInlineMessageMediaInvoice", "botInlineMessageMediaWebPage", "botInlineMessageRichMessage", "botInlineMessageWidget"]}}, "description": "Тип TL: BotInlineMessage."}}, "required": ["_", "id", "type", "send_message"], "additionalProperties": false}, "messages.botResults": {"title": "messages.botResults", "description": "インラインボットへのクエリの結果", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botResults"]}, "gallery": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "結果が画像ギャラリーかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "クエリID", "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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "結果で言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "query_id", "results", "cache_time", "users"], "additionalProperties": false}, "exportedMessageLink": {"title": "exportedMessageLink", "description": "スーパーグループ/チャネル内のメッセージへのリンク", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedMessageLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedMessageLink"]}, "link": {"type": "string", "x-tl-type": "string", "description": "URL", "x-telegram-field-docs": true}, "html": {"type": "string", "x-tl-type": "string", "description": "コードを埋め込む", "x-telegram-field-docs": true}}, "required": ["_", "link", "html"], "additionalProperties": false}, "messageFwdHeader": {"title": "messageFwdHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}, "imported": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "saved_out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "from_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "channel_post": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "post_author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "saved_from_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.4?Peer"}, "saved_from_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "saved_from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.8?Peer"}, "saved_from_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.9?string"}, "saved_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "psa_type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}}, "required": ["_", "date"], "additionalProperties": false}, "auth.codeTypeSms": {"title": "auth.codeTypeSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeSms"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeCall": {"title": "auth.codeTypeCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeCall"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeFlashCall": {"title": "auth.codeTypeFlashCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeFlashCall"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeMissedCall": {"title": "auth.codeTypeMissedCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeMissedCall"]}}, "required": ["_"], "additionalProperties": false}, "auth.codeTypeFragmentSms": {"title": "auth.codeTypeFragmentSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.codeTypeFragmentSms"]}}, "required": ["_"], "additionalProperties": false}, "auth.sentCodeTypeApp": {"title": "auth.sentCodeTypeApp", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeApp"]}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeSms": {"title": "auth.sentCodeTypeSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSms"]}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeCall": {"title": "auth.sentCodeTypeCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeCall"]}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeFlashCall": {"title": "auth.sentCodeTypeFlashCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeFlashCall"]}, "pattern": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "pattern"], "additionalProperties": false}, "auth.sentCodeTypeMissedCall": {"title": "auth.sentCodeTypeMissedCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeMissedCall"]}, "prefix": {"type": "string", "x-tl-type": "string"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "prefix", "length"], "additionalProperties": false}, "auth.sentCodeTypeEmailCode": {"title": "auth.sentCodeTypeEmailCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeEmailCode"]}, "apple_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "google_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "email_pattern": {"type": "string", "x-tl-type": "string"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reset_available_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "reset_pending_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "email_pattern", "length"], "additionalProperties": false}, "auth.sentCodeTypeSetUpEmailRequired": {"title": "auth.sentCodeTypeSetUpEmailRequired", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSetUpEmailRequired"]}, "apple_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "google_signin_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "auth.sentCodeTypeFragmentSms": {"title": "auth.sentCodeTypeFragmentSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeFragmentSms"]}, "url": {"type": "string", "x-tl-type": "string"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "url", "length"], "additionalProperties": false}, "auth.sentCodeTypeFirebaseSms": {"title": "auth.sentCodeTypeFirebaseSms", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeFirebaseSms"]}, "nonce": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "play_integrity_project_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "play_integrity_nonce": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.2?bytes"}, "receipt": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "push_timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "length": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "length"], "additionalProperties": false}, "auth.sentCodeTypeSmsWord": {"title": "auth.sentCodeTypeSmsWord", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSmsWord"]}, "beginning": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_"], "additionalProperties": false}, "auth.sentCodeTypeSmsPhrase": {"title": "auth.sentCodeTypeSmsPhrase", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.sentCodeTypeSmsPhrase"]}, "beginning": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_"], "additionalProperties": false}, "messages.botCallbackAnswer": {"title": "messages.botCallbackAnswer", "description": "ボタンの押下に応答してボットによって送信されるコールバック応答", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botCallbackAnswer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botCallbackAnswer"]}, "alert": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "トースト通知の代わりにアラートをユーザーに表示するかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "has_url": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "URL が存在するかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "native_ui": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ゲームを WebView で表示するかネイティブ 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 to open", "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": "inlineBotSwitchPM", "description": "ボットはユーザーに非公開でメッセージを送信するよう要求しました", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineBotSwitchPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineBotSwitchPM"]}, "text": {"type": "string", "x-tl-type": "string", "description": "ユーザーをボットとのプライベート チャットに切り替え、パラメーター `start_parameter` を含む開始メッセージをボットに送信するボタンのテキスト (空にすることもできます)", "x-telegram-field-docs": true}, "start_param": {"type": "string", "x-tl-type": "string", "description": "`/start parameter`のパラメータ", "x-telegram-field-docs": true}}, "required": ["_", "text", "start_param"], "additionalProperties": false}, "messages.peerDialogs": {"title": "messages.peerDialogs", "description": "複数のピアのダイアログ情報", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.peerDialogs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.peerDialogs"]}, "topics": {"type": "array", "items": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "x-tl-flag": "flags.0?Vector<ForumTopic>"}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "Dialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialog", "dialogFolder", "dialogCommunity"]}}, "description": "Тип TL: Dialog."}, "x-tl-type": "Vector<Dialog>", "description": "ダイアログ情報", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "ダイアログ情報に記載されているメッセージ", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}, "state": {"type": "object", "x-tl-type": "updates.State", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updates.state"]}}, "description": "現在 [ダイアログの状態を更新](https://core.telegram.org/api/updates.md)]", "x-telegram-field-docs": true}}, "required": ["_", "dialogs", "messages", "chats", "users", "state"], "additionalProperties": false}, "topPeer": {"title": "topPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "rating": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "peer", "rating"], "additionalProperties": false}, "topPeerCategoryBotsPM": {"title": "topPeerCategoryBotsPM", "description": "最も使用されているボット", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsPM"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsInline": {"title": "topPeerCategoryBotsInline", "description": "最も使用されているインライン ボット", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsInline"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsInline"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryCorrespondents": {"title": "topPeerCategoryCorrespondents", "description": "最も頻繁にチャットしたユーザー", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryCorrespondents"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryCorrespondents"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryGroups": {"title": "topPeerCategoryGroups", "description": "よく開かれるグループとスーパーグループ", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryGroups"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryGroups"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryChannels": {"title": "topPeerCategoryChannels", "description": "最も頻繁にアクセスされるチャンネル", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryChannels"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryChannels"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryPhoneCalls": {"title": "topPeerCategoryPhoneCalls", "description": "最も頻繁に電話をかけるユーザー", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryPhoneCalls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryPhoneCalls"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryForwardUsers": {"title": "topPeerCategoryForwardUsers", "description": "ユーザーが頻繁にメッセージを転送するユーザー", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryForwardUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryForwardUsers"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryForwardChats": {"title": "topPeerCategoryForwardChats", "description": "ユーザーが頻繁にメッセージを転送するチャット", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryForwardChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryForwardChats"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsApp": {"title": "topPeerCategoryBotsApp", "description": "最も頻繁に使用される [主なミニボット アプリ](https://core.telegram.org/api/bots/webapps.md#main-mini-apps)]。", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsApp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsApp"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryBotsGuestChat": {"title": "topPeerCategoryBotsGuestChat", "description": "トップ [ゲストボット »](https://core.telegram.org/api/bots/guest-mode.md)、i.e。チャットのゲストとして最も頻繁に呼び出されるボット。", "externalDocs": {"url": "https://core.telegram.org/constructor/topPeerCategoryBotsGuestChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsGuestChat"]}}, "required": ["_"], "additionalProperties": false}, "topPeerCategoryPeers": {"title": "topPeerCategoryPeers", "type": "object", "properties": {"_": {"type": "string", "enum": ["topPeerCategoryPeers"]}, "category": {"type": "object", "x-tl-type": "TopPeerCategory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats", "topPeerCategoryBotsApp", "topPeerCategoryBotsGuestChat"]}}, "description": "Тип TL: TopPeerCategory."}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "TopPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["topPeer"]}}, "description": "Тип TL: TopPeer."}, "x-tl-type": "Vector<TopPeer>"}}, "required": ["_", "category", "count", "peers"], "additionalProperties": false}, "contacts.topPeersNotModified": {"title": "contacts.topPeersNotModified", "description": "トップピア情報は変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.topPeersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.topPeersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "contacts.topPeers": {"title": "contacts.topPeers", "description": "トップピア", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.topPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.topPeers"]}, "categories": {"type": "array", "items": {"type": "object", "x-tl-type": "TopPeerCategoryPeers", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["topPeerCategoryPeers"]}}, "description": "Тип TL: TopPeerCategoryPeers."}, "x-tl-type": "Vector<TopPeerCategoryPeers>", "description": "上位ピア カテゴリ別の上位ピア", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "categories", "chats", "users"], "additionalProperties": false}, "contacts.topPeersDisabled": {"title": "contacts.topPeersDisabled", "description": "上位ピアが無効になっています", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.topPeersDisabled"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.topPeersDisabled"]}}, "required": ["_"], "additionalProperties": false}, "draftMessageEmpty": {"title": "draftMessageEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "ai_style": {"type": "object", "x-tl-type": "InputAiComposeStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputAiComposeStyle"]}}, "description": "Тип TL: InputAiComposeStyle.", "x-tl-flag": "flags.1?InputAiComposeStyle"}}, "required": ["_"], "additionalProperties": false}, "draftMessage": {"title": "draftMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["draftMessage"]}, "no_webpage": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "reply_to": {"type": "object", "x-tl-type": "InputReplyTo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputReplyToMessage", "inputReplyToStory", "inputReplyToMonoForum", "inputReplyToEphemeralMessage"]}}, "description": "Тип TL: InputReplyTo.", "x-tl-flag": "flags.4?InputReplyTo"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.3?Vector<MessageEntity>"}, "media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "TL Type: InputMedia.", "x-tl-flag": "flags.5?InputMedia"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "effect": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.7?long"}, "suggested_post": {"type": "object", "x-tl-type": "SuggestedPost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["suggestedPost"]}}, "description": "Тип TL: SuggestedPost.", "x-tl-flag": "flags.8?SuggestedPost"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage.", "x-tl-flag": "flags.9?RichMessage"}, "ai_style": {"type": "object", "x-tl-type": "InputAiComposeStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputAiComposeStyle"]}}, "description": "Тип TL: InputAiComposeStyle.", "x-tl-flag": "flags.10?InputAiComposeStyle"}}, "required": ["_", "message", "date"], "additionalProperties": false}, "messages.featuredStickersNotModified": {"title": "messages.featuredStickersNotModified", "description": "注目のステッカーは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.featuredStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.featuredStickersNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "注目のステッカーの総数", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "messages.featuredStickers": {"title": "messages.featuredStickers", "description": "注目のステッカーセット", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.featuredStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.featuredStickers"]}, "premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これがプレミアムステッカーセットかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "注目のステッカーの総数", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "TL Type: 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: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "ステッカーに関連付けられた絵文字", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "最近のステッカー", "x-telegram-field-docs": true}, "dates": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "各ステッカーが最後に使用されたのはいつですか", "x-telegram-field-docs": true}}, "required": ["_", "hash", "packs", "stickers", "dates"], "additionalProperties": false}, "messages.archivedStickers": {"title": "messages.archivedStickers", "description": "アーカイブされたステッカーセット", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.archivedStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.archivedStickers"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アーカイブされたスタンプの数", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "TL Type: 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 Type: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "アーカイブされたステッカーセット", "x-telegram-field-docs": true}}, "required": ["_", "sets"], "additionalProperties": false}, "stickerSetCovered": {"title": "stickerSetCovered", "description": "プレビューとして 1 つのステッカーを含むステッカーセット", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "ステッカーセット", "x-telegram-field-docs": true}, "cover": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "プレビュー", "x-telegram-field-docs": true}}, "required": ["_", "set", "cover"], "additionalProperties": false}, "stickerSetMultiCovered": {"title": "stickerSetMultiCovered", "description": "ステッカーセット（プレビューとして複数のステッカーを含む）", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetMultiCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetMultiCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "ステッカーセット", "x-telegram-field-docs": true}, "covers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "ステッカーをプレビューする", "x-telegram-field-docs": true}}, "required": ["_", "set", "covers"], "additionalProperties": false}, "stickerSetFullCovered": {"title": "stickerSetFullCovered", "description": "ステッカーセットのすべてのステッカーが含まれるステッカーセットのプレビュー。\n現在は [カスタム絵文字ステッカーセット](https://core.telegram.org/api/custom-emoji.md)] にのみ使用されており、[messages.getStickerSet](https://core.telegram.org/method/messages.getStickerSet.md)] へのさらなる呼び出しを回避します。", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetFullCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetFullCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "ステッカーセット", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "ステッカーセット内のすべてのステッカーに関する絵文字情報", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerKeyword"]}}, "description": "Тип TL: StickerKeyword."}, "x-tl-type": "Vector<StickerKeyword>", "description": "ステッカーセット内の一部またはすべてのステッカーのキーワード。", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "ステッカー", "x-telegram-field-docs": true}}, "required": ["_", "set", "packs", "keywords", "documents"], "additionalProperties": false}, "stickerSetNoCovered": {"title": "stickerSetNoCovered", "description": "ステッカーセットの情報のみで、プレビューはありません。", "externalDocs": {"url": "https://core.telegram.org/constructor/stickerSetNoCovered"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerSetNoCovered"]}, "set": {"type": "object", "x-tl-type": "StickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSet"]}}, "description": "ステッカーセット情報。", "x-telegram-field-docs": true}}, "required": ["_", "set"], "additionalProperties": false}, "maskCoords": {"title": "maskCoords", "description": "[メディアにシールを貼り付ける際にマスクを配置する写真上の位置 »](https://core.telegram.org/api/stickers.md#attached-stickers)\n\n`n` の位置は、マスクを配置する場所を示します。\n\n- 0 => 額を基準に\n- 1 => 目を基準にして\n- 2 => 口を基準に\n- 3 => 顎を基準に", "externalDocs": {"url": "https://core.telegram.org/constructor/maskCoords"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["maskCoords"]}, "n": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "マスクを配置する顔の部分", "x-telegram-field-docs": true}, "x": {"type": "number", "format": "double", "x-tl-type": "double", "description": "X 軸によるシフト。顔のサイズに合わせてスケールされたマスクの幅で左から右に測定されます。 (たとえば、-1.0 を指定すると、デフォルトのマスク位置のすぐ左側にマスクが配置されます)", "x-telegram-field-docs": true}, "y": {"type": "number", "format": "double", "x-tl-type": "double", "description": "顔のサイズに合わせてスケールされたマスクの幅で測定された Y 軸によるシフト (左から右)。 (たとえば、-1.0 を指定すると、デフォルトのマスク位置のすぐ下にマスクが配置されます)", "x-telegram-field-docs": true}, "zoom": {"type": "number", "format": "double", "x-tl-type": "double", "description": "マスクのスケーリング係数。 (例: 2.0 は 2 倍のサイズを意味します)", "x-telegram-field-docs": true}}, "required": ["_", "n", "x", "y", "zoom"], "additionalProperties": false}, "inputStickeredMediaPhoto": {"title": "inputStickeredMediaPhoto", "description": "ステッカーを貼った写真", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickeredMediaPhoto"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickeredMediaPhoto"]}, "id": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "写真", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputStickeredMediaDocument": {"title": "inputStickeredMediaDocument", "description": "シールが貼られた書類", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickeredMediaDocument"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickeredMediaDocument"]}, "id": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "文書", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "game": {"title": "game", "type": "object", "properties": {"_": {"type": "string", "enum": ["game"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "short_name": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.0?Document"}}, "required": ["_", "id", "access_hash", "short_name", "title", "description", "photo"], "additionalProperties": false}, "inputGameID": {"title": "inputGameID", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGameID"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputGameShortName": {"title": "inputGameShortName", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGameShortName"]}, "bot_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "short_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "bot_id", "short_name"], "additionalProperties": false}, "highScore": {"title": "highScore", "type": "object", "properties": {"_": {"type": "string", "enum": ["highScore"]}, "pos": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "score": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "pos", "user_id", "score"], "additionalProperties": false}, "messages.highScores": {"title": "messages.highScores", "description": "試合でのハイスコア", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.highScores"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.highScores"]}, "scores": {"type": "array", "items": {"type": "object", "x-tl-type": "HighScore", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["highScore"]}}, "description": "Тип TL: HighScore."}, "x-tl-type": "Vector<HighScore>", "description": "ハイスコア", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ハイスコアに関連付けられたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "scores", "users"], "additionalProperties": false}, "textEmpty": {"title": "textEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["textEmpty"]}}, "required": ["_"], "additionalProperties": false}, "textPlain": {"title": "textPlain", "type": "object", "properties": {"_": {"type": "string", "enum": ["textPlain"]}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text"], "additionalProperties": false}, "textBold": {"title": "textBold", "type": "object", "properties": {"_": {"type": "string", "enum": ["textBold"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textItalic": {"title": "textItalic", "type": "object", "properties": {"_": {"type": "string", "enum": ["textItalic"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textUnderline": {"title": "textUnderline", "type": "object", "properties": {"_": {"type": "string", "enum": ["textUnderline"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textStrike": {"title": "textStrike", "type": "object", "properties": {"_": {"type": "string", "enum": ["textStrike"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textFixed": {"title": "textFixed", "type": "object", "properties": {"_": {"type": "string", "enum": ["textFixed"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textUrl": {"title": "textUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["textUrl"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "url": {"type": "string", "x-tl-type": "string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "text", "url", "webpage_id"], "additionalProperties": false}, "textEmail": {"title": "textEmail", "type": "object", "properties": {"_": {"type": "string", "enum": ["textEmail"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "email": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "email"], "additionalProperties": false}, "textConcat": {"title": "textConcat", "type": "object", "properties": {"_": {"type": "string", "enum": ["textConcat"]}, "texts": {"type": "array", "items": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "x-tl-type": "Vector<RichText>"}}, "required": ["_", "texts"], "additionalProperties": false}, "textSubscript": {"title": "textSubscript", "type": "object", "properties": {"_": {"type": "string", "enum": ["textSubscript"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textSuperscript": {"title": "textSuperscript", "type": "object", "properties": {"_": {"type": "string", "enum": ["textSuperscript"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textMarked": {"title": "textMarked", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMarked"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textPhone": {"title": "textPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["textPhone"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "phone"], "additionalProperties": false}, "textImage": {"title": "textImage", "type": "object", "properties": {"_": {"type": "string", "enum": ["textImage"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "document_id", "w", "h"], "additionalProperties": false}, "textAnchor": {"title": "textAnchor", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAnchor"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "name"], "additionalProperties": false}, "textMath": {"title": "textMath", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMath"]}, "source": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "source"], "additionalProperties": false}, "textCustomEmoji": {"title": "textCustomEmoji", "type": "object", "properties": {"_": {"type": "string", "enum": ["textCustomEmoji"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "alt": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "document_id", "alt"], "additionalProperties": false}, "textSpoiler": {"title": "textSpoiler", "type": "object", "properties": {"_": {"type": "string", "enum": ["textSpoiler"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textMention": {"title": "textMention", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMention"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textHashtag": {"title": "textHashtag", "type": "object", "properties": {"_": {"type": "string", "enum": ["textHashtag"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textBotCommand": {"title": "textBotCommand", "type": "object", "properties": {"_": {"type": "string", "enum": ["textBotCommand"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textCashtag": {"title": "textCashtag", "type": "object", "properties": {"_": {"type": "string", "enum": ["textCashtag"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textAutoUrl": {"title": "textAutoUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAutoUrl"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textAutoEmail": {"title": "textAutoEmail", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAutoEmail"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textAutoPhone": {"title": "textAutoPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["textAutoPhone"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textBankCard": {"title": "textBankCard", "type": "object", "properties": {"_": {"type": "string", "enum": ["textBankCard"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "textMentionName": {"title": "textMentionName", "type": "object", "properties": {"_": {"type": "string", "enum": ["textMentionName"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "text", "user_id"], "additionalProperties": false}, "textDate": {"title": "textDate", "type": "object", "properties": {"_": {"type": "string", "enum": ["textDate"]}, "relative": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "short_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "long_time": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "short_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "long_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "day_of_week": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "text", "date"], "additionalProperties": false}, "textDiff": {"title": "textDiff", "type": "object", "properties": {"_": {"type": "string", "enum": ["textDiff"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "old_text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "old_text"], "additionalProperties": false}, "textButton": {"title": "textButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["textButton"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "type": {"type": "object", "x-tl-type": "InlineButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl", "inlineButtonTypeUrlAuth", "inputInlineButtonTypeUrlAuth", "inlineButtonTypeWebView", "inlineButtonTypeCallback", "inlineButtonTypeGame", "inlineButtonTypeBuy", "inlineButtonTypeSwitchInline", "inlineButtonTypeUserProfile", "inputInlineButtonTypeUserProfile", "inlineButtonTypeCopy", "inlineButtonTypeDisabled"]}}, "description": "Тип TL: InlineButtonType."}, "style": {"type": "object", "x-tl-type": "RichButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richButtonStyle"]}}, "description": "Тип TL: RichButtonStyle.", "x-tl-flag": "flags.0?RichButtonStyle"}}, "required": ["_", "text", "type"], "additionalProperties": false}, "textTonAddress": {"title": "textTonAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["textTonAddress"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockUnsupported": {"title": "pageBlockUnsupported", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "pageBlockTitle": {"title": "pageBlockTitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockTitle"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockSubtitle": {"title": "pageBlockSubtitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockSubtitle"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockAuthorDate": {"title": "pageBlockAuthorDate", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockAuthorDate"]}, "author": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "published_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "author", "published_date"], "additionalProperties": false}, "pageBlockHeader": {"title": "pageBlockHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeader"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockSubheader": {"title": "pageBlockSubheader", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockSubheader"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockParagraph": {"title": "pageBlockParagraph", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockParagraph"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockPreformatted": {"title": "pageBlockPreformatted", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockPreformatted"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "language": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "text", "language"], "additionalProperties": false}, "pageBlockFooter": {"title": "pageBlockFooter", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockFooter"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockDivider": {"title": "pageBlockDivider", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockDivider"]}}, "required": ["_"], "additionalProperties": false}, "pageBlockAnchor": {"title": "pageBlockAnchor", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockAnchor"]}, "name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "name"], "additionalProperties": false}, "pageBlockList": {"title": "pageBlockList", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockList"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageListItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageListItemText", "pageListItemBlocks"]}}, "description": "Тип TL: PageListItem."}, "x-tl-type": "Vector<PageListItem>"}}, "required": ["_", "items"], "additionalProperties": false}, "pageBlockBlockquote": {"title": "pageBlockBlockquote", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockBlockquote"]}, "collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "caption": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "caption"], "additionalProperties": false}, "pageBlockPullquote": {"title": "pageBlockPullquote", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockPullquote"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "caption": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "caption"], "additionalProperties": false}, "pageBlockPhoto": {"title": "pageBlockPhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockPhoto"]}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "photo_id", "caption"], "additionalProperties": false}, "pageBlockVideo": {"title": "pageBlockVideo", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockVideo"]}, "autoplay": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "loop": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "spoiler": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "video_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "video_id", "caption"], "additionalProperties": false}, "pageBlockCover": {"title": "pageBlockCover", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockCover"]}, "cover": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}}, "required": ["_", "cover"], "additionalProperties": false}, "pageBlockEmbed": {"title": "pageBlockEmbed", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockEmbed"]}, "full_width": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "allow_scrolling": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "html": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "poster_photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "caption"], "additionalProperties": false}, "pageBlockEmbedPost": {"title": "pageBlockEmbedPost", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockEmbedPost"]}, "url": {"type": "string", "x-tl-type": "string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "author_photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "author": {"type": "string", "x-tl-type": "string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "url", "webpage_id", "author_photo_id", "author", "date", "blocks", "caption"], "additionalProperties": false}, "pageBlockCollage": {"title": "pageBlockCollage", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockCollage"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "items", "caption"], "additionalProperties": false}, "pageBlockSlideshow": {"title": "pageBlockSlideshow", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockSlideshow"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "items", "caption"], "additionalProperties": false}, "pageBlockChannel": {"title": "pageBlockChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockChannel"]}, "channel": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}}, "required": ["_", "channel"], "additionalProperties": false}, "pageBlockAudio": {"title": "pageBlockAudio", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockAudio"]}, "audio_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "audio_id", "caption"], "additionalProperties": false}, "pageBlockKicker": {"title": "pageBlockKicker", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockKicker"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockTable": {"title": "pageBlockTable", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockTable"]}, "bordered": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "striped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "compact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "title": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "rows": {"type": "array", "items": {"type": "object", "x-tl-type": "PageTableRow", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageTableRow"]}}, "description": "Тип TL: PageTableRow."}, "x-tl-type": "Vector<PageTableRow>"}}, "required": ["_", "title", "rows"], "additionalProperties": false}, "pageBlockOrderedList": {"title": "pageBlockOrderedList", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockOrderedList"]}, "reversed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "PageListOrderedItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemText", "pageListOrderedItemBlocks"]}}, "description": "Тип TL: PageListOrderedItem."}, "x-tl-type": "Vector<PageListOrderedItem>"}, "start": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "items"], "additionalProperties": false}, "pageBlockDetails": {"title": "pageBlockDetails", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockDetails"]}, "open": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "title": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "blocks", "title"], "additionalProperties": false}, "pageBlockRelatedArticles": {"title": "pageBlockRelatedArticles", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockRelatedArticles"]}, "title": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "articles": {"type": "array", "items": {"type": "object", "x-tl-type": "PageRelatedArticle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageRelatedArticle"]}}, "description": "Тип TL: PageRelatedArticle."}, "x-tl-type": "Vector<PageRelatedArticle>"}}, "required": ["_", "title", "articles"], "additionalProperties": false}, "pageBlockMap": {"title": "pageBlockMap", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockMap"]}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "zoom": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "geo", "zoom", "w", "h", "caption"], "additionalProperties": false}, "pageBlockHeading1": {"title": "pageBlockHeading1", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading1"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading2": {"title": "pageBlockHeading2", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading2"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading3": {"title": "pageBlockHeading3", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading3"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading4": {"title": "pageBlockHeading4", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading4"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading5": {"title": "pageBlockHeading5", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading5"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockHeading6": {"title": "pageBlockHeading6", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockHeading6"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageBlockMath": {"title": "pageBlockMath", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockMath"]}, "source": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "source"], "additionalProperties": false}, "pageBlockThinking": {"title": "pageBlockThinking", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockThinking"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "inputPageBlockMap": {"title": "inputPageBlockMap", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPageBlockMap"]}, "geo": {"type": "object", "x-tl-type": "InputGeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGeoPointEmpty", "inputGeoPoint"]}}, "description": "Тип TL: InputGeoPoint."}, "zoom": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "geo", "zoom", "w", "h", "caption"], "additionalProperties": false}, "pageBlockBlockquoteBlocks": {"title": "pageBlockBlockquoteBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockBlockquoteBlocks"]}, "collapsed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "caption": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "blocks", "caption"], "additionalProperties": false}, "pageBlockButtonRow": {"title": "pageBlockButtonRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockButtonRow"]}, "align_left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "align_center": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "align_right": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "buttons": {"type": "array", "items": {"type": "object", "x-tl-type": "PageButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageButton"]}}, "description": "Тип TL: PageButton."}, "x-tl-type": "Vector<PageButton>"}}, "required": ["_", "buttons"], "additionalProperties": false}, "pageBlockDocument": {"title": "pageBlockDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageBlockDocument"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "caption": {"type": "object", "x-tl-type": "PageCaption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageCaption"]}}, "description": "Тип TL: PageCaption."}}, "required": ["_", "document_id", "caption"], "additionalProperties": false}, "phoneCallDiscardReasonMissed": {"title": "phoneCallDiscardReasonMissed", "description": "電話に出られませんでした。詳細については [こちら »](https://core.telegram.org/api/calls.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonMissed"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMissed"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonDisconnect": {"title": "phoneCallDiscardReasonDisconnect", "description": "電話が切れました。詳細については [こちら »](https://core.telegram.org/api/calls.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonDisconnect"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonDisconnect"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonHangup": {"title": "phoneCallDiscardReasonHangup", "description": "通話は正常に終了しました。詳細については、[こちら »](https://core.telegram.org/api/calls.md)]を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonHangup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonHangup"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonBusy": {"title": "phoneCallDiscardReasonBusy", "description": "ユーザーが別の通話中で話中のため、電話は破棄されました。詳細については、[こちら »](https://core.telegram.org/api/calls.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonBusy"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonBusy"]}}, "required": ["_"], "additionalProperties": false}, "phoneCallDiscardReasonMigrateConferenceCall": {"title": "phoneCallDiscardReasonMigrateConferenceCall", "description": "この電話は [電話会議](https://core.telegram.org/api/end-to-end/group-calls.md)] に移行されました。", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallDiscardReasonMigrateConferenceCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMigrateConferenceCall"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "[会議リンク »](https://core.telegram.org/api/links.md#conference-links)ナメクジ。", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "dataJSON": {"title": "dataJSON", "description": "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 でエンコードされたオブジェクト", "x-telegram-field-docs": true}}, "required": ["_", "data"], "additionalProperties": false}, "labeledPrice": {"title": "labeledPrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["labeledPrice"]}, "label": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "label", "amount"], "additionalProperties": false}, "invoice": {"title": "invoice", "type": "object", "properties": {"_": {"type": "string", "enum": ["invoice"]}, "test": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "name_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "phone_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "email_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "shipping_address_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "flexible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "phone_to_provider": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "email_to_provider": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "recurring": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "currency": {"type": "string", "x-tl-type": "string"}, "prices": {"type": "array", "items": {"type": "object", "x-tl-type": "LabeledPrice", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["labeledPrice"]}}, "description": "Тип TL: LabeledPrice."}, "x-tl-type": "Vector<LabeledPrice>"}, "max_tip_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "suggested_tip_amounts": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.8?Vector<long>"}, "terms_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.10?string"}, "subscription_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}}, "required": ["_", "currency", "prices"], "additionalProperties": false}, "paymentCharge": {"title": "paymentCharge", "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentCharge"]}, "id": {"type": "string", "x-tl-type": "string"}, "provider_charge_id": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "provider_charge_id"], "additionalProperties": false}, "postAddress": {"title": "postAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["postAddress"]}, "street_line1": {"type": "string", "x-tl-type": "string"}, "street_line2": {"type": "string", "x-tl-type": "string"}, "city": {"type": "string", "x-tl-type": "string"}, "state": {"type": "string", "x-tl-type": "string"}, "country_iso2": {"type": "string", "x-tl-type": "string"}, "post_code": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "street_line1", "street_line2", "city", "state", "country_iso2", "post_code"], "additionalProperties": false}, "paymentRequestedInfo": {"title": "paymentRequestedInfo", "description": "ユーザーが提供した注文情報", "externalDocs": {"url": "https://core.telegram.org/constructor/paymentRequestedInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}, "name": {"type": "string", "x-tl-type": "string", "description": "ユーザーのフルネーム", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "phone": {"type": "string", "x-tl-type": "string", "description": "ユーザーの電話番号", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "email": {"type": "string", "x-tl-type": "string", "description": "ユーザーのメールアドレス", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "shipping_address": {"type": "object", "x-tl-type": "PostAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["postAddress"]}}, "description": "ユーザーの配送先住所", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?PostAddress"}}, "required": ["_"], "additionalProperties": false}, "paymentSavedCredentialsCard": {"title": "paymentSavedCredentialsCard", "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentSavedCredentialsCard"]}, "id": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "webDocument": {"title": "webDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["webDocument"]}, "url": {"type": "string", "x-tl-type": "string"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "mime_type": {"type": "string", "x-tl-type": "string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "access_hash", "size", "mime_type", "attributes"], "additionalProperties": false}, "webDocumentNoProxy": {"title": "webDocumentNoProxy", "type": "object", "properties": {"_": {"type": "string", "enum": ["webDocumentNoProxy"]}, "url": {"type": "string", "x-tl-type": "string"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "mime_type": {"type": "string", "x-tl-type": "string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "size", "mime_type", "attributes"], "additionalProperties": false}, "inputWebDocument": {"title": "inputWebDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebDocument"]}, "url": {"type": "string", "x-tl-type": "string"}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "mime_type": {"type": "string", "x-tl-type": "string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "DocumentAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentAttributeImageSize", "documentAttributeAnimated", "documentAttributeSticker", "documentAttributeVideo", "documentAttributeAudio", "documentAttributeFilename", "documentAttributeHasStickers", "documentAttributeCustomEmoji"]}}, "description": "Тип TL: DocumentAttribute."}, "x-tl-type": "Vector<DocumentAttribute>"}}, "required": ["_", "url", "size", "mime_type", "attributes"], "additionalProperties": false}, "inputWebFileLocation": {"title": "inputWebFileLocation", "description": "リモート HTTP(s) ファイルの場所", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWebFileLocation"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWebFileLocation"]}, "url": {"type": "string", "x-tl-type": "string", "description": "ファイルの HTTP URL", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "アクセスハッシュ", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "url", "access_hash"], "additionalProperties": false}, "inputWebFileGeoPointLocation": {"title": "inputWebFileGeoPointLocation", "description": "[geoPoint](https://core.telegram.org/constructor/geoPoint.md)] からサーバーで生成された画像とマップ プレビューをダウンロードするために使用されます。詳細については、[webfile docs »](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": "inputWebFileAudioAlbumThumbLocation", "description": "[upload.getWebFile](https://core.telegram.org/method/upload.getWebFile.md)、詳細については、[webfile docs »](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": "(デフォルトの `600x600` ではなく) `100x100` の解像度のサムネイルを返すために使用されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "問題の音声ファイル: シークレット チャットでは NOT を提供する必要があります。代わりに `title` および `performer` フィールドを提供してください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputDocument"}, "title": {"type": "string", "x-tl-type": "string", "description": "曲のタイトル: 秘密のチャットでのみ使用する必要があります。通常のチャットではレート制限が緩いため、代わりに `document` を提供します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "performer": {"type": "string", "x-tl-type": "string", "description": "ソング パフォーマー: シークレット チャットでのみ使用する必要があります。通常のチャットではレート制限が緩いため、代わりに `document` を提供します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_"], "additionalProperties": false}, "upload.webFile": {"title": "upload.webFile", "description": "Telegram の安全な MTProto サーバーを通じてダウンロードされた [HTTP Web ファイル](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": "Mime type", "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": "フォーム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}, "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": "お支払いフォーム 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "form_id", "bot_id", "title", "description", "invoice", "provider_id", "url", "users"], "additionalProperties": false}, "payments.paymentFormStars": {"title": "payments.paymentFormStars", "description": "支払いフォームを表します。[Telegram Stars を使用した支払いについては、詳細については、こちら »](https://core.telegram.org/api/stars.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentFormStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentFormStars"]}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "フォーム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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "他のフィールドで言及されているユーザーに関する情報。", "x-telegram-field-docs": true}}, "required": ["_", "form_id", "bot_id", "title", "description", "invoice", "users"], "additionalProperties": false}, "payments.paymentFormStarGift": {"title": "payments.paymentFormStarGift", "description": "[ギフトの支払いフォームを表します。詳細については、こちら »](https://core.telegram.org/api/gifts.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentFormStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentFormStarGift"]}, "form_id": {"type": "string", "pattern": "^-?\\d+$", "description": "フォーム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": "ID", "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 Type: ShippingOption."}, "x-tl-type": "Vector<ShippingOption>", "description": "配送オプション", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<ShippingOption>"}}, "required": ["_"], "additionalProperties": false}, "payments.paymentResult": {"title": "payments.paymentResult", "description": "支払い結果", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentResult"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentResult"]}, "updates": {"type": "object", "x-tl-type": "Updates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage"]}}, "description": "お支払いに関する情報", "x-telegram-field-docs": true}}, "required": ["_", "updates"], "additionalProperties": false}, "payments.paymentVerificationNeeded": {"title": "payments.paymentVerificationNeeded", "description": "支払いが成功しませんでした。追加の確認が必要です", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentVerificationNeeded"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentVerificationNeeded"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL 追加の支払い資格情報の検証用", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "payments.paymentReceipt": {"title": "payments.paymentReceipt", "description": "領収書", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentReceipt"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentReceipt"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "生成日", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ボット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": "通貨の最小単位での合計金額 (float/double ではなく整数)。たとえば、`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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "date", "bot_id", "provider_id", "title", "description", "invoice", "currency", "total_amount", "credentials_title", "users"], "additionalProperties": false}, "payments.paymentReceiptStars": {"title": "payments.paymentReceiptStars", "description": "[Telegram Stars](https://core.telegram.org/api/stars.md) を使用した支払いの領収書。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.paymentReceiptStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.paymentReceiptStars"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "生成日", "x-telegram-field-docs": true}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ボット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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "他のフィールドで言及されているユーザーに関する情報。", "x-telegram-field-docs": true}}, "required": ["_", "date", "bot_id", "title", "description", "invoice", "currency", "total_amount", "transaction_id", "users"], "additionalProperties": false}, "payments.savedInfo": {"title": "payments.savedInfo", "description": "サーバー側に保存された注文情報", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.savedInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.savedInfo"]}, "has_saved_credentials": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ユーザーが保存された支払い資格情報を持っているかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "saved_info": {"type": "object", "x-tl-type": "PaymentRequestedInfo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["paymentRequestedInfo"]}}, "description": "サーバー側に保存された注文情報", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?PaymentRequestedInfo"}}, "required": ["_"], "additionalProperties": false}, "inputPaymentCredentialsSaved": {"title": "inputPaymentCredentialsSaved", "description": "保存された支払い認証情報", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsSaved"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsSaved"]}, "id": {"type": "string", "x-tl-type": "string", "description": "資格情報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": "inputPaymentCredentials", "description": "支払い認証情報", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentials"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentials"]}, "save": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "将来の使用のために支払い認証情報を保存する", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "支払い認証情報", "x-telegram-field-docs": true}}, "required": ["_", "data"], "additionalProperties": false}, "inputPaymentCredentialsApplePay": {"title": "inputPaymentCredentialsApplePay", "description": "Apple Pay の支払い認証情報", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsApplePay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsApplePay"]}, "payment_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "支払いデータ", "x-telegram-field-docs": true}}, "required": ["_", "payment_data"], "additionalProperties": false}, "inputPaymentCredentialsGooglePay": {"title": "inputPaymentCredentialsGooglePay", "description": "Google Pay の支払い認証情報", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPaymentCredentialsGooglePay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPaymentCredentialsGooglePay"]}, "payment_token": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "支払いトークン", "x-telegram-field-docs": true}}, "required": ["_", "payment_token"], "additionalProperties": false}, "account.tmpPassword": {"title": "account.tmpPassword", "description": "仮決済パスワード", "externalDocs": {"url": "https://core.telegram.org/constructor/account.tmpPassword"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.tmpPassword"]}, "tmp_password": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "仮パスワード", "x-telegram-field-docs": true}, "valid_until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "有効期間", "x-telegram-field-docs": true}}, "required": ["_", "tmp_password", "valid_until"], "additionalProperties": false}, "shippingOption": {"title": "shippingOption", "description": "配送オプション", "externalDocs": {"url": "https://core.telegram.org/constructor/shippingOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["shippingOption"]}, "id": {"type": "string", "x-tl-type": "string", "description": "オプション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: LabeledPrice."}, "x-tl-type": "Vector<LabeledPrice>", "description": "価格部分のリスト", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "prices"], "additionalProperties": false}, "inputStickerSetItem": {"title": "inputStickerSetItem", "description": "ステッカーセットのステッカー", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStickerSetItem"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStickerSetItem"]}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "ステッカー", "x-telegram-field-docs": true}, "emoji": {"type": "string", "x-tl-type": "string", "description": "関連する絵文字", "x-telegram-field-docs": true}, "mask_coords": {"type": "object", "x-tl-type": "MaskCoords", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["maskCoords"]}}, "description": "マスクステッカーのコーディネート", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MaskCoords"}, "keywords": {"type": "string", "x-tl-type": "string", "description": "カンマで区切られたキーワードのセット (マスク ステッカーには提供できません)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "document", "emoji"], "additionalProperties": false}, "inputPhoneCall": {"title": "inputPhoneCall", "description": "[電話](https://core.telegram.org/api/calls.md)] を識別します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPhoneCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPhoneCall"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "コール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}, "phoneCallEmpty": {"title": "phoneCallEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallEmpty"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "phoneCallWaiting": {"title": "phoneCallWaiting", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallWaiting"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}, "receive_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "protocol"], "additionalProperties": false}, "phoneCallRequested": {"title": "phoneCallRequested", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallRequested"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_a_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_hash", "protocol"], "additionalProperties": false}, "phoneCallAccepted": {"title": "phoneCallAccepted", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallAccepted"]}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_b": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_b", "protocol"], "additionalProperties": false}, "phoneCall": {"title": "phoneCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCall"]}, "p2p_allowed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "conference_supported": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participant_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "g_a_or_b": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "key_fingerprint": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "protocol": {"type": "object", "x-tl-type": "PhoneCallProtocol", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}}, "description": "Тип TL: PhoneCallProtocol."}, "connections": {"type": "array", "items": {"type": "object", "x-tl-type": "PhoneConnection", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneConnection", "phoneConnectionWebrtc"]}}, "description": "Тип TL: PhoneConnection."}, "x-tl-type": "Vector<PhoneConnection>"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "custom_parameters": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: DataJSON.", "x-tl-flag": "flags.7?DataJSON"}}, "required": ["_", "id", "access_hash", "date", "admin_id", "participant_id", "g_a_or_b", "key_fingerprint", "protocol", "connections", "start_date"], "additionalProperties": false}, "phoneCallDiscarded": {"title": "phoneCallDiscarded", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallDiscarded"]}, "need_rating": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "need_debug": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "reason": {"type": "object", "x-tl-type": "PhoneCallDiscardReason", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["phoneCallDiscardReasonMissed", "phoneCallDiscardReasonDisconnect", "phoneCallDiscardReasonHangup", "phoneCallDiscardReasonBusy", "phoneCallDiscardReasonMigrateConferenceCall"]}}, "description": "Тип TL: PhoneCallDiscardReason.", "x-tl-flag": "flags.0?PhoneCallDiscardReason"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "id"], "additionalProperties": false}, "phoneConnection": {"title": "phoneConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneConnection"]}, "tcp": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "ip": {"type": "string", "x-tl-type": "string"}, "ipv6": {"type": "string", "x-tl-type": "string"}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_tag": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "ip", "ipv6", "port", "peer_tag"], "additionalProperties": false}, "phoneConnectionWebrtc": {"title": "phoneConnectionWebrtc", "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneConnectionWebrtc"]}, "turn": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "stun": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "ip": {"type": "string", "x-tl-type": "string"}, "ipv6": {"type": "string", "x-tl-type": "string"}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "username": {"type": "string", "x-tl-type": "string"}, "password": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "id", "ip", "ipv6", "port", "username", "password"], "additionalProperties": false}, "phoneCallProtocol": {"title": "phoneCallProtocol", "description": "VoIP ライブラリのプロトコル情報。設定方法の詳細については、[こちら »](https://core.telegram.org/api/calls.md#populating-phonecallprotocol) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phoneCallProtocol"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phoneCallProtocol"]}, "udp_p2p": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "VoIP電話の参加者", "x-telegram-field-docs": true}}, "required": ["_", "phone_call", "users"], "additionalProperties": false}, "upload.cdnFileReuploadNeeded": {"title": "upload.cdnFileReuploadNeeded", "description": "ファイルは [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": "cdnPublicKey", "type": "object", "properties": {"_": {"type": "string", "enum": ["cdnPublicKey"]}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "public_key": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "dc_id", "public_key"], "additionalProperties": false}, "cdnConfig": {"title": "cdnConfig", "description": "[CDN](https://core.telegram.org/cdn.md) ファイルのダウンロードの設定。", "externalDocs": {"url": "https://core.telegram.org/constructor/cdnConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["cdnConfig"]}, "public_keys": {"type": "array", "items": {"type": "object", "x-tl-type": "CdnPublicKey", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["cdnPublicKey"]}}, "description": "Тип TL: CdnPublicKey."}, "x-tl-type": "Vector<CdnPublicKey>", "description": "[CDN](https://core.telegram.org/cdn.md) 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": "langPackStringPluralized", "description": "言及されるオブジェクトの数に基づいて異なる形式を持つ言語パック文字列。詳細については、[https://www.unicode.org/cldr/charts/latest/supplemental/ language\\_plural\\_rules.html](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackStringPluralized"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackStringPluralized"]}, "key": {"type": "string", "x-tl-type": "string", "description": "ローカリゼーションキー", "x-telegram-field-docs": true}, "zero_value": {"type": "string", "x-tl-type": "string", "description": "ゼロオブジェクトの値", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "one_value": {"type": "string", "x-tl-type": "string", "description": "1 つのオブジェクトの値", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "two_value": {"type": "string", "x-tl-type": "string", "description": "2 つのオブジェクトの値", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "few_value": {"type": "string", "x-tl-type": "string", "description": "いくつかのオブジェクトの価値", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?string"}, "many_value": {"type": "string", "x-tl-type": "string", "description": "多くのオブジェクトの価値", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?string"}, "other_value": {"type": "string", "x-tl-type": "string", "description": "デフォルト値", "x-telegram-field-docs": true}}, "required": ["_", "key", "other_value"], "additionalProperties": false}, "langPackStringDeleted": {"title": "langPackStringDeleted", "description": "削除されたローカリゼーション文字列", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackStringDeleted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackStringDeleted"]}, "key": {"type": "string", "x-tl-type": "string", "description": "ローカリゼーションキー", "x-telegram-field-docs": true}}, "required": ["_", "key"], "additionalProperties": false}, "langPackDifference": {"title": "langPackDifference", "description": "アプリのローカリゼーション パックの変更", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackDifference"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "言語コード", "x-telegram-field-docs": true}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "以前のバージョン番号", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "新しいバージョン番号", "x-telegram-field-docs": true}, "strings": {"type": "array", "items": {"type": "object", "x-tl-type": "LangPackString", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["langPackString", "langPackStringPluralized", "langPackStringDeleted"]}}, "description": "TL Type: LangPackString."}, "x-tl-type": "Vector<LangPackString>", "description": "ローカライズされた文字列", "x-telegram-field-docs": true}}, "required": ["_", "lang_code", "from_version", "version", "strings"], "additionalProperties": false}, "langPackLanguage": {"title": "langPackLanguage", "description": "ローカリゼーション パックを識別します", "externalDocs": {"url": "https://core.telegram.org/constructor/langPackLanguage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["langPackLanguage"]}, "official": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "言語パックが公式のものかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これは RTL 言語のローカリゼーション パックですか?", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "beta": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これはベータ版のローカリゼーション パックですか?", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "name": {"type": "string", "x-tl-type": "string", "description": "言語名", "x-telegram-field-docs": true}, "native_name": {"type": "string", "x-tl-type": "string", "description": "言語自体の言語名", "x-telegram-field-docs": true}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "言語コード（パック識別子）", "x-telegram-field-docs": true}, "base_lang_code": {"type": "string", "x-tl-type": "string", "description": "基本言語パックの識別子。空いている可能性があります。言語パックに文字列が見つからない場合は、基本言語パックから取得する必要があります。カスタム言語パックではサポートされていません", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "plural_code": {"type": "string", "x-tl-type": "string", "description": "複数形を適用するために使用される言語コード。詳細については、[https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html)]を参照してください。", "x-telegram-field-docs": true}, "strings_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "言語パックから削除されていない文字列の合計数", "x-telegram-field-docs": true}, "translated_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "言語パックから翻訳された文字列の総数", "x-telegram-field-docs": true}, "translations_url": {"type": "string", "x-tl-type": "string", "description": "言語翻訳インターフェイスへのリンク。カスタム ローカル言語パックの場合は空です", "x-telegram-field-docs": true}}, "required": ["_", "name", "native_name", "lang_code", "plural_code", "strings_count", "translated_count", "translations_url"], "additionalProperties": false}, "channelAdminLogEventActionChangeTitle": {"title": "channelAdminLogEventActionChangeTitle", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeTitle"]}, "prev_value": {"type": "string", "x-tl-type": "string"}, "new_value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeAbout": {"title": "channelAdminLogEventActionChangeAbout", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeAbout"]}, "prev_value": {"type": "string", "x-tl-type": "string"}, "new_value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeUsername": {"title": "channelAdminLogEventActionChangeUsername", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeUsername"]}, "prev_value": {"type": "string", "x-tl-type": "string"}, "new_value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangePhoto": {"title": "channelAdminLogEventActionChangePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangePhoto"]}, "prev_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "new_photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}}, "required": ["_", "prev_photo", "new_photo"], "additionalProperties": false}, "channelAdminLogEventActionToggleInvites": {"title": "channelAdminLogEventActionToggleInvites", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleInvites"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleSignatures": {"title": "channelAdminLogEventActionToggleSignatures", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSignatures"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionUpdatePinned": {"title": "channelAdminLogEventActionUpdatePinned", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionUpdatePinned"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionEditMessage": {"title": "channelAdminLogEventActionEditMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionEditMessage"]}, "prev_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "new_message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "prev_message", "new_message"], "additionalProperties": false}, "channelAdminLogEventActionDeleteMessage": {"title": "channelAdminLogEventActionDeleteMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDeleteMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionParticipantJoin": {"title": "channelAdminLogEventActionParticipantJoin", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantJoin"]}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionParticipantLeave": {"title": "channelAdminLogEventActionParticipantLeave", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantLeave"]}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionParticipantInvite": {"title": "channelAdminLogEventActionParticipantInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantInvite"]}, "participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionParticipantToggleBan": {"title": "channelAdminLogEventActionParticipantToggleBan", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantToggleBan"]}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "prev_participant", "new_participant"], "additionalProperties": false}, "channelAdminLogEventActionParticipantToggleAdmin": {"title": "channelAdminLogEventActionParticipantToggleAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantToggleAdmin"]}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "prev_participant", "new_participant"], "additionalProperties": false}, "channelAdminLogEventActionChangeStickerSet": {"title": "channelAdminLogEventActionChangeStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeStickerSet"]}, "prev_stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "TL Type: 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 Type: InputStickerSet."}}, "required": ["_", "prev_stickerset", "new_stickerset"], "additionalProperties": false}, "channelAdminLogEventActionTogglePreHistoryHidden": {"title": "channelAdminLogEventActionTogglePreHistoryHidden", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionTogglePreHistoryHidden"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionDefaultBannedRights": {"title": "channelAdminLogEventActionDefaultBannedRights", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDefaultBannedRights"]}, "prev_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}, "new_banned_rights": {"type": "object", "x-tl-type": "ChatBannedRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}}, "description": "Тип TL: ChatBannedRights."}}, "required": ["_", "prev_banned_rights", "new_banned_rights"], "additionalProperties": false}, "channelAdminLogEventActionStopPoll": {"title": "channelAdminLogEventActionStopPoll", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionStopPoll"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionChangeLinkedChat": {"title": "channelAdminLogEventActionChangeLinkedChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeLinkedChat"]}, "prev_value": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "new_value": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeLocation": {"title": "channelAdminLogEventActionChangeLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeLocation"]}, "prev_value": {"type": "object", "x-tl-type": "ChannelLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty", "channelLocation"]}}, "description": "Тип TL: ChannelLocation."}, "new_value": {"type": "object", "x-tl-type": "ChannelLocation", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty", "channelLocation"]}}, "description": "Тип TL: ChannelLocation."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleSlowMode": {"title": "channelAdminLogEventActionToggleSlowMode", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSlowMode"]}, "prev_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "new_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionStartGroupCall": {"title": "channelAdminLogEventActionStartGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionStartGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}}, "required": ["_", "call"], "additionalProperties": false}, "channelAdminLogEventActionDiscardGroupCall": {"title": "channelAdminLogEventActionDiscardGroupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDiscardGroupCall"]}, "call": {"type": "object", "x-tl-type": "InputGroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputGroupCall", "inputGroupCallSlug", "inputGroupCallInviteMessage"]}}, "description": "Тип TL: InputGroupCall."}}, "required": ["_", "call"], "additionalProperties": false}, "channelAdminLogEventActionParticipantMute": {"title": "channelAdminLogEventActionParticipantMute", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantMute"]}, "participant": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionParticipantUnmute": {"title": "channelAdminLogEventActionParticipantUnmute", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantUnmute"]}, "participant": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionToggleGroupCallSetting": {"title": "channelAdminLogEventActionToggleGroupCallSetting", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleGroupCallSetting"]}, "join_muted": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "join_muted"], "additionalProperties": false}, "channelAdminLogEventActionParticipantJoinByInvite": {"title": "channelAdminLogEventActionParticipantJoinByInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantJoinByInvite"]}, "via_chatlist": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: 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 Type: 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 Type: 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 Type: ExportedChatInvite."}, "new_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: ExportedChatInvite."}}, "required": ["_", "prev_invite", "new_invite"], "additionalProperties": false}, "channelAdminLogEventActionParticipantVolume": {"title": "channelAdminLogEventActionParticipantVolume", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantVolume"]}, "participant": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}}, "required": ["_", "participant"], "additionalProperties": false}, "channelAdminLogEventActionChangeHistoryTTL": {"title": "channelAdminLogEventActionChangeHistoryTTL", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeHistoryTTL"]}, "prev_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "new_value": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionParticipantJoinByRequest": {"title": "channelAdminLogEventActionParticipantJoinByRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantJoinByRequest"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: ExportedChatInvite."}, "approved_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "invite", "approved_by"], "additionalProperties": false}, "channelAdminLogEventActionToggleNoForwards": {"title": "channelAdminLogEventActionToggleNoForwards", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleNoForwards"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionSendMessage": {"title": "channelAdminLogEventActionSendMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionSendMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "channelAdminLogEventActionChangeAvailableReactions": {"title": "channelAdminLogEventActionChangeAvailableReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeAvailableReactions"]}, "prev_value": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions."}, "new_value": {"type": "object", "x-tl-type": "ChatReactions", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatReactionsNone", "chatReactionsAll", "chatReactionsSome"]}}, "description": "Тип TL: ChatReactions."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeUsernames": {"title": "channelAdminLogEventActionChangeUsernames", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeUsernames"]}, "prev_value": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}, "new_value": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionToggleForum": {"title": "channelAdminLogEventActionToggleForum", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleForum"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionCreateTopic": {"title": "channelAdminLogEventActionCreateTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionCreateTopic"]}, "topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}}, "required": ["_", "topic"], "additionalProperties": false}, "channelAdminLogEventActionEditTopic": {"title": "channelAdminLogEventActionEditTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionEditTopic"]}, "prev_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}, "new_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}}, "required": ["_", "prev_topic", "new_topic"], "additionalProperties": false}, "channelAdminLogEventActionDeleteTopic": {"title": "channelAdminLogEventActionDeleteTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionDeleteTopic"]}, "topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic."}}, "required": ["_", "topic"], "additionalProperties": false}, "channelAdminLogEventActionPinTopic": {"title": "channelAdminLogEventActionPinTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionPinTopic"]}, "prev_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic.", "x-tl-flag": "flags.0?ForumTopic"}, "new_topic": {"type": "object", "x-tl-type": "ForumTopic", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted", "forumTopic"]}}, "description": "Тип TL: ForumTopic.", "x-tl-flag": "flags.1?ForumTopic"}}, "required": ["_"], "additionalProperties": false}, "channelAdminLogEventActionToggleAntiSpam": {"title": "channelAdminLogEventActionToggleAntiSpam", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleAntiSpam"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangePeerColor": {"title": "channelAdminLogEventActionChangePeerColor", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangePeerColor"]}, "prev_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}, "new_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeProfilePeerColor": {"title": "channelAdminLogEventActionChangeProfilePeerColor", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeProfilePeerColor"]}, "prev_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}, "new_value": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeWallpaper": {"title": "channelAdminLogEventActionChangeWallpaper", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeWallpaper"]}, "prev_value": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL Type: WallPaper."}, "new_value": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL Type: WallPaper."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeEmojiStatus": {"title": "channelAdminLogEventActionChangeEmojiStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeEmojiStatus"]}, "prev_value": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}, "new_value": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}}, "required": ["_", "prev_value", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionChangeEmojiStickerSet": {"title": "channelAdminLogEventActionChangeEmojiStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeEmojiStickerSet"]}, "prev_stickerset": {"type": "object", "x-tl-type": "InputStickerSet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStickerSetEmpty", "inputStickerSetID", "inputStickerSetShortName", "inputStickerSetAnimatedEmoji", "inputStickerSetDice", "inputStickerSetAnimatedEmojiAnimations", "inputStickerSetPremiumGifts", "inputStickerSetEmojiGenericAnimations", "inputStickerSetEmojiDefaultStatuses", "inputStickerSetEmojiDefaultTopicIcons", "inputStickerSetEmojiChannelDefaultStatuses", "inputStickerSetTonGifts"]}}, "description": "TL Type: 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 Type: InputStickerSet."}}, "required": ["_", "prev_stickerset", "new_stickerset"], "additionalProperties": false}, "channelAdminLogEventActionToggleSignatureProfiles": {"title": "channelAdminLogEventActionToggleSignatureProfiles", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleSignatureProfiles"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionParticipantSubExtend": {"title": "channelAdminLogEventActionParticipantSubExtend", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantSubExtend"]}, "prev_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}, "new_participant": {"type": "object", "x-tl-type": "ChannelParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelParticipant", "channelParticipantSelf", "channelParticipantCreator", "channelParticipantAdmin", "channelParticipantBanned", "channelParticipantLeft"]}}, "description": "Тип TL: ChannelParticipant."}}, "required": ["_", "prev_participant", "new_participant"], "additionalProperties": false}, "channelAdminLogEventActionToggleAutotranslation": {"title": "channelAdminLogEventActionToggleAutotranslation", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionToggleAutotranslation"]}, "new_value": {"type": "boolean", "x-tl-type": "Bool"}}, "required": ["_", "new_value"], "additionalProperties": false}, "channelAdminLogEventActionParticipantEditRank": {"title": "channelAdminLogEventActionParticipantEditRank", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionParticipantEditRank"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "prev_rank": {"type": "string", "x-tl-type": "string"}, "new_rank": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "user_id", "prev_rank", "new_rank"], "additionalProperties": false}, "channelAdminLogEvent": {"title": "channelAdminLogEvent", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEvent"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "action": {"type": "object", "x-tl-type": "ChannelAdminLogEventAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventActionChangeTitle", "channelAdminLogEventActionChangeAbout", "channelAdminLogEventActionChangeUsername", "channelAdminLogEventActionChangePhoto", "channelAdminLogEventActionToggleInvites", "channelAdminLogEventActionToggleSignatures", "channelAdminLogEventActionUpdatePinned", "channelAdminLogEventActionEditMessage", "channelAdminLogEventActionDeleteMessage", "channelAdminLogEventActionParticipantJoin", "channelAdminLogEventActionParticipantLeave", "channelAdminLogEventActionParticipantInvite", "channelAdminLogEventActionParticipantToggleBan", "channelAdminLogEventActionParticipantToggleAdmin", "channelAdminLogEventActionChangeStickerSet", "channelAdminLogEventActionTogglePreHistoryHidden", "channelAdminLogEventActionDefaultBannedRights", "channelAdminLogEventActionStopPoll", "channelAdminLogEventActionChangeLinkedChat", "channelAdminLogEventActionChangeLocation", "channelAdminLogEventActionToggleSlowMode", "channelAdminLogEventActionStartGroupCall", "channelAdminLogEventActionDiscardGroupCall", "channelAdminLogEventActionParticipantMute", "channelAdminLogEventActionParticipantUnmute", "channelAdminLogEventActionToggleGroupCallSetting", "channelAdminLogEventActionParticipantJoinByInvite", "channelAdminLogEventActionExportedInviteDelete", "channelAdminLogEventActionExportedInviteRevoke", "channelAdminLogEventActionExportedInviteEdit", "channelAdminLogEventActionParticipantVolume", "channelAdminLogEventActionChangeHistoryTTL", "channelAdminLogEventActionParticipantJoinByRequest", "channelAdminLogEventActionToggleNoForwards", "channelAdminLogEventActionSendMessage", "channelAdminLogEventActionChangeAvailableReactions", "channelAdminLogEventActionChangeUsernames", "channelAdminLogEventActionToggleForum", "channelAdminLogEventActionCreateTopic", "channelAdminLogEventActionEditTopic", "channelAdminLogEventActionDeleteTopic", "channelAdminLogEventActionPinTopic", "channelAdminLogEventActionToggleAntiSpam", "channelAdminLogEventActionChangePeerColor", "channelAdminLogEventActionChangeProfilePeerColor", "channelAdminLogEventActionChangeWallpaper", "channelAdminLogEventActionChangeEmojiStatus", "channelAdminLogEventActionChangeEmojiStickerSet", "channelAdminLogEventActionToggleSignatureProfiles", "channelAdminLogEventActionParticipantSubExtend", "channelAdminLogEventActionToggleAutotranslation", "channelAdminLogEventActionParticipantEditRank"]}}, "description": "Тип TL: ChannelAdminLogEventAction."}}, "required": ["_", "id", "date", "user_id", "action"], "additionalProperties": false}, "channels.adminLogResults": {"title": "channels.adminLogResults", "description": "管理者ログイベント", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.adminLogResults"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.adminLogResults"]}, "events": {"type": "array", "items": {"type": "object", "x-tl-type": "ChannelAdminLogEvent", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["channelAdminLogEvent"]}}, "description": "Тип TL: ChannelAdminLogEvent."}, "x-tl-type": "Vector<ChannelAdminLogEvent>", "description": "管理者ログイベント", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "イベントで言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "イベントで言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "events", "chats", "users"], "additionalProperties": false}, "channelAdminLogEventsFilter": {"title": "channelAdminLogEventsFilter", "description": "特定の管理ログ イベントのみをフィルタリングする", "externalDocs": {"url": "https://core.telegram.org/constructor/channelAdminLogEventsFilter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channelAdminLogEventsFilter"]}, "join": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[招待リンクを使用した参加](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByInvite.md)や[参加リクエスト](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoinByRequest.md)を含む]イベントに参加](https://core.telegram.org/constructor/channelAdminLogEventActionParticipantJoin.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": "popularContact", "type": "object", "properties": {"_": {"type": "string", "enum": ["popularContact"]}, "client_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "importers": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "client_id", "importers"], "additionalProperties": false}, "messages.favedStickersNotModified": {"title": "messages.favedStickersNotModified", "description": "新しいお気に入りのステッカーは見つかりませんでした", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.favedStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.favedStickersNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.favedStickers": {"title": "messages.favedStickers", "description": "お気に入りのステッカー", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.favedStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.favedStickers"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "packs": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerPack", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerPack"]}}, "description": "Тип TL: StickerPack."}, "x-tl-type": "Vector<StickerPack>", "description": "ステッカーに関連付けられた絵文字", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "お気に入りのステッカー", "x-telegram-field-docs": true}}, "required": ["_", "hash", "packs", "stickers"], "additionalProperties": false}, "recentMeUrlUnknown": {"title": "recentMeUrlUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlUnknown"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "recentMeUrlUser": {"title": "recentMeUrlUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlUser"]}, "url": {"type": "string", "x-tl-type": "string"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "url", "user_id"], "additionalProperties": false}, "recentMeUrlChat": {"title": "recentMeUrlChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlChat"]}, "url": {"type": "string", "x-tl-type": "string"}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "url", "chat_id"], "additionalProperties": false}, "recentMeUrlChatInvite": {"title": "recentMeUrlChatInvite", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlChatInvite"]}, "url": {"type": "string", "x-tl-type": "string"}, "chat_invite": {"type": "object", "x-tl-type": "ChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteAlready", "chatInvite", "chatInvitePeek"]}}, "description": "TL Type: ChatInvite."}}, "required": ["_", "url", "chat_invite"], "additionalProperties": false}, "recentMeUrlStickerSet": {"title": "recentMeUrlStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["recentMeUrlStickerSet"]}, "url": {"type": "string", "x-tl-type": "string"}, "set": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "TL Type: StickerSetCovered."}}, "required": ["_", "url", "set"], "additionalProperties": false}, "help.recentMeUrls": {"title": "help.recentMeUrls", "description": "Recent t.me URLs", "externalDocs": {"url": "https://core.telegram.org/constructor/help.recentMeUrls"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.recentMeUrls"]}, "urls": {"type": "array", "items": {"type": "object", "x-tl-type": "RecentMeUrl", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["recentMeUrlUnknown", "recentMeUrlUser", "recentMeUrlChat", "recentMeUrlChatInvite", "recentMeUrlStickerSet"]}}, "description": "Тип TL: RecentMeUrl."}, "x-tl-type": "Vector<RecentMeUrl>", "description": "URLs", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "urls", "chats", "users"], "additionalProperties": false}, "inputSingleMedia": {"title": "inputSingleMedia", "description": "[アルバムまたはグループ化されたメディア](https://core.telegram.org/api/files.md#albums-grouped-media)内の単一メディアが[messages.sendMultiMedia](https://core.telegram.org/method/messages.sendMultiMedia.md)]で送信されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSingleMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSingleMedia"]}, "media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "メディア", "x-telegram-field-docs": true}, "random_id": {"type": "string", "pattern": "^-?\\d+$", "description": "メッセージの再送信を防ぐためには、一意のクライアント メディア 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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "スタイル付きテキストのメッセージ [entities](https://core.telegram.org/api/entities.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}}, "required": ["_", "media", "random_id", "message"], "additionalProperties": false}, "webAuthorization": {"title": "webAuthorization", "type": "object", "properties": {"_": {"type": "string", "enum": ["webAuthorization"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "domain": {"type": "string", "x-tl-type": "string"}, "browser": {"type": "string", "x-tl-type": "string"}, "platform": {"type": "string", "x-tl-type": "string"}, "date_created": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date_active": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "ip": {"type": "string", "x-tl-type": "string"}, "region": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "hash", "bot_id", "domain", "browser", "platform", "date_created", "date_active", "ip", "region"], "additionalProperties": false}, "account.webAuthorizations": {"title": "account.webAuthorizations", "description": "Web認証", "externalDocs": {"url": "https://core.telegram.org/constructor/account.webAuthorizations"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.webAuthorizations"]}, "authorizations": {"type": "array", "items": {"type": "object", "x-tl-type": "WebAuthorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webAuthorization"]}}, "description": "Тип TL: WebAuthorization."}, "x-tl-type": "Vector<WebAuthorization>", "description": "Web認証リスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "authorizations", "users"], "additionalProperties": false}, "inputMessageID": {"title": "inputMessageID", "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": "inputMessageReplyTo", "description": "指定されたメッセージの返信先のメッセージ", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageReplyTo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageReplyTo"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "必要なメッセージに返信するメッセージの ID", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "inputMessagePinned": {"title": "inputMessagePinned", "description": "固定メッセージ", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessagePinned"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessagePinned"]}}, "required": ["_"], "additionalProperties": false}, "inputMessageCallbackQuery": {"title": "inputMessageCallbackQuery", "description": "コールバック クエリを発信したメッセージに関する情報を取得するためにボットによって使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageCallbackQuery"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageCallbackQuery"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージ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": "inputDialogPeer", "description": "仲間", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDialogPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ピア", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "inputDialogPeerFolder": {"title": "inputDialogPeerFolder", "description": "[ピア フォルダ](https://core.telegram.org/api/folders.md#peer-folders)] 内のすべてのピア", "externalDocs": {"url": "https://core.telegram.org/constructor/inputDialogPeerFolder"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputDialogPeerFolder"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ピアフォルダー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 Type: InputChannel."}}, "required": ["_", "community"], "additionalProperties": false}, "dialogPeer": {"title": "dialogPeer", "description": "ピア", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "ピア", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "dialogPeerFolder": {"title": "dialogPeerFolder", "description": "[ピアフォルダー](https://core.telegram.org/api/folders.md#peer-folders)]", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogPeerFolder"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogPeerFolder"]}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ピアフォルダー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 Type: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "ステッカーセットが見つかりました", "x-telegram-field-docs": true}}, "required": ["_", "hash", "sets"], "additionalProperties": false}, "fileHash": {"title": "fileHash", "description": "SHA256 アップロードされたファイルのハッシュ。ダウンロード後に有効性がチェックされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/fileHash"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["fileHash"]}, "offset": {"type": "string", "pattern": "^-?\\d+$", "description": "SHA-256 ハッシュの計算を開始する位置からのオフセット", "x-tl-type": "long", "x-telegram-field-docs": true}, "limit": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "長さ", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "SHA-256 ファイルチャンクのハッシュ、ダウンロード後に有効性がチェックされる", "x-telegram-field-docs": true}}, "required": ["_", "offset", "limit", "hash"], "additionalProperties": false}, "inputClientProxy": {"title": "inputClientProxy", "description": "接続に使用される [MTProxy](https://core.telegram.org/mtproto/mtproto-transports.md#transport-obfuscation)] に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputClientProxy"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputClientProxy"]}, "address": {"type": "string", "x-tl-type": "string", "description": "プロキシアドレス", "x-telegram-field-docs": true}, "port": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "プロキシポート", "x-telegram-field-docs": true}}, "required": ["_", "address", "port"], "additionalProperties": false}, "help.termsOfServiceUpdateEmpty": {"title": "help.termsOfServiceUpdateEmpty", "description": "Telegram の利用規約には変更は加えられませんでした", "externalDocs": {"url": "https://core.telegram.org/constructor/help.termsOfServiceUpdateEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.termsOfServiceUpdateEmpty"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "新しい TOS アップデートは、[`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 の利用規約の更新に関する情報。利用規約が拒否された場合は、「ToS アップデートの拒否」という理由で [account.deleteAccount](https://core.telegram.org/method/account.deleteAccount.md)] メソッドを呼び出す必要があります。", "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": "inputSecureFileUploaded", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "parts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "md5_checksum": {"type": "string", "x-tl-type": "string"}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "parts", "md5_checksum", "file_hash", "secret"], "additionalProperties": false}, "inputSecureFile": {"title": "inputSecureFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "secureFileEmpty": {"title": "secureFileEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureFileEmpty"]}}, "required": ["_"], "additionalProperties": false}, "secureFile": {"title": "secureFile", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureFile"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "size": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "id", "access_hash", "size", "dc_id", "date", "file_hash", "secret"], "additionalProperties": false}, "secureData": {"title": "secureData", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureData"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "data_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "data", "data_hash", "secret"], "additionalProperties": false}, "securePlainPhone": {"title": "securePlainPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainPhone"]}, "phone": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "phone"], "additionalProperties": false}, "securePlainEmail": {"title": "securePlainEmail", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePlainEmail"]}, "email": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "email"], "additionalProperties": false}, "secureValueTypePersonalDetails": {"title": "secureValueTypePersonalDetails", "description": "個人情報", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePersonalDetails"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePassport": {"title": "secureValueTypePassport", "description": "パスポート", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePassport"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeDriverLicense": {"title": "secureValueTypeDriverLicense", "description": "運転免許証", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeDriverLicense"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeDriverLicense"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeIdentityCard": {"title": "secureValueTypeIdentityCard", "description": "身分証明書", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeIdentityCard"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeIdentityCard"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeInternalPassport": {"title": "secureValueTypeInternalPassport", "description": "内部 [パスポート](https://core.telegram.org/passport.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeInternalPassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeInternalPassport"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeAddress": {"title": "secureValueTypeAddress", "description": "住所", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeAddress"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeAddress"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeUtilityBill": {"title": "secureValueTypeUtilityBill", "description": "公共料金の請求書", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeUtilityBill"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeUtilityBill"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeBankStatement": {"title": "secureValueTypeBankStatement", "description": "銀行取引明細書", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeBankStatement"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeBankStatement"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeRentalAgreement": {"title": "secureValueTypeRentalAgreement", "description": "レンタル契約書", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeRentalAgreement"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeRentalAgreement"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePassportRegistration": {"title": "secureValueTypePassportRegistration", "description": "内部登録 [パスポート](https://core.telegram.org/passport.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePassportRegistration"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePassportRegistration"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeTemporaryRegistration": {"title": "secureValueTypeTemporaryRegistration", "description": "仮登録", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeTemporaryRegistration"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypePhone": {"title": "secureValueTypePhone", "description": "電話", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypePhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypePhone"]}}, "required": ["_"], "additionalProperties": false}, "secureValueTypeEmail": {"title": "secureValueTypeEmail", "description": "電子メール", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueTypeEmail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueTypeEmail"]}}, "required": ["_"], "additionalProperties": false}, "secureValue": {"title": "secureValue", "description": "安全な価値", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValue"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "安全な [パスポート](https://core.telegram.org/passport.md) 値タイプ]", "x-telegram-field-docs": true}, "data": {"type": "object", "x-tl-type": "SecureData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureData"]}}, "description": "暗号化された[Telegram Passport](https://core.telegram.org/passport.md)要素データ]", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?SecureData"}, "front_side": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "文書の表面が暗号化された[パスポート](https://core.telegram.org/passport.md)ファイル]", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?SecureFile"}, "reverse_side": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "文書の裏面が暗号化された[パスポート](https://core.telegram.org/passport.md)ファイル]", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?SecureFile"}, "selfie": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "暗号化された[パスポート](https://core.telegram.org/passport.md)ファイルと文書を持つユーザーの自撮り写真]", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?SecureFile"}, "translation": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Тип TL: SecureFile."}, "x-tl-type": "Vector<SecureFile>", "description": "提供された文書の翻訳版を含む暗号化された [パスポート](https://core.telegram.org/passport.md)] ファイルの配列", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<SecureFile>"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureFileEmpty", "secureFile"]}}, "description": "Тип TL: SecureFile."}, "x-tl-type": "Vector<SecureFile>", "description": "文書の写真を含む暗号化された [パスポート](https://core.telegram.org/passport.md) ファイル] の配列", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<SecureFile>"}, "plain_data": {"type": "object", "x-tl-type": "SecurePlainData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePlainPhone", "securePlainEmail"]}}, "description": "平文検証済み [パスポート](https://core.telegram.org/passport.md)データ]", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?SecurePlainData"}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "データハッシュ", "x-telegram-field-docs": true}}, "required": ["_", "type", "hash"], "additionalProperties": false}, "inputSecureValue": {"title": "inputSecureValue", "description": "安全な価値、[詳細についてはパスポートのドキュメントをご覧ください »](https://core.telegram.org/passport/encryption.md#encryption)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSecureValue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSecureValue"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "安全な [パスポート](https://core.telegram.org/passport.md) 値タイプ]", "x-telegram-field-docs": true}, "data": {"type": "object", "x-tl-type": "SecureData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureData"]}}, "description": "暗号化された[Telegram Passport](https://core.telegram.org/passport.md)要素データ]", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?SecureData"}, "front_side": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "文書の表面が暗号化された[パスポート](https://core.telegram.org/passport.md)ファイル]", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputSecureFile"}, "reverse_side": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "文書の裏面が暗号化された[パスポート](https://core.telegram.org/passport.md)ファイル]", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?InputSecureFile"}, "selfie": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "暗号化された[パスポート](https://core.telegram.org/passport.md)ファイルと文書を持つユーザーの自撮り写真]", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputSecureFile"}, "translation": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Тип TL: InputSecureFile."}, "x-tl-type": "Vector<InputSecureFile>", "description": "提供された文書の翻訳版を含む暗号化された [パスポート](https://core.telegram.org/passport.md)] ファイルの配列", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<InputSecureFile>"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "InputSecureFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSecureFileUploaded", "inputSecureFile"]}}, "description": "Тип TL: InputSecureFile."}, "x-tl-type": "Vector<InputSecureFile>", "description": "文書の写真を含む暗号化された [パスポート](https://core.telegram.org/passport.md) ファイル] の配列", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<InputSecureFile>"}, "plain_data": {"type": "object", "x-tl-type": "SecurePlainData", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePlainPhone", "securePlainEmail"]}}, "description": "平文検証済み [パスポート](https://core.telegram.org/passport.md)データ]", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?SecurePlainData"}}, "required": ["_", "type"], "additionalProperties": false}, "secureValueHash": {"title": "secureValueHash", "description": "安全な値ハッシュ", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueHash"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueHash"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "安全な値のタイプ", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ハッシュ", "x-telegram-field-docs": true}}, "required": ["_", "type", "hash"], "additionalProperties": false}, "secureValueErrorData": {"title": "secureValueErrorData", "description": "ユーザーが提供したデータ フィールドの 1 つにおける問題を表します。フィールドの値が変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorData"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "ユーザーの Telegram パスポートのエラーのあるセクション。[secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md)、[secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)、[secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)、[secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)、[secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)、 [secureValueTypeAddress](https://core.telegram.org/constructor/secureValueTypeAddress.md)]", "x-telegram-field-docs": true}, "data_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "データハッシュ", "x-telegram-field-docs": true}, "field": {"type": "string", "x-tl-type": "string", "description": "エラーのあるデータフィールドの名前", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "data_hash", "field", "text"], "additionalProperties": false}, "secureValueErrorFrontSide": {"title": "secureValueErrorFrontSide", "description": "文書の表面の問題を表します。ドキュメントの表面を含むファイルが変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFrontSide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFrontSide"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "[secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)、[secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)、[secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)、[secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)]] のいずれか", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ファイルハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorReverseSide": {"title": "secureValueErrorReverseSide", "description": "文書の裏面の問題を表します。ドキュメントの裏面が変更されたファイルが変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorReverseSide"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorReverseSide"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "[secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)、[secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)]のいずれか", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ファイルハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorSelfie": {"title": "secureValueErrorSelfie", "description": "ドキュメントを含むセルフィーの問題を表します。セルフィーを含むファイルが変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorSelfie"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorSelfie"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "[secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)、[secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)、[secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)、[secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)]] のいずれか", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ファイルハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorFile": {"title": "secureValueErrorFile", "description": "ドキュメントのスキャンに関する問題を表します。ドキュメントがスキャンされたファイルが変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFile"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "[secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)、[secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)、[secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)、[secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)、[secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)]] のいずれか", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ファイルハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorFiles": {"title": "secureValueErrorFiles", "description": "スキャンのリストに関する問題を表します。スキャンを含むファイルのリストが変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorFiles"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "[secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)、[secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)、[secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)、[secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)、[secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)]] のいずれか", "x-telegram-field-docs": true}, "file_hash": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "ファイルハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueError": {"title": "secureValueError", "description": "セキュア値エラー", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueError"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueError"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "問題のある要素の種類", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "hash", "text"], "additionalProperties": false}, "secureValueErrorTranslationFile": {"title": "secureValueErrorTranslationFile", "description": "文書の翻訳を構成するファイルの 1 つに関する問題を表します。ファイルが変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorTranslationFile"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorTranslationFile"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "[secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md)、[secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)、[secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)、[secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)、[secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)、[secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)、 [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)、[secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)、[secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)、[secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)]]", "x-telegram-field-docs": true}, "file_hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ファイルハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureValueErrorTranslationFiles": {"title": "secureValueErrorTranslationFiles", "description": "ドキュメントの翻訳版に関する問題を表します。ドキュメントの翻訳が含まれるファイルが変更されると、エラーは解決されたとみなされます。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureValueErrorTranslationFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureValueErrorTranslationFiles"]}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "[secureValueTypePersonalDetails](https://core.telegram.org/constructor/secureValueTypePersonalDetails.md)、[secureValueTypePassport](https://core.telegram.org/constructor/secureValueTypePassport.md)、[secureValueTypeDriverLicense](https://core.telegram.org/constructor/secureValueTypeDriverLicense.md)、[secureValueTypeIdentityCard](https://core.telegram.org/constructor/secureValueTypeIdentityCard.md)、[secureValueTypeInternalPassport](https://core.telegram.org/constructor/secureValueTypeInternalPassport.md)、[secureValueTypeUtilityBill](https://core.telegram.org/constructor/secureValueTypeUtilityBill.md)、 [secureValueTypeBankStatement](https://core.telegram.org/constructor/secureValueTypeBankStatement.md)、[secureValueTypeRentalAgreement](https://core.telegram.org/constructor/secureValueTypeRentalAgreement.md)、[secureValueTypePassportRegistration](https://core.telegram.org/constructor/secureValueTypePassportRegistration.md)、[secureValueTypeTemporaryRegistration](https://core.telegram.org/constructor/secureValueTypeTemporaryRegistration.md)]]", "x-telegram-field-docs": true}, "file_hash": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>", "description": "ハッシュ", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "エラーメッセージ", "x-telegram-field-docs": true}}, "required": ["_", "type", "file_hash", "text"], "additionalProperties": false}, "secureCredentialsEncrypted": {"title": "secureCredentialsEncrypted", "description": "[テレグラムパスポート](https://core.telegram.org/passport.md)データ]を復号化するには、暗号化された資格情報が必要です。", "externalDocs": {"url": "https://core.telegram.org/constructor/secureCredentialsEncrypted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["secureCredentialsEncrypted"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[データの復号化 »](https://core.telegram.org/passport.md#decrypting-data) で説明されているように、EncryptedPassportElement の復号化と認証に必要な、一意のユーザーのペイロード、データ ハッシュ、およびシークレットを含む暗号化された JSON シリアル化データ", "x-telegram-field-docs": true}, "hash": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[データの復号化 »](https://core.telegram.org/passport.md#decrypting-data)] で説明されているデータ認証のためのデータ ハッシュ", "x-telegram-field-docs": true}, "secret": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "ボットの公開鍵 RSA で暗号化された秘密。[データの復号化 »](https://core.telegram.org/passport.md#decrypting-data) で説明されているように、データの復号化に必要です。", "x-telegram-field-docs": true}}, "required": ["_", "data", "hash", "secret"], "additionalProperties": false}, "account.authorizationForm": {"title": "account.authorizationForm", "description": "[Telegram Passport](https://core.telegram.org/passport.md) 認証フォーム]", "externalDocs": {"url": "https://core.telegram.org/constructor/account.authorizationForm"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.authorizationForm"]}, "required_types": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureRequiredType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureRequiredType", "secureRequiredTypeOneOf"]}}, "description": "Тип TL: SecureRequiredType."}, "x-tl-type": "Vector<SecureRequiredType>", "description": "必要な[テレグラムパスポート](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 Type: SecureValue."}, "x-tl-type": "Vector<SecureValue>", "description": "提出済みの[Telegram Passport](https://core.telegram.org/passport.md)書類]", "x-telegram-field-docs": true}, "errors": {"type": "array", "items": {"type": "object", "x-tl-type": "SecureValueError", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueErrorData", "secureValueErrorFrontSide", "secureValueErrorReverseSide", "secureValueErrorSelfie", "secureValueErrorFile", "secureValueErrorFiles", "secureValueError", "secureValueErrorTranslationFile", "secureValueErrorTranslationFiles"]}}, "description": "TL Type: SecureValueError."}, "x-tl-type": "Vector<SecureValueError>", "description": "[テレグラムパスポート](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": "Type TL: User."}, "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<MessageEntity>"}}, "required": ["_", "message"], "additionalProperties": false}, "savedPhoneContact": {"title": "savedPhoneContact", "description": "保存された連絡先", "externalDocs": {"url": "https://core.telegram.org/constructor/savedPhoneContact"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["savedPhoneContact"]}, "phone": {"type": "string", "x-tl-type": "string", "description": "電話番号", "x-telegram-field-docs": true}, "first_name": {"type": "string", "x-tl-type": "string", "description": "名", "x-telegram-field-docs": true}, "last_name": {"type": "string", "x-tl-type": "string", "description": "姓", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "追加日", "x-telegram-field-docs": true}}, "required": ["_", "phone", "first_name", "last_name", "date"], "additionalProperties": false}, "account.takeout": {"title": "account.takeout", "description": "テイクアウト情報", "externalDocs": {"url": "https://core.telegram.org/constructor/account.takeout"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.takeout"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "テイクアウトID", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "passwordKdfAlgoUnknown": {"title": "passwordKdfAlgoUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoUnknown"]}}, "required": ["_"], "additionalProperties": false}, "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow": {"title": "passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow", "type": "object", "properties": {"_": {"type": "string", "enum": ["passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"]}, "salt1": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "salt2": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "g": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "p": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "salt1", "salt2", "g", "p"], "additionalProperties": false}, "securePasswordKdfAlgoUnknown": {"title": "securePasswordKdfAlgoUnknown", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoUnknown"]}}, "required": ["_"], "additionalProperties": false}, "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000": {"title": "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoPBKDF2HMACSHA512iter100000"]}, "salt": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "salt"], "additionalProperties": false}, "securePasswordKdfAlgoSHA512": {"title": "securePasswordKdfAlgoSHA512", "type": "object", "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoSHA512"]}, "salt": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "salt"], "additionalProperties": false}, "secureSecretSettings": {"title": "secureSecretSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureSecretSettings"]}, "secure_algo": {"type": "object", "x-tl-type": "SecurePasswordKdfAlgo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["securePasswordKdfAlgoUnknown", "securePasswordKdfAlgoPBKDF2HMACSHA512iter100000", "securePasswordKdfAlgoSHA512"]}}, "description": "Тип TL: SecurePasswordKdfAlgo."}, "secure_secret": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "secure_secret_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "secure_algo", "secure_secret", "secure_secret_id"], "additionalProperties": false}, "inputCheckPasswordEmpty": {"title": "inputCheckPasswordEmpty", "description": "パスワードはありません", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCheckPasswordEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCheckPasswordEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputCheckPasswordSRP": {"title": "inputCheckPasswordSRP", "description": "2FA SRP パスワードの有効性をチェックするためのコンストラクター ([SRP](https://core.telegram.org/api/srp.md)] を参照)", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCheckPasswordSRP"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCheckPasswordSRP"]}, "srp_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[SRP ID](https://core.telegram.org/api/srp.md)]", "x-tl-type": "long", "x-telegram-field-docs": true}, "A": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`A` パラメータ ([SRP](https://core.telegram.org/api/srp.md)] を参照)", "x-telegram-field-docs": true}, "M1": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "`M1` パラメータ ([SRP](https://core.telegram.org/api/srp.md)] を参照)", "x-telegram-field-docs": true}}, "required": ["_", "srp_id", "A", "M1"], "additionalProperties": false}, "secureRequiredType": {"title": "secureRequiredType", "type": "object", "properties": {"_": {"type": "string", "enum": ["secureRequiredType"]}, "native_names": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "selfie_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "translation_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "type": {"type": "object", "x-tl-type": "SecureValueType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["secureValueTypePersonalDetails", "secureValueTypePassport", "secureValueTypeDriverLicense", "secureValueTypeIdentityCard", "secureValueTypeInternalPassport", "secureValueTypeAddress", "secureValueTypeUtilityBill", "secureValueTypeBankStatement", "secureValueTypeRentalAgreement", "secureValueTypePassportRegistration", "secureValueTypeTemporaryRegistration", "secureValueTypePhone", "secureValueTypeEmail"]}}, "description": "TL Type: 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": "電報[パスポート](https://core.telegram.org/passport.md)設定]", "externalDocs": {"url": "https://core.telegram.org/constructor/help.passportConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.passportConfig"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "countries_langs": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "ローカリゼーション", "x-telegram-field-docs": true}}, "required": ["_", "hash", "countries_langs"], "additionalProperties": false}, "inputAppEvent": {"title": "inputAppEvent", "description": "アプリケーション内で発生したイベント。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAppEvent"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAppEvent"]}, "time": {"type": "number", "format": "double", "x-tl-type": "double", "description": "イベントに対するクライアントの正確なタイムスタンプ", "x-telegram-field-docs": true}, "type": {"type": "string", "x-tl-type": "string", "description": "イベントの種類", "x-telegram-field-docs": true}, "peer": {"type": "string", "pattern": "^-?\\d+$", "description": "特定のイベント タイプ、または特定のオブジェクトを参照するイベントをより便利に選択するための任意の数値", "x-tl-type": "long", "x-telegram-field-docs": true}, "data": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "イベントの詳細", "x-telegram-field-docs": true}}, "required": ["_", "time", "type", "peer", "data"], "additionalProperties": false}, "jsonObjectValue": {"title": "jsonObjectValue", "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonObjectValue"]}, "key": {"type": "string", "x-tl-type": "string"}, "value": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "Тип TL: JSONValue."}}, "required": ["_", "key", "value"], "additionalProperties": false}, "jsonNull": {"title": "jsonNull", "description": "null JSON 値\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonNull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonNull"]}}, "required": ["_"], "additionalProperties": false}, "jsonBool": {"title": "jsonBool", "description": "JSON ブール値\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonBool"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonBool"]}, "value": {"type": "boolean", "x-tl-type": "Bool", "description": "値", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonNumber": {"title": "jsonNumber", "description": "JSON 数値\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonNumber"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonNumber"]}, "value": {"type": "number", "format": "double", "x-tl-type": "double", "description": "値", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonString": {"title": "jsonString", "description": "JSON string\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonString"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonString"]}, "value": {"type": "string", "x-tl-type": "string", "description": "値", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonArray": {"title": "jsonArray", "description": "JSON 配列\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonArray"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonArray"]}, "value": {"type": "array", "items": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "Тип TL: JSONValue."}, "x-tl-type": "Vector<JSONValue>", "description": "JSON の値", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "jsonObject": {"title": "jsonObject", "description": "JSON オブジェクトの値\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/jsonObject"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["jsonObject"]}, "value": {"type": "array", "items": {"type": "object", "x-tl-type": "JSONObjectValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonObjectValue"]}}, "description": "Тип TL: JSONObjectValue."}, "x-tl-type": "Vector<JSONObjectValue>", "description": "価値観", "x-telegram-field-docs": true}}, "required": ["_", "value"], "additionalProperties": false}, "pageTableCell": {"title": "pageTableCell", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageTableCell"]}, "header": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "align_center": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "align_right": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "valign_middle": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "valign_bottom": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText.", "x-tl-flag": "flags.7?RichText"}, "colspan": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "rowspan": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "pageTableRow": {"title": "pageTableRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageTableRow"]}, "cells": {"type": "array", "items": {"type": "object", "x-tl-type": "PageTableCell", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageTableCell"]}}, "description": "Тип TL: PageTableCell."}, "x-tl-type": "Vector<PageTableCell>"}}, "required": ["_", "cells"], "additionalProperties": false}, "pageCaption": {"title": "pageCaption", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageCaption"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "credit": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text", "credit"], "additionalProperties": false}, "pageListItemText": {"title": "pageListItemText", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListItemText"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}}, "required": ["_", "text"], "additionalProperties": false}, "pageListItemBlocks": {"title": "pageListItemBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListItemBlocks"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}}, "required": ["_", "blocks"], "additionalProperties": false}, "pageListOrderedItemText": {"title": "pageListOrderedItemText", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemText"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "num": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "text"], "additionalProperties": false}, "pageListOrderedItemBlocks": {"title": "pageListOrderedItemBlocks", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageListOrderedItemBlocks"]}, "checkbox": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "checked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "num": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "value": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "type": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}}, "required": ["_", "blocks"], "additionalProperties": false}, "pageRelatedArticle": {"title": "pageRelatedArticle", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageRelatedArticle"]}, "url": {"type": "string", "x-tl-type": "string"}, "webpage_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "author": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "published_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_", "url", "webpage_id"], "additionalProperties": false}, "page": {"title": "page", "type": "object", "properties": {"_": {"type": "string", "enum": ["page"]}, "part": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "v2": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "url": {"type": "string", "x-tl-type": "string"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}}, "required": ["_", "url", "blocks", "photos", "documents"], "additionalProperties": false}, "help.supportName": {"title": "help.supportName", "description": "テレグラムサポートのローカライズされた名前", "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}, "author": {"type": "string", "x-tl-type": "string", "description": "著者", "x-telegram-field-docs": true}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "日付", "x-telegram-field-docs": true}}, "required": ["_", "message", "entities", "author", "date"], "additionalProperties": false}, "pollAnswer": {"title": "pollAnswer", "description": "世論調査の考えられる回答", "externalDocs": {"url": "https://core.telegram.org/constructor/pollAnswer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["pollAnswer"]}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "回答のテキスト表現 (ここでは [プレミアム](https://core.telegram.org/api/premium.md) ユーザーのみが [カスタム絵文字エンティティ](https://core.telegram.org/api/custom-emoji.md)] を使用できます)。", "x-telegram-field-docs": true}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[messages.sendVote](https://core.telegram.org/method/messages.sendVote.md)] に渡す必要があるパラメータ。", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "回答と一緒に表示されるオプションのメディア添付ファイル", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?MessageMedia"}, "added_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "この回答を追加したピア。自由回答投票に動的に追加された回答に対してのみ設定されます。「投票」を参照してください »](https://core.telegram.org/api/poll.md#open-answer-polls)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Peer"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "この回答が追加されたとき;自由回答投票に動的に追加された回答に対してのみ設定されます", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}}, "required": ["_", "text", "option"], "additionalProperties": false}, "inputPollAnswer": {"title": "inputPollAnswer", "description": "[自由回答投票 »](https://core.telegram.org/api/poll.md#open-answer-polls)] に追加する回答オプション", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPollAnswer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPollAnswer"]}, "text": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "回答文", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "InputMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia", "inputMediaTodo", "inputMediaStakeDice", "inputMediaWidget", "inputMediaWidgetId"]}}, "description": "回答と一緒に表示するオプションのメディア添付ファイル", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputMedia"}}, "required": ["_", "text"], "additionalProperties": false}, "poll": {"title": "poll", "type": "object", "properties": {"_": {"type": "string", "enum": ["poll"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "public_voters": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "multiple_choice": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "quiz": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "open_answers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "revoting_disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "shuffle_answers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "hide_results_until_close": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "subscribers_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "question": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities."}, "answers": {"type": "array", "items": {"type": "object", "x-tl-type": "PollAnswer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswer", "inputPollAnswer"]}}, "description": "Тип TL: PollAnswer."}, "x-tl-type": "Vector<PollAnswer>"}, "close_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "close_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "countries_iso2": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.12?Vector<string>"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "question", "answers", "hash"], "additionalProperties": false}, "pollAnswerVoters": {"title": "pollAnswerVoters", "type": "object", "properties": {"_": {"type": "string", "enum": ["pollAnswerVoters"]}, "chosen": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "correct": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "voters": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "recent_voters": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.2?Vector<Peer>"}}, "required": ["_", "option"], "additionalProperties": false}, "pollResults": {"title": "pollResults", "type": "object", "properties": {"_": {"type": "string", "enum": ["pollResults"]}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "has_unread_votes": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "can_view_stats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "PollAnswerVoters", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pollAnswerVoters"]}}, "description": "Тип TL: PollAnswerVoters."}, "x-tl-type": "Vector<PollAnswerVoters>", "x-tl-flag": "flags.1?Vector<PollAnswerVoters>"}, "total_voters": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "recent_voters": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.3?Vector<Peer>"}, "solution": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "solution_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.4?Vector<MessageEntity>"}, "solution_media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia.", "x-tl-flag": "flags.5?MessageMedia"}}, "required": ["_"], "additionalProperties": false}, "chatOnlines": {"title": "chatOnlines", "description": "チャット中のオンライン ユーザーの数", "externalDocs": {"url": "https://core.telegram.org/constructor/chatOnlines"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatOnlines"]}, "onlines": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "オンラインユーザー数", "x-telegram-field-docs": true}}, "required": ["_", "onlines"], "additionalProperties": false}, "statsURL": {"title": "statsURL", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsURL"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "chatAdminRights": {"title": "chatAdminRights", "description": "[チャンネル/スーパーグループ](https://core.telegram.org/api/channel.md)] における管理者の権限を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatAdminRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}, "change_info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、管理者は [チャンネル/スーパーグループ](https://core.telegram.org/api/channel.md)] の説明を変更できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "post_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、管理者が [チャンネル](https://core.telegram.org/api/channel.md)] にメッセージを投稿できるようになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "edit_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、管理者は [チャンネル](https://core.telegram.org/api/channel.md)] 内の他の管理者からのメッセージも編集できます", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "delete_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、管理者は [チャンネル](https://core.telegram.org/api/channel.md)] 内の他の管理者からのメッセージも削除できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "ban_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、管理者は [チャンネル/スーパーグループ](https://core.telegram.org/api/channel.md)] からユーザーを禁止できます", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "invite_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、管理者が [チャンネル/スーパーグループ](https://core.telegram.org/api/channel.md)] にユーザーを招待できるようになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "pin_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、管理者が [チャンネル/スーパーグループ](https://core.telegram.org/api/channel.md)] にメッセージを固定できるようになります", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "add_admins": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、管理者は同じ (またはより制限された) 権限を持つ他の管理者を [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": "chatBannedRights", "description": "[スーパーグループ/チャンネル/チャット](https://core.telegram.org/api/channel.md)] における通常のユーザーの権限を表します。この場合、フラグは反転されます。設定されている場合、フラグはユーザーによる X の実行を**許可しません**。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatBannedRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatBannedRights"]}, "view_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャネル/チャット](https://core.telegram.org/api/channel.md)] でメッセージを表示できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "send_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でメッセージを送信できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "send_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でメディアを送信できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "send_stickers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でステッカーを送信できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "send_gifs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "If set, does not allow a user to send gifs in a [supergroup/chat](https://core.telegram.org/api/channel.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "send_games": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でゲームを送信できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "send_inline": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でインライン ボットを使用できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "embed_links": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] のメッセージにリンクを埋め込むことができなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "send_polls": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] で投票を送信できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?true"}, "change_info": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] の説明を変更できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.10?true"}, "invite_users": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] にユーザーを招待できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.15?true"}, "pin_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] にメッセージを固定できなくなります", "x-telegram-field-docs": true, "x-tl-flag": "flags.17?true"}, "manage_topics": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [フォーラム トピック »](https://core.telegram.org/api/forum.md#forum-topics)] を作成、削除、または変更できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.18?true"}, "send_photos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] で写真を送信できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.19?true"}, "send_videos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でビデオを送信できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.20?true"}, "send_roundvideos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でラウンドビデオを送信できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.21?true"}, "send_audios": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でオーディオ ファイルを送信できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.22?true"}, "send_voices": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] で音声メッセージを送信できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.23?true"}, "send_docs": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でドキュメントを送信できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.24?true"}, "send_plain": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/channel.md)] でテキスト メッセージを送信できなくなります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.25?true"}, "edit_rank": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、ユーザーは [スーパーグループ/チャット](https://core.telegram.org/api/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": "inputWallPaper", "description": "[壁紙](https://core.telegram.org/api/wallpapers.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inputWallPaper"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWallPaper"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "[壁紙](https://core.telegram.org/api/wallpapers.md) ID]", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "アクセスハッシュ", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputWallPaperSlug": {"title": "inputWallPaperSlug", "description": "[壁紙](https://core.telegram.org/api/wallpapers.md) by slug ([壁紙リンク »](https://core.telegram.org/api/links.md#wallpaper-links)] から取得した一意の ID)", "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": "inputWallPaperNoFile", "description": "[ファイル アクセス ハッシュのない壁紙](https://core.telegram.org/api/wallpapers.md)。たとえば、壁紙 ID のみを指定して、[account.saveWallPaper](https://core.telegram.org/method/account.saveWallPaper.md)] を使用して (`unsave=true`) 壁紙を削除するときに使用されます。", "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 Type: WallPaper."}, "x-tl-type": "Vector<WallPaper>", "description": "[壁紙](https://core.telegram.org/api/wallpapers.md)]", "x-telegram-field-docs": true}}, "required": ["_", "hash", "wallpapers"], "additionalProperties": false}, "codeSettings": {"title": "codeSettings", "description": "Telegram サーバーが確認コードを送信するために使用する設定。\n\n実装例: [telegram for 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": "Firebase 認証用の公式 iOS アプリでのみ使用されます: Apple Push 用のデバイス トークン。", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?string"}, "app_sandbox": {"type": "boolean", "x-tl-type": "Bool", "description": "Firebase 認証のために公式 iOS アプリによってのみ使用されます: プッシュ通知の送信中にサンドボックス証明書が使用されるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.8?Bool"}}, "required": ["_"], "additionalProperties": false}, "wallPaperSettings": {"title": "wallPaperSettings", "description": "[壁紙](https://core.telegram.org/api/wallpapers.md)レンダリング情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/wallPaperSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}, "blur": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[画像の壁紙 »](https://core.telegram.org/api/wallpapers.md#image-wallpapers): 設定されている場合、JPEG を 450x450 の正方形に収まるように縮小し、半径 12 でボックスぼかしを行う必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "motion": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定した場合、デバイスを回転するときに背景をわずかに移動する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ソリッド »](https://core.telegram.org/api/wallpapers.md#solid-fill)、[グラデーション »](https://core.telegram.org/api/wallpapers.md#gradient-fill)、および [フリーフォーム グラデーション »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill)] の塗りつぶしに使用されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "second_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[グラデーション »](https://core.telegram.org/api/wallpapers.md#gradient-fill) および [フリーフォーム グラデーション »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill)] の塗りつぶしに使用されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "third_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[フリーフォーム グラデーション »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill) の塗りつぶしに使用されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "fourth_background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[フリーフォーム グラデーション »](https://core.telegram.org/api/wallpapers.md#freeform-gradient-fill) の塗りつぶしに使用されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?int"}, "intensity": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[パターン壁紙»](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers)]に使用されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?int"}, "rotation": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "グラデーションの時計回りの回転角度 (度単位)。 0-359。常に 45 で割り切れる必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "設定すると、この壁紙はチャンネルの壁紙として使用でき、指定された UTF-8 絵文字で表されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?string"}}, "required": ["_"], "additionalProperties": false}, "autoDownloadSettings": {"title": "autoDownloadSettings", "description": "自動ダウンロード設定", "externalDocs": {"url": "https://core.telegram.org/constructor/autoDownloadSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}, "disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "メディアの自動ダウンロードを無効にしますか?", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "video_preload_large": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "指定された制限を超えるビデオの最初の数秒をプリロードするかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "audio_preload_next": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "音楽を聴いているときに次のオーディオ トラックをプリロードするかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "phonecalls_less_data": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "通話時にデータ節約モードを有効にするかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "stories_preload": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "プリロードするかどうか [ストーリー](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": "20MB 未満のファイルについて、同じ DC から並行してダウンロードするファイルの最大数を指定する制限。", "x-telegram-field-docs": true}, "large_queue_active_operations_max": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "20MB を超えるファイルについて、同じ DC から並行してダウンロードするファイルの最大数を指定する制限。", "x-telegram-field-docs": true}}, "required": ["_", "photo_size_max", "video_size_max", "file_size_max", "video_upload_maxbitrate", "small_queue_active_operations_max", "large_queue_active_operations_max"], "additionalProperties": false}, "account.autoDownloadSettings": {"title": "account.autoDownloadSettings", "description": "メディアの自動ダウンロード設定", "externalDocs": {"url": "https://core.telegram.org/constructor/account.autoDownloadSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.autoDownloadSettings"]}, "low": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "低データ使用量のプリセット", "x-telegram-field-docs": true}, "medium": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "中データ使用量のプリセット", "x-telegram-field-docs": true}, "high": {"type": "object", "x-tl-type": "AutoDownloadSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoDownloadSettings"]}}, "description": "データ使用量が多いプリセット", "x-telegram-field-docs": true}}, "required": ["_", "low", "medium", "high"], "additionalProperties": false}, "emojiKeyword": {"title": "emojiKeyword", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeyword"]}, "keyword": {"type": "string", "x-tl-type": "string"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "keyword", "emoticons"], "additionalProperties": false}, "emojiKeywordDeleted": {"title": "emojiKeywordDeleted", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeywordDeleted"]}, "keyword": {"type": "string", "x-tl-type": "string"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "keyword", "emoticons"], "additionalProperties": false}, "emojiKeywordsDifference": {"title": "emojiKeywordsDifference", "description": "絵文字キーワードの変更", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiKeywordsDifference"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiKeywordsDifference"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "キーワードの言語コード", "x-telegram-field-docs": true}, "from_version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "絵文字キーワード リストの以前のバージョン", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在のバージョンの絵文字キーワード リスト", "x-telegram-field-docs": true}, "keywords": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiKeyword", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiKeyword", "emojiKeywordDeleted"]}}, "description": "Тип TL: EmojiKeyword."}, "x-tl-type": "Vector<EmojiKeyword>", "description": "キーワードに関連付けられた絵文字", "x-telegram-field-docs": true}}, "required": ["_", "lang_code", "from_version", "version", "keywords"], "additionalProperties": false}, "emojiURL": {"title": "emojiURL", "description": "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": "emojiLanguage", "description": "絵文字言語", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiLanguage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiLanguage"]}, "lang_code": {"type": "string", "x-tl-type": "string", "description": "言語コード", "x-telegram-field-docs": true}}, "required": ["_", "lang_code"], "additionalProperties": false}, "folder": {"title": "folder", "type": "object", "properties": {"_": {"type": "string", "enum": ["folder"]}, "autofill_new_broadcasts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "autofill_public_groups": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "autofill_new_correspondents": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "ChatPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatPhotoEmpty", "chatPhoto"]}}, "description": "Тип TL: ChatPhoto.", "x-tl-flag": "flags.3?ChatPhoto"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "inputFolderPeer": {"title": "inputFolderPeer", "description": "フォルダー内のピア", "externalDocs": {"url": "https://core.telegram.org/constructor/inputFolderPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFolderPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ピア", "x-telegram-field-docs": true}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ピアフォルダーID、詳細についてはここをクリック](https://core.telegram.org/api/folders.md#peer-folders)", "x-telegram-field-docs": true}}, "required": ["_", "peer", "folder_id"], "additionalProperties": false}, "folderPeer": {"title": "folderPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["folderPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "folder_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "folder_id"], "additionalProperties": false}, "messages.searchCounter": {"title": "messages.searchCounter", "description": "同じパラメータを使用した [messages.search](https://core.telegram.org/method/messages.search.md)] 呼び出しによって検索される結果の数を示します", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.searchCounter"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.searchCounter"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、結果が不正確になる可能性があります", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "filter": {"type": "object", "x-tl-type": "MessagesFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputMessagesFilterEmpty", "inputMessagesFilterPhotos", "inputMessagesFilterVideo", "inputMessagesFilterPhotoVideo", "inputMessagesFilterDocument", "inputMessagesFilterUrl", "inputMessagesFilterGif", "inputMessagesFilterVoice", "inputMessagesFilterMusic", "inputMessagesFilterChatPhotos", "inputMessagesFilterPhoneCalls", "inputMessagesFilterRoundVoice", "inputMessagesFilterRoundVideo", "inputMessagesFilterMyMentions", "inputMessagesFilterGeo", "inputMessagesFilterContacts", "inputMessagesFilterPinned", "inputMessagesFilterPoll"]}}, "description": "提供されたメッセージフィルター", "x-telegram-field-docs": true}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "サーバー側で見つかった結果の数", "x-telegram-field-docs": true}}, "required": ["_", "filter", "count"], "additionalProperties": false}, "urlAuthResultRequest": {"title": "urlAuthResultRequest", "description": "承認リクエストの詳細については、[ここをクリックしてください »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultRequest"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultRequest"]}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットがユーザーにメッセージを送信したいかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "request_phone_number": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "アプリ/ウェブサイトはユーザーの電話番号を要求しています。ユーザーが同意する場合、電話をかけるときに`share_phone_number`を設定します[messages.acceptUrlAuth](https://core.telegram.org/method/messages.acceptUrlAuth.md)]", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "match_codes_first": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "`match_codes` も設定されている場合にのみ設定できます。設定されている場合、クライアントは残りのログイン確認 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 リクエストが Web サイトではなくアプリから発信された場合に設定します。設定すると、確認プロンプトで `domain` を `verified_app_name` (存在する場合) または「未検証のアプリ」に置き換える必要があります", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "request_wallet": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "bot": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See [Linking your domain to the bot](https://core.telegram.org/widgets/login.md#linking-your-domain-to-the-bot) for more details.", "x-telegram-field-docs": true}, "domain": {"type": "string", "x-tl-type": "string", "description": "ユーザーがログインする Web サイトのドメイン名。", "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": "絵文字またはコードのリスト。そのうちの 1 つは現在 Web サイト/アプリのログイン ページに表示されています。ユーザーは一致するものを選択し、それを [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": "urlAuthResultAccepted", "description": "承認された承認リクエストの詳細については、[ここをクリックしてください »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultAccepted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultAccepted"]}, "url": {"type": "string", "x-tl-type": "string", "description": "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": "urlAuthResultDefault", "description": "承認された承認リクエストの詳細については、[ここをクリックしてください »](https://core.telegram.org/api/url-authorization.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/urlAuthResultDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["urlAuthResultDefault"]}}, "required": ["_"], "additionalProperties": false}, "channelLocationEmpty": {"title": "channelLocationEmpty", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelLocationEmpty"]}}, "required": ["_"], "additionalProperties": false}, "channelLocation": {"title": "channelLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["channelLocation"]}, "geo_point": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint."}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "geo_point", "address"], "additionalProperties": false}, "peerLocated": {"title": "peerLocated", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerLocated"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "distance": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "expires", "distance"], "additionalProperties": false}, "peerSelfLocated": {"title": "peerSelfLocated", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerSelfLocated"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "expires"], "additionalProperties": false}, "restrictionReason": {"title": "restrictionReason", "type": "object", "properties": {"_": {"type": "string", "enum": ["restrictionReason"]}, "platform": {"type": "string", "x-tl-type": "string"}, "reason": {"type": "string", "x-tl-type": "string"}, "text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "platform", "reason", "text"], "additionalProperties": false}, "inputTheme": {"title": "inputTheme", "description": "テーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/inputTheme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTheme"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "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}, "inputThemeSlug": {"title": "inputThemeSlug", "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": "theme", "description": "テーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/theme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["theme"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "現在のユーザーがこのテーマの作成者であるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これがデフォルトのテーマかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "for_chat": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このテーマが [チャット テーマ](https://telegram.org/blog/chat-themes-interactive-emoji-read-receipts)] として使用されることを意図しているかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "テーマ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: ThemeSettings."}, "x-tl-type": "Vector<ThemeSettings>", "description": "テーマの設定", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<ThemeSettings>"}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "テーマの絵文字", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?string"}, "installs_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "インストール数", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}}, "required": ["_", "id", "access_hash", "slug", "title"], "additionalProperties": false}, "account.themesNotModified": {"title": "account.themesNotModified", "description": "新しいテーマはインストールされていません", "externalDocs": {"url": "https://core.telegram.org/constructor/account.themesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.themesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.themes": {"title": "account.themes", "description": "インストールされているテーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/account.themes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.themes"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "themes": {"type": "array", "items": {"type": "object", "x-tl-type": "Theme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["theme"]}}, "description": "TL Type: Theme."}, "x-tl-type": "Vector<Theme>", "description": "テーマ", "x-telegram-field-docs": true}}, "required": ["_", "hash", "themes"], "additionalProperties": false}, "auth.loginToken": {"title": "auth.loginToken", "description": "ログイントークン（[QRコードログイン](https://core.telegram.org/api/qr-login.md)]用）", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loginToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loginToken"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "QRコードの有効期限", "x-telegram-field-docs": true}, "token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "QRコードでレンダリングするトークン", "x-telegram-field-docs": true}}, "required": ["_", "expires", "token"], "additionalProperties": false}, "auth.loginTokenMigrateTo": {"title": "auth.loginTokenMigrateTo", "description": "指定された 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": "DC 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": "トークン（QRコード）によるログインに成功しました！", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loginTokenSuccess"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loginTokenSuccess"]}, "authorization": {"type": "object", "x-tl-type": "auth.Authorization", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.authorization", "auth.authorizationSignUpRequired"]}}, "description": "認可情報", "x-telegram-field-docs": true}}, "required": ["_", "authorization"], "additionalProperties": false}, "account.contentSettings": {"title": "account.contentSettings", "description": "機密コンテンツの設定", "externalDocs": {"url": "https://core.telegram.org/constructor/account.contentSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.contentSettings"]}, "sensitive_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "機密 (NSFW) コンテンツの表示が有効かどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "sensitive_can_change": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "現在のクライアントが機密コンテンツの設定を変更して NSFW コンテンツを表示できるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "messages.inactiveChats": {"title": "messages.inactiveChats", "description": "非アクティブなチャットリスト", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.inactiveChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.inactiveChats"]}, "dates": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "チャットが最後にアクティブだったのはいつですか", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャットリスト", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "チャットリストに記載されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "dates", "chats", "users"], "additionalProperties": false}, "baseThemeClassic": {"title": "baseThemeClassic", "description": "クラシックなテーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeClassic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeClassic"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeDay": {"title": "baseThemeDay", "description": "曜日のテーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeDay"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeDay"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeNight": {"title": "baseThemeNight", "description": "夜のテーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeNight"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeNight"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeTinted": {"title": "baseThemeTinted", "description": "色付きのテーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeTinted"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeTinted"]}}, "required": ["_"], "additionalProperties": false}, "baseThemeArctic": {"title": "baseThemeArctic", "description": "北極のテーマ", "externalDocs": {"url": "https://core.telegram.org/constructor/baseThemeArctic"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["baseThemeArctic"]}}, "required": ["_"], "additionalProperties": false}, "inputThemeSettings": {"title": "inputThemeSettings", "description": "テーマの設定", "externalDocs": {"url": "https://core.telegram.org/constructor/inputThemeSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputThemeSettings"]}, "message_colors_animated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定した場合、送信されるメッセージごとにフリーフォームのグラデーション塗りつぶしをアニメーション化する必要があります", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "base_theme": {"type": "object", "x-tl-type": "BaseTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["baseThemeClassic", "baseThemeDay", "baseThemeNight", "baseThemeTinted", "baseThemeArctic"]}}, "description": "このテーマのベースとなっているデフォルトのテーマ", "x-telegram-field-docs": true}, "accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Accent color, ARGB format", "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 形式)。  同じ色が 1 つまたは 2 つだけ提供されている場合は、背景の塗りつぶしを表します。  2 つの異なる色が指定されている場合は、0 度のグラデーションの上部と下部の色を表します。 3 つまたは 4 つの色が提供されている場合、背景の自由形式のグラデーション塗りつぶしを記述します。", "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": "[画像](https://core.telegram.org/api/wallpapers.md#image-wallpapers) または [パターン](https://core.telegram.org/api/wallpapers.md#pattern-wallpapers)] の壁紙ファイルを渡す場合は [inputWallPaper](https://core.telegram.org/constructor/inputWallPaper.md) または [inputWallPaperSlug](https://core.telegram.org/constructor/inputWallPaper.md)]、それ以外の場合は [inputWallPaperNoFile](https://core.telegram.org/constructor/inputWallPaperNoFile.md) と `id=0`]。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?InputWallPaper"}, "wallpaper_settings": {"type": "object", "x-tl-type": "WallPaperSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaperSettings"]}}, "description": "[壁紙](https://core.telegram.org/api/wallpapers.md)の設定。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?WallPaperSettings"}}, "required": ["_", "base_theme", "accent_color"], "additionalProperties": false}, "themeSettings": {"title": "themeSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["themeSettings"]}, "message_colors_animated": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "base_theme": {"type": "object", "x-tl-type": "BaseTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["baseThemeClassic", "baseThemeDay", "baseThemeNight", "baseThemeTinted", "baseThemeArctic"]}}, "description": "Тип TL: BaseTheme."}, "accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "outbox_accent_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "message_colors": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.0?Vector<int>"}, "wallpaper": {"type": "object", "x-tl-type": "WallPaper", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallPaper", "wallPaperNoFile"]}}, "description": "TL Type: WallPaper.", "x-tl-flag": "flags.1?WallPaper"}}, "required": ["_", "base_theme", "accent_color"], "additionalProperties": false}, "webPageAttributeTheme": {"title": "webPageAttributeTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeTheme"]}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "x-tl-flag": "flags.0?Vector<Document>"}, "settings": {"type": "object", "x-tl-type": "ThemeSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["themeSettings"]}}, "description": "Тип TL: ThemeSettings.", "x-tl-flag": "flags.1?ThemeSettings"}}, "required": ["_"], "additionalProperties": false}, "webPageAttributeStory": {"title": "webPageAttributeStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem.", "x-tl-flag": "flags.0?StoryItem"}}, "required": ["_", "peer", "id"], "additionalProperties": false}, "webPageAttributeStickerSet": {"title": "webPageAttributeStickerSet", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStickerSet"]}, "emojis": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "text_color": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>"}}, "required": ["_", "stickers"], "additionalProperties": false}, "webPageAttributeUniqueStarGift": {"title": "webPageAttributeUniqueStarGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeUniqueStarGift"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}}, "required": ["_", "gift"], "additionalProperties": false}, "webPageAttributeStarGiftCollection": {"title": "webPageAttributeStarGiftCollection", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStarGiftCollection"]}, "icons": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>"}}, "required": ["_", "icons"], "additionalProperties": false}, "webPageAttributeStarGiftAuction": {"title": "webPageAttributeStarGiftAuction", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeStarGiftAuction"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "gift", "end_date"], "additionalProperties": false}, "webPageAttributeAiComposeTone": {"title": "webPageAttributeAiComposeTone", "type": "object", "properties": {"_": {"type": "string", "enum": ["webPageAttributeAiComposeTone"]}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "emoji_id"], "additionalProperties": false}, "messages.votesList": {"title": "messages.votesList", "description": "ユーザーがアンケートで投票した方法", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.votesList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.votesList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "すべてのオプションの合計投票数 (または、[messages.getPollVotes](https://core.telegram.org/method/messages.getPollVotes.md)] に提供されている場合は、選択した `option` のみ)", "x-telegram-field-docs": true}, "votes": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagePeerVote", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messagePeerVote", "messagePeerVoteInputOption", "messagePeerVoteMultiple"]}}, "description": "Тип TL: MessagePeerVote."}, "x-tl-type": "Vector<MessagePeerVote>", "description": "各ユーザーの投票情報", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "投票に投票したユーザーに関する情報", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "次の [messages.getPollVotes](https://core.telegram.org/method/messages.getPollVotes.md) リクエストで使用するオフセット。それ以上結果が得られない場合は空の文字列。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "votes", "chats", "users"], "additionalProperties": false}, "bankCardOpenUrl": {"title": "bankCardOpenUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["bankCardOpenUrl"]}, "url": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url", "name"], "additionalProperties": false}, "payments.bankCardData": {"title": "payments.bankCardData", "description": "カードの銀行から提供されるクレジット カード情報", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.bankCardData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.bankCardData"]}, "title": {"type": "string", "x-tl-type": "string", "description": "クレジットカードの名義", "x-telegram-field-docs": true}, "open_urls": {"type": "array", "items": {"type": "object", "x-tl-type": "BankCardOpenUrl", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["bankCardOpenUrl"]}}, "description": "Тип TL: BankCardOpenUrl."}, "x-tl-type": "Vector<BankCardOpenUrl>", "description": "カードの銀行によって提供される情報 URL", "x-telegram-field-docs": true}}, "required": ["_", "title", "open_urls"], "additionalProperties": false}, "dialogFilter": {"title": "dialogFilter", "description": "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": "[Folder](https://core.telegram.org/api/folders.md) name (max 12 UTF-8 chars)", "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 Type: 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 Type: 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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "この [フォルダー](https://core.telegram.org/api/folders.md)] から次のチャットを除外します", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "pinned_peers", "include_peers", "exclude_peers"], "additionalProperties": false}, "dialogFilterDefault": {"title": "dialogFilterDefault", "description": "デフォルト (すべてのチャット) フォルダーを示すためにフォルダーを並べ替える場合にのみ使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterDefault"]}}, "required": ["_"], "additionalProperties": false}, "dialogFilterChatlist": {"title": "dialogFilterChatlist", "description": "[チャット フォルダーのディープ リンク »](https://core.telegram.org/api/links.md#chat-folder-links)] を使用してインポートされたフォルダー。", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterChatlist"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterChatlist"]}, "has_my_invites": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "現在のユーザーがフォルダーを共有するために [チャット フォルダーのディープ リンク »](https://core.telegram.org/api/links.md#chat-folder-links)] を作成したかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.26?true"}, "title_noanimate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定した場合、`title` にあるアニメーション絵文字はアニメーション化されず、最初のフレームで固定される必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.28?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "フォルダの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 Type: 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 Type: InputPeer."}, "x-tl-type": "Vector<InputPeer>", "description": "フォルダーに含めるチャット", "x-telegram-field-docs": true}}, "required": ["_", "id", "title", "pinned_peers", "include_peers"], "additionalProperties": false}, "dialogFilterSuggested": {"title": "dialogFilterSuggested", "description": "推奨される [フォルダー](https://core.telegram.org/api/folders.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/dialogFilterSuggested"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["dialogFilterSuggested"]}, "filter": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "【フォルダ情報](https://core.telegram.org/api/folders.md)】", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "[フォルダー](https://core.telegram.org/api/folders.md)の説明]", "x-telegram-field-docs": true}}, "required": ["_", "filter", "description"], "additionalProperties": false}, "statsDateRangeDays": {"title": "statsDateRangeDays", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsDateRangeDays"]}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "min_date", "max_date"], "additionalProperties": false}, "statsAbsValueAndPrev": {"title": "statsAbsValueAndPrev", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}, "current": {"type": "number", "format": "double", "x-tl-type": "double"}, "previous": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "current", "previous"], "additionalProperties": false}, "statsPercentValue": {"title": "statsPercentValue", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsPercentValue"]}, "part": {"type": "number", "format": "double", "x-tl-type": "double"}, "total": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "part", "total"], "additionalProperties": false}, "statsGraphAsync": {"title": "statsGraphAsync", "description": "この [チャネル統計グラフ](https://core.telegram.org/api/stats.md)] は、サーバーの負荷を軽減するために [stats.loadAsyncGraph](https://core.telegram.org/method/stats.loadAsyncGraph.md)] を使用して非同期的に生成する必要があります", "externalDocs": {"url": "https://core.telegram.org/constructor/statsGraphAsync"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGraphAsync"]}, "token": {"type": "string", "x-tl-type": "string", "description": "非同期グラフの取得に使用するトークン", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "statsGraphError": {"title": "statsGraphError", "description": "[統計グラフ](https://core.telegram.org/api/stats.md)] の生成中にエラーが発生しました", "externalDocs": {"url": "https://core.telegram.org/constructor/statsGraphError"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGraphError"]}, "error": {"type": "string", "x-tl-type": "string", "description": "エラー", "x-telegram-field-docs": true}}, "required": ["_", "error"], "additionalProperties": false}, "statsGraph": {"title": "statsGraph", "description": "[チャネル統計グラフ](https://core.telegram.org/api/stats.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/statsGraph"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGraph"]}, "json": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "統計データ", "x-telegram-field-docs": true}, "zoom_token": {"type": "string", "x-tl-type": "string", "description": "ズームトークン", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "json"], "additionalProperties": false}, "stats.broadcastStats": {"title": "stats.broadcastStats", "description": "[チャンネル統計](https://core.telegram.org/api/stats.md)。", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.broadcastStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.broadcastStats"]}, "period": {"type": "object", "x-tl-type": "StatsDateRangeDays", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsDateRangeDays"]}}, "description": "検討期間", "x-telegram-field-docs": true}, "followers": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "期間中のフォロワー数の変化を検討中", "x-telegram-field-docs": true}, "views_per_post": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_viewcount/postcount`、対象期間中に投稿された投稿が対象です。  この場合、`current` は考慮中の `period` (`min_date` から `max_date` まで) を指し、`prev` は前の期間 (`(min_date - (max_date - min_date))` から `min_date` まで) を指すことに注意してください。", "x-telegram-field-docs": true}, "shares_per_post": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_sharecount/postcount`、対象期間中に投稿された投稿が対象となります。  この場合、`current` は考慮中の `period` (`min_date` から `max_date` まで) を指し、`prev` は前の期間 (`(min_date - (max_date - min_date))` から `min_date` まで) を指すことに注意してください。", "x-telegram-field-docs": true}, "reactions_per_post": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_reactions/postcount`、対象期間中に投稿された投稿が対象。  この場合、`current` は検討中の `period` (`min_date` から `max_date` まで) を指し、`prev` は前の期間 (`(min_date - (max_date - min_date))` から `min_date` まで) を指すことに注意してください。", "x-telegram-field-docs": true}, "views_per_story": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_views/storycount`、対象期間中に投稿された投稿が対象。  この場合、`current` は検討中の `period` (`min_date` から `max_date` まで) を指し、`prev` は前の期間 (`(min_date - (max_date - min_date))` から `min_date` まで) を指すことに注意してください。", "x-telegram-field-docs": true}, "shares_per_story": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_shares/storycount`、対象期間中に投稿された投稿が対象となります。  この場合、`current` は考慮中の `period` (`min_date` から `max_date` まで) を指し、`prev` は前の期間 (`(min_date - (max_date - min_date))` から `min_date` まで) を指すことに注意してください。", "x-telegram-field-docs": true}, "reactions_per_story": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "`total_reactions/storycount`、対象期間中に投稿された投稿が対象となります。  この場合、`current` は考慮中の `period` (`min_date` から `max_date` まで) を指し、`prev` は前の期間 (`(min_date - (max_date - min_date))` から `min_date` まで) を指すことに注意してください。", "x-telegram-field-docs": true}, "enabled_notifications": {"type": "object", "x-tl-type": "StatsPercentValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsPercentValue"]}}, "description": "通知が有効になっている購読者の割合", "x-telegram-field-docs": true}, "growth_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "チャネル成長グラフ (絶対加入者数)", "x-telegram-field-docs": true}, "followers_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "フォロワー増加グラフ（相対的なチャンネル登録者数）", "x-telegram-field-docs": true}, "mute_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "ミュート中のユーザーのグラフ (相対)", "x-telegram-field-docs": true}, "top_hours_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "1 時間あたりのビュー数のグラフ (絶対)", "x-telegram-field-docs": true}, "interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "相互作用グラフ (絶対)", "x-telegram-field-docs": true}, "iv_interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "IV 相互作用グラフ (絶対)", "x-telegram-field-docs": true}, "views_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "ソースグラフ別のビュー (絶対)", "x-telegram-field-docs": true}, "new_followers_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "ソース別の新規フォロワー数グラフ (絶対)", "x-telegram-field-docs": true}, "languages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "加入者の言語グラフ（円グラフ）", "x-telegram-field-docs": true}, "reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "投稿に対する反応数を感情別に分類したグラフ", "x-telegram-field-docs": true}, "story_interactions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "ストーリーの閲覧数とシェア数を含むグラフ", "x-telegram-field-docs": true}, "story_reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "ストーリーに対する反応数を感情ごとに分類したグラフ", "x-telegram-field-docs": true}, "recent_posts_interactions": {"type": "array", "items": {"type": "object", "x-tl-type": "PostInteractionCounters", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["postInteractionCountersMessage", "postInteractionCountersStory"]}}, "description": "Тип TL: PostInteractionCounters."}, "x-tl-type": "Vector<PostInteractionCounters>", "description": "最近送信されたメッセージとストーリーのビュー数とシェア数に関する詳細な統計", "x-telegram-field-docs": true}}, "required": ["_", "period", "followers", "views_per_post", "shares_per_post", "reactions_per_post", "views_per_story", "shares_per_story", "reactions_per_story", "enabled_notifications", "growth_graph", "followers_graph", "mute_graph", "top_hours_graph", "interactions_graph", "iv_interactions_graph", "views_by_source_graph", "new_followers_by_source_graph", "languages_graph", "reactions_by_emotion_graph", "story_interactions_graph", "story_reactions_by_emotion_graph", "recent_posts_interactions"], "additionalProperties": false}, "help.promoDataEmpty": {"title": "help.promoDataEmpty", "description": "PSA/MTProxy 情報は利用できません", "externalDocs": {"url": "https://core.telegram.org/constructor/help.promoDataEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.promoDataEmpty"]}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "指定された秒数後に PSA/MTProxy 情報を再取得します", "x-telegram-field-docs": true}}, "required": ["_", "expires"], "additionalProperties": false}, "help.promoData": {"title": "help.promoData", "description": "一連の有用な提案と PSA/MTProxy スポンサー付きピアについては、[こちら »](https://core.telegram.org/api/config.md#suggestions) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/help.promoData"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.promoData"]}, "proxy": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "チャット リストの先頭に固定する必要がある関連ピア (`peer`、i.e に渡されます。MTProxy をスポンサーしたチャネル) を構成した MTProxy を使用して接続するときに設定します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Unixtime をいつ再呼び出しするか [help.getPromoData](https://core.telegram.org/method/help.getPromoData.md).", "x-telegram-field-docs": true}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "MTProxy/PSA ピア", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Peer"}, "psa_type": {"type": "string", "x-tl-type": "string", "description": "公共広告 `peer` の場合、PSA のタイプを示します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "psa_message": {"type": "string", "x-tl-type": "string", "description": "公共サービスのお知らせ `peer` の場合、PSA 自体が含まれます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "pending_suggestions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "[保留中の提案 »](https://core.telegram.org/api/config.md#basic-suggestions)] のリストが含まれています。", "x-telegram-field-docs": true}, "dismissed_suggestions": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "[逆提案»](https://core.telegram.org/api/config.md#inverted-suggestions)のリストが含まれています。", "x-telegram-field-docs": true}, "custom_pending_suggestion": {"type": "object", "x-tl-type": "PendingSuggestion", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pendingSuggestion"]}}, "description": "[カスタム保留中の提案 »](https://core.telegram.org/api/config.md#custom-suggestions)] のリストが含まれています。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?PendingSuggestion"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "チャット情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー情報", "x-telegram-field-docs": true}}, "required": ["_", "expires", "pending_suggestions", "dismissed_suggestions", "chats", "users"], "additionalProperties": false}, "videoSize": {"title": "videoSize", "description": "MPEG4 形式の [アニメーションプロフィール写真](https://core.telegram.org/api/files.md#animated-profile-pictures)]", "externalDocs": {"url": "https://core.telegram.org/constructor/videoSize"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["videoSize"]}, "type": {"type": "string", "x-tl-type": "string", "description": "[videoSize.type 値 »](https://core.telegram.org/api/files.md#videosizetype-values)", "x-telegram-field-docs": true}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ビデオの幅", "x-telegram-field-docs": true}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ビデオの高さ", "x-telegram-field-docs": true}, "size": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ファイルサイズ", "x-telegram-field-docs": true}, "video_start_ts": {"type": "number", "format": "double", "x-tl-type": "double", "description": "ユーザーに静的プレビューとして表示されるタイムスタンプ (秒)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?double"}}, "required": ["_", "type", "w", "h", "size"], "additionalProperties": false}, "videoSizeEmojiMarkup": {"title": "videoSizeEmojiMarkup", "description": "[カスタム絵文字ステッカー](https://core.telegram.org/api/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": "[塗りつぶし壁紙](https://core.telegram.org/api/wallpapers.md#fill-types)] の生成方法と同様に、1、2、3、または 4 RBG-24 色を使用して、ソリッド (1)、グラデーション (2)、またはフリーフォーム グラデーション (3、4) の背景を生成します。グラデーション背景の回転角度は 0 です。", "x-telegram-field-docs": true}}, "required": ["_", "emoji_id", "background_colors"], "additionalProperties": false}, "videoSizeStickerMarkup": {"title": "videoSizeStickerMarkup", "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": "[塗りつぶし壁紙](https://core.telegram.org/api/wallpapers.md#fill-types)] の生成方法と同様に、1、2、3、または 4 RBG-24 色を使用して、ソリッド (1)、グラデーション (2)、またはフリーフォーム グラデーション (3、4) の背景を生成します。グラデーション背景の回転角度は 0 です。", "x-telegram-field-docs": true}}, "required": ["_", "stickerset", "sticker_id", "background_colors"], "additionalProperties": false}, "statsGroupTopPoster": {"title": "statsGroupTopPoster", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopPoster"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "avg_chars": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "messages", "avg_chars"], "additionalProperties": false}, "statsGroupTopAdmin": {"title": "statsGroupTopAdmin", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopAdmin"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "deleted": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "kicked": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "banned": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "deleted", "kicked", "banned"], "additionalProperties": false}, "statsGroupTopInviter": {"title": "statsGroupTopInviter", "type": "object", "properties": {"_": {"type": "string", "enum": ["statsGroupTopInviter"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invitations": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "user_id", "invitations"], "additionalProperties": false}, "stats.megagroupStats": {"title": "stats.megagroupStats", "description": "スーパーグループ [統計](https://core.telegram.org/api/stats.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.megagroupStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.megagroupStats"]}, "period": {"type": "object", "x-tl-type": "StatsDateRangeDays", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsDateRangeDays"]}}, "description": "検討期間", "x-telegram-field-docs": true}, "members": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "検討期間中の会員数の変更", "x-telegram-field-docs": true}, "messages": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "期間中のメッセージ番号の変更を検討中", "x-telegram-field-docs": true}, "viewers": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "メッセージを閲覧したユーザーの数（範囲を考慮）", "x-telegram-field-docs": true}, "posters": {"type": "object", "x-tl-type": "StatsAbsValueAndPrev", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsAbsValueAndPrev"]}}, "description": "メッセージを投稿したユーザーの数（範囲を考慮）", "x-telegram-field-docs": true}, "growth_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "スーパーグループの成長グラフ (絶対加入者数)", "x-telegram-field-docs": true}, "members_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "メンバーの増加（相対的なチャンネル登録者数）", "x-telegram-field-docs": true}, "new_members_by_source_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "ソースグラフ別の新規メンバー", "x-telegram-field-docs": true}, "languages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "加入者の言語グラフ（円グラフ）", "x-telegram-field-docs": true}, "messages_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "メッセージ アクティビティ グラフ (積み上げ棒グラフ、メッセージ タイプ)", "x-telegram-field-docs": true}, "actions_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "グループアクティビティグラフ（削除、変更されたメッセージ、ブロックされたユーザー）", "x-telegram-field-docs": true}, "top_hours_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "時間ごとのアクティビティのグラフ (絶対)", "x-telegram-field-docs": true}, "weekdays_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "曜日ごとのアクティビティのグラフ (絶対)", "x-telegram-field-docs": true}, "top_posters": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopPoster", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopPoster"]}}, "description": "Тип TL: StatsGroupTopPoster."}, "x-tl-type": "Vector<StatsGroupTopPoster>", "description": "最もアクティブなグループメンバーに関する情報", "x-telegram-field-docs": true}, "top_admins": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopAdmin", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopAdmin"]}}, "description": "Тип TL: StatsGroupTopAdmin."}, "x-tl-type": "Vector<StatsGroupTopAdmin>", "description": "最もアクティブなグループ管理者に関する情報", "x-telegram-field-docs": true}, "top_inviters": {"type": "array", "items": {"type": "object", "x-tl-type": "StatsGroupTopInviter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGroupTopInviter"]}}, "description": "Тип TL: StatsGroupTopInviter."}, "x-tl-type": "Vector<StatsGroupTopInviter>", "description": "最もアクティブなグループ招待者に関する情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "統計に記載されているユーザーに関する情報", "x-telegram-field-docs": true}}, "required": ["_", "period", "members", "messages", "viewers", "posters", "growth_graph", "members_graph", "new_members_by_source_graph", "languages_graph", "messages_graph", "actions_graph", "top_hours_graph", "weekdays_graph", "top_posters", "top_admins", "top_inviters", "users"], "additionalProperties": false}, "globalPrivacySettings": {"title": "globalPrivacySettings", "description": "グローバルプライバシー設定", "externalDocs": {"url": "https://core.telegram.org/constructor/globalPrivacySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["globalPrivacySettings"]}, "archive_and_mute_new_noncontact_peers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "非連絡先からの新しいチャットをアーカイブしてミュートするかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "keep_archived_unmuted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "新しいメッセージを受信したときに、ミュートが解除されたチャットをアーカイブ チャット リストに保持するかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "keep_archived_folders": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ミュート解除されたチャットが常に [フォルダー](https://core.telegram.org/api/folders.md)] に含まれるかピン留めされるかどうかは、新しいメッセージを受信したときにアーカイブ チャット リストに保持されます。 `keep_archived_unmuted` が設定されている場合は無視されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "hide_read_marks": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このフラグが設定されている場合、[inputPrivacyKeyStatusTimestamp](https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.md)] キーは、送信されたメッセージで [messages.getOutboxReadDate](https://core.telegram.org/method/messages.getOutboxReadDate.md)] を使用する機能にも適用されます。  つまり、[inputPrivacyKeyStatusTimestamp](https://core.telegram.org/constructor/inputPrivacyKeyStatusTimestamp.md)] キーの現在の値が原因で、*正確な最後のオンライン日付を確認できないユーザーは、送信したメッセージの正確な開封日を取得するために [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 プレミアム »](https://core.telegram.org/api/premium.md#gifting-telegram-premium) サブスクリプションまたは [Telegram ギフト] をギフトするオプションがユーザーに提供されます。 »](https://core.telegram.org/api/gifts.md)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "noncontact_peers_paid_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "構成されている場合、ユーザーがメッセージを送信するために支払う必要がある [スター](https://core.telegram.org/api/stars.md)] の数を指定します。有料メッセージの詳細については、[こちら »](https://core.telegram.org/api/paid-messages.md) を参照してください。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?long"}, "disallowed_gifts": {"type": "object", "x-tl-type": "DisallowedGiftsSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["disallowedGiftsSettings"]}}, "description": "特定の種類のギフトの受け取りを禁止します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?DisallowedGiftsSettings"}}, "required": ["_"], "additionalProperties": false}, "help.countryCode": {"title": "help.countryCode", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.countryCode"]}, "country_code": {"type": "string", "x-tl-type": "string"}, "prefixes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.0?Vector<string>"}, "patterns": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "x-tl-flag": "flags.1?Vector<string>"}}, "required": ["_", "country_code"], "additionalProperties": false}, "help.country": {"title": "help.country", "type": "object", "properties": {"_": {"type": "string", "enum": ["help.country"]}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "iso2": {"type": "string", "x-tl-type": "string"}, "default_name": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "country_codes": {"type": "array", "items": {"type": "object", "x-tl-type": "help.CountryCode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.countryCode"]}}, "description": "Тип TL: help.CountryCode."}, "x-tl-type": "Vector<help.CountryCode>"}}, "required": ["_", "iso2", "default_name", "country_codes"], "additionalProperties": false}, "help.countriesListNotModified": {"title": "help.countriesListNotModified", "description": "国のリストは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/help.countriesListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.countriesListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.countriesList": {"title": "help.countriesList", "description": "名前、ISO コード、ローカライズされた名前、および利用可能なすべての国の電話コード/パターン", "externalDocs": {"url": "https://core.telegram.org/constructor/help.countriesList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.countriesList"]}, "countries": {"type": "array", "items": {"type": "object", "x-tl-type": "help.Country", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["help.country"]}}, "description": "Тип TL: help.Country."}, "x-tl-type": "Vector<help.Country>", "description": "名前、ISO コード、ローカライズされた名前、および利用可能なすべての国の電話コード/パターン", "x-telegram-field-docs": true}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}}, "required": ["_", "countries", "hash"], "additionalProperties": false}, "messageViews": {"title": "messageViews", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageViews"]}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "replies": {"type": "object", "x-tl-type": "MessageReplies", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplies"]}}, "description": "Тип TL: MessageReplies.", "x-tl-flag": "flags.2?MessageReplies"}}, "required": ["_"], "additionalProperties": false}, "messages.messageViews": {"title": "messages.messageViews", "description": "表示、カウンター + 返信に関する情報の転送", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messageViews"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messageViews"]}, "views": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageViews", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageViews"]}}, "description": "Тип TL: MessageViews."}, "x-tl-type": "Vector<MessageViews>", "description": "表示、カウンター + 返信に関する情報の転送", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "コンストラクターで言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "コンストラクターで言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "views", "chats", "users"], "additionalProperties": false}, "messages.discussionMessage": {"title": "messages.discussionMessage", "description": "[メッセージスレッド](https://core.telegram.org/api/threads.md)] に関する情報", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.discussionMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.discussionMessage"]}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "スレッドの開始元となるメッセージ。メッセージは新しい順 (i.e.、メッセージ 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: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "コンストラクターで言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "messages", "unread_count", "chats", "users"], "additionalProperties": false}, "messageReplyHeader": {"title": "messageReplyHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReplyHeader"]}, "reply_to_scheduled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "forum_topic": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "quote": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "reply_to_ephemeral": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "reply_to_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "reply_to_peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "reply_from": {"type": "object", "x-tl-type": "MessageFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageFwdHeader"]}}, "description": "Тип TL: MessageFwdHeader.", "x-tl-flag": "flags.5?MessageFwdHeader"}, "reply_media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia.", "x-tl-flag": "flags.8?MessageMedia"}, "reply_to_top_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "quote_text": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}, "quote_entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.7?Vector<MessageEntity>"}, "quote_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "todo_item_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "poll_option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.12?bytes"}, "quote_rich": {"type": "array", "items": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "x-tl-type": "Vector<RichText>", "x-tl-flag": "flags.14?Vector<RichText>"}}, "required": ["_"], "additionalProperties": false}, "messageReplyStoryHeader": {"title": "messageReplyStoryHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReplyStoryHeader"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "story_id"], "additionalProperties": false}, "messageReplies": {"title": "messageReplies", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReplies"]}, "comments": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "replies": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "replies_pts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "recent_repliers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "x-tl-flag": "flags.1?Vector<Peer>"}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "read_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}}, "required": ["_", "replies", "replies_pts"], "additionalProperties": false}, "peerBlocked": {"title": "peerBlocked", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerBlocked"]}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer_id", "date"], "additionalProperties": false}, "stats.messageStats": {"title": "stats.messageStats", "description": "メッセージ統計", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.messageStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.messageStats"]}, "views_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "メッセージビューグラフ", "x-telegram-field-docs": true}, "reactions_by_emotion_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "ストーリーに対する反応数を感情ごとに分類したグラフ", "x-telegram-field-docs": true}}, "required": ["_", "views_graph", "reactions_by_emotion_graph"], "additionalProperties": false}, "groupCallDiscarded": {"title": "groupCallDiscarded", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallDiscarded"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "access_hash", "duration"], "additionalProperties": false}, "groupCall": {"title": "groupCall", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCall"]}, "join_muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_change_join_muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "join_date_asc": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "schedule_start_subscribed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "can_start_video": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "record_video_active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "rtmp_stream": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "listeners_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "conference": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true"}, "messages_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "can_change_messages_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.18?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "participants_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "stream_dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "record_start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.7?int"}, "unmuted_video_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.10?int"}, "unmuted_video_limit": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "invite_link": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.16?string"}, "send_paid_messages_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.20?long"}, "default_send_as": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.21?Peer"}}, "required": ["_", "id", "access_hash", "participants_count", "unmuted_video_limit", "version"], "additionalProperties": false}, "inputGroupCall": {"title": "inputGroupCall", "description": "特定の [グループ通話](https://core.telegram.org/api/group-calls.md)] を指します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCall"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "グループ通話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}, "inputGroupCallSlug": {"title": "inputGroupCallSlug", "description": "招待リンクのスラッグを使用して、[電話会議 »](https://core.telegram.org/api/group-calls.md#conference-calls)] を特定します。\n\nこのコンストラクターは電話会議にのみ使用できます。ビデオチャット/ライブストリーム、ライブストーリー、その他のグループ通話タイプには使用できません。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputGroupCallSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputGroupCallSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "[会議リンク »](https://core.telegram.org/api/links.md#conference-links)] からのスラッグ。", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputGroupCallInviteMessage": {"title": "inputGroupCallInviteMessage", "description": "[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": "groupCallParticipant", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}, "muted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "left": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_self_unmute": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "just_joined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "versioned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "muted_by_you": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "volume_by_admin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "self": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "video_joined": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "active_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "source": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "volume": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.7?int"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.11?string"}, "raise_hand_rating": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.13?long"}, "video": {"type": "object", "x-tl-type": "GroupCallParticipantVideo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideo"]}}, "description": "Тип TL: GroupCallParticipantVideo.", "x-tl-flag": "flags.6?GroupCallParticipantVideo"}, "presentation": {"type": "object", "x-tl-type": "GroupCallParticipantVideo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideo"]}}, "description": "Тип TL: GroupCallParticipantVideo.", "x-tl-flag": "flags.14?GroupCallParticipantVideo"}, "paid_stars_total": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.16?long"}}, "required": ["_", "peer", "date", "source"], "additionalProperties": false}, "phone.groupCall": {"title": "phone.groupCall", "description": "グループ通話情報と最初の参加者ページが含まれています。[グループ通話に関する情報の取得 »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCall"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCall"]}, "call": {"type": "object", "x-tl-type": "GroupCall", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDiscarded", "groupCall"]}}, "description": "グループ通話に関する情報", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}, "x-tl-type": "Vector<GroupCallParticipant>", "description": "参加者のリストの一部。", "x-telegram-field-docs": true}, "participants_next_offset": {"type": "string", "x-tl-type": "string", "description": "[phone.getGroupParticipants](https://core.telegram.org/method/phone.getGroupParticipants.md)] を使用して残りの参加者を取得するときに使用する次のオフセット", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "参加者ベクトルで言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "参加者ベクトルで言及されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "call", "participants", "participants_next_offset", "chats", "users"], "additionalProperties": false}, "phone.groupParticipants": {"title": "phone.groupParticipants", "description": "グループ通話参加者のページが含まれています。[グループ通話に関する情報の取得 »](https://core.telegram.org/api/group-calls.md#getting-info-about-a-group-call) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupParticipants"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupParticipants"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "参加者数", "x-telegram-field-docs": true}, "participants": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipant", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipant"]}}, "description": "Тип TL: GroupCallParticipant."}, "x-tl-type": "Vector<GroupCallParticipant>", "description": "参加者一覧", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "空でない場合、指定された参加者のリストは部分的であり、このパラメータを [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: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在の参加者リストのバージョン。バージョン付き [updateGroupCallParticipants](https://core.telegram.org/constructor/updateGroupCallParticipants.md) 更新] のギャップを適用および検出するために使用されます。", "x-telegram-field-docs": true}}, "required": ["_", "count", "participants", "next_offset", "chats", "users", "version"], "additionalProperties": false}, "inlineQueryPeerTypeSameBotPM": {"title": "inlineQueryPeerTypeSameBotPM", "description": "ピアタイプ: ボット自体とのプライベートチャット", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeSameBotPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypePM": {"title": "inlineQueryPeerTypePM", "description": "ピアタイプ: プライベートチャット", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypePM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypePM"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeChat": {"title": "inlineQueryPeerTypeChat", "description": "ピアタイプ: [チャット](https://core.telegram.org/api/channel.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeChat"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeChat"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeMegagroup": {"title": "inlineQueryPeerTypeMegagroup", "description": "ピアタイプ: [スーパーグループ](https://core.telegram.org/api/channel.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeMegagroup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeMegagroup"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeBroadcast": {"title": "inlineQueryPeerTypeBroadcast", "description": "ピアタイプ: [チャンネル](https://core.telegram.org/api/channel.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeBroadcast"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeBroadcast"]}}, "required": ["_"], "additionalProperties": false}, "inlineQueryPeerTypeBotPM": {"title": "inlineQueryPeerTypeBotPM", "description": "ピア タイプ: ボットとのプライベート チャット。", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineQueryPeerTypeBotPM"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeBotPM"]}}, "required": ["_"], "additionalProperties": false}, "messages.historyImport": {"title": "messages.historyImport", "description": "特定の [チャット インポート セッションの 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": "chatInviteImporter", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatInviteImporter"]}, "requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "via_chatlist": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "about": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "approved_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "messages.exportedChatInvites": {"title": "messages.exportedChatInvites", "description": "特定の管理者によってエクスポートされたチャット招待に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.exportedChatInvites"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.exportedChatInvites"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "管理者によってエクスポートされた招待の数", "x-telegram-field-docs": true}, "invites": {"type": "array", "items": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "TL Type: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "管理者に関する情報", "x-telegram-field-docs": true}}, "required": ["_", "count", "invites", "users"], "additionalProperties": false}, "messages.exportedChatInvite": {"title": "messages.exportedChatInvite", "description": "チャットの招待に関する情報", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.exportedChatInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.exportedChatInvite"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "チャットの招待に関する情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "invite", "users"], "additionalProperties": false}, "messages.exportedChatInviteReplaced": {"title": "messages.exportedChatInviteReplaced", "description": "指定されたチャット招待は別のものに置き換えられました", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.exportedChatInviteReplaced"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.exportedChatInviteReplaced"]}, "invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "置き換えられたチャット招待", "x-telegram-field-docs": true}, "new_invite": {"type": "object", "x-tl-type": "ExportedChatInvite", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteExported", "chatInvitePublicJoinRequests"]}}, "description": "以前の招待を置き換える招待", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "invite", "new_invite", "users"], "additionalProperties": false}, "messages.chatInviteImporters": {"title": "messages.chatInviteImporters", "description": "特定のチャット招待を使用してチャットに参加したユーザーに関する情報", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatInviteImporters"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatInviteImporters"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "参加したユーザーの数", "x-telegram-field-docs": true}, "importers": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatInviteImporter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatInviteImporter"]}}, "description": "Тип TL: ChatInviteImporter."}, "x-tl-type": "Vector<ChatInviteImporter>", "description": "参加したユーザー", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "参加したユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "importers", "users"], "additionalProperties": false}, "chatAdminWithInvites": {"title": "chatAdminWithInvites", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatAdminWithInvites"]}, "admin_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "invites_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "revoked_invites_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "admin_id", "invites_count", "revoked_invites_count"], "additionalProperties": false}, "messages.chatAdminsWithInvites": {"title": "messages.chatAdminsWithInvites", "description": "管理者によって生成されたチャットの招待に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.chatAdminsWithInvites"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatAdminsWithInvites"]}, "admins": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatAdminWithInvites", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminWithInvites"]}}, "description": "Тип TL: ChatAdminWithInvites."}, "x-tl-type": "Vector<ChatAdminWithInvites>", "description": "管理者によって生成されたチャットの招待に関する情報。", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "admins", "users"], "additionalProperties": false}, "messages.checkedHistoryImportPeer": {"title": "messages.checkedHistoryImportPeer", "description": "[チャット履歴をインポートする際、詳細についてはここをクリックしてください »](https://core.telegram.org/api/import.md)] ときにユーザーに表示される確認テキストが含まれます。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.checkedHistoryImportPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.checkedHistoryImportPeer"]}, "confirm_text": {"type": "string", "x-tl-type": "string", "description": "[チャット履歴のインポート »](https://core.telegram.org/api/import.md)] 時にユーザーに表示される確認テキスト。", "x-telegram-field-docs": true}}, "required": ["_", "confirm_text"], "additionalProperties": false}, "phone.joinAsPeers": {"title": "phone.joinAsPeers", "description": "ビデオ チャット/ライブストリームに参加するために使用できるピアが含まれています。[所有チャンネルに代わって参加する »](https://core.telegram.org/api/group-calls.md#joining-a-group-call-on-behalf-of-owned-channels)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.joinAsPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.joinAsPeers"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "ピア", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ピアベクターで言及されているチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ピアベクターで言及されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "peers", "chats", "users"], "additionalProperties": false}, "phone.exportedGroupCallInvite": {"title": "phone.exportedGroupCallInvite", "description": "グループ通話またはライブストリームへの招待", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.exportedGroupCallInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.exportedGroupCallInvite"]}, "link": {"type": "string", "x-tl-type": "string", "description": "招待リンク", "x-telegram-field-docs": true}}, "required": ["_", "link"], "additionalProperties": false}, "groupCallParticipantVideoSourceGroup": {"title": "groupCallParticipantVideoSourceGroup", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideoSourceGroup"]}, "semantics": {"type": "string", "x-tl-type": "string"}, "sources": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "semantics", "sources"], "additionalProperties": false}, "groupCallParticipantVideo": {"title": "groupCallParticipantVideo", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideo"]}, "paused": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "endpoint": {"type": "string", "x-tl-type": "string"}, "source_groups": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallParticipantVideoSourceGroup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallParticipantVideoSourceGroup"]}}, "description": "Тип TL: GroupCallParticipantVideoSourceGroup."}, "x-tl-type": "Vector<GroupCallParticipantVideoSourceGroup>"}, "audio_source": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "endpoint", "source_groups"], "additionalProperties": false}, "stickers.suggestedShortName": {"title": "stickers.suggestedShortName", "description": "ステッカーパックの推奨される短い名前", "externalDocs": {"url": "https://core.telegram.org/constructor/stickers.suggestedShortName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stickers.suggestedShortName"]}, "short_name": {"type": "string", "x-tl-type": "string", "description": "推奨される短い名前", "x-telegram-field-docs": true}}, "required": ["_", "short_name"], "additionalProperties": false}, "botCommandScopeDefault": {"title": "botCommandScopeDefault", "description": "コマンドはすべてのダイアログで有効になります。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeDefault"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeUsers": {"title": "botCommandScopeUsers", "description": "指定されたボット コマンドは、ユーザーとのすべてのプライベート チャットでのみ有効です。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeUsers"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeChats": {"title": "botCommandScopeChats", "description": "指定したボット コマンドは、すべての [グループとスーパーグループ](https://core.telegram.org/api/channel.md)] で有効になります。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeChats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeChats"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopeChatAdmins": {"title": "botCommandScopeChatAdmins", "description": "指定されたボット コマンドは、すべての [グループおよびスーパーグループ](https://core.telegram.org/api/channel.md)] のチャット管理者に対してのみ有効です。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopeChatAdmins"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopeChatAdmins"]}}, "required": ["_"], "additionalProperties": false}, "botCommandScopePeer": {"title": "botCommandScopePeer", "description": "指定されたボット コマンドは、特定のダイアログでのみ有効になります。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopePeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopePeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ダイアログ", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "botCommandScopePeerAdmins": {"title": "botCommandScopePeerAdmins", "description": "指定されたボット コマンドは、指定された [グループまたはスーパーグループ](https://core.telegram.org/api/channel.md)] のすべての管理者に対して有効になります。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopePeerAdmins"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopePeerAdmins"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "チャット", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "botCommandScopePeerUser": {"title": "botCommandScopePeerUser", "description": "指定されたボット コマンドは、指定された [グループまたはスーパーグループ](https://core.telegram.org/api/channel.md)] 内の特定のユーザーに対してのみ有効になります。", "externalDocs": {"url": "https://core.telegram.org/constructor/botCommandScopePeerUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botCommandScopePeerUser"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "チャット", "x-telegram-field-docs": true}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "peer", "user_id"], "additionalProperties": false}, "account.resetPasswordFailedWait": {"title": "account.resetPasswordFailedWait", "description": "最近パスワードのリセットをリクエストしましたが、キャンセルされました。別のリセットをリクエストする前に、指定された日付まで待ってください。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.resetPasswordFailedWait"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.resetPasswordFailedWait"]}, "retry_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "別のリセットをリクエストする前に、この日付まで待ってください。", "x-telegram-field-docs": true}}, "required": ["_", "retry_date"], "additionalProperties": false}, "account.resetPasswordRequestedWait": {"title": "account.resetPasswordRequestedWait", "description": "パスワードのリセットが正常にリクエストされました。リセットを完了する前に、指定された日付まで待ってください。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.resetPasswordRequestedWait"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.resetPasswordRequestedWait"]}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "リセットを完了する前に、この日付まで待ってください。", "x-telegram-field-docs": true}}, "required": ["_", "until_date"], "additionalProperties": false}, "account.resetPasswordOk": {"title": "account.resetPasswordOk", "description": "2FA パスワードが正常にリセットされました。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.resetPasswordOk"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.resetPasswordOk"]}}, "required": ["_"], "additionalProperties": false}, "chatTheme": {"title": "chatTheme", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatTheme"]}, "emoticon": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "emoticon"], "additionalProperties": false}, "chatThemeUniqueGift": {"title": "chatThemeUniqueGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["chatThemeUniqueGift"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "theme_settings": {"type": "array", "items": {"type": "object", "x-tl-type": "ThemeSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["themeSettings"]}}, "description": "Тип TL: ThemeSettings."}, "x-tl-type": "Vector<ThemeSettings>"}}, "required": ["_", "gift", "theme_settings"], "additionalProperties": false}, "account.chatThemesNotModified": {"title": "account.chatThemesNotModified", "description": "利用可能なチャットのテーマは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/account.chatThemesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.chatThemesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.chatThemes": {"title": "account.chatThemes", "description": "利用可能 [チャットテーマ](https://core.telegram.org/api/themes.md#chat-themes)]", "externalDocs": {"url": "https://core.telegram.org/constructor/account.chatThemes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.chatThemes"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "結果が変更されていない場合の再フェッチを避けるために、このコンストラクターを返したメソッドに渡すハッシュ。", "x-tl-type": "long", "x-telegram-field-docs": true}, "themes": {"type": "array", "items": {"type": "object", "x-tl-type": "ChatTheme", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatTheme", "chatThemeUniqueGift"]}}, "description": "Тип TL: ChatTheme."}, "x-tl-type": "Vector<ChatTheme>", "description": "テーマ。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "`themes` フィールドに記載されているチャット。", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`themes` フィールドに記載されているユーザー。", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "ページネーションのための次のオフセット。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "hash", "themes", "chats", "users"], "additionalProperties": false}, "sponsoredMessage": {"title": "sponsoredMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["sponsoredMessage"]}, "recommended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "can_report": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "url": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.6?Photo"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia.", "x-tl-flag": "flags.14?MessageMedia"}, "color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags.13?PeerColor"}, "button_text": {"type": "string", "x-tl-type": "string"}, "sponsor_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.7?string"}, "additional_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.8?string"}, "min_display_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "max_display_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}}, "required": ["_", "random_id", "url", "title", "message", "button_text"], "additionalProperties": false}, "messages.sponsoredMessages": {"title": "messages.sponsoredMessages", "description": "チャンネルに関連付けられた一連のスポンサー付きメッセージ", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sponsoredMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sponsoredMessages"]}, "posts_between": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "設定した場合、表示されるスポンサー付きメッセージ間のメッセージの最小数を指定します。それ以外の場合は、すべての通常のメッセージの後に、スポンサー付きメッセージを 1 つだけ表示する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "start_delay": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[チャンネルの動画に表示するスポンサー付きメッセージ »](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements) の場合、最初の広告が表示されるまで待機する秒数。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "between_delay": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[チャンネルの動画に表示するスポンサー付きメッセージ »](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements) の場合、前の広告が非表示になってから次の広告が表示されるまで待機する秒数。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}, "first_after_posts": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "SponsoredMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sponsoredMessage"]}}, "description": "Тип TL: SponsoredMessage."}, "x-tl-type": "Vector<SponsoredMessage>", "description": "スポンサー付きメッセージ", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "スポンサー付きメッセージで言及されているチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "スポンサー付きメッセージで言及されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "messages", "chats", "users"], "additionalProperties": false}, "messages.sponsoredMessagesEmpty": {"title": "messages.sponsoredMessagesEmpty", "description": "スポンサー付きメッセージは利用できません。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.sponsoredMessagesEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.sponsoredMessagesEmpty"]}}, "required": ["_"], "additionalProperties": false}, "searchResultsCalendarPeriod": {"title": "searchResultsCalendarPeriod", "type": "object", "properties": {"_": {"type": "string", "enum": ["searchResultsCalendarPeriod"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "min_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "max_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "date", "min_msg_id", "max_msg_id", "count"], "additionalProperties": false}, "messages.searchResultsCalendar": {"title": "messages.searchResultsCalendar", "description": "特定の日に送信された、見つかったメッセージに関する情報", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.searchResultsCalendar"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.searchResultsCalendar"]}, "inexact": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、結果が不正確である可能性があることを示します", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クエリに一致する結果の総数", "x-telegram-field-docs": true}, "min_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "添付メッセージの開始タイムスタンプ", "x-telegram-field-docs": true}, "min_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "添付メッセージの終了タイムスタンプ", "x-telegram-field-docs": true}, "offset_id_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "カウント `count` の合計結果セット内の `messages[0]` の絶対位置を示します。  これは、たとえば、チャット内のすべてのメディアに対して `progress/total` カウンター (`photo 134 of 200` など) を表示する必要がある場合に、単純に `photo ${offset_id_offset} of ${count}` を使用できるので便利です。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "periods": {"type": "array", "items": {"type": "object", "x-tl-type": "SearchResultsCalendarPeriod", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchResultsCalendarPeriod"]}}, "description": "Тип TL: SearchResultsCalendarPeriod."}, "x-tl-type": "Vector<SearchResultsCalendarPeriod>", "description": "`messages` を日ごとに分割するために使用されます。複数の [SearchResultsCalendarPeriod](https://core.telegram.org/type/SearchResultsCalendarPeriod.md)] コンストラクターが返されます。各コンストラクターには、特定の日に送信されたフィルターに一致するメッセージの最初、最後、および合計数に関する情報が含まれています。   この情報を使用すると、返された `messages` を日ごとに簡単に分割できます。", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "メッセージ", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "min_date", "min_msg_id", "periods", "messages", "chats", "users"], "additionalProperties": false}, "searchResultPosition": {"title": "searchResultPosition", "type": "object", "properties": {"_": {"type": "string", "enum": ["searchResultPosition"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "msg_id", "date", "offset"], "additionalProperties": false}, "messages.searchResultsPositions": {"title": "messages.searchResultsPositions", "description": "メッセージのまばらな位置に関する情報", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.searchResultsPositions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.searchResultsPositions"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "見つかったメッセージの総数", "x-telegram-field-docs": true}, "positions": {"type": "array", "items": {"type": "object", "x-tl-type": "SearchResultsPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["searchResultPosition"]}}, "description": "Тип TL: SearchResultsPosition."}, "x-tl-type": "Vector<SearchResultsPosition>", "description": "メッセージ位置のリスト", "x-telegram-field-docs": true}}, "required": ["_", "count", "positions"], "additionalProperties": false}, "channels.sendAsPeers": {"title": "channels.sendAsPeers", "description": "特定のグループでメッセージを送信するために使用できるピアのリスト", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sendAsPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sendAsPeers"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "SendAsPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sendAsPeer"]}}, "description": "Тип TL: SendAsPeer."}, "x-tl-type": "Vector<SendAsPeer>", "description": "グループにメッセージを送信するために使用できるピア", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "peers", "chats", "users"], "additionalProperties": false}, "users.userFull": {"title": "users.userFull", "description": "完全なユーザー情報", "externalDocs": {"url": "https://core.telegram.org/constructor/users.userFull"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.userFull"]}, "full_user": {"type": "object", "x-tl-type": "UserFull", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userFull"]}}, "description": "完全なユーザー情報", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "full_user", "chats", "users"], "additionalProperties": false}, "messages.peerSettings": {"title": "messages.peerSettings", "description": "ピア設定", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.peerSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.peerSettings"]}, "settings": {"type": "object", "x-tl-type": "PeerSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerSettings"]}}, "description": "ピア設定", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "settings", "chats", "users"], "additionalProperties": false}, "auth.loggedOut": {"title": "auth.loggedOut", "description": "[将来の認証トークン »](https://core.telegram.org/api/auth.md#future-auth-tokens) は以降の認証で使用されます", "externalDocs": {"url": "https://core.telegram.org/constructor/auth.loggedOut"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.loggedOut"]}, "future_auth_token": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[将来の認証トークン »](https://core.telegram.org/api/auth.md#future-auth-tokens) は以降の認証で使用されます", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?bytes"}}, "required": ["_"], "additionalProperties": false}, "reactionCount": {"title": "reactionCount", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionCount"]}, "chosen_order": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "reaction", "count"], "additionalProperties": false}, "messageReactions": {"title": "messageReactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReactions"]}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_see_list": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "reactions_as_tags": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "results": {"type": "array", "items": {"type": "object", "x-tl-type": "ReactionCount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionCount"]}}, "description": "Тип TL: ReactionCount."}, "x-tl-type": "Vector<ReactionCount>"}, "recent_reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagePeerReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messagePeerReaction"]}}, "description": "Тип TL: MessagePeerReaction."}, "x-tl-type": "Vector<MessagePeerReaction>", "x-tl-flag": "flags.1?Vector<MessagePeerReaction>"}, "top_reactors": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageReactor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReactor"]}}, "description": "Тип TL: MessageReactor."}, "x-tl-type": "Vector<MessageReactor>", "x-tl-flag": "flags.4?Vector<MessageReactor>"}}, "required": ["_", "results"], "additionalProperties": false}, "messages.messageReactionsList": {"title": "messages.messageReactionsList", "description": "特定のメッセージに反応したピアのリスト", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.messageReactionsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.messageReactionsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クエリに一致する反応の総数", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "MessagePeerReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messagePeerReaction"]}}, "description": "Тип TL: MessagePeerReaction."}, "x-tl-type": "Vector<MessagePeerReaction>", "description": "特定のメッセージに反応したピアのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "設定されている場合、[messages.getMessageReactionsList](https://core.telegram.org/method/messages.getMessageReactionsList.md).] を呼び出してさらに結果をロードするために使用する次のオフセットを示します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "reactions", "chats", "users"], "additionalProperties": false}, "availableReaction": {"title": "availableReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["availableReaction"]}, "inactive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "reaction": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "static_icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "appear_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "select_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "activate_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "effect_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "around_animation": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.1?Document"}, "center_icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.1?Document"}}, "required": ["_", "reaction", "title", "static_icon", "appear_animation", "select_animation", "activate_animation", "effect_animation"], "additionalProperties": false}, "messages.availableReactionsNotModified": {"title": "messages.availableReactionsNotModified", "description": "新しい反応はありません", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableReactionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableReactionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.availableReactions": {"title": "messages.availableReactions", "description": "[メッセージ反応 »](https://core.telegram.org/api/reactions.md) に関連付けられたアニメーションとメタデータ", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableReactions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableReactions"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "AvailableReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["availableReaction"]}}, "description": "Тип TL: AvailableReaction."}, "x-tl-type": "Vector<AvailableReaction>", "description": "[メッセージ反応 »](https://core.telegram.org/api/reactions.md) に関連付けられたアニメーションとメタデータ", "x-telegram-field-docs": true}}, "required": ["_", "hash", "reactions"], "additionalProperties": false}, "messagePeerReaction": {"title": "messagePeerReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerReaction"]}, "big": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "unread": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}}, "required": ["_", "peer_id", "date", "reaction"], "additionalProperties": false}, "groupCallStreamChannel": {"title": "groupCallStreamChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallStreamChannel"]}, "channel": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "scale": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "last_timestamp_ms": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "channel", "scale", "last_timestamp_ms"], "additionalProperties": false}, "phone.groupCallStreamChannels": {"title": "phone.groupCallStreamChannels", "description": "RTMP モードのグループ通話で利用可能なチャンネルが含まれています。[RTMP ライブストリームの再生 »](https://core.telegram.org/api/group-calls.md#rtmp-mode)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCallStreamChannels"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCallStreamChannels"]}, "channels": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallStreamChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallStreamChannel"]}}, "description": "Тип TL: GroupCallStreamChannel."}, "x-tl-type": "Vector<GroupCallStreamChannel>", "description": "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": "RTMP 公開 URL とシークレット ストリーム キーが含まれています。[RTMP ライブストリームの作成と公開 »](https://core.telegram.org/api/group-calls.md#creating-and-publishing-an-rtmp-livestream)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCallStreamRtmpUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCallStreamRtmpUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "RTMP URL", "x-telegram-field-docs": true}, "key": {"type": "string", "x-tl-type": "string", "description": "秘密ストリームキー", "x-telegram-field-docs": true}}, "required": ["_", "url", "key"], "additionalProperties": false}, "attachMenuBotIconColor": {"title": "attachMenuBotIconColor", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotIconColor"]}, "name": {"type": "string", "x-tl-type": "string"}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "name", "color"], "additionalProperties": false}, "attachMenuBotIcon": {"title": "attachMenuBotIcon", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotIcon"]}, "name": {"type": "string", "x-tl-type": "string"}, "icon": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "colors": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuBotIconColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBotIconColor"]}}, "description": "Тип TL: AttachMenuBotIconColor."}, "x-tl-type": "Vector<AttachMenuBotIconColor>", "x-tl-flag": "flags.0?Vector<AttachMenuBotIconColor>"}}, "required": ["_", "name", "icon"], "additionalProperties": false}, "attachMenuBot": {"title": "attachMenuBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBot"]}, "inactive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "has_settings": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "show_in_attach_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "show_in_side_menu": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "side_menu_disclaimer_needed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "short_name": {"type": "string", "x-tl-type": "string"}, "peer_types": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeSameBotPM", "attachMenuPeerTypeBotPM", "attachMenuPeerTypePM", "attachMenuPeerTypeChat", "attachMenuPeerTypeBroadcast"]}}, "description": "Тип TL: AttachMenuPeerType."}, "x-tl-type": "Vector<AttachMenuPeerType>", "x-tl-flag": "flags.3?Vector<AttachMenuPeerType>"}, "icons": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuBotIcon", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBotIcon"]}}, "description": "Тип TL: AttachMenuBotIcon."}, "x-tl-type": "Vector<AttachMenuBotIcon>"}}, "required": ["_", "bot_id", "short_name", "icons"], "additionalProperties": false}, "attachMenuBotsNotModified": {"title": "attachMenuBotsNotModified", "description": "ボット ミニ アプリのリストは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBotsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuBots": {"title": "attachMenuBots", "description": "[添付メニューから起動できるボット ミニ アプリ] のリストを表します »](https://core.telegram.org/api/bots/attach.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBots"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "bots": {"type": "array", "items": {"type": "object", "x-tl-type": "AttachMenuBot", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBot"]}}, "description": "Тип TL: AttachMenuBot."}, "x-tl-type": "Vector<AttachMenuBot>", "description": "【アタッチメントメニューから起動できるBotミニアプリ一覧】](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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連するユーザー/ボットに関する情報", "x-telegram-field-docs": true}}, "required": ["_", "hash", "bots", "users"], "additionalProperties": false}, "attachMenuBotsBot": {"title": "attachMenuBotsBot", "description": "[添付メニューから起動できるボット ミニ アプリ] を表します »](https://core.telegram.org/api/bots/attach.md)", "externalDocs": {"url": "https://core.telegram.org/constructor/attachMenuBotsBot"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuBotsBot"]}, "bot": {"type": "object", "x-tl-type": "AttachMenuBot", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["attachMenuBot"]}}, "description": "[添付メニューから起動できるボット ミニ アプリ »](https://core.telegram.org/api/bots/attach.md)\\ を表します", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連するユーザーとボットに関する情報", "x-telegram-field-docs": true}}, "required": ["_", "bot", "users"], "additionalProperties": false}, "webViewResultUrl": {"title": "webViewResultUrl", "description": "適切なテーマとユーザー情報パラメータが追加された Web ビュー 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": "webViewMessageSent", "description": "送信されたインライン WebView メッセージに関する情報", "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": "botMenuButtonDefault", "description": "プレースホルダー [ボット メニュー ボタン](https://core.telegram.org/api/bots/menu.md)はユーザーに返されません: [詳細についてはドキュメント](https://core.telegram.org/api/bots/menu.md)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButtonDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButtonDefault"]}}, "required": ["_"], "additionalProperties": false}, "botMenuButtonCommands": {"title": "botMenuButtonCommands", "description": "[ボット メニュー ボタン](https://core.telegram.org/api/bots/menu.md)] をクリックすると、ボット コマンド リストが開きます。", "externalDocs": {"url": "https://core.telegram.org/constructor/botMenuButtonCommands"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botMenuButtonCommands"]}}, "required": ["_"], "additionalProperties": false}, "botMenuButton": {"title": "botMenuButton", "description": "[ボット メニュー ボタン](https://core.telegram.org/api/bots/menu.md)] をクリックすると、[Web アプリ](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": "ユーザーがボタンをクリックしたときに開く [Web アプリ](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 Type: Document."}, "x-tl-type": "Vector<Document>", "description": "保存された通知音", "x-telegram-field-docs": true}}, "required": ["_", "hash", "ringtones"], "additionalProperties": false}, "notificationSoundDefault": {"title": "notificationSoundDefault", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault"]}}, "required": ["_"], "additionalProperties": false}, "notificationSoundNone": {"title": "notificationSoundNone", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundNone"]}}, "required": ["_"], "additionalProperties": false}, "notificationSoundLocal": {"title": "notificationSoundLocal", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundLocal"]}, "title": {"type": "string", "x-tl-type": "string"}, "data": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "title", "data"], "additionalProperties": false}, "notificationSoundRingtone": {"title": "notificationSoundRingtone", "type": "object", "properties": {"_": {"type": "string", "enum": ["notificationSoundRingtone"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id"], "additionalProperties": false}, "account.savedRingtone": {"title": "account.savedRingtone", "description": "通知音はすでに MP3 形式であり、変更せずに保存されました", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedRingtone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedRingtone"]}}, "required": ["_"], "additionalProperties": false}, "account.savedRingtoneConverted": {"title": "account.savedRingtoneConverted", "description": "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": "attachMenuPeerTypeChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeChat"]}}, "required": ["_"], "additionalProperties": false}, "attachMenuPeerTypeBroadcast": {"title": "attachMenuPeerTypeBroadcast", "type": "object", "properties": {"_": {"type": "string", "enum": ["attachMenuPeerTypeBroadcast"]}}, "required": ["_"], "additionalProperties": false}, "inputInvoiceMessage": {"title": "inputInvoiceMessage", "description": "[messageMediaInvoice](https://core.telegram.org/constructor/messageMediaInvoice.md) メッセージまたは [有料メディア »](https://core.telegram.org/api/paid-media.md)] に含まれる請求書。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceMessage"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "請求書/有料メディアが送信された場所のチャット", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージID", "x-telegram-field-docs": true}}, "required": ["_", "peer", "msg_id"], "additionalProperties": false}, "inputInvoiceSlug": {"title": "inputInvoiceSlug", "description": "[請求書ディープリンク](https://core.telegram.org/api/links.md#invoice-links) または [`premium_invoice_slug` アプリ構成パラメーター »](https://core.telegram.org/api/config.md#premium-invoice-slug)] から取得された請求書スラッグ", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "請求書のスラッグ", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputInvoicePremiumGiftCode": {"title": "inputInvoicePremiumGiftCode", "description": "ユーザーがチャンネル/スーパーグループ [プレゼント](https://core.telegram.org/api/giveaways.md)] を開始するか、[ブースト](https://core.telegram.org/api/boost.md)] と引き換えにチャンネル/スーパーグループのメンバーに [ギフトコード](https://core.telegram.org/api/giveaways.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)には[inputStorePaymentPremium GiftCode](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)] によって返される特典オプションの 1 つを入力する必要があります。詳細については、[特典 »](https://core.telegram.org/api/giveaways.md) のドキュメントを参照してください。", "x-telegram-field-docs": true}}, "required": ["_", "purpose", "option"], "additionalProperties": false}, "inputInvoiceStars": {"title": "inputInvoiceStars", "description": "現在のアカウントまたは他の人のアカウントの [Telegram Stars](https://core.telegram.org/api/stars.md)] 残高を補充するか、[Telegram Star の特典 »](https://core.telegram.org/api/giveaways.md#star-giveaways)] を開始するために使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStars"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "[inputStorePaymentStarsGiveaway](https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway.md)、[inputStorePaymentStarsTopup](https://core.telegram.org/constructor/inputStorePaymentStarsTopup.md)]、または [inputStorePaymentStarsギフト](https://core.telegram.org/constructor/inputStorePaymentStarsGift.md)。", "x-telegram-field-docs": true}}, "required": ["_", "purpose"], "additionalProperties": false}, "inputInvoiceChatInviteSubscription": {"title": "inputInvoiceChatInviteSubscription", "description": "[Telegram Star サブスクリプション »](https://core.telegram.org/api/stars.md#star-subscriptions)] の支払いに使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceChatInviteSubscription"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceChatInviteSubscription"]}, "hash": {"type": "string", "x-tl-type": "string", "description": "[Telegram Star サブスクリプションの招待リンク »](https://core.telegram.org/api/stars.md#star-subscriptions)", "x-telegram-field-docs": true}}, "required": ["_", "hash"], "additionalProperties": false}, "inputInvoiceStarGift": {"title": "inputInvoiceStarGift", "description": "[Telegram Star Gift] の購入に使用されます。詳細については、こちら »](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": "ギフトの識別子、[starギフト](https://core.telegram.org/constructor/starGift.md).`id`]", "x-tl-type": "long", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "オプションのメッセージをギフトに添付します。  このフィールドの最大長は、[stargifts_message_length_max クライアント設定値 »](https://core.telegram.org/api/config.md#stargifts-message-length-max) で指定されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "peer", "gift_id"], "additionalProperties": false}, "inputInvoiceStarGiftUpgrade": {"title": "inputInvoiceStarGiftUpgrade", "description": "[ギフトを収集可能なギフトにアップグレードするために支払う](https://core.telegram.org/api/gifts.md#upgrade-a-gift-to-a-collectible-gift)] ために使用されます。完全なフローの詳細については、[収集可能なギフト »](https://core.telegram.org/api/gifts.md#collectible-gifts) のドキュメントを参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftUpgrade"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftUpgrade"]}, "keep_original_details": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "このフラグを設定すると、アップグレードされたギフトに元のギフト テキスト、送信者、受信者が [star GiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md)] 属性として保持されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "アップグレードする受信したギフトの識別子。", "x-telegram-field-docs": true}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputInvoiceStarGiftTransfer": {"title": "inputInvoiceStarGiftTransfer", "description": "[収集可能なギフトを別のピア](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts)に転送するために支払います。詳細については、[ギフト »](https://core.telegram.org/api/gifts.md#transferring-collectible-gifts)] のドキュメントを参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftTransfer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftTransfer"]}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "受け取ったギフトの識別子", "x-telegram-field-docs": true}, "to_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "宛先ピア", "x-telegram-field-docs": true}}, "required": ["_", "stargift", "to_id"], "additionalProperties": false}, "inputInvoicePremiumGiftStars": {"title": "inputInvoicePremiumGiftStars", "description": "[Telegram Stars](https://core.telegram.org/api/stars.md)] で支払い、[Telegram Premium](https://core.telegram.org/api/premium.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\"` のオプションの 1 つである必要があります。", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "プレゼントに添えられたメッセージ。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "user_id", "months"], "additionalProperties": false}, "inputInvoiceBusinessBotTransferStars": {"title": "inputInvoiceBusinessBotTransferStars", "description": "[ビジネス ボット](https://core.telegram.org/api/bots/connected-business-bots.md) に接続されているユーザー アカウントの残高から [ビジネス ボット](https://core.telegram.org/api/bots/connected-business-bots.md)] の残高にスターを移します。完全なフローの詳細については、[こちら »](https://core.telegram.org/api/stars.md#transferring-stars-from-a-business-account-to-the-business-bot) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceBusinessBotTransferStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceBusinessBotTransferStars"]}, "bot": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "常に [inputUserSelf](https://core.telegram.org/constructor/inputUserSelf.md).", "x-telegram-field-docs": true}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "転送する星の数。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "bot", "stars"], "additionalProperties": false}, "inputInvoiceStarGiftResale": {"title": "inputInvoiceStarGiftResale", "description": "現在再販中の [収集可能なギフト](https://core.telegram.org/api/gifts.md#collectible-gifts)] を購入するために使用されます。完全なフローの詳細については、[こちら](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftResale"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftResale"]}, "ton": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "TON を使用してギフトを購入します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "show_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "slug": {"type": "string", "x-tl-type": "string", "description": "購入するギフトのナメクジ。", "x-telegram-field-docs": true}, "to_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "贈り物の受け取り手。", "x-telegram-field-docs": true}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities.", "x-tl-flag": "flags.1?TextWithEntities"}}, "required": ["_", "slug", "to_id"], "additionalProperties": false}, "inputInvoiceStarGiftPrepaidUpgrade": {"title": "inputInvoiceStarGiftPrepaidUpgrade", "description": "【プレゼントのグレードアップは別途前払い»](https://core.telegram.org/api/gifts.md#prepaying-for-someone-elses-upgrade)。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftPrepaidUpgrade"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftPrepaidUpgrade"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ギフトを所有するピア。", "x-telegram-field-docs": true}, "hash": {"type": "string", "x-tl-type": "string", "description": "[messageActionStar Gift](https://core.telegram.org/constructor/messageActionStarGift.md).`prepaid_upgrade_hash` または [savedStar Gift](https://core.telegram.org/constructor/savedStarGift.md).`prepaid_upgrade_hash`] からのアップグレード ハッシュ。", "x-telegram-field-docs": true}}, "required": ["_", "peer", "hash"], "additionalProperties": false}, "inputInvoicePremiumAuthCode": {"title": "inputInvoicePremiumAuthCode", "description": "ログイン コードの支払いに使用されます。ユーザーの国/プロバイダーの SMS 確認コードが高額な場合、詳細については [こちら »](https://core.telegram.org/api/auth.md#paid-auth) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoicePremiumAuthCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoicePremiumAuthCode"]}, "purpose": {"type": "object", "x-tl-type": "InputStorePaymentPurpose", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift", "inputStorePaymentStarsGiveaway", "inputStorePaymentAuthCode"]}}, "description": "[inputStorePaymentAuthCode](https://core.telegram.org/constructor/inputStorePaymentAuthCode.md).] を含める必要があります。", "x-telegram-field-docs": true}}, "required": ["_", "purpose"], "additionalProperties": false}, "inputInvoiceStarGiftDropOriginalDetails": {"title": "inputInvoiceStarGiftDropOriginalDetails", "description": "収集可能なギフトから [star GiftAttributeOriginalDetails](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": "[star GiftAttributeOriginalDetails](https://core.telegram.org/constructor/starGiftAttributeOriginalDetails.md)] 属性を削除する必要がある収集可能なギフト。", "x-telegram-field-docs": true}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputInvoiceStarGiftAuctionBid": {"title": "inputInvoiceStarGiftAuctionBid", "description": "[収集可能なギフト オークション »](https://core.telegram.org/api/auctions.md)] に入札するために使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputInvoiceStarGiftAuctionBid"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInvoiceStarGiftAuctionBid"]}, "hide_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、宛先ピアがプロフィールにギフトを表示することを決定した場合、あなたの名前は非表示になります (ギフトを送信したことは引き続き表示されます)。     既存の入札の値は変更できないため、既存の入札を更新する場合は設定しないでください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "update_bid": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "既存の入札額を引き上げる場合は設定する必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "ギフトを受け取るユーザーまたはチャンネルの識別子 ([channelFull](https://core.telegram.org/constructor/channelFull.md).`stargifts_available`] が設定されている場合のみ)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?InputPeer"}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ギフトの識別子、[starギフト](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プレミアムのキャンペーン情報\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 プレミアム サブスクリプションの現在の状態の説明", "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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}, "video_sections": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "各動画に関連付けられた [プレミアム機能識別子 »](https://core.telegram.org/api/premium.md)] のリスト", "x-telegram-field-docs": true}, "videos": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "動画の一覧", "x-telegram-field-docs": true}, "period_options": {"type": "array", "items": {"type": "object", "x-tl-type": "PremiumSubscriptionOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["premiumSubscriptionOption"]}}, "description": "Тип TL: PremiumSubscriptionOption."}, "x-tl-type": "Vector<PremiumSubscriptionOption>", "description": "Telegram プレミアム購読オプション", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連するユーザー情報", "x-telegram-field-docs": true}}, "required": ["_", "status_text", "status_entities", "video_sections", "videos", "period_options", "users"], "additionalProperties": false}, "inputStorePaymentPremiumSubscription": {"title": "inputStorePaymentPremiumSubscription", "description": "Telegram プレミアムの購入に関する情報", "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 プレミアム購入の復元である場合は true を渡します。 App Storeのみ", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "これが月次サブスクリプションから年次サブスクリプションへのアップグレードである場合は true を渡します。 App Storeのみ", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}}, "required": ["_"], "additionalProperties": false}, "inputStorePaymentGiftPremium": {"title": "inputStorePaymentGiftPremium", "description": "ギフトされた Telegram プレミアムの購入に関する情報", "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 プレミアム サブスクリプションが贈られたユーザー", "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": "通貨の最小単位での製品の価格 (float/double ではなく、整数)。たとえば、`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": "inputStorePaymentPremiumGiftCode", "description": "[Telegram プレミアム](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 Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "[Telegram プレミアム](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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "inputStorePaymentPremiumGiveaway", "description": "[プレゼントの支払いに使用されます。詳細については、こちら »](https://core.telegram.org/api/giveaways.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentPremiumGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentPremiumGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、特典作成日以降の新規登録者のみが特典に参加できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、プレゼントの当選者は公開され、プレゼントが終了するとチャンネルに自動的に送信される [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md)] メッセージにリストされます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "プレゼントを開始するチャンネル/スーパーグループ。ユーザーが参加するには参加する必要があり、プレゼントを受け取るチャンネル/スーパーグループ [boosts](https://core.telegram.org/api/boost.md);プレゼントの詳細については[こちら»](https://core.telegram.org/api/giveaways.md)]をご覧ください。", "x-telegram-field-docs": true}, "additional_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "TL Type: 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": "The set of users that can participate to the giveaway can be restricted by passing here an explicit whitelist of up to [giveaway_countries_max](https://core.telegram.org/api/config.md#giveaway-countries-max) countries, specified as two-letter ISO 3166-1 alpha-2 country codes.", "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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "inputStorePaymentStarsTopup", "description": "現在のアカウントの [Telegram Stars 残高](https://core.telegram.org/api/stars.md)] を補充するために使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsTopup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsTopup"]}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "トップアップするスターの数", "x-tl-type": "long", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "inputStorePaymentStarsGift", "description": "[Telegram Stars](https://core.telegram.org/api/stars.md)] を友人にプレゼントするために使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsGift"]}, "user_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "スターをプレゼントするユーザー。", "x-telegram-field-docs": true}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "プレゼントするスターの数", "x-tl-type": "long", "x-telegram-field-docs": true}, "currency": {"type": "string", "x-tl-type": "string", "description": "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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "inputStorePaymentStarsGiveaway", "description": "[スター特典の支払いに使用されます。詳細については、こちら »](https://core.telegram.org/api/giveaways.md#star-giveaways) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentStarsGiveaway"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentStarsGiveaway"]}, "only_new_subscribers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、特典作成日以降の新規登録者のみが特典に参加できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "winners_are_visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、プレゼントの当選者は公開され、プレゼントが終了するとチャンネルに自動的に送信される [messageMediaGiveawayResults](https://core.telegram.org/constructor/messageMediaGiveawayResults.md)] メッセージにリストされます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "付与される Telegram スターの総数 (各ユーザーは `stars/users` 個のスターを受け取ります)。", "x-tl-type": "long", "x-telegram-field-docs": true}, "boost_peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "プレゼントを開始するチャンネル/スーパーグループ。ユーザーが参加するには参加する必要があり、プレゼントを受け取るチャンネル/スーパーグループ [boosts](https://core.telegram.org/api/boost.md);プレゼントの詳細については[こちら»](https://core.telegram.org/api/giveaways.md)]をご覧ください。", "x-telegram-field-docs": true}, "additional_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "TL Type: 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": "The set of users that can participate to the giveaway can be restricted by passing here an explicit whitelist of up to [giveaway_countries_max](https://core.telegram.org/api/config.md#giveaway-countries-max) countries, specified as two-letter ISO 3166-1 alpha-2 country codes.", "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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "inputStorePaymentAuthCode", "description": "ログインコードの支払いを示します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStorePaymentAuthCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStorePaymentAuthCode"]}, "restore": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "以前に行った購入を復元するには、このフラグを設定します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "電話番号。", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "`phone_code_hash` が [auth.sendCode](https://core.telegram.org/method/auth.sendCode.md)] によって返されました。", "x-telegram-field-docs": true}, "premium_days": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[auth.sentCodePaymentRequired](https://core.telegram.org/constructor/auth.sentCodePaymentRequired.md).`premium_days` に示されているように、この購入により付与される [Telegram プレミアム](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": "通貨の最小単位での製品の価格 (float/double ではなく、整数)。たとえば、`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": "paymentFormMethod", "type": "object", "properties": {"_": {"type": "string", "enum": ["paymentFormMethod"]}, "url": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url", "title"], "additionalProperties": false}, "emojiStatusEmpty": {"title": "emojiStatusEmpty", "description": "絵文字ステータスが設定されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatusEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty"]}}, "required": ["_"], "additionalProperties": false}, "emojiStatus": {"title": "emojiStatus", "description": "[絵文字ステータス](https://core.telegram.org/api/emoji-status.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatus"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[カスタム絵文字ドキュメント 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": "設定されている場合、絵文字ステータスは指定された unixtime までアクティブになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "document_id"], "additionalProperties": false}, "emojiStatusCollectible": {"title": "emojiStatusCollectible", "description": "絵文字ステータスとして所有または [ホストされた収集可能なギフト »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts)]。\n\n**は [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md)] に渡すことはできません。メソッドに渡す前に、まず [inputEmojiStatusCollectible](https://core.telegram.org/constructor/inputEmojiStatusCollectible.md)] に変換する必要があります。", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiStatusCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiStatusCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "収集品の ID ([star GiftUnique](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` のギフトの [star GiftAttributePattern](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": "ギフトの [star GiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md)] からの、RGB24 形式のプロフィール背景の中心の色。", "x-telegram-field-docs": true}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトの [star GiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md)] からの、RGB24 形式のプロフィール背景のエッジの色。", "x-telegram-field-docs": true}, "pattern_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトの [stargiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md)] から、プロフィール背景に RGB24 形式で適用される `pattern_document_id` の色。", "x-telegram-field-docs": true}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトの [star GiftAttributeBackdrop](https://core.telegram.org/constructor/starGiftAttributeBackdrop.md)] のプロフィール背景のテキストの色 (RGB24 形式)。", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "設定されている場合、絵文字ステータスは指定された unixtime までアクティブになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "collectible_id", "document_id", "title", "slug", "pattern_document_id", "center_color", "edge_color", "pattern_color", "text_color"], "additionalProperties": false}, "inputEmojiStatusCollectible": {"title": "inputEmojiStatusCollectible", "description": "絵文字ステータスとして所有または [ホストされている収集可能なギフト »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts): [account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md)] でのみ使用でき、API によって返されることはありません。\n\n一度設定すると、ステータスは [emojiStatusCollectible](https://core.telegram.org/constructor/emojiStatusCollectible.md) コンストラクター] としてユーザーに返されることに注意してください ([account.updateEmojiStatus](https://core.telegram.org/method/account.updateEmojiStatus.md) に渡すことは**できません**。最初に [inputEmojiStatusCollectible](https://core.telegram.org/constructor/inputEmojiStatusCollectible.md)] に変換する必要があります)。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputEmojiStatusCollectible"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputEmojiStatusCollectible"]}, "collectible_id": {"type": "string", "pattern": "^-?\\d+$", "description": "収集品の ID ([star GiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`id`)]。", "x-tl-type": "long", "x-telegram-field-docs": true}, "until": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "設定されている場合、絵文字ステータスは指定された unixtime までアクティブになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "collectible_id"], "additionalProperties": false}, "account.emojiStatusesNotModified": {"title": "account.emojiStatusesNotModified", "description": "[絵文字ステータス](https://core.telegram.org/api/emoji-status.md)] のサーバー側リストは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emojiStatusesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emojiStatusesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.emojiStatuses": {"title": "account.emojiStatuses", "description": "[絵文字ステータス](https://core.telegram.org/api/emoji-status.md)]のリスト", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emojiStatuses"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emojiStatuses"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "statuses": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiStatusEmpty", "emojiStatus", "emojiStatusCollectible", "inputEmojiStatusCollectible"]}}, "description": "Тип TL: EmojiStatus."}, "x-tl-type": "Vector<EmojiStatus>", "description": "[絵文字ステータス](https://core.telegram.org/api/emoji-status.md)]", "x-telegram-field-docs": true}}, "required": ["_", "hash", "statuses"], "additionalProperties": false}, "reactionEmpty": {"title": "reactionEmpty", "description": "反応なし", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionEmpty"]}}, "required": ["_"], "additionalProperties": false}, "reactionEmoji": {"title": "reactionEmoji", "description": "通常の絵文字メッセージの反応", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionEmoji"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "絵文字", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "reactionCustomEmoji": {"title": "reactionCustomEmoji", "description": "[カスタム絵文字](https://core.telegram.org/api/custom-emoji.md)メッセージの反応]", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionCustomEmoji"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionCustomEmoji"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[カスタム絵文字ドキュメント 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": "reactionPaid", "description": "[有料 Telegram Star の反応 »](https://core.telegram.org/api/reactions.md#paid-reactions) を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionPaid"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionPaid"]}}, "required": ["_"], "additionalProperties": false}, "chatReactionsNone": {"title": "chatReactionsNone", "description": "いかなる反応も許されません", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsNone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsNone"]}}, "required": ["_"], "additionalProperties": false}, "chatReactionsAll": {"title": "chatReactionsAll", "description": "すべてのリアクションまたはカスタム以外のすべてのリアクションが許可されます", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsAll"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsAll"]}, "allow_custom": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "カスタムリアクションを許可するかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "chatReactionsSome": {"title": "chatReactionsSome", "description": "ある程度の反応は許される", "externalDocs": {"url": "https://core.telegram.org/constructor/chatReactionsSome"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatReactionsSome"]}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}, "x-tl-type": "Vector<Reaction>", "description": "許可される反応セット: [reactions_in_chat_max](https://core.telegram.org/api/config.md#reactions-in-chat-max) 設定フィールドは、このフィールドで指定できる反応の最大数を示します。", "x-telegram-field-docs": true}}, "required": ["_", "reactions"], "additionalProperties": false}, "messages.reactionsNotModified": {"title": "messages.reactionsNotModified", "description": "[メッセージ反応](https://core.telegram.org/api/reactions.md)] のサーバー側リストは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.reactionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.reactionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.reactions": {"title": "messages.reactions", "description": "【メッセージ反応一覧](https://core.telegram.org/api/reactions.md)】", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.reactions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.reactions"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "キャッシュに使用されるハッシュは、[こちら »](https://core.telegram.org/api/reactions.md#recent-reactions)] で指定されたアルゴリズムを使用してローカルで再生成することもできます。", "x-tl-type": "long", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}, "x-tl-type": "Vector<Reaction>", "description": "反応", "x-telegram-field-docs": true}}, "required": ["_", "hash", "reactions"], "additionalProperties": false}, "emailVerifyPurposeLoginSetup": {"title": "emailVerifyPurposeLoginSetup", "description": "電子メール検証の目的: ログイン電子メールの設定", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerifyPurposeLoginSetup"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerifyPurposeLoginSetup"]}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "電話番号", "x-telegram-field-docs": true}, "phone_code_hash": {"type": "string", "x-tl-type": "string", "description": "[ドキュメント](https://core.telegram.org/api/auth.md#email-verification)] で指定されている電話コード ハッシュ", "x-telegram-field-docs": true}}, "required": ["_", "phone_number", "phone_code_hash"], "additionalProperties": false}, "emailVerifyPurposeLoginChange": {"title": "emailVerifyPurposeLoginChange", "description": "メール認証の目的: ログインメールアドレスの変更", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerifyPurposeLoginChange"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerifyPurposeLoginChange"]}}, "required": ["_"], "additionalProperties": false}, "emailVerifyPurposePassport": {"title": "emailVerifyPurposePassport", "description": "[テレグラムパスポート](https://core.telegram.org/api/passport.md)] で使用する電子メールを確認してください", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerifyPurposePassport"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerifyPurposePassport"]}}, "required": ["_"], "additionalProperties": false}, "emailVerificationCode": {"title": "emailVerificationCode", "description": "メール認証コード", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerificationCode"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerificationCode"]}, "code": {"type": "string", "x-tl-type": "string", "description": "確認コードを受け取りました", "x-telegram-field-docs": true}}, "required": ["_", "code"], "additionalProperties": false}, "emailVerificationGoogle": {"title": "emailVerificationGoogle", "description": "Google ID メール検証トークン", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerificationGoogle"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerificationGoogle"]}, "token": {"type": "string", "x-tl-type": "string", "description": "トークン", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "emailVerificationApple": {"title": "emailVerificationApple", "description": "Apple ID メール検証トークン", "externalDocs": {"url": "https://core.telegram.org/constructor/emailVerificationApple"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emailVerificationApple"]}, "token": {"type": "string", "x-tl-type": "string", "description": "トークン", "x-telegram-field-docs": true}}, "required": ["_", "token"], "additionalProperties": false}, "account.emailVerified": {"title": "account.emailVerified", "description": "メールは正しく認証されました。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emailVerified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emailVerified"]}, "email": {"type": "string", "x-tl-type": "string", "description": "確認されたメールアドレス。", "x-telegram-field-docs": true}}, "required": ["_", "email"], "additionalProperties": false}, "account.emailVerifiedLogin": {"title": "account.emailVerifiedLogin", "description": "電子メールは正しく検証され、ログイン コードが送信されました。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.emailVerifiedLogin"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.emailVerifiedLogin"]}, "email": {"type": "string", "x-tl-type": "string", "description": "確認されたメールアドレス。", "x-telegram-field-docs": true}, "sent_code": {"type": "object", "x-tl-type": "auth.SentCode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auth.sentCode", "auth.sentCodeSuccess", "auth.sentCodePaymentRequired"]}}, "description": "送信された[ログインコード](https://core.telegram.org/api/auth.md)]に関する情報", "x-telegram-field-docs": true}}, "required": ["_", "email", "sent_code"], "additionalProperties": false}, "premiumSubscriptionOption": {"title": "premiumSubscriptionOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["premiumSubscriptionOption"]}, "current": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "can_purchase_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "transaction": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "currency": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bot_url": {"type": "string", "x-tl-type": "string"}, "store_product": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "months", "currency", "amount", "bot_url"], "additionalProperties": false}, "sendAsPeer": {"title": "sendAsPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["sendAsPeer"]}, "premium_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "messageExtendedMediaPreview": {"title": "messageExtendedMediaPreview", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageExtendedMediaPreview"]}, "w": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "h": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "thumb": {"type": "object", "x-tl-type": "PhotoSize", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]}}, "description": "Тип TL: PhotoSize.", "x-tl-flag": "flags.1?PhotoSize"}, "video_duration": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "messageExtendedMedia": {"title": "messageExtendedMedia", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageExtendedMedia"]}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia."}}, "required": ["_", "media"], "additionalProperties": false}, "stickerKeyword": {"title": "stickerKeyword", "type": "object", "properties": {"_": {"type": "string", "enum": ["stickerKeyword"]}, "document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "keyword": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "document_id", "keyword"], "additionalProperties": false}, "username": {"title": "username", "type": "object", "properties": {"_": {"type": "string", "enum": ["username"]}, "editable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "active": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "deletable": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "expired": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "username": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "username"], "additionalProperties": false}, "forumTopicDeleted": {"title": "forumTopicDeleted", "type": "object", "properties": {"_": {"type": "string", "enum": ["forumTopicDeleted"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "forumTopic": {"title": "forumTopic", "type": "object", "properties": {"_": {"type": "string", "enum": ["forumTopic"]}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "short": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "title_missing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "title": {"type": "string", "x-tl-type": "string"}, "icon_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_mentions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_poll_votes_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "notify_settings": {"type": "object", "x-tl-type": "PeerNotifySettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerNotifySettings"]}}, "description": "TL Type: PeerNotifySettings."}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage.", "x-tl-flag": "flags.4?DraftMessage"}}, "required": ["_", "id", "date", "peer", "title", "icon_color", "top_message", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "unread_mentions_count", "unread_reactions_count", "unread_poll_votes_count", "from_id", "notify_settings"], "additionalProperties": false}, "messages.forumTopics": {"title": "messages.forumTopics", "description": "複数の [フォーラム トピック](https://core.telegram.org/api/forum.md#forum-topics)] に関する情報が含まれています", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.forumTopics"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.forumTopics"]}, "order_by_create_date": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "返されたトピックが作成日順に並べられているかどうか。設定されている場合、`offset_date` によるページネーションには [forumTopic](https://core.telegram.org/constructor/forumTopic.md).`date`;それ以外の場合、トピックは最後のメッセージの日付順に並べられるため、[forumTopic](https://core.telegram.org/constructor/forumTopic.md).`top_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: ForumTopic."}, "x-tl-type": "Vector<ForumTopic>", "description": "フォーラムのトピックス", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "関連メッセージ ([forumTopic](https://core.telegram.org/constructor/forumTopic.md).`top_message`] で言及されたメッセージが含まれます)。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "関連するチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連ユーザー", "x-telegram-field-docs": true}, "pts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[生成後のイベント数](https://core.telegram.org/api/updates.md)]", "x-telegram-field-docs": true}}, "required": ["_", "count", "topics", "messages", "chats", "users", "pts"], "additionalProperties": false}, "defaultHistoryTTL": {"title": "defaultHistoryTTL", "description": "すべての新しいチャットに適用される Time-To-Live 設定のデフォルト値に関する情報が含まれます。", "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": "Time-To-Live 設定はすべての新しいチャットに適用されます。", "x-telegram-field-docs": true}}, "required": ["_", "period"], "additionalProperties": false}, "exportedContactToken": {"title": "exportedContactToken", "description": "[一時的なプロフィールリンク](https://core.telegram.org/api/links.md#temporary-profile-links)] について説明します。", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedContactToken"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedContactToken"]}, "url": {"type": "string", "x-tl-type": "string", "description": "[一時的なプロフィールリンク](https://core.telegram.org/api/links.md#temporary-profile-links)]。", "x-telegram-field-docs": true}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "有効期限", "x-telegram-field-docs": true}}, "required": ["_", "url", "expires"], "additionalProperties": false}, "requestPeerTypeUser": {"title": "requestPeerTypeUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeUser"]}, "bot": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}, "premium": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.1?Bool"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeChat": {"title": "requestPeerTypeChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeChat"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bot_participant": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "has_username": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}, "forum": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.4?Bool"}, "user_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.1?ChatAdminRights"}, "bot_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.2?ChatAdminRights"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeBroadcast": {"title": "requestPeerTypeBroadcast", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeBroadcast"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "has_username": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.3?Bool"}, "user_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.1?ChatAdminRights"}, "bot_admin_rights": {"type": "object", "x-tl-type": "ChatAdminRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatAdminRights"]}}, "description": "Тип TL: ChatAdminRights.", "x-tl-flag": "flags.2?ChatAdminRights"}}, "required": ["_"], "additionalProperties": false}, "requestPeerTypeCreateBot": {"title": "requestPeerTypeCreateBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestPeerTypeCreateBot"]}, "bot_managed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "suggested_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "suggested_username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_"], "additionalProperties": false}, "emojiListNotModified": {"title": "emojiListNotModified", "description": "[カスタム絵文字](https://core.telegram.org/api/custom-emoji.md)] のリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "emojiList": {"title": "emojiList", "description": "[カスタム絵文字](https://core.telegram.org/api/custom-emoji.md)]のリストを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/emojiList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiList"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "document_id": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "description": "カスタム絵文字ID", "x-telegram-field-docs": true}}, "required": ["_", "hash", "document_id"], "additionalProperties": false}, "emojiGroup": {"title": "emojiGroup", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroup"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "title", "icon_emoji_id", "emoticons"], "additionalProperties": false}, "emojiGroupGreeting": {"title": "emojiGroupGreeting", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroupGreeting"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticons": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}}, "required": ["_", "title", "icon_emoji_id", "emoticons"], "additionalProperties": false}, "emojiGroupPremium": {"title": "emojiGroupPremium", "type": "object", "properties": {"_": {"type": "string", "enum": ["emojiGroupPremium"]}, "title": {"type": "string", "x-tl-type": "string"}, "icon_emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "title", "icon_emoji_id"], "additionalProperties": false}, "messages.emojiGroupsNotModified": {"title": "messages.emojiGroupsNotModified", "description": "[絵文字カテゴリ](https://core.telegram.org/api/emoji-categories.md)] のリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGroupsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGroupsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.emojiGroups": {"title": "messages.emojiGroups", "description": "[絵文字カテゴリ](https://core.telegram.org/api/emoji-categories.md)]のリストを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGroups"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGroups"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "groups": {"type": "array", "items": {"type": "object", "x-tl-type": "EmojiGroup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["emojiGroup", "emojiGroupGreeting", "emojiGroupPremium"]}}, "description": "Тип TL: EmojiGroup."}, "x-tl-type": "Vector<EmojiGroup>", "description": "[絵文字カテゴリ](https://core.telegram.org/api/emoji-categories.md)]の一覧です。", "x-telegram-field-docs": true}}, "required": ["_", "hash", "groups"], "additionalProperties": false}, "textWithEntities": {"title": "textWithEntities", "description": "[メッセージ エンティティ](https://core.telegram.org/api/entities.md)] を使用したスタイル付きテキスト\n\n<!-- スキーマブロック -->\n#### [エンドツーエンドのスキーマ](https://core.telegram.org/schema/end-to-end.md)]", "externalDocs": {"url": "https://core.telegram.org/constructor/textWithEntities"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}, "text": {"type": "string", "x-tl-type": "string", "description": "テキスト", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true}}, "required": ["_", "text", "entities"], "additionalProperties": false}, "messages.translateResult": {"title": "messages.translateResult", "description": "[エンティティ](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 Type: TextWithEntities."}, "x-tl-type": "Vector<TextWithEntities>", "description": "Text+[entities](https://core.telegram.org/api/entities.md)、入力メッセージごとに。", "x-telegram-field-docs": true}}, "required": ["_", "result"], "additionalProperties": false}, "autoSaveSettings": {"title": "autoSaveSettings", "description": "メディアの自動保存設定", "externalDocs": {"url": "https://core.telegram.org/constructor/autoSaveSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}, "photos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "写真をギャラリーに自動保存するかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "videos": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ビデオをギャラリーに自動保存するかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "video_max_size": {"type": "string", "pattern": "^-?\\d+$", "description": "設定すると、自動保存可能なビデオのサイズ制限が指定されます", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}}, "required": ["_"], "additionalProperties": false}, "autoSaveException": {"title": "autoSaveException", "type": "object", "properties": {"_": {"type": "string", "enum": ["autoSaveException"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "Тип TL: AutoSaveSettings."}}, "required": ["_", "peer", "settings"], "additionalProperties": false}, "account.autoSaveSettings": {"title": "account.autoSaveSettings", "description": "メディアの自動保存設定が含まれています", "externalDocs": {"url": "https://core.telegram.org/constructor/account.autoSaveSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.autoSaveSettings"]}, "users_settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "プライベート チャットのデフォルトのメディア自動保存設定", "x-telegram-field-docs": true}, "chats_settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "[グループとスーパーグループ](https://core.telegram.org/api/channel.md)] のデフォルトのメディア自動保存設定", "x-telegram-field-docs": true}, "broadcasts_settings": {"type": "object", "x-tl-type": "AutoSaveSettings", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveSettings"]}}, "description": "[チャンネル](https://core.telegram.org/api/channel.md)] のデフォルトのメディア自動保存設定", "x-telegram-field-docs": true}, "exceptions": {"type": "array", "items": {"type": "object", "x-tl-type": "AutoSaveException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["autoSaveException"]}}, "description": "Тип TL: AutoSaveException."}, "x-tl-type": "Vector<AutoSaveException>", "description": "ピア固有の詳細な自動保存設定", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ピア固有の詳細な自動保存設定に記載されているチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ピア固有の詳細な自動保存設定に記載されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "users_settings", "chats_settings", "broadcasts_settings", "exceptions", "chats", "users"], "additionalProperties": false}, "help.appConfigNotModified": {"title": "help.appConfigNotModified", "description": "クライアント構成パラメータは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/help.appConfigNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.appConfigNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.appConfig": {"title": "help.appConfig", "description": "さまざまな [クライアント構成パラメータ](https://core.telegram.org/api/config.md#client-configuration)] が含まれています", "externalDocs": {"url": "https://core.telegram.org/constructor/help.appConfig"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.appConfig"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "config": {"type": "object", "x-tl-type": "JSONValue", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["jsonNull", "jsonBool", "jsonNumber", "jsonString", "jsonArray", "jsonObject"]}}, "description": "[クライアント設定パラメータ](https://core.telegram.org/api/config.md#client-configuration)]", "x-telegram-field-docs": true}}, "required": ["_", "hash", "config"], "additionalProperties": false}, "inputBotAppID": {"title": "inputBotAppID", "description": "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": "inputBotAppShortName", "description": "[ダイレクトリンク ミニアプリ](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps)] に関する情報を短縮名で取得するために使用されます", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBotAppShortName"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBotAppShortName"]}, "bot_id": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "ボット ミニ アプリを所有するボットの ID", "x-telegram-field-docs": true}, "short_name": {"type": "string", "x-tl-type": "string", "description": "短縮名、[Direct Mini App ディープリンク](https://core.telegram.org/api/links.md#direct-mini-app-links)] から取得", "x-telegram-field-docs": true}}, "required": ["_", "bot_id", "short_name"], "additionalProperties": false}, "botAppNotModified": {"title": "botAppNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["botAppNotModified"]}}, "required": ["_"], "additionalProperties": false}, "botApp": {"title": "botApp", "type": "object", "properties": {"_": {"type": "string", "enum": ["botApp"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "short_name": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.0?Document"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "id", "access_hash", "short_name", "title", "description", "photo", "hash"], "additionalProperties": false}, "messages.botApp": {"title": "messages.botApp", "description": "[ダイレクトリンク ミニアプリ](https://core.telegram.org/api/bots/webapps.md#direct-link-mini-apps)] に関する情報が含まれています", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botApp"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botApp"]}, "inactive": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "Web アプリがユーザーによって使用されたことがないかどうか、開く前にユーザーに確認を求める必要があります。", "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": "inlineBotWebView", "description": "インライン クエリ結果リストの上部に表示される [インライン モード ミニ アプリ](https://core.telegram.org/api/bots/webapps.md#inline-mode-mini-apps)] ボタンを指定します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inlineBotWebView"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineBotWebView"]}, "text": {"type": "string", "x-tl-type": "string", "description": "ボタンのテキスト", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "ウェブアプリ URL", "x-telegram-field-docs": true}}, "required": ["_", "text", "url"], "additionalProperties": false}, "readParticipantDate": {"title": "readParticipantDate", "description": "特定の参加者がいつメッセージを読んだかに関する情報が含まれます", "externalDocs": {"url": "https://core.telegram.org/constructor/readParticipantDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["readParticipantDate"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "ユーザー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": "inputChatlistDialogFilter", "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": "exportedChatlistInvite", "description": "[チャット フォルダーのディープ リンク »](https://core.telegram.org/api/links.md#chat-folder-links)] をエクスポートしました。", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedChatlistInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedChatlistInvite"]}, "title": {"type": "string", "x-tl-type": "string", "description": "リンクの名前", "x-telegram-field-docs": true}, "url": {"type": "string", "x-tl-type": "string", "description": "[チャットフォルダーのディープリンク»](https://core.telegram.org/api/links.md#chat-folder-links)。", "x-telegram-field-docs": true}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "インポートするピア", "x-telegram-field-docs": true}}, "required": ["_", "title", "url", "peers"], "additionalProperties": false}, "chatlists.exportedChatlistInvite": {"title": "chatlists.exportedChatlistInvite", "description": "エクスポートされた [チャット フォルダーのディープ リンク »](https://core.telegram.org/api/links.md#chat-folder-links)] に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.exportedChatlistInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.exportedChatlistInvite"]}, "filter": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "フォルダー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 Type: ExportedChatlistInvite."}, "x-tl-type": "Vector<ExportedChatlistInvite>", "description": "[チャットフォルダーのディープリンク»](https://core.telegram.org/api/links.md#chat-folder-links)。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "関連チャット情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連するユーザー情報", "x-telegram-field-docs": true}}, "required": ["_", "invites", "chats", "users"], "additionalProperties": false}, "chatlists.chatlistInviteAlready": {"title": "chatlists.chatlistInviteAlready", "description": "すでにインポートされている [チャット フォルダーのディープ リンク »](https://core.telegram.org/api/links.md#chat-folder-links)] に関する情報を更新しました。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.chatlistInviteAlready"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.chatlistInviteAlready"]}, "filter_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "インポートしたフォルダーの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 Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "インポートされる新しいピア", "x-telegram-field-docs": true}, "already_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "すでにインポートされているピア", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "関連チャット情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連するユーザー情報", "x-telegram-field-docs": true}}, "required": ["_", "filter_id", "missing_peers", "already_peers", "chats", "users"], "additionalProperties": false}, "chatlists.chatlistInvite": {"title": "chatlists.chatlistInvite", "description": "[チャット フォルダーのディープ リンク »](https://core.telegram.org/api/links.md#chat-folder-links)] に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.chatlistInvite"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.chatlistInvite"]}, "title_noanimate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定した場合、`title` にあるアニメーション絵文字はアニメーション化されず、最初のフレームで固定される必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "リンクの名前", "x-telegram-field-docs": true}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "フォルダーのアイコンとして使用する絵文字。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "参加するスーパーグループとチャンネル", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "関連チャット情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連するユーザー情報", "x-telegram-field-docs": true}}, "required": ["_", "title", "peers", "chats", "users"], "additionalProperties": false}, "chatlists.chatlistUpdates": {"title": "chatlists.chatlistUpdates", "description": "[チャット フォルダーのディープ リンク »](https://core.telegram.org/api/links.md#chat-folder-links)] に関する情報を更新しました。", "externalDocs": {"url": "https://core.telegram.org/constructor/chatlists.chatlistUpdates"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["chatlists.chatlistUpdates"]}, "missing_peers": {"type": "array", "items": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "x-tl-type": "Vector<Peer>", "description": "新しい仲間が参加します", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "関連チャット情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "関連するユーザー情報", "x-telegram-field-docs": true}}, "required": ["_", "missing_peers", "chats", "users"], "additionalProperties": false}, "bots.botInfo": {"title": "bots.botInfo", "description": "ボットに関するローカライズされた情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.botInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.botInfo"]}, "name": {"type": "string", "x-tl-type": "string", "description": "ボット名", "x-telegram-field-docs": true}, "about": {"type": "string", "x-tl-type": "string", "description": "テキストに関するボット", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "ボットの説明", "x-telegram-field-docs": true}}, "required": ["_", "name", "about", "description"], "additionalProperties": false}, "messagePeerVote": {"title": "messagePeerVote", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerVote"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "option", "date"], "additionalProperties": false}, "messagePeerVoteInputOption": {"title": "messagePeerVoteInputOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerVoteInputOption"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "date"], "additionalProperties": false}, "messagePeerVoteMultiple": {"title": "messagePeerVoteMultiple", "type": "object", "properties": {"_": {"type": "string", "enum": ["messagePeerVoteMultiple"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "options": {"type": "array", "items": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "x-tl-type": "Vector<bytes>"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "options", "date"], "additionalProperties": false}, "storyViews": {"title": "storyViews", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyViews"]}, "has_viewers": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "views_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "ReactionCount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionCount"]}}, "description": "Тип TL: ReactionCount."}, "x-tl-type": "Vector<ReactionCount>", "x-tl-flag": "flags.3?Vector<ReactionCount>"}, "reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}, "recent_viewers": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.0?Vector<long>"}}, "required": ["_", "views_count"], "additionalProperties": false}, "storyItemDeleted": {"title": "storyItemDeleted", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyItemDeleted"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id"], "additionalProperties": false}, "storyItemSkipped": {"title": "storyItemSkipped", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyItemSkipped"]}, "close_friends": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "live": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "date", "expire_date"], "additionalProperties": false}, "storyItem": {"title": "storyItem", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyItem"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "public": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "close_friends": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "min": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "edited": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "selected_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.13?true"}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.16?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.18?Peer"}, "fwd_from": {"type": "object", "x-tl-type": "StoryFwdHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyFwdHeader"]}}, "description": "Тип TL: StoryFwdHeader.", "x-tl-flag": "flags.17?StoryFwdHeader"}, "expire_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "caption": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.1?Vector<MessageEntity>"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia."}, "media_areas": {"type": "array", "items": {"type": "object", "x-tl-type": "MediaArea", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaVenue", "inputMediaAreaVenue", "mediaAreaGeoPoint", "mediaAreaSuggestedReaction", "mediaAreaChannelPost", "inputMediaAreaChannelPost", "mediaAreaUrl", "mediaAreaWeather", "mediaAreaStarGift"]}}, "description": "TL Type: MediaArea."}, "x-tl-type": "Vector<MediaArea>", "x-tl-flag": "flags.14?Vector<MediaArea>"}, "privacy": {"type": "array", "items": {"type": "object", "x-tl-type": "PrivacyRule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["privacyValueAllowContacts", "privacyValueAllowAll", "privacyValueAllowUsers", "privacyValueDisallowContacts", "privacyValueDisallowAll", "privacyValueDisallowUsers", "privacyValueAllowChatParticipants", "privacyValueDisallowChatParticipants", "privacyValueAllowCloseFriends", "privacyValueAllowPremium", "privacyValueAllowBots", "privacyValueDisallowBots"]}}, "description": "Тип TL: PrivacyRule."}, "x-tl-type": "Vector<PrivacyRule>", "x-tl-flag": "flags.2?Vector<PrivacyRule>"}, "views": {"type": "object", "x-tl-type": "StoryViews", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyViews"]}}, "description": "Тип TL: StoryViews.", "x-tl-flag": "flags.3?StoryViews"}, "sent_reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction.", "x-tl-flag": "flags.15?Reaction"}, "albums": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "x-tl-flag": "flags.19?Vector<int>"}, "music": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.20?Document"}}, "required": ["_", "id", "date", "expire_date", "media"], "additionalProperties": false}, "stories.allStoriesNotModified": {"title": "stories.allStoriesNotModified", "description": "アクティブな (またはアクティブで非表示の) [ストーリー](https://core.telegram.org/api/stories.md#watching-stories)] のリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.allStoriesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.allStoriesNotModified"]}, "state": {"type": "string", "x-tl-type": "string", "description": "更新を要求するために使用する状態", "x-telegram-field-docs": true}, "stealth_mode": {"type": "object", "x-tl-type": "StoriesStealthMode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}}, "description": "現在の[ステルスモード](https://core.telegram.org/api/stories.md#stealth-mode)]情報", "x-telegram-field-docs": true}}, "required": ["_", "state", "stealth_mode"], "additionalProperties": false}, "stories.allStories": {"title": "stories.allStories", "description": "アクティブ (またはアクティブおよび非表示) の完全なリスト [ストーリー](https://core.telegram.org/api/stories.md#watching-stories).", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.allStories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.allStories"]}, "has_more": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[ここで説明されています »](https://core.telegram.org/api/stories.md#watching-stories)] に従ってさらに結果を取得できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アクティブな (またはアクティブなストーリーと非表示の) ストーリーの合計数", "x-telegram-field-docs": true}, "state": {"type": "string", "x-tl-type": "string", "description": "ページネーションに使用する状態", "x-telegram-field-docs": true}, "peer_stories": {"type": "array", "items": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "Тип TL: PeerStories."}, "x-tl-type": "Vector<PeerStories>", "description": "ストーリー", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "stealth_mode": {"type": "object", "x-tl-type": "StoriesStealthMode", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}}, "description": "現在の[ステルスモード](https://core.telegram.org/api/stories.md#stealth-mode)]情報", "x-telegram-field-docs": true}}, "required": ["_", "count", "state", "peer_stories", "chats", "users", "stealth_mode"], "additionalProperties": false}, "stories.stories": {"title": "stories.stories", "description": "【ストーリー](https://core.telegram.org/api/stories.md#pinned-or-archived-stories)】の一覧", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.stories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.stories"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "取得できる総話数", "x-telegram-field-docs": true}, "stories": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}, "x-tl-type": "Vector<StoryItem>", "description": "ストーリー", "x-telegram-field-docs": true}, "pinned_to_top": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "固定されたストーリーの 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: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "stories", "chats", "users"], "additionalProperties": false}, "storyView": {"title": "storyView", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyView"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction.", "x-tl-flag": "flags.2?Reaction"}}, "required": ["_", "user_id", "date"], "additionalProperties": false}, "storyViewPublicForward": {"title": "storyViewPublicForward", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyViewPublicForward"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "storyViewPublicRepost": {"title": "storyViewPublicRepost", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyViewPublicRepost"]}, "blocked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "blocked_my_stories_from": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer_id", "story"], "additionalProperties": false}, "stories.storyViewsList": {"title": "stories.storyViewsList", "description": "[ストーリー](https://core.telegram.org/api/stories.md)] の反応カウンターと閲覧カウンター", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.storyViewsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.storyViewsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "取得できる結果の総数", "x-telegram-field-docs": true}, "views_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ストーリーの総閲覧数", "x-telegram-field-docs": true}, "forwards_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ストーリーの転送/再投稿の合計数", "x-telegram-field-docs": true}, "reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ストーリーに追加されたリアクションの数", "x-telegram-field-docs": true}, "views": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryView", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyView", "storyViewPublicForward", "storyViewPublicRepost"]}}, "description": "Тип TL: StoryView."}, "x-tl-type": "Vector<StoryView>", "description": "ストーリービューの日付と反応情報", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "ページネーションのオフセット", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "views_count", "forwards_count", "reactions_count", "views", "chats", "users"], "additionalProperties": false}, "stories.storyViews": {"title": "stories.storyViews", "description": "[ストーリー](https://core.telegram.org/api/stories.md)] のリストの反応カウンターと表示カウンター", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.storyViews"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.storyViews"]}, "views": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryViews", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyViews"]}}, "description": "Тип TL: StoryViews."}, "x-tl-type": "Vector<StoryViews>", "description": "複数のストーリーの日付と反応情報を表示する", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "views", "users"], "additionalProperties": false}, "inputReplyToMessage": {"title": "inputReplyToMessage", "description": "メッセージに返信します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToMessage"]}, "reply_to_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "返信するメッセージ ID。", "x-telegram-field-docs": true}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "「一般」トピック (i.e、`reply_to_msg_id` が設定され、`reply_to_msg_id != topicID` および `topicID != 1`) とは異なるフォーラム トピックのメッセージに返信する場合、このフィールドにはトピック ID **のみ**を含める必要があります。   メソッドの実行が完了する前に返信先メッセージが削除された場合、このフィールドの値は、メッセージを「全般」トピックではなく正しいトピックに送信するために使用されます。", "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) config キーで指定されます。", "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 Type: MessageEntity."}, "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 トピック](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": "[todoリスト»](https://core.telegram.org/api/todo.md)]の指定した項目に返信するように設定できます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?int"}, "poll_option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "設定されている場合、メッセージを [特定のアンケート回答オプションへの返信 »](https://core.telegram.org/api/poll.md#replying-to-poll-options) として、目的の回答の `option` バイトを含むメッセージを送信します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?bytes"}, "quote_rich": {"type": "array", "items": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "x-tl-type": "Vector<RichText>", "x-tl-flag": "flags.8?Vector<RichText>"}}, "required": ["_", "reply_to_msg_id"], "additionalProperties": false}, "inputReplyToStory": {"title": "inputReplyToStory", "description": "ストーリーに返信します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToStory"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToStory"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "物語の送り主", "x-telegram-field-docs": true}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "返信するストーリーのID。", "x-telegram-field-docs": true}}, "required": ["_", "peer", "story_id"], "additionalProperties": false}, "inputReplyToMonoForum": {"title": "inputReplyToMonoForum", "description": "[モノフォーラム トピック](https://core.telegram.org/api/monoforum.md)] にメッセージを送信するために使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputReplyToMonoForum"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputReplyToMonoForum"]}, "monoforum_peer_id": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "トピック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": "exportedStoryLink", "description": "[ストーリーディープリンク](https://core.telegram.org/api/stories.md#story-links)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/exportedStoryLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedStoryLink"]}, "link": {"type": "string", "x-tl-type": "string", "description": "[ストーリーディープリンク](https://core.telegram.org/api/stories.md#story-links)]。", "x-telegram-field-docs": true}}, "required": ["_", "link"], "additionalProperties": false}, "storiesStealthMode": {"title": "storiesStealthMode", "type": "object", "properties": {"_": {"type": "string", "enum": ["storiesStealthMode"]}, "active_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "cooldown_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_"], "additionalProperties": false}, "mediaAreaCoordinates": {"title": "mediaAreaCoordinates", "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}, "x": {"type": "number", "format": "double", "x-tl-type": "double"}, "y": {"type": "number", "format": "double", "x-tl-type": "double"}, "w": {"type": "number", "format": "double", "x-tl-type": "double"}, "h": {"type": "number", "format": "double", "x-tl-type": "double"}, "rotation": {"type": "number", "format": "double", "x-tl-type": "double"}, "radius": {"type": "number", "format": "double", "x-tl-type": "double", "x-tl-flag": "flags.0?double"}}, "required": ["_", "x", "y", "w", "h", "rotation"], "additionalProperties": false}, "mediaAreaVenue": {"title": "mediaAreaVenue", "description": "[ストーリー](https://core.telegram.org/api/stories.md)] に追加された場所タグと、追加の会場情報を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaVenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaVenue"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "ストーリー メディア上の位置ステッカーに対応するメディア領域のサイズと位置。", "x-telegram-field-docs": true}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "会場の座標", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "会場名", "x-telegram-field-docs": true}, "address": {"type": "string", "x-tl-type": "string", "description": "住所", "x-telegram-field-docs": true}, "provider": {"type": "string", "x-tl-type": "string", "description": "会場プロバイダー: 現在、「foursquare」のみをサポートする必要があります。", "x-telegram-field-docs": true}, "venue_id": {"type": "string", "x-tl-type": "string", "description": "プロバイダーのデータベース内の会場 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": "inputMediaAreaVenue", "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": "mediaAreaGeoPoint", "description": "[ストーリー](https://core.telegram.org/api/stories.md)] に付加された地理位置情報タグを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaGeoPoint"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaGeoPoint"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "ストーリー メディア上の位置ステッカーに対応するメディア領域のサイズと位置。", "x-telegram-field-docs": true}, "geo": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "地理位置情報タグの座標。", "x-telegram-field-docs": true}, "address": {"type": "object", "x-tl-type": "GeoPointAddress", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointAddress"]}}, "description": "住所のオプションのテキスト表現。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?GeoPointAddress"}}, "required": ["_", "coordinates", "geo"], "additionalProperties": false}, "mediaAreaSuggestedReaction": {"title": "mediaAreaSuggestedReaction", "description": "反応泡を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaSuggestedReaction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaSuggestedReaction"]}, "dark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "反応バブルの背景が暗いかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "flipped": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "反応バブルがミラーリングされるかどうか (詳細については [ここ »](https://core.telegram.org/api/stories.md#reactions) を参照してください)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "リアクションボタンに対応するメディアエリアの座標。", "x-telegram-field-docs": true}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "この領域がクリックされたときに送信される反応。", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "reaction"], "additionalProperties": false}, "mediaAreaChannelPost": {"title": "mediaAreaChannelPost", "description": "チャンネル投稿を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaChannelPost"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaChannelPost"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "ストーリー メディア上の位置ステッカーに対応するメディア領域のサイズと位置。", "x-telegram-field-docs": true}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "メッセージを投稿したチャンネル", "x-tl-type": "long", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャンネルメッセージのID", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "channel_id", "msg_id"], "additionalProperties": false}, "inputMediaAreaChannelPost": {"title": "inputMediaAreaChannelPost", "description": "チャンネル投稿を表します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMediaAreaChannelPost"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMediaAreaChannelPost"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "ストーリー メディア上の位置ステッカーに対応するメディア領域のサイズと位置。", "x-telegram-field-docs": true}, "channel": {"type": "object", "x-tl-type": "InputChannel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputChannelEmpty", "inputChannel", "inputChannelFromMessage"]}}, "description": "メッセージを投稿したチャンネル", "x-telegram-field-docs": true}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャンネルメッセージのID", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "channel", "msg_id"], "additionalProperties": false}, "mediaAreaUrl": {"title": "mediaAreaUrl", "description": "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 to open when clicked.", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "url"], "additionalProperties": false}, "mediaAreaWeather": {"title": "mediaAreaWeather", "description": "[天気ウィジェット »](https://core.telegram.org/api/stories.md#weather)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaWeather"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaWeather"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "ストーリー メディア上のウィジェットに対応するメディア領域のサイズと位置。", "x-telegram-field-docs": true}, "emoji": {"type": "string", "x-tl-type": "string", "description": "天気の絵文字は、[アニメーション絵文字](https://core.telegram.org/api/animated-emojis.md)] として表示される必要があります。", "x-telegram-field-docs": true}, "temperature_c": {"type": "number", "format": "double", "x-tl-type": "double", "description": "温度（摂氏）。", "x-telegram-field-docs": true}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ARGB 背景色。", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "emoji", "temperature_c", "color"], "additionalProperties": false}, "mediaAreaStarGift": {"title": "mediaAreaStarGift", "description": "[収集可能なギフト »](https://core.telegram.org/api/gifts.md#collectible-gifts)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/mediaAreaStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["mediaAreaStarGift"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "メディア領域の座標。", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "[starGiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`] からの `slug` は、[ここで指定された »](https://core.telegram.org/api/gifts.md#sharing-and-getting-info-about-a-collectible-gift) として解決できます。", "x-telegram-field-docs": true}}, "required": ["_", "coordinates", "slug"], "additionalProperties": false}, "peerStories": {"title": "peerStories", "type": "object", "properties": {"_": {"type": "string", "enum": ["peerStories"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "max_read_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "stories": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}, "x-tl-type": "Vector<StoryItem>"}}, "required": ["_", "peer", "stories"], "additionalProperties": false}, "stories.peerStories": {"title": "stories.peerStories", "description": "[特定のピアのアクティブなストーリー リスト](https://core.telegram.org/api/stories.md#watching-stories)。", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.peerStories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.peerStories"]}, "stories": {"type": "object", "x-tl-type": "PeerStories", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerStories"]}}, "description": "ストーリー", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "stories", "chats", "users"], "additionalProperties": false}, "messages.webPage": {"title": "messages.webPage", "description": "インスタント ビュー Web ページを表します。", "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": "インスタント ビュー Web ページ。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "ウェブページに記載されているチャット。", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ウェブページで言及されているユーザー。", "x-telegram-field-docs": true}}, "required": ["_", "webpage", "chats", "users"], "additionalProperties": false}, "premiumGiftCodeOption": {"title": "premiumGiftCodeOption", "description": "[景品/ギフト](https://core.telegram.org/api/giveaways.md)] オプションに関する情報が含まれています。", "externalDocs": {"url": "https://core.telegram.org/constructor/premiumGiftCodeOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premiumGiftCodeOption"]}, "users": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトコードを有効化できるユーザーの数。", "x-telegram-field-docs": true}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "贈られた各 [Telegram プレミアム](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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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 プレミアム ギフトコード リンク](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 プレミアム サブスクリプションの期間 (日数)。", "x-telegram-field-docs": true}, "used_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトコードがインポートされた場合、いつインポートされましたか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "date", "days", "chats", "users"], "additionalProperties": false}, "payments.giveawayInfo": {"title": "payments.giveawayInfo", "description": "開催中の[プレゼント](https://core.telegram.org/api/giveaways.md)]に関する情報が含まれています。\n\n`participating`、`joined_too_early_date`、`admin_disallowed_chat_id`、`disallowed_country` のいずれのフラグも設定されていない場合、ユーザーは現在プレゼントに参加していませんが、[messageMediaGiveaway](https://core.telegram.org/constructor/messageMediaGiveaway.md).`channels`] フィールドで指定されたすべてのチャネルに参加することで参加できます。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.giveawayInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.giveawayInfo"]}, "participating": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "現在のユーザーはプレゼント企画に参加しています。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "preparing_results": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、プレゼントは終了し、結果の準備中です。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "プレゼントはいつ始まりましたか", "x-telegram-field-docs": true}, "joined_too_early_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在のユーザーはプレゼント企画の開始時にすでにチャンネルのメンバーであり、プレゼント企画の開始時に `only_new_subscribers` が設定されていたため、プレゼント企画に参加できません。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "admin_disallowed_chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "設定されている場合、現在のユーザーはプレゼントを作成したチャネル (このフラグで指定された ID) の 1 つの管理者であるため、プレゼントに参加できません。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "disallowed_country": {"type": "string", "x-tl-type": "string", "description": "設定されている場合、現在のユーザーは、電話番号が指定された禁止されている国 (2 文字の 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)] の勝者の 1 人である場合、獲得した数は [Telegram Stars](https://core.telegram.org/api/stars.md)] になります。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?long"}, "finish_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "プレゼントの終了日。プレゼントのパラメータで指定された終了日よりも大きくなる可能性があります。", "x-telegram-field-docs": true}, "winners_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "プレゼントの当選者数", "x-telegram-field-docs": true}, "activated_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ギフト コード](https://core.telegram.org/api/links.md#premium-giftcode-links)] を有効にした当選者の数。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?int"}}, "required": ["_", "start_date", "finish_date", "winners_count"], "additionalProperties": false}, "prepaidGiveaway": {"title": "prepaidGiveaway", "type": "object", "properties": {"_": {"type": "string", "enum": ["prepaidGiveaway"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "months": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "months", "quantity", "date"], "additionalProperties": false}, "prepaidStarsGiveaway": {"title": "prepaidStarsGiveaway", "type": "object", "properties": {"_": {"type": "string", "enum": ["prepaidStarsGiveaway"]}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "stars", "quantity", "boosts", "date"], "additionalProperties": false}, "boost": {"title": "boost", "type": "object", "properties": {"_": {"type": "string", "enum": ["boost"]}, "gift": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "giveaway": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "unclaimed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "id": {"type": "string", "x-tl-type": "string"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "giveaway_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "used_gift_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "multiplier": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.6?long"}}, "required": ["_", "id", "date", "expires"], "additionalProperties": false}, "premium.boostsList": {"title": "premium.boostsList", "description": "複数のユーザーによってピアに適用された [ブースト](https://core.telegram.org/api/boost.md)] のリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/premium.boostsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premium.boostsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "結果の総数", "x-telegram-field-docs": true}, "boosts": {"type": "array", "items": {"type": "object", "x-tl-type": "Boost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["boost"]}}, "description": "Тип TL: Boost."}, "x-tl-type": "Vector<Boost>", "description": "[ブースト](https://core.telegram.org/api/boost.md)]", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "[ページネーション](https://core.telegram.org/api/offsets.md)]に使用できるオフセット。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "boosts", "users"], "additionalProperties": false}, "myBoost": {"title": "myBoost", "type": "object", "properties": {"_": {"type": "string", "enum": ["myBoost"]}, "slot": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "cooldown_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "slot", "date", "expires"], "additionalProperties": false}, "premium.myBoosts": {"title": "premium.myBoosts", "description": "現在 [ブースト](https://core.telegram.org/api/boost.md)] しているピアのリストと [ブースト スロット](https://core.telegram.org/api/boost.md)] がどれだけ残っているか。", "externalDocs": {"url": "https://core.telegram.org/constructor/premium.myBoosts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premium.myBoosts"]}, "my_boosts": {"type": "array", "items": {"type": "object", "x-tl-type": "MyBoost", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["myBoost"]}}, "description": "Тип TL: MyBoost."}, "x-tl-type": "Vector<MyBoost>", "description": "ブーストされたピアと残りのブースト スロットに関する情報。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "参照されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "参照されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "my_boosts", "chats", "users"], "additionalProperties": false}, "premium.boostsStatus": {"title": "premium.boostsStatus", "description": "ピアの現在の [ブーストステータス](https://core.telegram.org/api/boost.md)] に関する情報が含まれます。", "externalDocs": {"url": "https://core.telegram.org/constructor/premium.boostsStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["premium.boostsStatus"]}, "my_boost": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "現在このチャンネル/スーパーグループをブーストしているかどうかにかかわらず、`my_boost_slots` も設定されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "level": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "チャネル/スーパーグループの現在のブースト レベル。", "x-telegram-field-docs": true}, "current_level_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在のレベルでこれまでに取得したブーストの数。", "x-telegram-field-docs": true}, "boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "これまでに獲得したブーストの合計数。", "x-telegram-field-docs": true}, "gift_boosts": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "作成された Telegram プレミアム [ギフト コード](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: PrepaidGiveaway."}, "x-tl-type": "Vector<PrepaidGiveaway>", "description": "チャットで利用できるプリペイド [景品](https://core.telegram.org/api/giveaways.md)] のリスト。チャンネル/スーパーグループ管理者にのみ返されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<PrepaidGiveaway>"}, "my_boost_slots": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "[ブースト スロット](https://core.telegram.org/api/boost.md)] のどれをこのピアに割り当てたかを示します (`my_boost` が設定されている場合に設定されます)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<int>"}}, "required": ["_", "level", "current_level_boosts", "boosts", "boost_url"], "additionalProperties": false}, "storyFwdHeader": {"title": "storyFwdHeader", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyFwdHeader"]}, "modified": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "from": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "from_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}}, "required": ["_"], "additionalProperties": false}, "postInteractionCountersMessage": {"title": "postInteractionCountersMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["postInteractionCountersMessage"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reactions": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "msg_id", "views", "forwards", "reactions"], "additionalProperties": false}, "postInteractionCountersStory": {"title": "postInteractionCountersStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["postInteractionCountersStory"]}, "story_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "views": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "forwards": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reactions": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "story_id", "views", "forwards", "reactions"], "additionalProperties": false}, "stats.storyStats": {"title": "stats.storyStats", "description": "[ストーリー](https://core.telegram.org/api/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": "publicForwardMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["publicForwardMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "publicForwardStory": {"title": "publicForwardStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["publicForwardStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer", "story"], "additionalProperties": false}, "stats.publicForwards": {"title": "stats.publicForwards", "description": "公開チャットへのメッセージとしての [ストーリー](https://core.telegram.org/api/stories.md)] の転送および公開チャネルによる再投稿に関する情報が含まれます。", "externalDocs": {"url": "https://core.telegram.org/constructor/stats.publicForwards"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stats.publicForwards"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "結果の総数", "x-telegram-field-docs": true}, "forwards": {"type": "array", "items": {"type": "object", "x-tl-type": "PublicForward", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["publicForwardMessage", "publicForwardStory"]}}, "description": "Тип TL: PublicForward."}, "x-tl-type": "Vector<PublicForward>", "description": "ストーリーの進行に関する情報。", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "[ページネーション](https://core.telegram.org/api/offsets.md)] に使用されるオフセット。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "forwards", "chats", "users"], "additionalProperties": false}, "peerColor": {"title": "peerColor", "description": "[カラーパレット»](https://core.telegram.org/api/colors.md)]を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/peerColor"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["peerColor"]}, "color": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[カラー パレット 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": "peerColorCollectible", "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): このカスタム絵文字の 1 つのコピーが、パレットの右上隅にそのまま (`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": "storyReaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyReaction"]}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}}, "required": ["_", "peer_id", "date", "reaction"], "additionalProperties": false}, "storyReactionPublicForward": {"title": "storyReactionPublicForward", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyReactionPublicForward"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "storyReactionPublicRepost": {"title": "storyReactionPublicRepost", "type": "object", "properties": {"_": {"type": "string", "enum": ["storyReactionPublicRepost"]}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer_id", "story"], "additionalProperties": false}, "stories.storyReactionsList": {"title": "stories.storyReactionsList", "description": "特定の [ストーリー](https://core.telegram.org/api/stories.md)] に反応または介入したピアのリスト", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.storyReactionsList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.storyReactionsList"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クエリに一致する反応の総数", "x-telegram-field-docs": true}, "reactions": {"type": "array", "items": {"type": "object", "x-tl-type": "StoryReaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyReaction", "storyReactionPublicForward", "storyReactionPublicRepost"]}}, "description": "Тип TL: StoryReaction."}, "x-tl-type": "Vector<StoryReaction>", "description": "特定のストーリーに反応または対話したピアのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "設定されている場合、[stories.getStoryReactionsList](https://core.telegram.org/method/stories.getStoryReactionsList.md).] を呼び出してさらに結果をロードするために使用する次のオフセットを示します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "reactions", "chats", "users"], "additionalProperties": false}, "savedDialog": {"title": "savedDialog", "type": "object", "properties": {"_": {"type": "string", "enum": ["savedDialog"]}, "pinned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "top_message"], "additionalProperties": false}, "monoForumDialog": {"title": "monoForumDialog", "type": "object", "properties": {"_": {"type": "string", "enum": ["monoForumDialog"]}, "unread_mark": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "nopaid_messages_exception": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_inbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "read_outbox_max_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "unread_reactions_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "draft": {"type": "object", "x-tl-type": "DraftMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["draftMessageEmpty", "draftMessage"]}}, "description": "Тип TL: DraftMessage.", "x-tl-flag": "flags.1?DraftMessage"}}, "required": ["_", "peer", "top_message", "read_inbox_max_id", "read_outbox_max_id", "unread_count", "unread_reactions_count"], "additionalProperties": false}, "messages.savedDialogs": {"title": "messages.savedDialogs", "description": "一部の [保存されたメッセージ ダイアログ »](https://core.telegram.org/api/saved-messages.md)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedDialogs"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedDialogs"]}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedDialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["savedDialog", "monoForumDialog"]}}, "description": "Тип TL: SavedDialog."}, "x-tl-type": "Vector<SavedDialog>", "description": "[保存されたメッセージ ダイアログ »](https://core.telegram.org/api/saved-messages.md)。", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "保存された各ダイアログからの最後のメッセージのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.savedDialogsSlice": {"title": "messages.savedDialogsSlice", "description": "メッセージと補助データを含む [保存されたメッセージ ダイアログ »](https://core.telegram.org/api/saved-messages.md) のリストが不完全です。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedDialogsSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedDialogsSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "保存されたメッセージ ダイアログの総数", "x-telegram-field-docs": true}, "dialogs": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedDialog", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["savedDialog", "monoForumDialog"]}}, "description": "Тип TL: SavedDialog."}, "x-tl-type": "Vector<SavedDialog>", "description": "保存されたメッセージ ダイアログのリスト", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "ダイアログからの最後のメッセージのリスト", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "dialogs", "messages", "chats", "users"], "additionalProperties": false}, "messages.savedDialogsNotModified": {"title": "messages.savedDialogsNotModified", "description": "保存されたダイアログは変更されていません", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedDialogsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedDialogsNotModified"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クエリによってサーバー側で見つかった [保存されたダイアログ](https://core.telegram.org/api/saved-messages.md)] の数", "x-telegram-field-docs": true}}, "required": ["_", "count"], "additionalProperties": false}, "savedReactionTag": {"title": "savedReactionTag", "type": "object", "properties": {"_": {"type": "string", "enum": ["savedReactionTag"]}, "reaction": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "reaction", "count"], "additionalProperties": false}, "messages.savedReactionTagsNotModified": {"title": "messages.savedReactionTagsNotModified", "description": "ユーザーによって割り当てられた [リアクション タグ »](https://core.telegram.org/api/saved-messages.md#tags) 名のリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedReactionTagsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedReactionTagsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.savedReactionTags": {"title": "messages.savedReactionTags", "description": "ユーザーが割り当てた [リアクションタグ »](https://core.telegram.org/api/saved-messages.md#tags) 名のリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.savedReactionTags"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.savedReactionTags"]}, "tags": {"type": "array", "items": {"type": "object", "x-tl-type": "SavedReactionTag", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["savedReactionTag"]}}, "description": "Тип TL: SavedReactionTag."}, "x-tl-type": "Vector<SavedReactionTag>", "description": "保存された反応タグ。", "x-telegram-field-docs": true}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細については、ここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)。必要に応じて、[ここで指定されたカスタム アルゴリズム »](https://core.telegram.org/api/saved-messages.md#tags) を使用して手動で再生成することもできます。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "tags", "hash"], "additionalProperties": false}, "outboxReadDate": {"title": "outboxReadDate", "description": "別のユーザーに送信したプライベート メッセージの正確な開封日。", "externalDocs": {"url": "https://core.telegram.org/constructor/outboxReadDate"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["outboxReadDate"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "UNIX 読み取り日付のタイムスタンプ。", "x-telegram-field-docs": true}}, "required": ["_", "date"], "additionalProperties": false}, "smsjobs.eligibleToJoin": {"title": "smsjobs.eligibleToJoin", "description": "SMS 求人資格", "externalDocs": {"url": "https://core.telegram.org/constructor/smsjobs.eligibleToJoin"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsjobs.eligibleToJoin"]}, "terms_url": {"type": "string", "x-tl-type": "string", "description": "利用規約 URL", "x-telegram-field-docs": true}, "monthly_sent_sms": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "Monthly sent SMSes", "x-telegram-field-docs": true}}, "required": ["_", "terms_url", "monthly_sent_sms"], "additionalProperties": false}, "smsjobs.status": {"title": "smsjobs.status", "description": "ステータス", "externalDocs": {"url": "https://core.telegram.org/constructor/smsjobs.status"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsjobs.status"]}, "allow_international": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "国際番号を許可する", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "recent_sent": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "最近送信した", "x-telegram-field-docs": true}, "recent_since": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "以来", "x-telegram-field-docs": true}, "recent_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "残り", "x-telegram-field-docs": true}, "total_sent": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "送信された合計", "x-telegram-field-docs": true}, "total_since": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "それ以降の合計", "x-telegram-field-docs": true}, "last_gift_slug": {"type": "string", "x-tl-type": "string", "description": "最後のギフトのディープリンク", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}, "terms_url": {"type": "string", "x-tl-type": "string", "description": "利用規約 URL", "x-telegram-field-docs": true}}, "required": ["_", "recent_sent", "recent_since", "recent_remains", "total_sent", "total_since", "terms_url"], "additionalProperties": false}, "smsJob": {"title": "smsJob", "description": "SMS の仕事に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/smsJob"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["smsJob"]}, "job_id": {"type": "string", "x-tl-type": "string", "description": "ジョブID", "x-telegram-field-docs": true}, "phone_number": {"type": "string", "x-tl-type": "string", "description": "宛先の電話番号", "x-telegram-field-docs": true}, "text": {"type": "string", "x-tl-type": "string", "description": "テキスト", "x-telegram-field-docs": true}}, "required": ["_", "job_id", "phone_number", "text"], "additionalProperties": false}, "businessWeeklyOpen": {"title": "businessWeeklyOpen", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessWeeklyOpen"]}, "start_minute": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_minute": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "start_minute", "end_minute"], "additionalProperties": false}, "businessWorkHours": {"title": "businessWorkHours", "description": "[電報営業時間](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)] によって返されるタイムゾーンの 1 つの 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: BusinessWeeklyOpen."}, "x-tl-type": "Vector<BusinessWeeklyOpen>", "description": "[business WeeklyOpen »](https://core.telegram.org/constructor/businessWeeklyOpen.md)] で表される時間間隔のリスト (最大 28) で、営業時間を示します。", "x-telegram-field-docs": true}}, "required": ["_", "timezone_id", "weekly_open"], "additionalProperties": false}, "businessLocation": {"title": "businessLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessLocation"]}, "geo_point": {"type": "object", "x-tl-type": "GeoPoint", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["geoPointEmpty", "geoPoint"]}}, "description": "Тип TL: GeoPoint.", "x-tl-flag": "flags.0?GeoPoint"}, "address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "address"], "additionalProperties": false}, "inputBusinessRecipients": {"title": "inputBusinessRecipients", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.4?Vector<InputUser>"}}, "required": ["_"], "additionalProperties": false}, "businessRecipients": {"title": "businessRecipients", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.4?Vector<long>"}}, "required": ["_"], "additionalProperties": false}, "businessAwayMessageScheduleAlways": {"title": "businessAwayMessageScheduleAlways", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleAlways"]}}, "required": ["_"], "additionalProperties": false}, "businessAwayMessageScheduleOutsideWorkHours": {"title": "businessAwayMessageScheduleOutsideWorkHours", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleOutsideWorkHours"]}}, "required": ["_"], "additionalProperties": false}, "businessAwayMessageScheduleCustom": {"title": "businessAwayMessageScheduleCustom", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleCustom"]}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "start_date", "end_date"], "additionalProperties": false}, "inputBusinessGreetingMessage": {"title": "inputBusinessGreetingMessage", "description": "[Telegram ビジネス挨拶](https://core.telegram.org/api/business.md#greeting-messages)] について説明します。これは、初めて非公開でメールを送信する新規ユーザー、または一定の非アクティブ期間後に自動的に送信されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessGreetingMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessGreetingMessage"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[クイック返信ショートカットの 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": "businessGreetingMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessGreetingMessage"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "recipients": {"type": "object", "x-tl-type": "BusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}}, "description": "Тип TL: BusinessRecipients."}, "no_activity_days": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id", "recipients", "no_activity_days"], "additionalProperties": false}, "inputBusinessAwayMessage": {"title": "inputBusinessAwayMessage", "description": "[Telegram ビジネス アウェイ メッセージ](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": "businessAwayMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessAwayMessage"]}, "offline_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "schedule": {"type": "object", "x-tl-type": "BusinessAwayMessageSchedule", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessAwayMessageScheduleAlways", "businessAwayMessageScheduleOutsideWorkHours", "businessAwayMessageScheduleCustom"]}}, "description": "Тип TL: BusinessAwayMessageSchedule."}, "recipients": {"type": "object", "x-tl-type": "BusinessRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessRecipients"]}}, "description": "Тип TL: BusinessRecipients."}}, "required": ["_", "shortcut_id", "schedule", "recipients"], "additionalProperties": false}, "timezone": {"title": "timezone", "type": "object", "properties": {"_": {"type": "string", "enum": ["timezone"]}, "id": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}, "utc_offset": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "name", "utc_offset"], "additionalProperties": false}, "help.timezonesListNotModified": {"title": "help.timezonesListNotModified", "description": "タイムゾーンのリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/help.timezonesListNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.timezonesListNotModified"]}}, "required": ["_"], "additionalProperties": false}, "help.timezonesList": {"title": "help.timezonesList", "description": "[Telegram 営業時間 »](https://core.telegram.org/api/business.md#opening-hours) の設定など、API の他の場所で使用される可能性があるタイムゾーン情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/help.timezonesList"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["help.timezonesList"]}, "timezones": {"type": "array", "items": {"type": "object", "x-tl-type": "Timezone", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["timezone"]}}, "description": "Тип TL: Timezone."}, "x-tl-type": "Vector<Timezone>", "description": "タイムゾーン", "x-telegram-field-docs": true}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}}, "required": ["_", "timezones", "hash"], "additionalProperties": false}, "quickReply": {"title": "quickReply", "type": "object", "properties": {"_": {"type": "string", "enum": ["quickReply"]}, "shortcut_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "shortcut": {"type": "string", "x-tl-type": "string"}, "top_message": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "shortcut_id", "shortcut", "top_message", "count"], "additionalProperties": false}, "inputQuickReplyShortcut": {"title": "inputQuickReplyShortcut", "description": "[クイック返信ショートカット](https://core.telegram.org/api/business.md#quick-reply-shortcuts)] を名前で選択します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputQuickReplyShortcut"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputQuickReplyShortcut"]}, "shortcut": {"type": "string", "x-tl-type": "string", "description": "ショートカット名。", "x-telegram-field-docs": true}}, "required": ["_", "shortcut"], "additionalProperties": false}, "inputQuickReplyShortcutId": {"title": "inputQuickReplyShortcutId", "description": "[クイック返信ショートカット](https://core.telegram.org/api/business.md#quick-reply-shortcuts)] を数値 ID で選択します。", "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: QuickReply."}, "x-tl-type": "Vector<QuickReply>", "description": "クイック返信のショートカット。", "x-telegram-field-docs": true}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>", "description": "`quick_replies` に記載されているメッセージ。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "quick_replies", "messages", "chats", "users"], "additionalProperties": false}, "messages.quickRepliesNotModified": {"title": "messages.quickRepliesNotModified", "description": "[クイック返信ショートカット »](https://core.telegram.org/api/business.md#quick-reply-shortcuts)] に関する情報は変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.quickRepliesNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.quickRepliesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "connectedBot": {"title": "connectedBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["connectedBot"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "recipients": {"type": "object", "x-tl-type": "BusinessBotRecipients", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessBotRecipients"]}}, "description": "Тип TL: BusinessBotRecipients."}, "rights": {"type": "object", "x-tl-type": "BusinessBotRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}}, "description": "Тип TL: BusinessBotRights."}, "device": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "location": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "bot_id", "recipients", "rights"], "additionalProperties": false}, "account.connectedBots": {"title": "account.connectedBots", "description": "現在接続されている [ビジネスボット](https://core.telegram.org/api/bots/connected-business-bots.md)] に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.connectedBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.connectedBots"]}, "connected_bots": {"type": "array", "items": {"type": "object", "x-tl-type": "ConnectedBot", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["connectedBot"]}}, "description": "Тип TL: ConnectedBot."}, "x-tl-type": "Vector<ConnectedBot>", "description": "接続されているボットに関する情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ボット情報", "x-telegram-field-docs": true}}, "required": ["_", "connected_bots", "users"], "additionalProperties": false}, "messages.dialogFilters": {"title": "messages.dialogFilters", "description": "【フォルダとフォルダタグ](https://core.telegram.org/api/folders.md)情報】", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.dialogFilters"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.dialogFilters"]}, "tags_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "[フォルダータグ](https://core.telegram.org/api/folders.md#folder-tags)]が有効かどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "filters": {"type": "array", "items": {"type": "object", "x-tl-type": "DialogFilter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dialogFilter", "dialogFilterDefault", "dialogFilterChatlist"]}}, "description": "Тип TL: DialogFilter."}, "x-tl-type": "Vector<DialogFilter>", "description": "フォルダー。", "x-telegram-field-docs": true}}, "required": ["_", "filters"], "additionalProperties": false}, "birthday": {"title": "birthday", "description": "[誕生日](https://core.telegram.org/api/profile.md#birthday)ユーザーの情報。\n\nまた、現在の日に関連して +1/-1 日以内の誕生日を持つ他のユーザーに [Telegram プレミアム サブスクリプション »](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": "botBusinessConnection", "type": "object", "properties": {"_": {"type": "string", "enum": ["botBusinessConnection"]}, "disabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "connection_id": {"type": "string", "x-tl-type": "string"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dc_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rights": {"type": "object", "x-tl-type": "BusinessBotRights", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}}, "description": "Тип TL: BusinessBotRights.", "x-tl-flag": "flags.2?BusinessBotRights"}}, "required": ["_", "connection_id", "user_id", "dc_id", "date"], "additionalProperties": false}, "inputBusinessIntro": {"title": "inputBusinessIntro", "description": "【電報事業紹介 »](https://core.telegram.org/api/business.md#business-introduction).", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessIntro"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessIntro"]}, "title": {"type": "string", "x-tl-type": "string", "description": "紹介メッセージのタイトル", "x-telegram-field-docs": true}, "description": {"type": "string", "x-tl-type": "string", "description": "プロフィール紹介", "x-telegram-field-docs": true}, "sticker": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "オプションの紹介 [ステッカー](https://core.telegram.org/api/stickers.md)]。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?InputDocument"}}, "required": ["_", "title", "description"], "additionalProperties": false}, "businessIntro": {"title": "businessIntro", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessIntro"]}, "title": {"type": "string", "x-tl-type": "string"}, "description": {"type": "string", "x-tl-type": "string"}, "sticker": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document.", "x-tl-flag": "flags.0?Document"}}, "required": ["_", "title", "description"], "additionalProperties": false}, "messages.myStickers": {"title": "messages.myStickers", "description": "[現在のアカウントが所有するステッカーセット»](https://core.telegram.org/api/stickers.md)]のリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.myStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.myStickers"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "所有しているステッカーセットの総数。", "x-telegram-field-docs": true}, "sets": {"type": "array", "items": {"type": "object", "x-tl-type": "StickerSetCovered", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["stickerSetCovered", "stickerSetMultiCovered", "stickerSetFullCovered", "stickerSetNoCovered"]}}, "description": "TL Type: StickerSetCovered."}, "x-tl-type": "Vector<StickerSetCovered>", "description": "ステッカーセット", "x-telegram-field-docs": true}}, "required": ["_", "count", "sets"], "additionalProperties": false}, "inputCollectibleUsername": {"title": "inputCollectibleUsername", "description": "[収集可能なユーザー名フラグメント](https://core.telegram.org/api/fragment.md)] を表します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCollectibleUsername"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCollectibleUsername"]}, "username": {"type": "string", "x-tl-type": "string", "description": "ユーザー名", "x-telegram-field-docs": true}}, "required": ["_", "username"], "additionalProperties": false}, "inputCollectiblePhone": {"title": "inputCollectiblePhone", "description": "[収集可能な電話番号の断片](https://core.telegram.org/api/fragment.md)] を表します", "externalDocs": {"url": "https://core.telegram.org/constructor/inputCollectiblePhone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputCollectiblePhone"]}, "phone": {"type": "string", "x-tl-type": "string", "description": "電話番号", "x-telegram-field-docs": true}}, "required": ["_", "phone"], "additionalProperties": false}, "fragment.collectibleInfo": {"title": "fragment.collectibleInfo", "description": "[フラグメントコレクティブル](https://core.telegram.org/api/fragment.md)]に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/fragment.collectibleInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["fragment.collectibleInfo"]}, "purchase_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "購入日 (ユニックスタイム)", "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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "[Fragment](https://fragment.com) URL] コレクションアイテムに関する詳細情報", "x-telegram-field-docs": true}}, "required": ["_", "purchase_date", "currency", "amount", "crypto_currency", "crypto_amount", "url"], "additionalProperties": false}, "inputBusinessBotRecipients": {"title": "inputBusinessBotRecipients", "description": "[接続されたビジネス ボット »](https://core.telegram.org/api/bots/connected-business-bots.md)] が対話できるプライベート チャットを指定します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessBotRecipients"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessBotRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "既存のプライベート チャットをすべて選択します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "新しいプライベート チャットをすべて選択します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "連絡先とのすべてのプライベート チャットを選択します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "非連絡先とのプライベート チャットをすべて選択します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、`existing_chats`、`new_chats`、`contacts`、`non_contacts`、`users` で選択されたチャットを *除く* すべてのプライベート チャットが選択されます。  このフラグが設定されている場合、`exclude_users` に渡された値はサーバーによってマージされ、`users` に移動されることに注意してください。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "明示的に選択されたプライベート チャット。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?Vector<InputUser>"}, "exclude_users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "description": "常に除外されるプライベート チャットの識別子。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?Vector<InputUser>"}}, "required": ["_"], "additionalProperties": false}, "businessBotRecipients": {"title": "businessBotRecipients", "type": "object", "properties": {"_": {"type": "string", "enum": ["businessBotRecipients"]}, "existing_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "new_chats": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "non_contacts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "exclude_selected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.4?Vector<long>"}, "exclude_users": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>", "x-tl-flag": "flags.6?Vector<long>"}}, "required": ["_"], "additionalProperties": false}, "contactBirthday": {"title": "contactBirthday", "type": "object", "properties": {"_": {"type": "string", "enum": ["contactBirthday"]}, "contact_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "birthday": {"type": "object", "x-tl-type": "Birthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["birthday"]}}, "description": "Тип TL: Birthday."}}, "required": ["_", "contact_id", "birthday"], "additionalProperties": false}, "contacts.contactBirthdays": {"title": "contacts.contactBirthdays", "description": "連絡先の誕生日情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.contactBirthdays"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.contactBirthdays"]}, "contacts": {"type": "array", "items": {"type": "object", "x-tl-type": "ContactBirthday", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["contactBirthday"]}}, "description": "Тип TL: ContactBirthday."}, "x-tl-type": "Vector<ContactBirthday>", "description": "誕生日情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー情報", "x-telegram-field-docs": true}}, "required": ["_", "contacts", "users"], "additionalProperties": false}, "missingInvitee": {"title": "missingInvitee", "type": "object", "properties": {"_": {"type": "string", "enum": ["missingInvitee"]}, "premium_would_allow_invite": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "premium_required_for_pm": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "user_id"], "additionalProperties": false}, "messages.invitedUsers": {"title": "messages.invitedUsers", "description": "成功または失敗した [招待された »](https://core.telegram.org/api/invites.md#direct-invites) ユーザーに関する情報が含まれます。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.invitedUsers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.invitedUsers"]}, "updates": {"type": "object", "x-tl-type": "Updates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage"]}}, "description": "招待に成功したユーザーに関する更新リスト (最終的には作成されたグループに関する情報)", "x-telegram-field-docs": true}, "missing_invitees": {"type": "array", "items": {"type": "object", "x-tl-type": "MissingInvitee", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["missingInvitee"]}}, "description": "Тип TL: MissingInvitee."}, "x-tl-type": "Vector<MissingInvitee>", "description": "招待できなかったユーザーのリストと、招待できなかった理由。", "x-telegram-field-docs": true}}, "required": ["_", "updates", "missing_invitees"], "additionalProperties": false}, "inputBusinessChatLink": {"title": "inputBusinessChatLink", "description": "現在のアカウントによって作成される [ビジネス チャット ディープ リンク »](https://core.telegram.org/api/business.md#business-chat-links)] に関する情報が含まれています。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputBusinessChatLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputBusinessChatLink"]}, "message": {"type": "string", "x-tl-type": "string", "description": "メッセージ入力フィールドに事前に入力するメッセージ。", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}, "title": {"type": "string", "x-tl-type": "string", "description": "UI での管理を簡素化するための人間が判読できるリンク名 (リンクの作成者のみに表示されます)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?string"}}, "required": ["_", "message"], "additionalProperties": false}, "businessChatLink": {"title": "businessChatLink", "description": "現在のアカウントによって作成された [ビジネス チャット ディープ リンク »](https://core.telegram.org/api/business.md#business-chat-links)] に関する情報が含まれています。", "externalDocs": {"url": "https://core.telegram.org/constructor/businessChatLink"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["businessChatLink"]}, "link": {"type": "string", "x-tl-type": "string", "description": "【ビジネスチャットディープリンク](https://core.telegram.org/api/links.md#business-chat-links)。", "x-telegram-field-docs": true}, "message": {"type": "string", "x-tl-type": "string", "description": "メッセージ入力フィールドに事前に入力するメッセージ。", "x-telegram-field-docs": true}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}, "title": {"type": "string", "x-tl-type": "string", "description": "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 Type: BusinessChatLink."}, "x-tl-type": "Vector<BusinessChatLink>", "description": "リンク", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "links", "chats", "users"], "additionalProperties": false}, "account.resolvedBusinessChatLinks": {"title": "account.resolvedBusinessChatLinks", "description": "解決された 1 つの [ビジネス チャット ディープ リンク »](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 Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "description": "[スタイル付きテキストのメッセージ エンティティ](https://core.telegram.org/api/entities.md)", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?Vector<MessageEntity>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "peer", "message", "chats", "users"], "additionalProperties": false}, "requestedPeerUser": {"title": "requestedPeerUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestedPeerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "first_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "last_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "user_id"], "additionalProperties": false}, "requestedPeerChat": {"title": "requestedPeerChat", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestedPeerChat"]}, "chat_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "chat_id"], "additionalProperties": false}, "requestedPeerChannel": {"title": "requestedPeerChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["requestedPeerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "username": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo.", "x-tl-flag": "flags.2?Photo"}}, "required": ["_", "channel_id"], "additionalProperties": false}, "sponsoredMessageReportOption": {"title": "sponsoredMessageReportOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["sponsoredMessageReportOption"]}, "text": {"type": "string", "x-tl-type": "string"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "text", "option"], "additionalProperties": false}, "channels.sponsoredMessageReportResultChooseOption": {"title": "channels.sponsoredMessageReportResultChooseOption", "description": "ユーザーは、`options` で利用可能なローカライズされたオプションからレポート オプションを選択する必要があり、選択後、[messages.reportSponsoredMessage](https://core.telegram.org/method/messages.reportSponsoredMessage.md) を再度呼び出して、オプションの `option` フィールドをメソッドの `option` パラメータに渡す必要があります。", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sponsoredMessageReportResultChooseOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sponsoredMessageReportResultChooseOption"]}, "title": {"type": "string", "x-tl-type": "string", "description": "オプション選択ポップアップのタイトル。", "x-telegram-field-docs": true}, "options": {"type": "array", "items": {"type": "object", "x-tl-type": "SponsoredMessageReportOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sponsoredMessageReportOption"]}}, "description": "Тип TL: SponsoredMessageReportOption."}, "x-tl-type": "Vector<SponsoredMessageReportOption>", "description": "ローカライズされたオプションのリスト。", "x-telegram-field-docs": true}}, "required": ["_", "title", "options"], "additionalProperties": false}, "channels.sponsoredMessageReportResultAdsHidden": {"title": "channels.sponsoredMessageReportResultAdsHidden", "description": "スポンサー付きメッセージは、すべてのチャットでユーザーに対して非表示になりました。", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sponsoredMessageReportResultAdsHidden"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sponsoredMessageReportResultAdsHidden"]}}, "required": ["_"], "additionalProperties": false}, "channels.sponsoredMessageReportResultReported": {"title": "channels.sponsoredMessageReportResultReported", "description": "スポンサー付きメッセージは正常に報告されました。", "externalDocs": {"url": "https://core.telegram.org/constructor/channels.sponsoredMessageReportResultReported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["channels.sponsoredMessageReportResultReported"]}}, "required": ["_"], "additionalProperties": false}, "reactionNotificationsFromContacts": {"title": "reactionNotificationsFromContacts", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts"]}}, "required": ["_"], "additionalProperties": false}, "reactionNotificationsFromAll": {"title": "reactionNotificationsFromAll", "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromAll"]}}, "required": ["_"], "additionalProperties": false}, "reactionsNotifySettings": {"title": "reactionsNotifySettings", "description": "反応通知の設定については、[こちら »](https://core.telegram.org/api/reactions.md#notifications-about-reactions)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/reactionsNotifySettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reactionsNotifySettings"]}, "messages_notify_from": {"type": "object", "x-tl-type": "ReactionNotificationsFrom", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts", "reactionNotificationsFromAll"]}}, "description": "メッセージ反応通知設定が設定されていない場合、メッセージ反応に関する通知/更新が完全に無効になります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?ReactionNotificationsFrom"}, "stories_notify_from": {"type": "object", "x-tl-type": "ReactionNotificationsFrom", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts", "reactionNotificationsFromAll"]}}, "description": "ストーリーの反応通知設定が設定されていない場合、ストーリーへの反応に関する通知/更新が完全に無効になります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?ReactionNotificationsFrom"}, "poll_votes_notify_from": {"type": "object", "x-tl-type": "ReactionNotificationsFrom", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionNotificationsFromContacts", "reactionNotificationsFromAll"]}}, "description": "[非匿名投票の投票 »](https://core.telegram.org/api/poll.md#unread-poll-votes) 通知設定が設定されていない場合、ユーザーの非匿名投票で投じられた投票に関する通知/更新が完全に無効になります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?ReactionNotificationsFrom"}, "sound": {"type": "object", "x-tl-type": "NotificationSound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["notificationSoundDefault", "notificationSoundNone", "notificationSoundLocal", "notificationSoundRingtone"]}}, "description": "【反応通知音 »](https://core.telegram.org/api/ringtones.md)", "x-telegram-field-docs": true}, "show_previews": {"type": "boolean", "x-tl-type": "Bool", "description": "false の場合、[メッセージ/ストーリーの反応に関するプッシュ通知 »](https://core.telegram.org/api/push-updates.md) はタイプ `REACT_HIDDEN`/`REACT_STORY_HIDDEN` のみとなり、反応したストーリーや反応自体に関する情報はありません。", "x-telegram-field-docs": true}}, "required": ["_", "sound", "show_previews"], "additionalProperties": false}, "availableEffect": {"title": "availableEffect", "type": "object", "properties": {"_": {"type": "string", "enum": ["availableEffect"]}, "premium_required": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "emoticon": {"type": "string", "x-tl-type": "string"}, "static_icon_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "effect_sticker_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "effect_animation_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "required": ["_", "id", "emoticon", "effect_sticker_id"], "additionalProperties": false}, "messages.availableEffectsNotModified": {"title": "messages.availableEffectsNotModified", "description": "使用可能な [アニメーション メッセージ効果 »](https://core.telegram.org/api/effects.md)] の完全なリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableEffectsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableEffectsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "messages.availableEffects": {"title": "messages.availableEffects", "description": "使用可能な [アニメーション メッセージ エフェクト »](https://core.telegram.org/api/effects.md)] の完全なリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.availableEffects"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.availableEffects"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "effects": {"type": "array", "items": {"type": "object", "x-tl-type": "AvailableEffect", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["availableEffect"]}}, "description": "Тип TL: AvailableEffect."}, "x-tl-type": "Vector<AvailableEffect>", "description": "メッセージエフェクト", "x-telegram-field-docs": true}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "`effects` コンストラクターで指定されたドキュメント。", "x-telegram-field-docs": true}}, "required": ["_", "hash", "effects", "documents"], "additionalProperties": false}, "factCheck": {"title": "factCheck", "description": "独立したファクトチェッカーによって作成された [ファクトチェック »](https://core.telegram.org/api/factcheck.md)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/factCheck"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["factCheck"]}, "need_check": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、`country`/`text` フィールドは **設定されません**。ファクト チェックを含むメッセージがスクロールして表示されるときに、バンドルされた [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": "ファクトチェックが表示される国の 2 文字の 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": "starsTransactionPeerUnsupported", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerAppStore": {"title": "starsTransactionPeerAppStore", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAppStore"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerPlayMarket": {"title": "starsTransactionPeerPlayMarket", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerPlayMarket"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerPremiumBot": {"title": "starsTransactionPeerPremiumBot", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerPremiumBot"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerFragment": {"title": "starsTransactionPeerFragment", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerFragment"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeer": {"title": "starsTransactionPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeer"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "starsTransactionPeerAds": {"title": "starsTransactionPeerAds", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAds"]}}, "required": ["_"], "additionalProperties": false}, "starsTransactionPeerAPI": {"title": "starsTransactionPeerAPI", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerAPI"]}}, "required": ["_"], "additionalProperties": false}, "starsTopupOption": {"title": "starsTopupOption", "description": "[Telegram Stars のトップアップ オプション](https://core.telegram.org/api/stars.md)。", "externalDocs": {"url": "https://core.telegram.org/constructor/starsTopupOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTopupOption"]}, "extended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、オプションはトップアップ オプションの完全なリストにのみ表示される必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Telegram スターの量。", "x-tl-type": "long", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "オプションに関連付けられたストア製品の識別子（公式アプリのみ）。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "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": "通貨の最小単位での製品の価格 (float/double ではなく、整数)。たとえば、`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": "starsTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTransaction"]}, "refund": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}, "failed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "gift": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "reaction": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "stargift_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.18?true"}, "business_transfer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "stargift_resale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.22?true"}, "posts_search": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.24?true"}, "stargift_prepaid_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.25?true"}, "stargift_drop_original_details": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.26?true"}, "phonegroup_message": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.27?true"}, "stargift_auction_bid": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.28?true"}, "offer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.29?true"}, "id": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "StarsTransactionPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsTransactionPeerUnsupported", "starsTransactionPeerAppStore", "starsTransactionPeerPlayMarket", "starsTransactionPeerPremiumBot", "starsTransactionPeerFragment", "starsTransactionPeer", "starsTransactionPeerAds", "starsTransactionPeerAPI"]}}, "description": "Тип TL: StarsTransactionPeer."}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.2?WebDocument"}, "transaction_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "transaction_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "bot_payload": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.7?bytes"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.8?int"}, "extended_media": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia."}, "x-tl-type": "Vector<MessageMedia>", "x-tl-flag": "flags.9?Vector<MessageMedia>"}, "subscription_period": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.12?int"}, "giveaway_post_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.13?int"}, "stargift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift.", "x-tl-flag": "flags.14?StarGift"}, "floodskip_number": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.15?int"}, "starref_commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.16?int"}, "starref_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.17?Peer"}, "starref_amount": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount.", "x-tl-flag": "flags.17?StarsAmount"}, "paid_messages": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.19?int"}, "premium_gift_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int"}, "ads_proceeds_from_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.23?int"}, "ads_proceeds_to_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.23?int"}}, "required": ["_", "id", "amount", "date", "peer"], "additionalProperties": false}, "payments.starsStatus": {"title": "payments.starsStatus", "description": "現在の [Telegram Star のサブスクリプション、残高、取引履歴 »](https://core.telegram.org/api/stars.md#balance-and-transaction-history)] に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsStatus"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsStatus"]}, "balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "現在の Telegram Star 残高。", "x-telegram-field-docs": true}, "subscriptions": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsSubscription", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsSubscription"]}}, "description": "Тип TL: StarsSubscription."}, "x-tl-type": "Vector<StarsSubscription>", "description": "現在の Telegram Star サブスクリプションに関する情報。[payments.getStarsTransactions](https://core.telegram.org/method/payments.getStarsTransactions.md) および [payments.getStarsSubscriptions](https://core.telegram.org/method/payments.getStarsSubscriptions.md)] を呼び出した場合にのみ返されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<StarsSubscription>"}, "subscriptions_next_offset": {"type": "string", "x-tl-type": "string", "description": "サブスクリプションのページネーション用のオフセット: [payments.getStarsSubscriptions](https://core.telegram.org/method/payments.getStarsSubscriptions.md).] を呼び出すときにのみ使用および返されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?string"}, "subscriptions_missing_balance": {"type": "string", "pattern": "^-?\\d+$", "description": "期限切れのサブスクリプションをすぐに延長できるようにするためにユーザーが購入する必要がある Telegram Star の数 (i.e。現在の残高は期限切れのサブスクリプションをすべて延長するのに十分ではありません)。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?long"}, "history": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsTransaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsTransaction"]}}, "description": "Тип TL: StarsTransaction."}, "x-tl-type": "Vector<StarsTransaction>", "description": "Telegram Star トランザクションのリスト (`next_offset` が設定されている場合は部分的)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?Vector<StarsTransaction>"}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "[payments.getStarsTransactions](https://core.telegram.org/method/payments.getStarsTransactions.md).] を使用してトランザクション履歴からさらにトランザクションを取得するために使用するオフセット。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "`history` に記載されているチャット。", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`history`で言及したユーザー。", "x-telegram-field-docs": true}}, "required": ["_", "balance", "chats", "users"], "additionalProperties": false}, "foundStory": {"title": "foundStory", "type": "object", "properties": {"_": {"type": "string", "enum": ["foundStory"]}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "story": {"type": "object", "x-tl-type": "StoryItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["storyItemDeleted", "storyItemSkipped", "storyItem"]}}, "description": "Тип TL: StoryItem."}}, "required": ["_", "peer", "story"], "additionalProperties": false}, "stories.foundStories": {"title": "stories.foundStories", "description": "[グローバル ストーリー検索 »](https://core.telegram.org/api/stories.md#searching-stories) を使用して見つかったストーリー。", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.foundStories"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.foundStories"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "クエリで見つかった結果の合計数。", "x-telegram-field-docs": true}, "stories": {"type": "array", "items": {"type": "object", "x-tl-type": "FoundStory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["foundStory"]}}, "description": "Тип TL: FoundStory."}, "x-tl-type": "Vector<FoundStory>", "description": "一致する物語。", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "次のページをフェッチするために使用されるオフセット。設定されていない場合、これが最後のページになります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "stories", "chats", "users"], "additionalProperties": false}, "geoPointAddress": {"title": "geoPointAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["geoPointAddress"]}, "country_iso2": {"type": "string", "x-tl-type": "string"}, "state": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "city": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "street": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}}, "required": ["_", "country_iso2"], "additionalProperties": false}, "starsRevenueStatus": {"title": "starsRevenueStatus", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsRevenueStatus"]}, "withdrawal_enabled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "current_balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "available_balance": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "overall_revenue": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "next_withdrawal_at": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}}, "required": ["_", "current_balance", "available_balance", "overall_revenue"], "additionalProperties": false}, "payments.starsRevenueStats": {"title": "payments.starsRevenueStats", "description": "[スターの収益統計、詳細については、こちら »](https://core.telegram.org/api/stars.md) を参照してください。\n\nすべての残高、通貨金額、グラフ値が星印で表示されることに注意してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsRevenueStats"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsRevenueStats"]}, "top_hours_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "広告収益統計、広告インプレッショングラフについては", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?StatsGraph"}, "revenue_graph": {"type": "object", "x-tl-type": "StatsGraph", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["statsGraphAsync", "statsGraphError", "statsGraph"]}}, "description": "スター収入グラフ（獲得スター数）", "x-telegram-field-docs": true}, "status": {"type": "object", "x-tl-type": "StarsRevenueStatus", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsRevenueStatus"]}}, "description": "現在の残高、現在の出金可能残高、および獲得した Telegram スター全体", "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": "[Telegram Star 収益](https://core.telegram.org/api/stars.md#withdrawing-revenue) を引き出すために使用する URL] が含まれています。", "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": "[Telegram Star 収益](https://core.telegram.org/api/stars.md#withdrawing-revenue) を引き出すために使用する URL] が含まれています。", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "payments.starsRevenueAdsAccountUrl": {"title": "payments.starsRevenueAdsAccountUrl", "description": "ユーザーが [Telegram Stars](https://core.telegram.org/api/stars.md#paying-for-ads)] を使用して支払いを行い、チャンネル/ボットの広告を掲載できるページにつながる URL が含まれています。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starsRevenueAdsAccountUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starsRevenueAdsAccountUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL を開きます。", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "inputStarsTransaction": {"title": "inputStarsTransaction", "description": "[Telegram Star トランザクション »](https://core.telegram.org/api/stars.md#balance-and-transaction-history)] に関する情報を取得するために使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputStarsTransaction"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputStarsTransaction"]}, "refund": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、このトランザクションの返金トランザクションに関する情報を取得します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "x-tl-type": "string", "description": "トランザクションID。", "x-telegram-field-docs": true}}, "required": ["_", "id"], "additionalProperties": false}, "starsGiftOption": {"title": "starsGiftOption", "description": "[Telegram Stars ギフトオプション](https://core.telegram.org/api/stars.md#buying-or-gifting-stars)。", "externalDocs": {"url": "https://core.telegram.org/constructor/starsGiftOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsGiftOption"]}, "extended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、オプションはトップアップ オプションの完全なリストにのみ表示される必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Telegram スターの量。", "x-tl-type": "long", "x-telegram-field-docs": true}, "store_product": {"type": "string", "x-tl-type": "string", "description": "オプションに関連付けられたストア製品の識別子（公式アプリのみ）。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "currency": {"type": "string", "x-tl-type": "string", "description": "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": "通貨の最小単位での製品の価格 (float/double ではなく、整数)。たとえば、`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": "[ページネーション](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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "各 [メイン ミニアプリに関連付けられたボット、詳細については、こちら »](https://core.telegram.org/api/bots/webapps.md#main-mini-apps) を参照してください。", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "botPreviewMedia": {"title": "botPreviewMedia", "description": "[メイン ミニアプリ プレビュー メディア、詳細については、こちら »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/botPreviewMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["botPreviewMedia"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "このメディアが最後に更新されたのはいつですか。", "x-telegram-field-docs": true}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "実際の写真/ビデオ。", "x-telegram-field-docs": true}}, "required": ["_", "date", "media"], "additionalProperties": false}, "bots.previewInfo": {"title": "bots.previewInfo", "description": "[メイン ミニアプリのプレビューについての情報が含まれています。詳細については、こちら »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.previewInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.previewInfo"]}, "media": {"type": "array", "items": {"type": "object", "x-tl-type": "BotPreviewMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["botPreviewMedia"]}}, "description": "TL Type: BotPreviewMedia."}, "x-tl-type": "Vector<BotPreviewMedia>", "description": "[bots.getPreviewInfo](https://core.telegram.org/method/bots.getPreviewInfo.md).] に渡された言語コードのすべてのプレビュー メディア。", "x-telegram-field-docs": true}, "lang_codes": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>", "description": "プレビュー メディアがアップロードされた利用可能なすべての言語コード ([bots.getPreviewInfo](https://core.telegram.org/method/bots.getPreviewInfo.md)] に渡された言語コードに関係なく)。", "x-telegram-field-docs": true}}, "required": ["_", "media", "lang_codes"], "additionalProperties": false}, "starsSubscriptionPricing": {"title": "starsSubscriptionPricing", "description": "[Telegram Star サブスクリプション »](https://core.telegram.org/api/invites.md#paid-invite-links)] の価格。", "externalDocs": {"url": "https://core.telegram.org/constructor/starsSubscriptionPricing"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsSubscriptionPricing"]}, "period": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ユーザーはチャンネルへのアクセスを獲得し維持するには、`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": "starsSubscription", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsSubscription"]}, "canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "can_refulfill": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "missing_balance": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "bot_canceled": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "id": {"type": "string", "x-tl-type": "string"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "until_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pricing": {"type": "object", "x-tl-type": "StarsSubscriptionPricing", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsSubscriptionPricing"]}}, "description": "Тип TL: StarsSubscriptionPricing."}, "chat_invite_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "photo": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.5?WebDocument"}, "invoice_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.6?string"}}, "required": ["_", "id", "peer", "until_date", "pricing"], "additionalProperties": false}, "messageReactor": {"title": "messageReactor", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReactor"]}, "top": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "anonymous": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.3?Peer"}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "count"], "additionalProperties": false}, "starsGiveawayOption": {"title": "starsGiveawayOption", "description": "[Telegram Star プレゼント](https://core.telegram.org/api/giveaways.md#star-giveaways)] オプションに関する情報が含まれています。", "externalDocs": {"url": "https://core.telegram.org/constructor/starsGiveawayOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsGiveawayOption"]}, "extended": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定した場合、このオプションはプレゼント オプションの完全なリストにのみ表示される必要があります (i.e。ユーザーが展開ボタンをクリックした場合にのみリストに追加される必要があります)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定する場合、このオプションはオプション リストでデフォルトで事前に選択されている必要があります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "勝者に分配される Telegram 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`] フラグが設定されている場合に、1 年間にチャットがブーストされる回数", "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": "通貨の最小単位での合計価格 (float/double ではなく、整数)。たとえば、`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": "starsGiveawayWinnersOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsGiveawayWinnersOption"]}, "default": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "users": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "per_user_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "users", "per_user_stars"], "additionalProperties": false}, "starGift": {"title": "starGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGift"]}, "limited": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "sold_out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "birthday": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "limited_per_user": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "peer_color_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "auction": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.11?true"}, "new": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "sticker": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "availability_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "availability_total": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "availability_resale": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "convert_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "first_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "last_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "upgrade_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}, "resell_min_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.4?long"}, "title": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.5?string"}, "released_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.6?Peer"}, "per_user_total": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.8?int"}, "per_user_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.8?int"}, "locked_until_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.9?int"}, "auction_slug": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.11?string"}, "gifts_per_round": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "auction_start_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}, "upgrade_variants": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.12?int"}, "background": {"type": "object", "x-tl-type": "StarGiftBackground", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftBackground"]}}, "description": "Тип TL: StarGiftBackground.", "x-tl-flag": "flags.13?StarGiftBackground"}}, "required": ["_", "id", "sticker", "stars", "convert_stars"], "additionalProperties": false}, "starGiftUnique": {"title": "starGiftUnique", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftUnique"]}, "require_premium": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "resale_ton_only": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "theme_available": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "burned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.14?true"}, "crafted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.15?true"}, "onchain_sale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "fixed_sale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.19?true"}, "my_sale": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.21?true"}, "offer_min_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.18?long"}, "fee_bps": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.20?int"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "gift_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "title": {"type": "string", "x-tl-type": "string"}, "slug": {"type": "string", "x-tl-type": "string"}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "owner_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "owner_name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "owner_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>"}, "availability_issued": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "availability_total": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "gift_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "resell_amount": {"type": "array", "items": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "Тип TL: StarsAmount."}, "x-tl-type": "Vector<StarsAmount>", "x-tl-flag": "flags.4?Vector<StarsAmount>"}, "released_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.5?Peer"}, "value_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "value_currency": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.8?string"}, "value_usd_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.8?long"}, "theme_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.10?Peer"}, "peer_color": {"type": "object", "x-tl-type": "PeerColor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerColor", "peerColorCollectible", "inputPeerColorCollectible"]}}, "description": "Тип TL: PeerColor.", "x-tl-flag": "flags.11?PeerColor"}, "host_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.12?Peer"}, "offer_min_stars": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.13?int"}, "craft_chance_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.16?int"}}, "required": ["_", "id", "gift_id", "title", "slug", "num", "attributes", "availability_issued", "availability_total"], "additionalProperties": false}, "payments.starGiftsNotModified": {"title": "payments.starGiftsNotModified", "description": "利用可能な [ギフト »](https://core.telegram.org/api/gifts.md)] のリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "payments.starGifts": {"title": "payments.starGifts", "description": "[ギフト»](https://core.telegram.org/api/gifts.md)]をご利用いただけます。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGifts"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-telegram-field-docs": true}, "gifts": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "x-tl-type": "Vector<StarGift>", "description": "入手可能なギフトのリスト。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "`gifts` フィールドに記載されているチャット。", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`gifts` フィールドに記載されているユーザー。", "x-telegram-field-docs": true}}, "required": ["_", "hash", "gifts", "chats", "users"], "additionalProperties": false}, "messageReportOption": {"title": "messageReportOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["messageReportOption"]}, "text": {"type": "string", "x-tl-type": "string"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "text", "option"], "additionalProperties": false}, "reportResultChooseOption": {"title": "reportResultChooseOption", "description": "ユーザーは次のオプションのいずれかを選択し、[messages.report](https://core.telegram.org/method/messages.report.md) を再呼び出しして、オプションの `option` 識別子を [messages.report](https://core.telegram.org/method/messages.report.md).`option`] に渡す必要があります。", "externalDocs": {"url": "https://core.telegram.org/constructor/reportResultChooseOption"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reportResultChooseOption"]}, "title": {"type": "string", "x-tl-type": "string", "description": "オプションポップアップのタイトル", "x-telegram-field-docs": true}, "options": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageReportOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReportOption"]}}, "description": "Тип TL: MessageReportOption."}, "x-tl-type": "Vector<MessageReportOption>", "description": "利用可能なオプション。メニュー エントリとして表示されます。", "x-telegram-field-docs": true}}, "required": ["_", "title", "options"], "additionalProperties": false}, "reportResultAddComment": {"title": "reportResultAddComment", "description": "ユーザーはモデレーター用の追加コメントを入力し、[messages.report](https://core.telegram.org/method/messages.report.md) を再度呼び出して、コメントを [messages.report](https://core.telegram.org/method/messages.report.md).`message`.] に渡す必要があります。", "externalDocs": {"url": "https://core.telegram.org/constructor/reportResultAddComment"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reportResultAddComment"]}, "optional": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ユーザーが空の `message` を [messages.report](https://core.telegram.org/method/messages.report.md)] に渡すことでこのステップをスキップできるかどうか、または空ではない `message` が必須であるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "option": {"type": "string", "format": "byte", "x-tl-type": "bytes", "description": "[messages.report](https://core.telegram.org/method/messages.report.md) メソッドを再呼び出しして、このオプションを `option` に渡す必要があります。", "x-telegram-field-docs": true}}, "required": ["_", "option"], "additionalProperties": false}, "reportResultReported": {"title": "reportResultReported", "description": "レポートは正常に送信されました。これ以上のアクションは必要ありません。", "externalDocs": {"url": "https://core.telegram.org/constructor/reportResultReported"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["reportResultReported"]}}, "required": ["_"], "additionalProperties": false}, "messages.botPreparedInlineMessage": {"title": "messages.botPreparedInlineMessage", "description": "[Web アプリ経由でユーザーに送信される、ボットによって保存された準備済みのインライン メッセージ] を表します »](https://core.telegram.org/api/bots/inline.md#21-using-a-prepared-inline-message)", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.botPreparedInlineMessage"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.botPreparedInlineMessage"]}, "id": {"type": "string", "x-tl-type": "string", "description": "保存されたメッセージの ID。[web_app_send_prepared_message イベント »](https://core.telegram.org/api/web-events.md#web-app-send-prepared-message) の `id` フィールドに渡されます。", "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 Type: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "結果で言及されたユーザー", "x-telegram-field-docs": true}}, "required": ["_", "query_id", "result", "peer_types", "cache_time", "users"], "additionalProperties": false}, "botAppSettings": {"title": "botAppSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["botAppSettings"]}, "placeholder_path": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "background_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "background_dark_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.2?int"}, "header_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.3?int"}, "header_dark_color": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.4?int"}}, "required": ["_"], "additionalProperties": false}, "starRefProgram": {"title": "starRefProgram", "description": "[ボットによるアフィリエイトプログラム](https://core.telegram.org/api/bots/referrals.md)] についてのご案内", "externalDocs": {"url": "https://core.telegram.org/constructor/starRefProgram"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starRefProgram"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "プログラムを提供するボットのID", "x-tl-type": "long", "x-telegram-field-docs": true}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アフィリエイトは、紹介したユーザーが行ったミニアプリのトランザクションごとに [starRefProgram](https://core.telegram.org/constructor/starRefProgram.md).`commission_permille``` [Telegram Stars](https://core.telegram.org/api/stars.md)] の手数料を受け取ります", "x-telegram-field-docs": true}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アフィリエイトは、紹介リンクがインポートされて初めてボットを開始してから `duration_months` か月間、紹介したユーザーが行うすべてのミニアプリ トランザクションに対してコミッションを受け取ります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アフィリエイト プログラムが終了する時点 (Unix タイムスタンプ) (オプション。設定されていない場合、アフィリエイト プログラムは終了する予定はありません)", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "daily_revenue_per_user": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "アフィリエイト プログラムを作成したボットの Telegram Stars におけるユーザーごとの 1 日あたりの収益額。  参照ユーザーあたりの概算収益を取得するには、この値に `commission_permille` を掛け、`1000` で割ります。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?StarsAmount"}}, "required": ["_", "bot_id", "commission_permille"], "additionalProperties": false}, "connectedBotStarRef": {"title": "connectedBotStarRef", "type": "object", "properties": {"_": {"type": "string", "enum": ["connectedBotStarRef"]}, "revoked": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "url": {"type": "string", "x-tl-type": "string"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "commission_permille": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration_months": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "participants": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "revenue": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "url", "date", "bot_id", "commission_permille", "participants", "revenue"], "additionalProperties": false}, "payments.connectedStarRefBots": {"title": "payments.connectedStarRefBots", "description": "アクティブ [所属](https://core.telegram.org/api/bots/referrals.md#becoming-an-affiliate)]", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.connectedStarRefBots"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.connectedStarRefBots"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アクティブな所属の総数", "x-telegram-field-docs": true}, "connected_bots": {"type": "array", "items": {"type": "object", "x-tl-type": "ConnectedBotStarRef", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["connectedBotStarRef"]}}, "description": "Тип TL: ConnectedBotStarRef."}, "x-tl-type": "Vector<ConnectedBotStarRef>", "description": "所属", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`connected_bots`で言及したピア", "x-telegram-field-docs": true}}, "required": ["_", "count", "connected_bots", "users"], "additionalProperties": false}, "payments.suggestedStarRefBots": {"title": "payments.suggestedStarRefBots", "description": "利用可能な [アフィリエイト プログラム](https://core.telegram.org/api/bots/referrals.md) を備えた推奨される [ミニアプリ](https://core.telegram.org/api/bots/webapps.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 Type: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`suggested_bots`で言及したピア", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "[ページネーション](https://core.telegram.org/api/offsets.md)] の次のオフセット", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}}, "required": ["_", "count", "suggested_bots", "users"], "additionalProperties": false}, "starsAmount": {"title": "starsAmount", "description": "[Telegram Stars](https://core.telegram.org/api/stars.md)] の実数 (i.e。おそらく 10 進数) を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/starsAmount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsAmount"]}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "Telegram スターの整数。", "x-tl-type": "long", "x-telegram-field-docs": true}, "nanos": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ナノスターで表されるテレグラム スターの 10 進数 (i.e。1 ナノスターはテレグラム スターの `1/1_000_000_000` (10 億分の 1) に相当します)。  このフィールドは負の値になる場合もあります (許容範囲は `-999_999_999` から `999_999_999` です)。", "x-telegram-field-docs": true}}, "required": ["_", "amount", "nanos"], "additionalProperties": false}, "starsTonAmount": {"title": "starsTonAmount", "description": "グラム量をナノグラム単位で表します (i.e. `1/1_000_000_000` グラム)。", "externalDocs": {"url": "https://core.telegram.org/constructor/starsTonAmount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starsTonAmount"]}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "ナノグラム単位の量。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "amount"], "additionalProperties": false}, "messages.foundStickersNotModified": {"title": "messages.foundStickersNotModified", "description": "指定されたクエリに対する新しいステッカーは見つかりませんでした", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickersNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickersNotModified"]}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ページネーション](https://core.telegram.org/api/offsets.md)] のオフセット", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_"], "additionalProperties": false}, "messages.foundStickers": {"title": "messages.foundStickers", "description": "ステッカーを見つけました", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.foundStickers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.foundStickers"]}, "next_offset": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "[ページネーション](https://core.telegram.org/api/offsets.md)] のオフセット", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "[キャッシュに使用されるハッシュ、詳細についてはここをクリック](https://core.telegram.org/api/offsets.md#hash-generation)", "x-tl-type": "long", "x-telegram-field-docs": true}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>", "description": "ステッカーを見つけました", "x-telegram-field-docs": true}}, "required": ["_", "hash", "stickers"], "additionalProperties": false}, "botVerifierSettings": {"title": "botVerifierSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["botVerifierSettings"]}, "can_modify_custom_description": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "company": {"type": "string", "x-tl-type": "string"}, "custom_description": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities.", "x-tl-flag": "flags.0?TextWithEntities"}}, "required": ["_", "icon", "company"], "additionalProperties": false}, "botVerification": {"title": "botVerification", "type": "object", "properties": {"_": {"type": "string", "enum": ["botVerification"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "description": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities."}}, "required": ["_", "bot_id", "icon", "description"], "additionalProperties": false}, "starGiftAttributeModel": {"title": "starGiftAttributeModel", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel"]}, "crafted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "name": {"type": "string", "x-tl-type": "string"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "rarity": {"type": "object", "x-tl-type": "StarGiftAttributeRarity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary"]}}, "description": "Тип TL: StarGiftAttributeRarity."}}, "required": ["_", "name", "document", "rarity"], "additionalProperties": false}, "starGiftAttributePattern": {"title": "starGiftAttributePattern", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributePattern"]}, "name": {"type": "string", "x-tl-type": "string"}, "document": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "rarity": {"type": "object", "x-tl-type": "StarGiftAttributeRarity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary"]}}, "description": "Тип TL: StarGiftAttributeRarity."}}, "required": ["_", "name", "document", "rarity"], "additionalProperties": false}, "starGiftAttributeBackdrop": {"title": "starGiftAttributeBackdrop", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeBackdrop"]}, "name": {"type": "string", "x-tl-type": "string"}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pattern_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rarity": {"type": "object", "x-tl-type": "StarGiftAttributeRarity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity", "starGiftAttributeRarityUncommon", "starGiftAttributeRarityRare", "starGiftAttributeRarityEpic", "starGiftAttributeRarityLegendary"]}}, "description": "Тип TL: StarGiftAttributeRarity."}}, "required": ["_", "name", "backdrop_id", "center_color", "edge_color", "pattern_color", "text_color", "rarity"], "additionalProperties": false}, "starGiftAttributeOriginalDetails": {"title": "starGiftAttributeOriginalDetails", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeOriginalDetails"]}, "sender_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "recipient_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザー", "x-telegram-field-docs": true}}, "required": ["_", "users"], "additionalProperties": false}, "users.usersSlice": {"title": "users.usersSlice", "description": "ユーザーのリストの一部について説明します。", "externalDocs": {"url": "https://core.telegram.org/constructor/users.usersSlice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["users.usersSlice"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "総ユーザー数 (`users`で指定したユーザーより大きい)", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "ユーザーのサブセット。", "x-telegram-field-docs": true}}, "required": ["_", "count", "users"], "additionalProperties": false}, "payments.uniqueStarGift": {"title": "payments.uniqueStarGift", "description": "[収集可能なギフト »](https://core.telegram.org/api/gifts.md#collectible-gifts)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.uniqueStarGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.uniqueStarGift"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "[star GiftUnique](https://core.telegram.org/constructor/starGiftUnique.md) コンストラクター。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "`gift` フィールドに記載されているチャット。", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`gift` フィールドに記載されているユーザー。", "x-telegram-field-docs": true}}, "required": ["_", "gift", "chats", "users"], "additionalProperties": false}, "messages.webPagePreview": {"title": "messages.webPagePreview", "description": "Webページのプレビューを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.webPagePreview"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.webPagePreview"]}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "[messageMediaWebPage](https://core.telegram.org/constructor/messageMediaWebPage.md)] またはプレビューがない場合は [messageMediaEmpty](https://core.telegram.org/constructor/messageMediaEmpty.md)]。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "`gift` フィールドに記載されているチャット。", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`media` オブジェクト内で言及されているユーザー。", "x-telegram-field-docs": true}}, "required": ["_", "media", "chats", "users"], "additionalProperties": false}, "savedStarGift": {"title": "savedStarGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["savedStarGift"]}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "unsaved": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "refunded": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.9?true"}, "can_upgrade": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.10?true"}, "pinned_to_top": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "upgrade_separate": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.17?true"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.1?Peer"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: 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": "3 値: 設定不可、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: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`gifts` で言及されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "count", "gifts", "chats", "users"], "additionalProperties": false}, "inputSavedStarGiftUser": {"title": "inputSavedStarGiftUser", "description": "別のユーザーとのプライベート チャットで受け取ったギフト。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputSavedStarGiftUser"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトの [messageService](https://core.telegram.org/constructor/messageService.md)] と [messageActionStar Gift](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 は、[messageActionStar Gift](https://core.telegram.org/constructor/messageActionStarGift.md)/[messageActionStar GiftUnique](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": "Fragment にエクスポートされた NFT をインポートするために使用できる URL。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftWithdrawalUrl"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftWithdrawalUrl"]}, "url": {"type": "string", "x-tl-type": "string", "description": "URL が開きます。", "x-telegram-field-docs": true}}, "required": ["_", "url"], "additionalProperties": false}, "paidReactionPrivacyDefault": {"title": "paidReactionPrivacyDefault", "description": "[messages.togglePaidReactionPrivacy](https://core.telegram.org/method/messages.togglePaidReactionPrivacy.md)] を使用して設定されたデフォルトのリアクションプライバシーを使用します。", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyDefault"]}}, "required": ["_"], "additionalProperties": false}, "paidReactionPrivacyAnonymous": {"title": "paidReactionPrivacyAnonymous", "description": "有料のリアクションを匿名で送信します。", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyAnonymous"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyAnonymous"]}}, "required": ["_"], "additionalProperties": false}, "paidReactionPrivacyPeer": {"title": "paidReactionPrivacyPeer", "description": "`for_paid_reactions` フラグを設定した [channels.getSendAs](https://core.telegram.org/method/channels.getSendAs.md)] を使用して取得された、指定されたピアとして有料リアクションを送信します。", "externalDocs": {"url": "https://core.telegram.org/constructor/paidReactionPrivacyPeer"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["paidReactionPrivacyPeer"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "リアクションを送信するピア。", "x-telegram-field-docs": true}}, "required": ["_", "peer"], "additionalProperties": false}, "account.paidMessagesRevenue": {"title": "account.paidMessagesRevenue", "description": "ユーザーが直接またはチャネルを通じてメッセージを送信するために費やした、返金されなかった [Telegram Stars](https://core.telegram.org/api/stars.md)] の合計数。有料メッセージの詳細については、[こちら »](https://core.telegram.org/api/paid-messages.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.paidMessagesRevenue"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.paidMessagesRevenue"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "金額は [星](https://core.telegram.org/api/stars.md)] です。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount"], "additionalProperties": false}, "requirementToContactEmpty": {"title": "requirementToContactEmpty", "description": "このユーザーは自由に連絡を取ることができます。", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactEmpty"]}}, "required": ["_"], "additionalProperties": false}, "requirementToContactPremium": {"title": "requirementToContactPremium", "description": "このユーザーは、連絡を取るために [Premium](https://core.telegram.org/api/premium.md)] サブスクリプションを購入する必要があります。", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactPremium"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactPremium"]}}, "required": ["_"], "additionalProperties": false}, "requirementToContactPaidMessages": {"title": "requirementToContactPaidMessages", "description": "このユーザーは、メッセージを送信するために、指定された金額の [Telegram Stars](https://core.telegram.org/api/stars.md)] を支払うよう要求しています。完全なフローについては、[こちら »](https://core.telegram.org/api/paid-messages.md) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/requirementToContactPaidMessages"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["requirementToContactPaidMessages"]}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "必要数【テレグラムスター](https://core.telegram.org/api/stars.md)】。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "stars_amount"], "additionalProperties": false}, "businessBotRights": {"title": "businessBotRights", "description": "【ビジネスボットの権利](https://core.telegram.org/api/bots/connected-business-bots.md)。", "externalDocs": {"url": "https://core.telegram.org/constructor/businessBotRights"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["businessBotRights"]}, "reply": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "過去 24 時間にメッセージを受信したプライベート チャットでボットがメッセージを送信および編集できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "read_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットが受信したプライベート メッセージを既読としてマークできるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "delete_sent_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットが送信したメッセージをボットが削除できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "delete_received_messages": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットが管理されたチャットで受信したプライベート メッセージを削除できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?true"}, "edit_name": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットがビジネス アカウントの姓名を編集できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?true"}, "edit_bio": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットがビジネス アカウントのプロフィールを編集できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?true"}, "edit_profile_photo": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットがビジネス アカウントのプロフィール写真を編集できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "edit_username": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットがビジネス アカウントのユーザー名を編集できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.7?true"}, "view_gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットがビジネス アカウントが所有するギフトと Telegram Star の量を表示できるかどうか。", "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 Star を自分のアカウントに転送できるか、またはギフトのアップグレードや転送に使用できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.12?true"}, "manage_stories": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "ボットがビジネス アカウントに代わってストーリーを投稿、編集、削除できるかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.13?true"}}, "required": ["_"], "additionalProperties": false}, "disallowedGiftsSettings": {"title": "disallowedGiftsSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["disallowedGiftsSettings"]}, "disallow_unlimited_stargifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "disallow_limited_stargifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "disallow_unique_stargifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "disallow_premium_gifts": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}, "disallow_stargifts_from_channels": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.4?true"}}, "required": ["_"], "additionalProperties": false}, "sponsoredPeer": {"title": "sponsoredPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["sponsoredPeer"]}, "random_id": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "sponsor_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "additional_info": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "random_id", "peer"], "additionalProperties": false}, "contacts.sponsoredPeersEmpty": {"title": "contacts.sponsoredPeersEmpty", "description": "このクエリにはスポンサー付きピアがありません。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.sponsoredPeersEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.sponsoredPeersEmpty"]}}, "required": ["_"], "additionalProperties": false}, "contacts.sponsoredPeers": {"title": "contacts.sponsoredPeers", "description": "スポンサーされた仲間たち。", "externalDocs": {"url": "https://core.telegram.org/constructor/contacts.sponsoredPeers"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["contacts.sponsoredPeers"]}, "peers": {"type": "array", "items": {"type": "object", "x-tl-type": "SponsoredPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["sponsoredPeer"]}}, "description": "Тип TL: SponsoredPeer."}, "x-tl-type": "Vector<SponsoredPeer>", "description": "スポンサーされた仲間たち。", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "スポンサー付きチャットとチャンネルに関する情報", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "スポンサー付きユーザーに関する情報", "x-telegram-field-docs": true}}, "required": ["_", "peers", "chats", "users"], "additionalProperties": false}, "starGiftAttributeIdModel": {"title": "starGiftAttributeIdModel", "description": "[コレクティブルギフト»](https://core.telegram.org/api/gifts.md#collectible-gifts)]のモデルの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 Type: StarGiftAttributeId."}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "attribute", "count"], "additionalProperties": false}, "payments.resaleStarGifts": {"title": "payments.resaleStarGifts", "description": "現在[再販»](https://core.telegram.org/api/gifts.md#reselling-collectible-gifts)]中のギフト一覧。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.resaleStarGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.resaleStarGifts"]}, "count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "結果の合計数。", "x-telegram-field-docs": true}, "gifts": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "x-tl-type": "Vector<StarGift>", "description": "再販の収集ギフト（`count`未満の可能性があり、その場合は`next_offset`が設定されます）。", "x-telegram-field-docs": true}, "next_offset": {"type": "string", "x-tl-type": "string", "description": "ページネーションのオフセット。これを [payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`offset`] に渡して次の結果を取得します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?string"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>", "description": "可能なギフト属性。[payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`attributes_hash`] が設定されている場合にのみ設定されます (最初の呼び出しでは、`0` に等しい必要があります)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<StarGiftAttribute>"}, "attributes_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "`attributes` フィールドのハッシュ。これを [payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`attributes_hash`] に渡し、変更されていない属性 (フラグが設定されていない) を返さないようにします。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?long"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "属性に記載されているチャット。", "x-telegram-field-docs": true}, "counters": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttributeCounter", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeCounter"]}}, "description": "Тип TL: StarGiftAttributeCounter."}, "x-tl-type": "Vector<StarGiftAttributeCounter>", "description": "特定の属性を持つギフトの合計数を示します。 [payments.getResaleStarGifts](https://core.telegram.org/method/payments.getResaleStarGifts.md).`offset`] が空の場合にのみ設定されます (このフィールドは現在の結果ページではなくすべての結果ページに関連しているため、最初のページでのみ返されます)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?Vector<StarGiftAttributeCounter>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "属性に記載されているユーザー。", "x-telegram-field-docs": true}}, "required": ["_", "count", "gifts", "chats", "users"], "additionalProperties": false}, "stories.canSendStoryCount": {"title": "stories.canSendStoryCount", "description": "使用可能なアクティブなストーリー スロットの数が含まれます ([`story_expiring_limit_*` クライアント構成パラメーター](https://core.telegram.org/api/config.md#story-expiring-limit-default) の値から現在アクティブなストーリーの数を引いた値に等しい)。", "externalDocs": {"url": "https://core.telegram.org/constructor/stories.canSendStoryCount"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["stories.canSendStoryCount"]}, "count_remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "残りのアクティブなストーリー スロット。", "x-telegram-field-docs": true}}, "required": ["_", "count_remains"], "additionalProperties": false}, "pendingSuggestion": {"title": "pendingSuggestion", "type": "object", "properties": {"_": {"type": "string", "enum": ["pendingSuggestion"]}, "suggestion": {"type": "string", "x-tl-type": "string"}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities."}, "description": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities."}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "suggestion", "title", "description", "url"], "additionalProperties": false}, "todoItem": {"title": "todoItem", "description": "[todoリスト»](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": "todoList", "type": "object", "properties": {"_": {"type": "string", "enum": ["todoList"]}, "others_can_append": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "others_can_complete": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "title": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities."}, "list": {"type": "array", "items": {"type": "object", "x-tl-type": "TodoItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["todoItem"]}}, "description": "TL Type: TodoItem."}, "x-tl-type": "Vector<TodoItem>"}}, "required": ["_", "title", "list"], "additionalProperties": false}, "todoCompletion": {"title": "todoCompletion", "type": "object", "properties": {"_": {"type": "string", "enum": ["todoCompletion"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "completed_by": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "completed_by", "date"], "additionalProperties": false}, "suggestedPost": {"title": "suggestedPost", "description": "[おすすめの投稿 »](https://core.telegram.org/api/suggested-posts.md)] に関する情報が含まれています。", "externalDocs": {"url": "https://core.telegram.org/constructor/suggestedPost"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["suggestedPost"]}, "accepted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "提案された投稿が受け入れられたかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "rejected": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "提案された投稿が拒否されたかどうか。", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?true"}, "price": {"type": "object", "x-tl-type": "StarsAmount", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starsAmount", "starsTonAmount"]}}, "description": "提案された投稿の価格。", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?StarsAmount"}, "schedule_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "スケジュールの日付。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_"], "additionalProperties": false}, "starsRating": {"title": "starsRating", "type": "object", "properties": {"_": {"type": "string", "enum": ["starsRating"]}, "level": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "current_level_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "next_level_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "level", "current_level_stars", "stars"], "additionalProperties": false}, "starGiftCollection": {"title": "starGiftCollection", "description": "[スターギフトコレクション»](https://core.telegram.org/api/gifts.md#gift-collections)]を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/starGiftCollection"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftCollection"]}, "collection_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "コレクションの 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 Type: StarGiftCollection."}, "x-tl-type": "Vector<StarGiftCollection>", "description": "スターギフトコレクション。", "x-telegram-field-docs": true}}, "required": ["_", "collections"], "additionalProperties": false}, "storyAlbum": {"title": "storyAlbum", "description": "[ストーリー アルバム »](https://core.telegram.org/api/stories.md#story-albums)] を表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/storyAlbum"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["storyAlbum"]}, "album_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "アルバムの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": "Type TL: StoryAlbum."}, "x-tl-type": "Vector<StoryAlbum>", "description": "アルバム。", "x-telegram-field-docs": true}}, "required": ["_", "hash", "albums"], "additionalProperties": false}, "searchPostsFlood": {"title": "searchPostsFlood", "description": "指定された [グローバル投稿検索 »](https://core.telegram.org/api/search.md#posts-tab) に支払いが必要かどうかを示します。", "externalDocs": {"url": "https://core.telegram.org/constructor/searchPostsFlood"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["searchPostsFlood"]}, "query_is_free": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "指定されたクエリは無料です (**空き検索スロットを使い果たすことはありません**)。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "total_daily": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "毎日の無料検索スロットの合計数。", "x-telegram-field-docs": true}, "remains": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "空き検索スロットの残りの数。", "x-telegram-field-docs": true}, "wait_till": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "検索スロットがもうない場合、さらに検索スロットが利用可能になるときの unixtime を指定します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?int"}, "stars_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "無料でない検索ごとに支払う [Telegram Stars](https://core.telegram.org/api/stars.md)] の数。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "total_daily", "remains", "stars_amount"], "additionalProperties": false}, "payments.uniqueStarGiftValueInfo": {"title": "payments.uniqueStarGiftValueInfo", "description": "[収集可能なギフト »](https://core.telegram.org/api/gifts.md#collectible-gifts)] の価値に関する情報。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.uniqueStarGiftValueInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.uniqueStarGiftValueInfo"]}, "last_sale_on_fragment": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、最後の販売は Fragment で完了しました。", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?true"}, "value_is_average": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定されている場合、`value`は同じ種類の販売済みギフトの平均値から計算されます。それ以外の場合は、ギフトの販売価格に基づいて決定されます。", "x-telegram-field-docs": true, "x-tl-flag": "flags.6?true"}, "currency": {"type": "string", "x-tl-type": "string", "description": "Three-letter ISO 4217 [currency](https://core.telegram.org/bots/payments.md#supported-currencies) code (a localized fiat currency used to represent prices and price estimations in this constructor).", "x-telegram-field-docs": true}, "value": {"type": "string", "pattern": "^-?\\d+$", "description": "`currency` で指定された通貨の最小単位でのギフトの推定価値。", "x-tl-type": "long", "x-telegram-field-docs": true}, "initial_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトの最初の購入日。", "x-telegram-field-docs": true}, "initial_sale_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "Stars での最初の購入価格。", "x-tl-type": "long", "x-telegram-field-docs": true}, "initial_sale_price": {"type": "string", "pattern": "^-?\\d+$", "description": "`currency`で指定した通貨の最小単位での初期購入価格（`initial_sale_stars`から自動換算）。", "x-tl-type": "long", "x-telegram-field-docs": true}, "last_sale_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "ギフトの最終再販日。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}, "last_sale_price": {"type": "string", "pattern": "^-?\\d+$", "description": "`currency` で指定された通貨の最小単位での最終再販価格。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?long"}, "floor_price": {"type": "string", "pattern": "^-?\\d+$", "description": "`currency` で指定された通貨の最小単位で表された、同じ種類の収集可能なギフトの現在の最低価格。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.2?long"}, "average_price": {"type": "string", "pattern": "^-?\\d+$", "description": "`currency` で指定された通貨の最小単位で表した、同じ種類のコレクション ギフトの現在の平均販売価格。", "x-tl-type": "long", "x-telegram-field-docs": true, "x-tl-flag": "flags.3?long"}, "listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在 Telegram で再販されている同じ種類のギフトの数。", "x-telegram-field-docs": true, "x-tl-flag": "flags.4?int"}, "fragment_listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在フラグメントで再販されている同じ種類のギフトの数。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?int"}, "fragment_listed_url": {"type": "string", "x-tl-type": "string", "description": "フラグメントは、現在フラグメントで再販されている同じタイプのギフトのリストへのリンクです。", "x-telegram-field-docs": true, "x-tl-flag": "flags.5?string"}}, "required": ["_", "currency", "value", "initial_sale_date", "initial_sale_stars", "initial_sale_price"], "additionalProperties": false}, "profileTabPosts": {"title": "profileTabPosts", "description": "プロフィールページの[ストーリー](https://core.telegram.org/api/stories.md)]タブを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabPosts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabPosts"]}}, "required": ["_"], "additionalProperties": false}, "profileTabGifts": {"title": "profileTabGifts", "description": "プロフィール ページの [ギフト](https://core.telegram.org/api/gifts.md)] タブを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabGifts"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabGifts"]}}, "required": ["_"], "additionalProperties": false}, "profileTabMedia": {"title": "profileTabMedia", "description": "プロフィール ページのメディア タブを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabMedia"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabMedia"]}}, "required": ["_"], "additionalProperties": false}, "profileTabFiles": {"title": "profileTabFiles", "description": "プロファイルの共有ファイル タブを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabFiles"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabFiles"]}}, "required": ["_"], "additionalProperties": false}, "profileTabMusic": {"title": "profileTabMusic", "description": "プロフィール ページの [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": "profileTabVoice", "description": "プロフィール ページの音声メッセージ タブを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabVoice"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabVoice"]}}, "required": ["_"], "additionalProperties": false}, "profileTabLinks": {"title": "profileTabLinks", "description": "プロフィール ページの共有リンク タブを表します。", "externalDocs": {"url": "https://core.telegram.org/constructor/profileTabLinks"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["profileTabLinks"]}}, "required": ["_"], "additionalProperties": false}, "profileTabGifs": {"title": "profileTabGifs", "description": "プロフィール ページの 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": "曲の総数 (渡された `limit` とデフォルトの最大値 `limit` に応じて `documents` より大きくなる可能性があり、その場合はページネーションが必要です)。", "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 Type: Document."}, "x-tl-type": "Vector<Document>", "description": "歌。", "x-telegram-field-docs": true}}, "required": ["_", "count", "documents"], "additionalProperties": false}, "account.savedMusicIdsNotModified": {"title": "account.savedMusicIdsNotModified", "description": "現在プロフィールに固定されている曲の ID リスト ([document](https://core.telegram.org/constructor/document.md).`id`s)] は変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.savedMusicIdsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.savedMusicIdsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.savedMusicIds": {"title": "account.savedMusicIds", "description": "現在プロフィールに固定されている曲の 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`] の完全なリスト", "x-telegram-field-docs": true}}, "required": ["_", "ids"], "additionalProperties": false}, "payments.checkCanSendGiftResultOk": {"title": "payments.checkCanSendGiftResultOk", "description": "ご指定のギフトをお届けできます。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkCanSendGiftResultOk"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkCanSendGiftResultOk"]}}, "required": ["_"], "additionalProperties": false}, "payments.checkCanSendGiftResultFail": {"title": "payments.checkCanSendGiftResultFail", "description": "指定されたギフトは、指定された理由によりまだ送信できません。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.checkCanSendGiftResultFail"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.checkCanSendGiftResultFail"]}, "reason": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "まだ送信できない理由。", "x-telegram-field-docs": true}}, "required": ["_", "reason"], "additionalProperties": false}, "inputChatThemeEmpty": {"title": "inputChatThemeEmpty", "description": "現在構成されているテーマを削除します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatThemeEmpty"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatThemeEmpty"]}}, "required": ["_"], "additionalProperties": false}, "inputChatTheme": {"title": "inputChatTheme", "description": "絵文字ベースのチャット テーマを設定します。[account.getChatThemes](https://core.telegram.org/method/account.getChatThemes.md)] によって返されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatTheme"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatTheme"]}, "emoticon": {"type": "string", "x-tl-type": "string", "description": "絵文字。", "x-telegram-field-docs": true}}, "required": ["_", "emoticon"], "additionalProperties": false}, "inputChatThemeUniqueGift": {"title": "inputChatThemeUniqueGift", "description": "[account.getUniqueGiftChatThemes](https://core.telegram.org/method/account.getUniqueGiftChatThemes.md) から返された、所有または [ホストされている収集品ギフト »](https://core.telegram.org/api/gifts.md#hosted-collectible-gifts)] に基づいてテーマを設定します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputChatThemeUniqueGift"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputChatThemeUniqueGift"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "[star GiftUnique](https://core.telegram.org/constructor/starGiftUnique.md).`slug`] のナメクジ。", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "starGiftUpgradePrice": {"title": "starGiftUpgradePrice", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftUpgradePrice"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "upgrade_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "date", "upgrade_stars"], "additionalProperties": false}, "groupCallMessage": {"title": "groupCallMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallMessage"]}, "from_admin": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: TextWithEntities."}, "paid_message_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "id", "from_id", "date", "message"], "additionalProperties": false}, "groupCallDonor": {"title": "groupCallDonor", "type": "object", "properties": {"_": {"type": "string", "enum": ["groupCallDonor"]}, "top": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "my": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.3?Peer"}, "stars": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "stars"], "additionalProperties": false}, "phone.groupCallStars": {"title": "phone.groupCallStars", "description": "ライブ ストーリーの寄付総額と上位寄付者が含まれています。[有料ライブ ストーリーの寄付 »](https://core.telegram.org/api/group-calls.md#paid-live-story-donations)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/phone.groupCallStars"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["phone.groupCallStars"]}, "total_stars": {"type": "string", "pattern": "^-?\\d+$", "description": "ライブストーリーに寄付された合計スター数", "x-tl-type": "long", "x-telegram-field-docs": true}, "top_donors": {"type": "array", "items": {"type": "object", "x-tl-type": "GroupCallDonor", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["groupCallDonor"]}}, "description": "Тип TL: GroupCallDonor."}, "x-tl-type": "Vector<GroupCallDonor>", "description": "上位寄付者", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "`top_donors` で言及されているチャット", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "`top_donors` で言及されているユーザー", "x-telegram-field-docs": true}}, "required": ["_", "total_stars", "top_donors", "chats", "users"], "additionalProperties": false}, "recentStory": {"title": "recentStory", "description": "ピアの [アクティブなストーリー »](https://core.telegram.org/api/stories.md#recent-story-summaries) の概要。[ユーザー](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` が設定されている場合、ピアのアクティブな [ライブ ストーリー »](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": "auctionBidLevel", "type": "object", "properties": {"_": {"type": "string", "enum": ["auctionBidLevel"]}, "pos": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "pos", "amount", "date"], "additionalProperties": false}, "starGiftAuctionStateNotModified": {"title": "starGiftAuctionStateNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAuctionState": {"title": "starGiftAuctionState", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionState"]}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "min_bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "bid_levels": {"type": "array", "items": {"type": "object", "x-tl-type": "AuctionBidLevel", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["auctionBidLevel"]}}, "description": "Тип TL: AuctionBidLevel."}, "x-tl-type": "Vector<AuctionBidLevel>"}, "top_bidders": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}, "next_round_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "last_gift_num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "gifts_left": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "current_round": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "total_rounds": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "rounds": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAuctionRound", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRound", "starGiftAuctionRoundExtendable"]}}, "description": "Тип TL: StarGiftAuctionRound."}, "x-tl-type": "Vector<StarGiftAuctionRound>"}}, "required": ["_", "version", "start_date", "end_date", "min_bid_amount", "bid_levels", "top_bidders", "next_round_at", "last_gift_num", "gifts_left", "current_round", "total_rounds", "rounds"], "additionalProperties": false}, "starGiftAuctionStateFinished": {"title": "starGiftAuctionStateFinished", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateFinished"]}, "start_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "end_date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "average_price": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "fragment_listed_count": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "fragment_listed_url": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "start_date", "end_date", "average_price"], "additionalProperties": false}, "starGiftAuctionUserState": {"title": "starGiftAuctionUserState", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}, "returned": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "bid_date": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "min_bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}, "bid_peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.0?Peer"}, "acquired_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "acquired_count"], "additionalProperties": false}, "payments.starGiftAuctionState": {"title": "payments.starGiftAuctionState", "description": "[コレクティブルギフトオークション»](https://core.telegram.org/api/auctions.md)]について説明します。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftAuctionState"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftAuctionState"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "現在オークションで配布中のプレゼントです。", "x-telegram-field-docs": true}, "state": {"type": "object", "x-tl-type": "StarGiftAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified", "starGiftAuctionState", "starGiftAuctionStateFinished"]}}, "description": "オークションの様子。", "x-telegram-field-docs": true}, "user_state": {"type": "object", "x-tl-type": "StarGiftAuctionUserState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}}, "description": "現在のユーザーに関連するオークションの状態 (i.e。入札、落札されたギフトなどに関する情報)。", "x-telegram-field-docs": true}, "timeout": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "オークション更新を受信し続けるには、`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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}}, "required": ["_", "gift", "state", "user_state", "timeout", "users", "chats"], "additionalProperties": false}, "starGiftAuctionAcquiredGift": {"title": "starGiftAuctionAcquiredGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionAcquiredGift"]}, "name_hidden": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "bid_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "round": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pos": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "TL Type: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}}, "required": ["_", "gifts", "users", "chats"], "additionalProperties": false}, "starGiftActiveAuctionState": {"title": "starGiftActiveAuctionState", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftActiveAuctionState"]}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}, "state": {"type": "object", "x-tl-type": "StarGiftAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionStateNotModified", "starGiftAuctionState", "starGiftAuctionStateFinished"]}}, "description": "Тип TL: StarGiftAuctionState."}, "user_state": {"type": "object", "x-tl-type": "StarGiftAuctionUserState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAuctionUserState"]}}, "description": "Тип TL: StarGiftAuctionUserState."}}, "required": ["_", "gift", "state", "user_state"], "additionalProperties": false}, "payments.starGiftActiveAuctionsNotModified": {"title": "payments.starGiftActiveAuctionsNotModified", "description": "現在アクティブな [ギフト オークション](https://core.telegram.org/api/auctions.md) **ユーザーが入札した**] のリストは変更されていません。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftActiveAuctionsNotModified"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftActiveAuctionsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "payments.starGiftActiveAuctions": {"title": "payments.starGiftActiveAuctions", "description": "現在アクティブな [ギフト オークション](https://core.telegram.org/api/auctions.md) **ユーザーが入札した場所**] をすべて説明します。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftActiveAuctions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftActiveAuctions"]}, "auctions": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftActiveAuctionState", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftActiveAuctionState"]}}, "description": "Тип TL: StarGiftActiveAuctionState."}, "x-tl-type": "Vector<StarGiftActiveAuctionState>", "description": "ユーザーが入札したオークション", "x-telegram-field-docs": true}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー", "x-telegram-field-docs": true}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>", "description": "言及されたチャット", "x-telegram-field-docs": true}}, "required": ["_", "auctions", "users", "chats"], "additionalProperties": false}, "inputStarGiftAuction": {"title": "inputStarGiftAuction", "description": "リンクされた [収集可能なギフト](https://core.telegram.org/api/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": "inputStarGiftAuctionSlug", "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": "passkey", "description": "アカウントに関連付けられたパスキーに関する人間が判読できる情報。[パスキーの作成 »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) または [パスキーの一覧表示 »](https://core.telegram.org/api/passkeys.md#list-passkeys)] のときに返されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/passkey"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["passkey"]}, "id": {"type": "string", "x-tl-type": "string", "description": "一意のパスキー 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 Type: Passkey."}, "x-tl-type": "Vector<Passkey>", "description": "現在のアカウントへのログインに使用できるパスキーのリスト", "x-telegram-field-docs": true}}, "required": ["_", "passkeys"], "additionalProperties": false}, "account.passkeyRegistrationOptions": {"title": "account.passkeyRegistrationOptions", "description": "パスキー登録オプションについては、完全なフローの詳細については、[ここ »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/account.passkeyRegistrationOptions"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["account.passkeyRegistrationOptions"]}, "options": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "`publicKey` フィールドに [`PublicKeyCredentialCreationOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialCreationOptions) オブジェクトが含まれる JSON エンコードされたオブジェクト。", "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": "`publicKey` フィールドに [`PublicKeyCredentialRequestOptions`](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredentialRequestOptions) オブジェクトが含まれる JSON エンコードされたオブジェクト。", "x-telegram-field-docs": true}}, "required": ["_", "options"], "additionalProperties": false}, "inputPasskeyResponseRegister": {"title": "inputPasskeyResponseRegister", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPasskeyResponseRegister"]}, "client_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: DataJSON."}, "attestation_data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "client_data", "attestation_data"], "additionalProperties": false}, "inputPasskeyResponseLogin": {"title": "inputPasskeyResponseLogin", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPasskeyResponseLogin"]}, "client_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: DataJSON."}, "authenticator_data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "signature": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "user_handle": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "client_data", "authenticator_data", "signature", "user_handle"], "additionalProperties": false}, "inputPasskeyCredentialPublicKey": {"title": "inputPasskeyCredentialPublicKey", "description": "登録とログインの両方に使用される公開キー パスキー資格情報。完全なフローについては、[パスキーの作成 »](https://core.telegram.org/api/passkeys.md#creating-a-passkey) および [パスキーを使用したログイン »](https://core.telegram.org/api/passkeys.md#logging-in-with-a-passkey)] を参照してください。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputPasskeyCredentialPublicKey"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputPasskeyCredentialPublicKey"]}, "id": {"type": "string", "x-tl-type": "string", "description": "[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": "starGiftBackground", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftBackground"]}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "center_color", "edge_color", "text_color"], "additionalProperties": false}, "starGiftAuctionRound": {"title": "starGiftAuctionRound", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRound"]}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "num", "duration"], "additionalProperties": false}, "starGiftAuctionRoundExtendable": {"title": "starGiftAuctionRoundExtendable", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAuctionRoundExtendable"]}, "num": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "duration": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extend_top": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "extend_window": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "num", "duration", "extend_top", "extend_window"], "additionalProperties": false}, "payments.starGiftUpgradeAttributes": {"title": "payments.starGiftUpgradeAttributes", "description": "ギフト タイプが [収集可能なギフト »](https://core.telegram.org/api/gifts.md#collectible-gifts) にアップグレードされると、そのギフト タイプに表示される収集可能な属性のみのリスト。", "externalDocs": {"url": "https://core.telegram.org/constructor/payments.starGiftUpgradeAttributes"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftUpgradeAttributes"]}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "StarGiftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGiftAttributeModel", "starGiftAttributePattern", "starGiftAttributeBackdrop", "starGiftAttributeOriginalDetails"]}}, "description": "Тип TL: StarGiftAttribute."}, "x-tl-type": "Vector<StarGiftAttribute>", "description": "指定されたタイプのギフトが [収集可能なギフト »](https://core.telegram.org/api/gifts.md#collectible-gifts) に変換されるときに割り当てられる可能性のある属性の完全なリスト。これには、[star GiftAttributeModel](https://core.telegram.org/constructor/starGiftAttributeModel.md).`crafted`] でマークされたクラフト専用モデルも含まれます。", "x-telegram-field-docs": true}}, "required": ["_", "attributes"], "additionalProperties": false}, "messages.emojiGameOutcome": {"title": "messages.emojiGameOutcome", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameOutcome"]}, "seed": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "stake_ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "ton_amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "seed", "stake_ton_amount", "ton_amount"], "additionalProperties": false}, "messages.emojiGameUnavailable": {"title": "messages.emojiGameUnavailable", "description": "ダイスゲームの情報です。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGameUnavailable"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameUnavailable"]}}, "required": ["_"], "additionalProperties": false}, "messages.emojiGameDiceInfo": {"title": "messages.emojiGameDiceInfo", "description": "ダイスゲームの情報です。", "externalDocs": {"url": "https://core.telegram.org/constructor/messages.emojiGameDiceInfo"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.emojiGameDiceInfo"]}, "game_hash": {"type": "string", "x-tl-type": "string", "description": "ゲームハッシュ。", "x-telegram-field-docs": true}, "prev_stake": {"type": "string", "pattern": "^-?\\d+$", "description": "以前の賭け金。", "x-tl-type": "long", "x-telegram-field-docs": true}, "current_streak": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "現在のストリーク。", "x-telegram-field-docs": true}, "params": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>", "description": "パラメータ。", "x-telegram-field-docs": true}, "plays_left": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "左に再生します。", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?int"}}, "required": ["_", "game_hash", "prev_stake", "current_streak", "params"], "additionalProperties": false}, "starGiftAttributeRarity": {"title": "starGiftAttributeRarity", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarity"]}, "permille": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "permille"], "additionalProperties": false}, "starGiftAttributeRarityUncommon": {"title": "starGiftAttributeRarityUncommon", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityUncommon"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityRare": {"title": "starGiftAttributeRarityRare", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityRare"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityEpic": {"title": "starGiftAttributeRarityEpic", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityEpic"]}}, "required": ["_"], "additionalProperties": false}, "starGiftAttributeRarityLegendary": {"title": "starGiftAttributeRarityLegendary", "type": "object", "properties": {"_": {"type": "string", "enum": ["starGiftAttributeRarityLegendary"]}}, "required": ["_"], "additionalProperties": false}, "keyboardButtonStyle": {"title": "keyboardButtonStyle", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardButtonStyle"]}, "bg_primary": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bg_danger": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "bg_success": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "icon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.3?long"}}, "required": ["_"], "additionalProperties": false}, "inputMessageReadMetric": {"title": "inputMessageReadMetric", "description": "メッセージがチャット ビューポートに表示されていた時間を表す、単一メッセージの露出に関する読み取りメトリクス。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputMessageReadMetric"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputMessageReadMetric"]}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "description": "メッセージの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 ミリ秒のエントリ猶予期間後の、メッセージの少なくとも 1 ピクセルの合計露出時間 (ミリ秒単位)", "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": "inputAiComposeToneDefault", "description": "文字列識別子によって、組み込みのデフォルトの [AI コンポーザー トーン »](https://core.telegram.org/api/ai.md#ai-compose-tones)] を参照します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAiComposeToneDefault"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneDefault"]}, "tone": {"type": "string", "x-tl-type": "string", "description": "[aiComposeToneDefault](https://core.telegram.org/constructor/aiComposeToneDefault.md).`tone`] で返される、組み込みトーンの文字列識別子。", "x-telegram-field-docs": true}}, "required": ["_", "tone"], "additionalProperties": false}, "inputAiComposeToneID": {"title": "inputAiComposeToneID", "description": "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": "トーン [[aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`access_hash`] で返されるハッシュ](https://core.telegram.org/api/peers.md#access-hash) にアクセスします。", "x-tl-type": "long", "x-telegram-field-docs": true}}, "required": ["_", "id", "access_hash"], "additionalProperties": false}, "inputAiComposeToneSlug": {"title": "inputAiComposeToneSlug", "description": "[AI 作曲トーン リンク »](https://core.telegram.org/api/links.md#ai-compose-tone-links) を開くときに使用される、パブリック スラッグによってカスタム [AI 作曲トーン »](https://core.telegram.org/api/ai.md#ai-compose-tones)] を参照します。", "externalDocs": {"url": "https://core.telegram.org/constructor/inputAiComposeToneSlug"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneSlug"]}, "slug": {"type": "string", "x-tl-type": "string", "description": "[aiComposeTone](https://core.telegram.org/constructor/aiComposeTone.md).`slug`] で返されるパブリック トーン スラグ", "x-telegram-field-docs": true}}, "required": ["_", "slug"], "additionalProperties": false}, "inputAiComposeToneSingleUse": {"title": "inputAiComposeToneSingleUse", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputAiComposeToneSingleUse"]}, "custom_prompt": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "custom_prompt"], "additionalProperties": false}, "aiComposeTone": {"title": "aiComposeTone", "description": "カスタム [AI メッセージ コンポーザー トーン »](https://core.telegram.org/api/ai.md#ai-compose-tones)] は、[AI メッセージ コンポーザー](https://core.telegram.org/api/ai.md#compose-messages)] を使用して特定のスタイルでメッセージを言い換えるのに使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/aiComposeTone"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aiComposeTone"]}, "creator": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "現在のユーザーがこのトーンの作成者であるかどうか", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "トーン識別子", "x-tl-type": "long", "x-telegram-field-docs": true}, "access_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "トーンアクセスハッシュ", "x-tl-type": "long", "x-telegram-field-docs": true}, "slug": {"type": "string", "x-tl-type": "string", "description": "ユニークなトーンスラッグ。[AI 作曲トーンリンク »](https://core.telegram.org/api/links.md#ai-compose-tone-links)] 経由でトーンを共有およびインストールするために使用されます。", "x-telegram-field-docs": true}, "title": {"type": "string", "x-tl-type": "string", "description": "人間が読めるトーン名、最大 [aicompose_tone_title_length_max »](https://core.telegram.org/api/config.md#aicompose-tone-title-length-max) UTF-8 文字]", "x-telegram-field-docs": true}, "emoji_id": {"type": "string", "pattern": "^-?\\d+$", "description": "[トーンのアイコンのカスタム絵文字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": "aiComposeToneDefault", "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 Type: 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": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "言及されたユーザー (i.e. トーンの作成者)", "x-telegram-field-docs": true}}, "required": ["_", "hash", "tones", "users"], "additionalProperties": false}, "aiComposeToneExample": {"title": "aiComposeToneExample", "description": "[AI コンポーザー トーン »](https://core.telegram.org/api/ai.md#ai-compose-tones) がメッセージを言い換える方法を示す例。トーン ピッカーでプレビューとして使用されます。", "externalDocs": {"url": "https://core.telegram.org/constructor/aiComposeToneExample"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["aiComposeToneExample"]}, "from": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "元の、変換されていないサンプル メッセージ", "x-telegram-field-docs": true}, "to": {"type": "object", "x-tl-type": "TextWithEntities", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textWithEntities"]}}, "description": "同じメッセージのサンプルをこの口調で言い換えたもの", "x-telegram-field-docs": true}}, "required": ["_", "from", "to"], "additionalProperties": false}, "bots.accessSettings": {"title": "bots.accessSettings", "description": "[管理ボット »](https://core.telegram.org/api/bots/managed-bots.md#managing-a-managed-bot)] のアクセス制限設定。", "externalDocs": {"url": "https://core.telegram.org/constructor/bots.accessSettings"}, "type": "object", "properties": {"_": {"type": "string", "enum": ["bots.accessSettings"]}, "restricted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "description": "設定すると、所有者と `add_users` のユーザーのみが管理対象ボットにアクセスできます", "x-telegram-field-docs": true, "x-tl-flag": "flags.0?true"}, "add_users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>", "description": "管理ボットにアクセスできる追加ユーザー (所有者を除く最大 10 人)。 `restricted` が設定されている場合にのみ存在します", "x-telegram-field-docs": true, "x-tl-flag": "flags.1?Vector<User>"}}, "required": ["_"], "additionalProperties": false}, "messages.chatInviteJoinResultOk": {"title": "messages.chatInviteJoinResultOk", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatInviteJoinResultOk"]}, "updates": {"type": "object", "x-tl-type": "Updates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["updatesTooLong", "updateShortMessage", "updateShortChatMessage", "updateShort", "updatesCombined", "updates", "updateShortSentMessage"]}}, "description": "TL Type: Updates."}}, "required": ["_", "updates"], "additionalProperties": false}, "messages.chatInviteJoinResultWebView": {"title": "messages.chatInviteJoinResultWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.chatInviteJoinResultWebView"]}, "bot_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "query_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "bot_id", "query_id", "users"], "additionalProperties": false}, "joinChatBotResultApproved": {"title": "joinChatBotResultApproved", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultApproved"]}}, "required": ["_"], "additionalProperties": false}, "joinChatBotResultDeclined": {"title": "joinChatBotResultDeclined", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultDeclined"]}}, "required": ["_"], "additionalProperties": false}, "joinChatBotResultQueued": {"title": "joinChatBotResultQueued", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultQueued"]}}, "required": ["_"], "additionalProperties": false}, "joinChatBotResultWebView": {"title": "joinChatBotResultWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["joinChatBotResultWebView"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "webDomainException": {"title": "webDomainException", "type": "object", "properties": {"_": {"type": "string", "enum": ["webDomainException"]}, "domain": {"type": "string", "x-tl-type": "string"}, "url": {"type": "string", "x-tl-type": "string"}, "title": {"type": "string", "x-tl-type": "string"}, "favicon": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "domain", "url", "title"], "additionalProperties": false}, "account.webBrowserSettingsNotModified": {"title": "account.webBrowserSettingsNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["account.webBrowserSettingsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "account.webBrowserSettings": {"title": "account.webBrowserSettings", "type": "object", "properties": {"_": {"type": "string", "enum": ["account.webBrowserSettings"]}, "open_external_browser": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "display_close_button": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "external_exceptions": {"type": "array", "items": {"type": "object", "x-tl-type": "WebDomainException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDomainException"]}}, "description": "Тип TL: WebDomainException."}, "x-tl-type": "Vector<WebDomainException>"}, "inapp_exceptions": {"type": "array", "items": {"type": "object", "x-tl-type": "WebDomainException", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDomainException"]}}, "description": "Тип TL: WebDomainException."}, "x-tl-type": "Vector<WebDomainException>"}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "external_exceptions", "inapp_exceptions", "hash"], "additionalProperties": false}, "inputRichFilePhoto": {"title": "inputRichFilePhoto", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichFilePhoto"]}, "id": {"type": "string", "x-tl-type": "string"}, "photo": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "TL Type: InputPhoto."}}, "required": ["_", "id", "photo"], "additionalProperties": false}, "inputRichFileDocument": {"title": "inputRichFileDocument", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichFileDocument"]}, "id": {"type": "string", "x-tl-type": "string"}, "document": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "TL Type: InputDocument."}}, "required": ["_", "id", "document"], "additionalProperties": false}, "inputRichMessage": {"title": "inputRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichMessage"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "noautolink": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "InputPhoto", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPhotoEmpty", "inputPhoto"]}}, "description": "TL Type: InputPhoto."}, "x-tl-type": "Vector<InputPhoto>", "x-tl-flag": "flags.2?Vector<InputPhoto>"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "InputDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputDocumentEmpty", "inputDocument"]}}, "description": "TL Type: InputDocument."}, "x-tl-type": "Vector<InputDocument>", "x-tl-flag": "flags.3?Vector<InputDocument>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser."}, "x-tl-type": "Vector<InputUser>", "x-tl-flag": "flags.4?Vector<InputUser>"}}, "required": ["_", "blocks"], "additionalProperties": false}, "inputRichMessageHTML": {"title": "inputRichMessageHTML", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichMessageHTML"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "noautolink": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "html": {"type": "string", "x-tl-type": "string"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "InputRichFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichFilePhoto", "inputRichFileDocument"]}}, "description": "Тип TL: InputRichFile."}, "x-tl-type": "Vector<InputRichFile>", "x-tl-flag": "flags.2?Vector<InputRichFile>"}}, "required": ["_", "html"], "additionalProperties": false}, "inputRichMessageMarkdown": {"title": "inputRichMessageMarkdown", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputRichMessageMarkdown"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "noautolink": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "markdown": {"type": "string", "x-tl-type": "string"}, "files": {"type": "array", "items": {"type": "object", "x-tl-type": "InputRichFile", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputRichFilePhoto", "inputRichFileDocument"]}}, "description": "Тип TL: InputRichFile."}, "x-tl-type": "Vector<InputRichFile>", "x-tl-flag": "flags.2?Vector<InputRichFile>"}}, "required": ["_", "markdown"], "additionalProperties": false}, "richMessage": {"title": "richMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["richMessage"]}, "rtl": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "part": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "blocks": {"type": "array", "items": {"type": "object", "x-tl-type": "PageBlock", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["pageBlockUnsupported", "pageBlockTitle", "pageBlockSubtitle", "pageBlockAuthorDate", "pageBlockHeader", "pageBlockSubheader", "pageBlockParagraph", "pageBlockPreformatted", "pageBlockFooter", "pageBlockDivider", "pageBlockAnchor", "pageBlockList", "pageBlockBlockquote", "pageBlockPullquote", "pageBlockPhoto", "pageBlockVideo", "pageBlockCover", "pageBlockEmbed", "pageBlockEmbedPost", "pageBlockCollage", "pageBlockSlideshow", "pageBlockChannel", "pageBlockAudio", "pageBlockKicker", "pageBlockTable", "pageBlockOrderedList", "pageBlockDetails", "pageBlockRelatedArticles", "pageBlockMap", "pageBlockHeading1", "pageBlockHeading2", "pageBlockHeading3", "pageBlockHeading4", "pageBlockHeading5", "pageBlockHeading6", "pageBlockMath", "pageBlockThinking", "inputPageBlockMap", "pageBlockBlockquoteBlocks", "pageBlockButtonRow", "pageBlockDocument"]}}, "description": "Тип TL: PageBlock."}, "x-tl-type": "Vector<PageBlock>"}, "photos": {"type": "array", "items": {"type": "object", "x-tl-type": "Photo", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["photoEmpty", "photo"]}}, "description": "Тип TL: Photo."}, "x-tl-type": "Vector<Photo>"}, "documents": {"type": "array", "items": {"type": "object", "x-tl-type": "Document", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["documentEmpty", "document"]}}, "description": "TL Type: Document."}, "x-tl-type": "Vector<Document>"}}, "required": ["_", "blocks", "photos", "documents"], "additionalProperties": false}, "communityPeer": {"title": "communityPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityPeer"]}, "can_view_history": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "visible": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}}, "required": ["_", "peer"], "additionalProperties": false}, "communityPeerRequest": {"title": "communityPeerRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["communityPeerRequest"]}, "visible": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "requested_by": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "peer", "requested_by", "date"], "additionalProperties": false}, "communities.peerLinkRequests": {"title": "communities.peerLinkRequests", "type": "object", "properties": {"_": {"type": "string", "enum": ["communities.peerLinkRequests"]}, "total_count": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "requests": {"type": "array", "items": {"type": "object", "x-tl-type": "CommunityPeerRequest", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["communityPeerRequest"]}}, "description": "Тип TL: CommunityPeerRequest."}, "x-tl-type": "Vector<CommunityPeerRequest>"}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "total_count", "requests", "chats", "users"], "additionalProperties": false}, "ephemeralMessage": {"title": "ephemeralMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}, "out": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "welcome_template": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "invert_media": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.7?true"}, "noforwards": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.12?true"}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "from_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "peer_id": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer.", "x-tl-flag": "flags.9?Peer"}, "receiver_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "top_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.1?int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "message": {"type": "string", "x-tl-type": "string"}, "entities": {"type": "array", "items": {"type": "object", "x-tl-type": "MessageEntity", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEntityUnknown", "messageEntityMention", "messageEntityHashtag", "messageEntityBotCommand", "messageEntityUrl", "messageEntityEmail", "messageEntityBold", "messageEntityItalic", "messageEntityCode", "messageEntityPre", "messageEntityTextUrl", "messageEntityMentionName", "inputMessageEntityMentionName", "messageEntityPhone", "messageEntityCashtag", "messageEntityUnderline", "messageEntityStrike", "messageEntityBankCard", "messageEntitySpoiler", "messageEntityCustomEmoji", "messageEntityBlockquote", "messageEntityFormattedDate", "messageEntityDiffInsert", "messageEntityDiffReplace", "messageEntityDiffDelete", "messageEntityTonAddress"]}}, "description": "TL Type: MessageEntity."}, "x-tl-type": "Vector<MessageEntity>", "x-tl-flag": "flags.2?Vector<MessageEntity>"}, "media": {"type": "object", "x-tl-type": "MessageMedia", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia", "messageMediaToDo", "messageMediaVideoStream", "messageMediaWidget"]}}, "description": "TL Type: MessageMedia.", "x-tl-flag": "flags.3?MessageMedia"}, "reply_markup": {"type": "object", "x-tl-type": "ReplyMarkup", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["replyKeyboardHide", "replyKeyboardForceReply", "replyKeyboardMarkup", "replyInlineMarkup"]}}, "description": "Тип TL: ReplyMarkup.", "x-tl-flag": "flags.4?ReplyMarkup"}, "reply_to": {"type": "object", "x-tl-type": "MessageReplyHeader", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageReplyHeader", "messageReplyStoryHeader"]}}, "description": "Тип TL: MessageReplyHeader.", "x-tl-flag": "flags.6?MessageReplyHeader"}, "rich_message": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage.", "x-tl-flag": "flags.8?RichMessage"}, "chat_instance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.10?long"}, "anchor_msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.11?int"}}, "required": ["_", "id", "from_id", "receiver_id", "date", "message"], "additionalProperties": false}, "communities.participantJoinedChats": {"title": "communities.participantJoinedChats", "type": "object", "properties": {"_": {"type": "string", "enum": ["communities.participantJoinedChats"]}, "creator_chat_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}, "joined_chat_ids": {"type": "array", "items": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "x-tl-type": "Vector<long>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "creator_chat_ids", "joined_chat_ids", "chats", "users"], "additionalProperties": false}, "messages.translatedRichMessage": {"title": "messages.translatedRichMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.translatedRichMessage"]}, "result": {"type": "array", "items": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}, "x-tl-type": "Vector<RichMessage>"}}, "required": ["_", "result"], "additionalProperties": false}, "messages.composedRichMessageWithAI": {"title": "messages.composedRichMessageWithAI", "type": "object", "properties": {"_": {"type": "string", "enum": ["messages.composedRichMessageWithAI"]}, "result": {"type": "object", "x-tl-type": "RichMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richMessage"]}}, "description": "Тип TL: RichMessage."}}, "required": ["_", "result"], "additionalProperties": false}, "buttonTypeDefault": {"title": "buttonTypeDefault", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeDefault"]}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestPhone": {"title": "buttonTypeRequestPhone", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestPhone"]}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestGeoLocation": {"title": "buttonTypeRequestGeoLocation", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestGeoLocation"]}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestPoll": {"title": "buttonTypeRequestPoll", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestPoll"]}, "quiz": {"type": "boolean", "x-tl-type": "Bool", "x-tl-flag": "flags.0?Bool"}}, "required": ["_"], "additionalProperties": false}, "buttonTypeRequestPeer": {"title": "buttonTypeRequestPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeRequestPeer"]}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_type": {"type": "object", "x-tl-type": "RequestPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot"]}}, "description": "Тип TL: RequestPeerType."}, "max_quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "button_id", "peer_type", "max_quantity"], "additionalProperties": false}, "inputButtonTypeRequestPeer": {"title": "inputButtonTypeRequestPeer", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputButtonTypeRequestPeer"]}, "name_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "username_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "photo_requested": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer_type": {"type": "object", "x-tl-type": "RequestPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["requestPeerTypeUser", "requestPeerTypeChat", "requestPeerTypeBroadcast", "requestPeerTypeCreateBot"]}}, "description": "Тип TL: RequestPeerType."}, "max_quantity": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "button_id", "peer_type", "max_quantity"], "additionalProperties": false}, "buttonTypeSimpleWebView": {"title": "buttonTypeSimpleWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["buttonTypeSimpleWebView"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeUrl": {"title": "inlineButtonTypeUrl", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeUrlAuth": {"title": "inlineButtonTypeUrlAuth", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrlAuth"]}, "fwd_text": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "url": {"type": "string", "x-tl-type": "string"}, "button_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "url", "button_id"], "additionalProperties": false}, "inputInlineButtonTypeUrlAuth": {"title": "inputInlineButtonTypeUrlAuth", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputInlineButtonTypeUrlAuth"]}, "request_write_access": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "fwd_text": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "url": {"type": "string", "x-tl-type": "string"}, "bot": {"type": "object", "x-tl-type": "InputUser", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]}}, "description": "TL Type: InputUser.", "x-tl-flag": "flags.2?InputUser"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeWebView": {"title": "inlineButtonTypeWebView", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeWebView"]}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "inlineButtonTypeCallback": {"title": "inlineButtonTypeCallback", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeCallback"]}, "requires_password": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "data"], "additionalProperties": false}, "inlineButtonTypeGame": {"title": "inlineButtonTypeGame", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeGame"]}}, "required": ["_"], "additionalProperties": false}, "inlineButtonTypeBuy": {"title": "inlineButtonTypeBuy", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeBuy"]}}, "required": ["_"], "additionalProperties": false}, "inlineButtonTypeSwitchInline": {"title": "inlineButtonTypeSwitchInline", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeSwitchInline"]}, "same_peer": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "query": {"type": "string", "x-tl-type": "string"}, "peer_types": {"type": "array", "items": {"type": "object", "x-tl-type": "InlineQueryPeerType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineQueryPeerTypeSameBotPM", "inlineQueryPeerTypePM", "inlineQueryPeerTypeChat", "inlineQueryPeerTypeMegagroup", "inlineQueryPeerTypeBroadcast", "inlineQueryPeerTypeBotPM"]}}, "description": "TL Type: 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 Type: InputUser."}}, "required": ["_", "user_id"], "additionalProperties": false}, "inlineButtonTypeCopy": {"title": "inlineButtonTypeCopy", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeCopy"]}, "copy_text": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "copy_text"], "additionalProperties": false}, "inlineButtonTypeDisabled": {"title": "inlineButtonTypeDisabled", "type": "object", "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeDisabled"]}}, "required": ["_"], "additionalProperties": false}, "keyboardInlineButton": {"title": "keyboardInlineButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardInlineButton"]}, "style": {"type": "object", "x-tl-type": "KeyboardButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardButtonStyle"]}}, "description": "Тип TL: KeyboardButtonStyle.", "x-tl-flag": "flags.10?KeyboardButtonStyle"}, "text": {"type": "string", "x-tl-type": "string"}, "type": {"type": "object", "x-tl-type": "InlineButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl", "inlineButtonTypeUrlAuth", "inputInlineButtonTypeUrlAuth", "inlineButtonTypeWebView", "inlineButtonTypeCallback", "inlineButtonTypeGame", "inlineButtonTypeBuy", "inlineButtonTypeSwitchInline", "inlineButtonTypeUserProfile", "inputInlineButtonTypeUserProfile", "inlineButtonTypeCopy", "inlineButtonTypeDisabled"]}}, "description": "Тип TL: InlineButtonType."}}, "required": ["_", "text", "type"], "additionalProperties": false}, "keyboardInlineButtonRow": {"title": "keyboardInlineButtonRow", "type": "object", "properties": {"_": {"type": "string", "enum": ["keyboardInlineButtonRow"]}, "buttons": {"type": "array", "items": {"type": "object", "x-tl-type": "KeyboardInlineButton", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["keyboardInlineButton"]}}, "description": "Тип TL: KeyboardInlineButton."}, "x-tl-type": "Vector<KeyboardInlineButton>"}}, "required": ["_", "buttons"], "additionalProperties": false}, "richButtonStyle": {"title": "richButtonStyle", "type": "object", "properties": {"_": {"type": "string", "enum": ["richButtonStyle"]}, "bg_primary": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "bg_danger": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "bg_success": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "link": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.3?true"}}, "required": ["_"], "additionalProperties": false}, "pageButton": {"title": "pageButton", "type": "object", "properties": {"_": {"type": "string", "enum": ["pageButton"]}, "text": {"type": "object", "x-tl-type": "RichText", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["textEmpty", "textPlain", "textBold", "textItalic", "textUnderline", "textStrike", "textFixed", "textUrl", "textEmail", "textConcat", "textSubscript", "textSuperscript", "textMarked", "textPhone", "textImage", "textAnchor", "textMath", "textCustomEmoji", "textSpoiler", "textMention", "textHashtag", "textBotCommand", "textCashtag", "textAutoUrl", "textAutoEmail", "textAutoPhone", "textBankCard", "textMentionName", "textDate", "textDiff", "textButton", "textTonAddress"]}}, "description": "Тип TL: RichText."}, "type": {"type": "object", "x-tl-type": "InlineButtonType", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inlineButtonTypeUrl", "inlineButtonTypeUrlAuth", "inputInlineButtonTypeUrlAuth", "inlineButtonTypeWebView", "inlineButtonTypeCallback", "inlineButtonTypeGame", "inlineButtonTypeBuy", "inlineButtonTypeSwitchInline", "inlineButtonTypeUserProfile", "inputInlineButtonTypeUserProfile", "inlineButtonTypeCopy", "inlineButtonTypeDisabled"]}}, "description": "Тип TL: InlineButtonType."}, "style": {"type": "object", "x-tl-type": "RichButtonStyle", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["richButtonStyle"]}}, "description": "Тип TL: RichButtonStyle.", "x-tl-flag": "flags.0?RichButtonStyle"}}, "required": ["_", "text", "type"], "additionalProperties": false}, "ephemeral.welcomeMessagesNotModified": {"title": "ephemeral.welcomeMessagesNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["ephemeral.welcomeMessagesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "ephemeral.welcomeMessages": {"title": "ephemeral.welcomeMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["ephemeral.welcomeMessages"]}, "hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "EphemeralMessage", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["ephemeralMessage"]}}, "description": "Тип TL: EphemeralMessage."}, "x-tl-type": "Vector<EphemeralMessage>"}}, "required": ["_", "hash", "messages"], "additionalProperties": false}, "currencyRate": {"title": "currencyRate", "type": "object", "properties": {"_": {"type": "string", "enum": ["currencyRate"]}, "currency": {"type": "string", "x-tl-type": "string"}, "rate": {"type": "number", "format": "double", "x-tl-type": "double"}}, "required": ["_", "currency", "rate"], "additionalProperties": false}, "payments.currencyRates": {"title": "payments.currencyRates", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.currencyRates"]}, "rates": {"type": "array", "items": {"type": "object", "x-tl-type": "CurrencyRate", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["currencyRate"]}}, "description": "Тип TL: CurrencyRate."}, "x-tl-type": "Vector<CurrencyRate>"}}, "required": ["_", "rates"], "additionalProperties": false}, "toncenter.apiResponse": {"title": "toncenter.apiResponse", "type": "object", "properties": {"_": {"type": "string", "enum": ["toncenter.apiResponse"]}, "response": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: 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": "Type TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "addresses", "users"], "additionalProperties": false}, "walletTransactionPeerUser": {"title": "walletTransactionPeerUser", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerUser"]}, "user_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "user_id", "address"], "additionalProperties": false}, "walletTransactionPeerAddress": {"title": "walletTransactionPeerAddress", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerAddress"]}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "address"], "additionalProperties": false}, "walletTransactionPeerOnramp": {"title": "walletTransactionPeerOnramp", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerOnramp"]}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "provider_name": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "address", "provider_name"], "additionalProperties": false}, "walletTransactionPeerUnsupported": {"title": "walletTransactionPeerUnsupported", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerUnsupported"]}}, "required": ["_"], "additionalProperties": false}, "walletTransactionPeerChannel": {"title": "walletTransactionPeerChannel", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerChannel"]}, "channel_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "address": {"type": "string", "x-tl-type": "string"}, "domain": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "channel_id", "address"], "additionalProperties": false}, "walletTransactionPeerTelegramGift": {"title": "walletTransactionPeerTelegramGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerTelegramGift"]}, "own_profile": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "walletTransactionPeerOnchainGift": {"title": "walletTransactionPeerOnchainGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerOnchainGift"]}, "action": {"type": "object", "x-tl-type": "WalletOnchainGiftAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletOnchainGiftActionBuy", "walletOnchainGiftActionDelist", "walletOnchainGiftActionChangePrice", "walletOnchainGiftActionOfferCreate", "walletOnchainGiftActionOfferAccept", "walletOnchainGiftActionOfferCancel", "walletOnchainGiftActionOfferDecline", "walletOnchainGiftActionOfferExpire"]}}, "description": "Тип TL: WalletOnchainGiftAction."}}, "required": ["_", "action"], "additionalProperties": false}, "walletTransactionPeerStaking": {"title": "walletTransactionPeerStaking", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerStaking"]}, "action": {"type": "object", "x-tl-type": "WalletStakingAction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletStakingActionDeposit", "walletStakingActionWithdraw", "walletStakingActionWithdrawPending"]}}, "description": "Тип TL: WalletStakingAction."}}, "required": ["_", "action"], "additionalProperties": false}, "walletTransaction": {"title": "walletTransaction", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletTransaction"]}, "incoming": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "gasless": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "failed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "key_change": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.5?true"}, "comment_encrypted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.6?true"}, "suspected_spam": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.8?true"}, "id": {"type": "string", "x-tl-type": "string"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "fee": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "WalletTransactionPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletTransactionPeerUser", "walletTransactionPeerAddress", "walletTransactionPeerOnramp", "walletTransactionPeerUnsupported", "walletTransactionPeerChannel", "walletTransactionPeerTelegramGift", "walletTransactionPeerOnchainGift", "walletTransactionPeerStaking"]}}, "description": "Тип TL: WalletTransactionPeer."}, "comment": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "tx_hash": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.4?string"}, "nft": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem.", "x-tl-flag": "flags.7?wallet.NftItem"}}, "required": ["_", "id", "amount", "fee", "date", "peer"], "additionalProperties": false}, "wallet.transactions": {"title": "wallet.transactions", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.transactions"]}, "balance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "transactions": {"type": "array", "items": {"type": "object", "x-tl-type": "WalletTransaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletTransaction"]}}, "description": "Тип TL: WalletTransaction."}, "x-tl-type": "Vector<WalletTransaction>"}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "balance", "transactions", "chats", "users"], "additionalProperties": false}, "wallet.secretPhraseParts": {"title": "wallet.secretPhraseParts", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.secretPhraseParts"]}, "token": {"type": "string", "x-tl-type": "string"}, "dcs": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "token", "dcs"], "additionalProperties": false}, "wallet.encryptedSecretPhrasePart": {"title": "wallet.encryptedSecretPhrasePart", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.encryptedSecretPhrasePart"]}, "data": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "data"], "additionalProperties": false}, "wallet.holderDc": {"title": "wallet.holderDc", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.holderDc"]}, "dc": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "dc", "public_key"], "additionalProperties": false}, "wallet.proofChallenge": {"title": "wallet.proofChallenge", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.proofChallenge"]}, "payload": {"type": "string", "x-tl-type": "string"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "domain": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "payload", "expires", "domain"], "additionalProperties": false}, "walletOwnershipProof": {"title": "walletOwnershipProof", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletOwnershipProof"]}, "timestamp": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "signature": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "timestamp", "signature"], "additionalProperties": false}, "inputWalletNew": {"title": "inputWalletNew", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWalletNew"]}}, "required": ["_"], "additionalProperties": false}, "inputWalletImported": {"title": "inputWalletImported", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWalletImported"]}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "anchor_public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "proof": {"type": "object", "x-tl-type": "WalletOwnershipProof", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletOwnershipProof"]}}, "description": "Тип TL: WalletOwnershipProof."}}, "required": ["_", "public_key", "proof"], "additionalProperties": false}, "tonConnectManifest": {"title": "tonConnectManifest", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectManifest"]}, "url": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string"}, "icon": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.0?WebDocument"}}, "required": ["_", "url", "name"], "additionalProperties": false}, "tonConnectSession": {"title": "tonConnectSession", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}, "pending": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "closing": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.2?true"}, "id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "dapp_client_id": {"type": "string", "x-tl-type": "string"}, "client_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}, "nonce": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "manifest": {"type": "object", "x-tl-type": "TonConnectManifest", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectManifest"]}}, "description": "Тип TL: TonConnectManifest.", "x-tl-flag": "flags.4?TonConnectManifest"}, "manifest_error": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.5?int"}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "id", "dapp_client_id", "nonce", "date"], "additionalProperties": false}, "wallet.tonConnectChallenge": {"title": "wallet.tonConnectChallenge", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.tonConnectChallenge"]}, "challenge": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "event_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "challenge", "event_id"], "additionalProperties": false}, "tonConnectNextEventId": {"title": "tonConnectNextEventId", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectNextEventId"]}, "event_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "event_id"], "additionalProperties": false}, "tonConnectRequest": {"title": "tonConnectRequest", "type": "object", "properties": {"_": {"type": "string", "enum": ["tonConnectRequest"]}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "msg_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "topic": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "trace_id": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}}, "required": ["_", "session_id", "msg_id", "body", "expires"], "additionalProperties": false}, "wallet.tonConnectPending": {"title": "wallet.tonConnectPending", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.tonConnectPending"]}, "session": {"type": "object", "x-tl-type": "TonConnectSession", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}}, "description": "Тип TL: TonConnectSession."}, "requests": {"type": "array", "items": {"type": "object", "x-tl-type": "TonConnectRequest", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectRequest"]}}, "description": "Тип TL: TonConnectRequest."}, "x-tl-type": "Vector<TonConnectRequest>"}}, "required": ["_", "session", "requests"], "additionalProperties": false}, "wallet.tonConnectSessions": {"title": "wallet.tonConnectSessions", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.tonConnectSessions"]}, "sessions": {"type": "array", "items": {"type": "object", "x-tl-type": "TonConnectSession", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["tonConnectSession"]}}, "description": "Тип TL: TonConnectSession."}, "x-tl-type": "Vector<TonConnectSession>"}}, "required": ["_", "sessions"], "additionalProperties": false}, "wallet.existingBalance": {"title": "wallet.existingBalance", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.existingBalance"]}, "has_balance": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "url": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "url"], "additionalProperties": false}, "wallet.nftAttribute": {"title": "wallet.nftAttribute", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.nftAttribute"]}, "trait_type": {"type": "string", "x-tl-type": "string"}, "value": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "trait_type", "value"], "additionalProperties": false}, "wallet.nftItem": {"title": "wallet.nftItem", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}, "collection_address": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "address": {"type": "string", "x-tl-type": "string"}, "owner_address": {"type": "string", "x-tl-type": "string"}, "index": {"type": "string", "x-tl-type": "string"}, "name": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.1?string"}, "description": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "image": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.3?WebDocument"}, "image_small": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.4?WebDocument"}, "content_url": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.5?WebDocument"}, "lottie": {"type": "object", "x-tl-type": "WebDocument", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["webDocument", "webDocumentNoProxy"]}}, "description": "Тип TL: WebDocument.", "x-tl-flag": "flags.6?WebDocument"}, "attributes": {"type": "array", "items": {"type": "object", "x-tl-type": "wallet.NftAttribute", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftAttribute"]}}, "description": "Тип TL: wallet.NftAttribute."}, "x-tl-type": "Vector<wallet.NftAttribute>", "x-tl-flag": "flags.7?Vector<wallet.NftAttribute>"}, "extra": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: DataJSON.", "x-tl-flag": "flags.8?DataJSON"}, "gift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift.", "x-tl-flag": "flags.9?StarGift"}}, "required": ["_", "address", "owner_address", "index"], "additionalProperties": false}, "wallet.nftItems": {"title": "wallet.nftItems", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.nftItems"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem."}, "x-tl-type": "Vector<wallet.NftItem>"}, "next_offset": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}}, "required": ["_", "items"], "additionalProperties": false}, "auth.firebasePnvIntent": {"title": "auth.firebasePnvIntent", "type": "object", "properties": {"_": {"type": "string", "enum": ["auth.firebasePnvIntent"]}, "nonce": {"type": "string", "x-tl-type": "string"}, "digital_credential_payload": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "nonce", "digital_credential_payload"], "additionalProperties": false}, "inputTonConnectOauthSession": {"title": "inputTonConnectOauthSession", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputTonConnectOauthSession"]}, "session_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "challenge_answer": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "proof": {"type": "object", "x-tl-type": "WalletOwnershipProof", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["walletOwnershipProof"]}}, "description": "Тип TL: WalletOwnershipProof."}}, "required": ["_", "session_id", "challenge_answer", "body", "proof"], "additionalProperties": false}, "exportedNoPaidMessagesToken": {"title": "exportedNoPaidMessagesToken", "type": "object", "properties": {"_": {"type": "string", "enum": ["exportedNoPaidMessagesToken"]}, "token": {"type": "string", "x-tl-type": "string"}, "url": {"type": "string", "x-tl-type": "string"}, "expires": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}}, "required": ["_", "token", "url"], "additionalProperties": false}, "shareThemeDefault": {"title": "shareThemeDefault", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeDefault"]}}, "required": ["_"], "additionalProperties": false}, "shareThemeEmojiBackdrop": {"title": "shareThemeEmojiBackdrop", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeEmojiBackdrop"]}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int", "x-tl-flag": "flags.0?int"}, "emojis": {"type": "array", "items": {"type": "object", "x-tl-type": "Reaction", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["reactionEmpty", "reactionEmoji", "reactionCustomEmoji", "reactionPaid"]}}, "description": "TL Type: Reaction."}, "x-tl-type": "Vector<Reaction>", "x-tl-flag": "flags.1?Vector<Reaction>"}}, "required": ["_"], "additionalProperties": false}, "shareThemeGift": {"title": "shareThemeGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeGift"]}, "stargift": {"type": "object", "x-tl-type": "StarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["starGift", "starGiftUnique"]}}, "description": "Тип TL: StarGift."}}, "required": ["_", "stargift"], "additionalProperties": false}, "inputShareThemeGift": {"title": "inputShareThemeGift", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputShareThemeGift"]}, "stargift": {"type": "object", "x-tl-type": "InputSavedStarGift", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputSavedStarGiftUser", "inputSavedStarGiftChat", "inputSavedStarGiftSlug"]}}, "description": "TL Type: InputSavedStarGift."}}, "required": ["_", "stargift"], "additionalProperties": false}, "shareThemeBackdropOption": {"title": "shareThemeBackdropOption", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeBackdropOption"]}, "backdrop_id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "name": {"type": "string", "x-tl-type": "string"}, "center_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "edge_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "pattern_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "text_color": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "backdrop_id", "name", "center_color", "edge_color", "pattern_color", "text_color"], "additionalProperties": false}, "shareThemeBackdropsNotModified": {"title": "shareThemeBackdropsNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeBackdropsNotModified"]}}, "required": ["_"], "additionalProperties": false}, "shareThemeBackdrops": {"title": "shareThemeBackdrops", "type": "object", "properties": {"_": {"type": "string", "enum": ["shareThemeBackdrops"]}, "hash": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "backdrops": {"type": "array", "items": {"type": "object", "x-tl-type": "ShareThemeBackdropOption", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["shareThemeBackdropOption"]}}, "description": "Тип TL: ShareThemeBackdropOption."}, "x-tl-type": "Vector<ShareThemeBackdropOption>"}}, "required": ["_", "hash", "backdrops"], "additionalProperties": false}, "inputWalletCardSticker": {"title": "inputWalletCardSticker", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputWalletCardSticker"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Тип TL: MediaAreaCoordinates."}, "nft_address": {"type": "string", "x-tl-type": "string"}}, "required": ["_", "coordinates", "nft_address"], "additionalProperties": false}, "wallet.cardSticker": {"title": "wallet.cardSticker", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.cardSticker"]}, "coordinates": {"type": "object", "x-tl-type": "MediaAreaCoordinates", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["mediaAreaCoordinates"]}}, "description": "Тип TL: MediaAreaCoordinates."}, "nft": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem."}}, "required": ["_", "coordinates", "nft"], "additionalProperties": false}, "wallet.card": {"title": "wallet.card", "type": "object", "properties": {"_": {"type": "string", "enum": ["wallet.card"]}, "stickers": {"type": "array", "items": {"type": "object", "x-tl-type": "wallet.CardSticker", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.cardSticker"]}}, "description": "Тип TL: wallet.CardSticker."}, "x-tl-type": "Vector<wallet.CardSticker>", "x-tl-flag": "flags.0?Vector<wallet.CardSticker>"}, "bg_nft_item": {"type": "object", "x-tl-type": "wallet.NftItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["wallet.nftItem"]}}, "description": "Тип TL: wallet.NftItem.", "x-tl-flag": "flags.1?wallet.NftItem"}, "address": {"type": "string", "x-tl-type": "string"}, "balance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "address", "balance"], "additionalProperties": false}, "payments.starGiftDepositPayload": {"title": "payments.starGiftDepositPayload", "type": "object", "properties": {"_": {"type": "string", "enum": ["payments.starGiftDepositPayload"]}, "nft_address": {"type": "string", "x-tl-type": "string"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "amount": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}}, "required": ["_", "nft_address", "payload", "amount"], "additionalProperties": false}, "userWallet": {"title": "userWallet", "type": "object", "properties": {"_": {"type": "string", "enum": ["userWallet"]}, "address": {"type": "string", "x-tl-type": "string"}, "balance": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "public_key": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}, "state_init": {"type": "string", "format": "byte", "x-tl-type": "bytes", "x-tl-flag": "flags.0?bytes"}}, "required": ["_", "address", "balance"], "additionalProperties": false}, "widgetQueryTypeData": {"title": "widgetQueryTypeData", "type": "object", "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeData"]}, "with_wallet": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}}, "required": ["_"], "additionalProperties": false}, "widgetQueryTypeSignData": {"title": "widgetQueryTypeSignData", "type": "object", "properties": {"_": {"type": "string", "enum": ["widgetQueryTypeSignData"]}, "wallet": {"type": "object", "x-tl-type": "UserWallet", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userWallet"]}}, "description": "Тип TL: UserWallet."}, "sign_data": {"type": "object", "x-tl-type": "DataJSON", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["dataJSON"]}}, "description": "TL type: 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 Type: Document."}, "languages": {"type": "array", "items": {"type": "string", "x-tl-type": "string"}, "x-tl-type": "Vector<string>"}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "document", "languages", "version"], "additionalProperties": false}, "botProfileWidget": {"title": "botProfileWidget", "type": "object", "properties": {"_": {"type": "string", "enum": ["botProfileWidget"]}, "can_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "background_query": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "payload": {"type": "string", "format": "byte", "x-tl-type": "bytes"}, "public_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.2?string"}, "public_data_hash": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.2?long"}, "chat_data": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.3?string"}}, "required": ["_", "payload"], "additionalProperties": false}, "feedPosition": {"title": "feedPosition", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedPosition"]}, "date": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "peer": {"type": "object", "x-tl-type": "Peer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["peerUser", "peerChat", "peerChannel"]}}, "description": "TL Type: Peer."}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "date", "peer", "id"], "additionalProperties": false}, "feed.feedMessagesNotModified": {"title": "feed.feedMessagesNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.feedMessagesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "feed.feedMessages": {"title": "feed.feedMessages", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.feedMessages"]}, "max_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.0?FeedPosition"}, "min_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.1?FeedPosition"}, "read_max_position": {"type": "object", "x-tl-type": "FeedPosition", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedPosition"]}}, "description": "Тип TL: FeedPosition.", "x-tl-flag": "flags.2?FeedPosition"}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}}, "required": ["_", "messages", "chats", "users"], "additionalProperties": false}, "feedItemMessage": {"title": "feedItemMessage", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedItemMessage"]}, "message": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}}, "required": ["_", "message"], "additionalProperties": false}, "feedItemMessageGroup": {"title": "feedItemMessageGroup", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedItemMessageGroup"]}, "messages": {"type": "array", "items": {"type": "object", "x-tl-type": "Message", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["messageEmpty", "message", "messageService"]}}, "description": "Тип TL: Message."}, "x-tl-type": "Vector<Message>"}}, "required": ["_", "messages"], "additionalProperties": false}, "feedItemInterestCategories": {"title": "feedItemInterestCategories", "type": "object", "properties": {"_": {"type": "string", "enum": ["feedItemInterestCategories"]}}, "required": ["_"], "additionalProperties": false}, "feed.forYouFeed": {"title": "feed.forYouFeed", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.forYouFeed"]}, "items": {"type": "array", "items": {"type": "object", "x-tl-type": "FeedItem", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feedItemMessage", "feedItemMessageGroup", "feedItemInterestCategories"]}}, "description": "Тип TL: FeedItem."}, "x-tl-type": "Vector<FeedItem>"}, "chats": {"type": "array", "items": {"type": "object", "x-tl-type": "Chat", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["chatEmpty", "chat", "chatForbidden", "channel", "channelForbidden", "communityForbidden", "community"]}}, "description": "Тип TL: Chat."}, "x-tl-type": "Vector<Chat>"}, "users": {"type": "array", "items": {"type": "object", "x-tl-type": "User", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["userEmpty", "user"]}}, "description": "Type TL: User."}, "x-tl-type": "Vector<User>"}, "recommendation_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.0?long"}}, "required": ["_", "items", "chats", "users"], "additionalProperties": false}, "feed.interestCategory": {"title": "feed.interestCategory", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.interestCategory"]}, "id": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "title": {"type": "string", "x-tl-type": "string"}, "emoji": {"type": "string", "x-tl-type": "string", "x-tl-flag": "flags.0?string"}, "emoji_document_id": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long", "x-tl-flag": "flags.1?long"}}, "required": ["_", "id", "title"], "additionalProperties": false}, "feed.interestCategoriesNotModified": {"title": "feed.interestCategoriesNotModified", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.interestCategoriesNotModified"]}}, "required": ["_"], "additionalProperties": false}, "feed.interestCategories": {"title": "feed.interestCategories", "type": "object", "properties": {"_": {"type": "string", "enum": ["feed.interestCategories"]}, "categories": {"type": "array", "items": {"type": "object", "x-tl-type": "feed.InterestCategory", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["feed.interestCategory"]}}, "description": "Тип TL: feed.InterestCategory."}, "x-tl-type": "Vector<feed.InterestCategory>"}, "selected": {"type": "array", "items": {"type": "integer", "format": "int32", "x-tl-type": "int"}, "x-tl-type": "Vector<int>"}}, "required": ["_", "categories", "selected"], "additionalProperties": false}, "inputFeedEvent": {"title": "inputFeedEvent", "type": "object", "properties": {"_": {"type": "string", "enum": ["inputFeedEvent"]}, "peer": {"type": "object", "x-tl-type": "InputPeer", "additionalProperties": true, "properties": {"_": {"type": "string", "enum": ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]}}, "description": "TL Type: 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 Type: Document."}, "version": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "document", "version"], "additionalProperties": false}, "walletStakingInfo": {"title": "walletStakingInfo", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingInfo"]}, "halted": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.0?true"}, "deposits_closed": {"type": "boolean", "enum": [true], "x-tl-type": "true", "x-tl-flag": "flags.1?true"}, "apr": {"type": "number", "format": "double", "x-tl-type": "double"}, "staked": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "available": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "pending_ton": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "round_closes_at": {"type": "integer", "format": "int32", "x-tl-type": "int"}}, "required": ["_", "apr", "staked", "available", "pending_ton", "round_closes_at"], "additionalProperties": false}, "walletStakingPrepared": {"title": "walletStakingPrepared", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingPrepared"]}, "destination": {"type": "string", "x-tl-type": "string"}, "value": {"type": "string", "pattern": "^-?\\d+$", "description": "64-битное целое в десятичной записи.", "x-tl-type": "long"}, "body": {"type": "string", "format": "byte", "x-tl-type": "bytes"}}, "required": ["_", "destination", "value", "body"], "additionalProperties": false}, "walletStakingActionDeposit": {"title": "walletStakingActionDeposit", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingActionDeposit"]}}, "required": ["_"], "additionalProperties": false}, "walletStakingActionWithdraw": {"title": "walletStakingActionWithdraw", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingActionWithdraw"]}}, "required": ["_"], "additionalProperties": false}, "walletStakingActionWithdrawPending": {"title": "walletStakingActionWithdrawPending", "type": "object", "properties": {"_": {"type": "string", "enum": ["walletStakingActionWithdrawPending"]}}, "required": ["_"], "additionalProperties": false}}}, "x-telegram-layer": 236, "x-tag-labels": {"Служебные методы": "システムメソッド", "Авторизация": "認証", "Аккаунт": "アカウント", "Пользователи": "ユーザー", "Контакты": "連絡先", "Сообщения": "メッセージ", "Обновления": "更新", "Фотографии": "写真", "Файлы": "ファイル", "Конфигурация и справка": "設定とヘルプ", "Каналы и супергруппы": "チャンネルとスーパーグループ", "Боты": "ボット", "Платежи": "支払い", "Стикеры": "ステッカー", "Звонки": "通話", "Переводы": "送金", "Папки": "フォルダー", "Статистика": "統計", "Папки чатов": "チャットフォルダー", "Истории": "ストーリー", "Telegram Premium": "Telegram Premium", "SMS": "SMS", "Fragment": "Fragment", "aicompose": "AI エディター", "communities": "コミュニティ", "ephemeral": "一時メッセージ", "toncenter": "TON Center", "wallet": "ウォレット", "feed": "フィード"}}